/* ============================================================
   Zeflash — multi-page site styles
   Extends css/style.css. Tokens only (css/variables.css).
   Theme: Noir Amethyst — dark first, Royal Purple accent,
   Gold reserved for premium moments. 8px grid, 1200px max.
   ============================================================ */

/* ─── Accessibility ─── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-surface-elevated);
    color: var(--color-text-primary);
    border-radius: var(--r-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-sm);
    letter-spacing: var(--ls-button);
    text-transform: uppercase;
}

.skip-link:focus {
    left: var(--spacing-md);
    top: var(--spacing-md);
}

:where(a, button, input, select, textarea):focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

.icon {
    flex-shrink: 0;
}

/* ─── Active nav state ─── */
.nav-menu a.is-active {
    color: var(--color-text-primary);
}

.nav-menu a.is-active::after {
    width: 100%;
}

/* ─── Interior page hero ─── */
.page-hero {
    position: relative;
    padding: calc(var(--navigation-height) + var(--spacing-4xl)) 0 var(--spacing-3xl);
    overflow: hidden;
    border-bottom: var(--border-subtle);
}

.page-hero--tight {
    padding-bottom: var(--spacing-2xl);
}

.page-hero .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.page-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-display);
    font-size: clamp(2.25rem, 5vw, var(--fs-6xl));
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: var(--color-text-primary);
    margin: var(--spacing-md) 0 var(--spacing-lg);
    max-width: 20ch;
}

.page-lead {
    font-family: var(--font-body);
    font-weight: var(--fw-body);
    font-size: clamp(1.05rem, 2vw, var(--fs-xl));
    line-height: 1.7;
    color: var(--color-text-secondary);
    max-width: 68ch;
}

.breadcrumb {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-lg);
    transition: color var(--duration-fast) var(--ease-premium);
}

.breadcrumb .icon {
    transform: rotate(180deg);
}

.breadcrumb:hover {
    color: var(--color-primary-accent);
}

/* ─── Section rhythm ─── */
.section-action {
    margin-top: var(--spacing-2xl);
    display: flex;
    justify-content: center;
}

/* ─── Home: the story ─── */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.story-lead {
    font-family: var(--font-heading);
    font-weight: var(--fw-headline);
    font-size: clamp(1.375rem, 2.6vw, var(--fs-3xl));
    line-height: 1.4;
    color: var(--color-text-primary);
}

.story-body p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.story-body strong {
    color: var(--color-text-primary);
    font-weight: var(--fw-strong);
}

/* ─── Industry tiles (home) ─── */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.industry-tile,
.industry-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--card-border-radius);
    transition: transform var(--duration-normal) var(--ease-out-back),
        border-color var(--duration-normal) var(--ease-premium),
        box-shadow var(--duration-normal) var(--ease-premium);
}

.industry-tile:hover,
.industry-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--shadow-lg);
}

.industry-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: rgba(139, 92, 246, 0.10);
    color: var(--color-primary-accent);
    margin-bottom: var(--spacing-sm);
}

.industry-tile-title,
.industry-card-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-xl);
    color: var(--color-text-primary);
    line-height: 1.3;
}

.industry-tile-line,
.industry-card-problem {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
    flex-grow: 1;
}

.industry-tile-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-primary-accent);
}

.industry-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* ─── Home: what we solve ─── */
.solve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.solve-card {
    padding: var(--spacing-lg);
    border-left: 2px solid rgba(139, 92, 246, 0.35);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.04), transparent 70%);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.solve-card-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.solve-card-problem {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* ─── Intelligence teaser + panels ─── */
.intel-panel,
.cta-panel,
.day-panel,
.about-panel,
.intel-how-panel {
    padding: clamp(var(--spacing-xl), 4vw, var(--spacing-3xl));
    border-radius: var(--r-2xl);
}

.intel-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-headline);
    font-size: clamp(1.5rem, 3vw, var(--fs-4xl));
    line-height: 1.25;
    color: var(--color-text-primary);
    margin: var(--spacing-sm) 0 var(--spacing-md);
    max-width: 24ch;
}

.intel-body {
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 70ch;
    margin-bottom: var(--spacing-lg);
}

/* ─── Trust strip (home) ─── */
.trust-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-xl);
}

.trust-item {
    color: var(--color-primary-accent);
}

.trust-item h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    color: var(--color-text-primary);
    margin: var(--spacing-md) 0 var(--spacing-xs);
}

.trust-item p {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* ─── CTA band ─── */
.cta-band {
    padding-bottom: var(--spacing-4xl);
}

.cta-panel {
    text-align: center;
}

.cta-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-headline);
    font-size: clamp(1.5rem, 3.2vw, var(--fs-4xl));
    line-height: 1.25;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.cta-body {
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 62ch;
    margin: 0 auto var(--spacing-xl);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Platform: areas ─── */
.areas-section .container > .area + .area {
    margin-top: var(--spacing-4xl);
    padding-top: var(--spacing-3xl);
    border-top: var(--border-subtle);
}

.area-head {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.area-index {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--color-primary-accent);
    padding-top: var(--spacing-xs);
    opacity: 0.8;
}

.area-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-headline);
    font-size: clamp(1.5rem, 3vw, var(--fs-4xl));
    line-height: 1.2;
    color: var(--color-text-primary);
}

.area-problem {
    font-family: var(--font-body);
    font-size: var(--fs-lg);
    color: var(--color-secondary-accent);
    margin-top: var(--spacing-xs);
    opacity: 0.85;
}

.area-gloss {
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 78ch;
    margin-bottom: var(--spacing-xl);
}

.area-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--spacing-md) var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.area-list li {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.area-list .icon {
    color: var(--color-primary-accent);
    margin-top: 3px;
}

.area-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.split-col {
    padding: var(--spacing-lg);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--r-lg);
}

.split-col p {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.split-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-primary-accent);
    margin-bottom: var(--spacing-sm);
}

.split-col--india .split-label {
    color: var(--color-secondary-accent);
}

.split-col--india {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.04), transparent 60%), var(--color-surface-default);
}

/* ─── Industry page: pains ─── */
.pain-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.pain {
    position: relative;
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) var(--spacing-2xl);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--r-lg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-style: italic;
    line-height: 1.6;
}

.pain-quote {
    position: absolute;
    left: var(--spacing-md);
    top: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-4xl);
    line-height: 1;
    color: var(--color-primary-accent);
    opacity: 0.4;
}

/* ─── Industry page: solve rows ─── */
.solve-rows {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.solve-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-lg);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--r-lg);
    transition: border-color var(--duration-normal) var(--ease-premium);
}

.solve-row:hover {
    border-color: rgba(139, 92, 246, 0.30);
}

.solve-capability {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.solve-capability .icon {
    color: var(--color-primary-accent);
    margin-top: 4px;
}

.solve-capability p {
    color: var(--color-text-primary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.solve-outcome {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    padding-left: var(--spacing-lg);
    border-left: var(--border-subtle);
}

.solve-outcome p {
    color: var(--color-secondary-accent);
    font-size: var(--fs-sm);
    line-height: 1.7;
    opacity: 0.9;
}

.solve-arrow {
    color: var(--color-secondary-accent);
    opacity: 0.6;
    margin-top: 3px;
}

/* ─── Industry page: day in the life ─── */
.day-body {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2vw, var(--fs-xl));
    line-height: 1.85;
    color: var(--color-text-primary);
    margin-top: var(--spacing-md);
    max-width: 80ch;
}

/* ─── Industry page: rules + related ─── */
.rules-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.rule-chip {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: var(--r-full);
    background: rgba(255, 215, 0, 0.05);
    color: var(--color-text-secondary);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
}

.related {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-xl);
    border-top: var(--border-subtle);
}

.related-label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-md);
}

.related-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.related-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--r-full);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    transition: all var(--duration-fast) var(--ease-premium);
}

.related-chip:hover {
    color: var(--color-text-primary);
    border-color: rgba(139, 92, 246, 0.35);
}

.related-chip .icon {
    color: var(--color-primary-accent);
}

/* ─── Intelligence page ─── */
.intel-grid,
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.intel-card,
.trust-card {
    padding: var(--spacing-xl);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--card-border-radius);
}

.intel-card-icon,
.trust-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: rgba(139, 92, 246, 0.10);
    color: var(--color-primary-accent);
    margin-bottom: var(--spacing-md);
}

.intel-card-title,
.trust-card-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.intel-card-body,
.trust-card p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: var(--fs-sm);
}

.intel-how-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-headline);
    font-size: clamp(1.375rem, 2.8vw, var(--fs-3xl));
    line-height: 1.3;
    color: var(--color-text-primary);
    margin: var(--spacing-sm) 0 var(--spacing-lg);
    max-width: 30ch;
}

.intel-how-panel p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 76ch;
    margin-bottom: var(--spacing-md);
}

/* ─── Trust page: standards ─── */
.standards-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 0 var(--spacing-2xl);
}

.standard {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    padding: var(--spacing-md) 0;
    border-bottom: var(--border-subtle);
}

.standard-name {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--color-text-primary);
}

.standard-what {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.6;
}

/* ─── About ─── */
.about-panel p {
    color: var(--color-text-secondary);
    line-height: 1.85;
    margin-bottom: var(--spacing-md);
    max-width: 78ch;
}

.about-conviction {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: clamp(1.125rem, 2.2vw, var(--fs-2xl));
    line-height: 1.5;
    color: var(--color-text-primary) !important;
    padding-top: var(--spacing-md);
    border-top: var(--border-subtle);
    margin-top: var(--spacing-lg);
}

/* ─── Contact ─── */
.contact-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-form {
    padding: clamp(var(--spacing-lg), 3vw, var(--spacing-2xl));
    border-radius: var(--r-2xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-lg);
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--color-surface-input);
    border: var(--border-light);
    border-radius: var(--input-border-radius);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-base);
    transition: border-color var(--duration-fast) var(--ease-premium);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-primary-accent);
    outline: none;
}

.form-group select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-tertiary) 50%),
        linear-gradient(135deg, var(--color-text-tertiary) 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 4px), calc(100% - 15px) calc(1em + 4px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.form-note {
    margin-top: var(--spacing-md);
    font-size: var(--fs-sm);
    line-height: 1.6;
    color: var(--color-text-secondary);
    min-height: 1.5em;
}

.form-note.is-error {
    color: var(--color-status-error);
}

.form-note.is-ok {
    color: var(--color-status-success);
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-block {
    padding: var(--spacing-xl);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--card-border-radius);
}

.contact-block-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.contact-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-details li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.contact-details a {
    color: var(--color-text-primary);
}

.contact-details a:hover {
    color: var(--color-primary-accent);
}

.contact-entity {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.8;
}

.contact-steps {
    padding-left: var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.contact-steps li {
    margin-bottom: var(--spacing-sm);
}

/* ─── Legal pages ─── */
.container--prose {
    max-width: 820px;
}

.legal-meta {
    margin-top: var(--spacing-lg);
    font-family: var(--font-mono);
    font-size: var(--fs-xs);
    color: var(--color-text-tertiary);
}

.legal-body {
    padding-bottom: var(--spacing-4xl);
}

.legal-section {
    margin-bottom: var(--spacing-2xl);
}

.legal-heading {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.legal-section p {
    color: var(--color-text-secondary);
    line-height: 1.85;
    margin-bottom: var(--spacing-md);
}

.legal-section strong {
    color: var(--color-text-primary);
    font-weight: var(--fw-strong);
}

.legal-list {
    padding-left: var(--spacing-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.legal-list li {
    margin-bottom: var(--spacing-xs);
}

/* ─── Footer ─── */
.site-footer {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-xl);
    border-top: var(--border-subtle);
    background: var(--color-background-secondary);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: var(--border-subtle);
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin: var(--spacing-md) 0;
    max-width: 42ch;
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    margin-bottom: var(--spacing-md);
}

.footer-contact a {
    color: var(--color-text-secondary);
}

.footer-contact a:hover {
    color: var(--color-primary-accent);
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

.footer-social:hover {
    color: var(--color-primary-accent);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-xl);
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-col a {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

.footer-col a:hover {
    color: var(--color-primary-accent);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    color: var(--color-text-tertiary);
    font-size: var(--fs-xs);
}

.footer-legal-meta {
    font-family: var(--font-mono);
}

.footer-legal-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-legal-links a {
    color: var(--color-text-tertiary);
}

.footer-legal-links a:hover {
    color: var(--color-primary-accent);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .story-grid,
    .area-split,
    .contact-layout,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .solve-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .solve-outcome {
        padding-left: 0;
        padding-top: var(--spacing-md);
        border-left: none;
        border-top: var(--border-subtle);
    }

    .page-hero {
        padding-top: calc(var(--navigation-height) + var(--spacing-2xl));
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .area-head {
        gap: var(--spacing-md);
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ─── Product stills ───────────────────────────────────────────
   Frames locked to the app's export ratio (2711 x 1617 = 1.68:1)
   so replacing the files in assets/product/ needs no code change.
   ------------------------------------------------------------- */
.product-showcase .product-still-frame,
.product-showcase .product-still--feature .product-still-frame {
    aspect-ratio: 2711 / 1617;
}

.product-showcase .product-still-frame img {
    object-position: top center;
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-still,
    .product-still--feature {
        grid-column: 1 / -1;
    }
}

/* ─── Design-system corrections ────────────────────────────────
   Primary CTA is the Royal Purple gradient with a purple colored
   shadow (WEBSITE.md / README.md). Gold stays reserved for the
   wordmark and premium accents, not the most-repeated button.
   ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-royal-purple);
    color: #FFFFFF;
    box-shadow: var(--glow-purple);
}

.btn-primary:hover {
    box-shadow: var(--glow-purple-strong), 0 0 50px rgba(139, 92, 246, 0.18);
}

.feature-pill {
    gap: var(--spacing-sm);
}

.feature-pill .icon {
    color: var(--color-primary-accent);
}

/* ============================================================
   Unlisted comparison page (/compare/)
   Read standing up, on a phone, in a conference hall.
   ============================================================ */

.page-compare .container--prose {
    max-width: 760px;
}

.cmp-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--navigation-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
    border-bottom: var(--border-subtle);
}

.cmp-hero .container {
    position: relative;
    z-index: 2;
}

.cmp-headline {
    font-family: var(--font-heading);
    font-weight: var(--fw-display);
    font-size: clamp(2rem, 7vw, 3.25rem);
    line-height: 1.12;
    color: var(--color-text-primary);
    margin: var(--spacing-md) 0 var(--spacing-lg);
}

.cmp-sub {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2.4vw, var(--fs-xl));
    line-height: 1.65;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
}

.cmp-standfirst {
    font-size: var(--fs-base);
    line-height: 1.75;
    color: var(--color-text-secondary);
    padding-left: var(--spacing-md);
    border-left: 2px solid rgba(139, 92, 246, 0.45);
    margin-bottom: var(--spacing-xl);
}

.cmp-hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cmp-section {
    padding: var(--spacing-3xl) 0;
}

.cmp-h2 {
    font-family: var(--font-heading);
    font-weight: var(--fw-headline);
    font-size: clamp(1.5rem, 4vw, var(--fs-4xl));
    line-height: 1.25;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.cmp-h2--center {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.cmp-lead {
    font-size: var(--fs-lg);
    line-height: 1.7;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.cmp-section p,
.cmp-concession p {
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: var(--spacing-md);
}

.cmp-sectors {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    color: var(--color-text-primary) !important;
    line-height: 1.8 !important;
}

/* ─── The concession block: as designed as the hero, never fine print ─── */
.cmp-concession {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.03), transparent 60%);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.cmp-concession-panel {
    padding: clamp(var(--spacing-lg), 5vw, var(--spacing-2xl));
    background: var(--color-surface-default);
    border: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: var(--r-2xl);
}

.cmp-concession-points {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.cmp-point-head {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    color: var(--color-secondary-accent);
    margin-bottom: var(--spacing-xs);
    line-height: 1.35;
}

.cmp-point p {
    margin-bottom: 0;
}

.cmp-concession-close {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    line-height: 1.5;
    color: var(--color-text-primary) !important;
    padding-top: var(--spacing-lg);
    border-top: var(--border-subtle);
    margin-bottom: 0 !important;
}

/* ─── Tables ─── */
.cmp-legend {
    font-size: var(--fs-sm) !important;
    line-height: 1.7 !important;
}

.cmp-block {
    margin-bottom: var(--spacing-3xl);
}

.cmp-table-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

/* The table scrolls inside its own box; the page body never scrolls sideways. */
.cmp-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: var(--border-subtle);
    border-radius: var(--r-lg);
    background: var(--color-surface-default);
}

.cmp-table-wrap:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 2px;
}

.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
    min-width: 560px;
}

.cmp-table th,
.cmp-table td {
    padding: var(--spacing-md) var(--spacing-sm);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.cmp-table thead th {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--color-surface-variant);
    z-index: 2;
}

/* Sticky first column so the row label stays put while the columns scroll. */
.cmp-table .cmp-rowhead {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: left;
    font-family: var(--font-body);
    font-weight: var(--fw-body);
    color: var(--color-text-secondary);
    background: var(--color-surface-default);
    min-width: 220px;
    max-width: 340px;
    line-height: 1.5;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.cmp-table thead .cmp-rowhead {
    z-index: 3;
    background: var(--color-surface-variant);
}

.cmp-table .cmp-rowhead strong {
    color: var(--color-text-primary);
    font-weight: var(--fw-strong);
}

.cmp-cell {
    white-space: nowrap;
    color: var(--color-text-secondary);
}

.cmp-yes { color: var(--color-status-success); }
.cmp-no { color: var(--color-text-muted); }
.cmp-part { color: var(--color-status-warning); }

.cmp-cell strong {
    font-weight: var(--fw-strong);
}

/* The Zeflash column is tinted, not badged. Gold stays for the mark. */
.cmp-table .cmp-us {
    background: rgba(139, 92, 246, 0.09);
}

.cmp-table thead .cmp-us {
    background: rgba(139, 92, 246, 0.16);
    color: var(--color-violet-soft);
}

.cmp-table tbody tr:last-child th,
.cmp-table tbody tr:last-child td {
    border-bottom: none;
}

.cmp-why {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(139, 92, 246, 0.05);
    border-left: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.75;
}

.cmp-why strong,
.cmp-check strong {
    color: var(--color-text-primary);
}

.cmp-check {
    padding: var(--spacing-lg);
    border: var(--border-subtle);
    border-radius: var(--r-lg);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.75;
}

/* ─── Use-case cards ─── */
.cmp-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.cmp-case {
    padding: var(--spacing-lg);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--card-border-radius);
}

.cmp-case-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.35;
}

.cmp-case p {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
    margin: 0;
}

/* ─── Contact ─── */
.cmp-contact {
    padding: var(--spacing-3xl) 0 var(--spacing-4xl);
}

.cmp-contact-panel {
    padding: clamp(var(--spacing-lg), 5vw, var(--spacing-2xl));
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--r-2xl);
}

.cmp-contact-lines {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-xl);
    margin-bottom: var(--spacing-sm) !important;
}

.cmp-contact-lines a {
    font-family: var(--font-heading);
    font-weight: var(--fw-strong);
    font-size: var(--fs-lg);
    color: var(--color-primary-accent);
    padding: var(--spacing-xs) 0;
}

.cmp-entity {
    font-size: var(--fs-sm) !important;
    color: var(--color-text-tertiary) !important;
}

.navbar--minimal .container {
    justify-content: flex-start;
}

.site-footer--minimal {
    padding-top: var(--spacing-xl);
    text-align: center;
}

.site-footer--minimal .footer-legal-links {
    justify-content: center;
    margin-top: var(--spacing-sm);
}

@media (max-width: 600px) {
    .cmp-table .cmp-rowhead {
        min-width: 180px;
        font-size: var(--fs-xs);
    }

    .cmp-table th,
    .cmp-table td {
        padding: var(--spacing-sm) var(--spacing-xs);
    }

    .cmp-hero-cta .btn {
        width: 100%;
    }
}

/* On a phone the four columns must all be visible at once — the Zeflash column
   is the point of the page, and it should not sit behind a horizontal scroll.
   The table still scrolls if a translation or a longer label pushes it wider. */
@media (max-width: 460px) {
    .cmp-table {
        min-width: 0;
        font-size: 0.6875rem;
    }

    .cmp-table th,
    .cmp-table td {
        padding: 10px 4px;
    }

    .cmp-table thead th {
        font-size: 0.5625rem;
        letter-spacing: 0.5px;
    }

    .cmp-table .cmp-rowhead {
        min-width: 0;
        width: 42%;
        font-size: 0.6875rem;
        padding-left: 10px;
        padding-right: 8px;
        line-height: 1.4;
    }

    .cmp-cell {
        white-space: normal;
        word-break: break-word;
    }

    .cmp-table-wrap {
        border-radius: var(--r-md);
    }
}

/* ============================================================
   Product pages (/products/*)
   ============================================================ */

.prod-body {
    padding-bottom: var(--spacing-3xl);
}

.prod-theme + .prod-theme {
    margin-top: var(--spacing-3xl);
    padding-top: var(--spacing-2xl);
    border-top: var(--border-subtle);
}

.prod-theme-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-headline);
    font-size: clamp(1.35rem, 2.6vw, var(--fs-3xl));
    line-height: 1.25;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

.prod-theme-note {
    color: var(--color-text-tertiary);
    font-size: var(--fs-sm);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    max-width: 78ch;
}

.prod-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: var(--spacing-md) var(--spacing-2xl);
}

.prod-list li {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.75;
}

.prod-list .icon {
    color: var(--color-primary-accent);
    margin-top: 4px;
}

/* Reports catalogue: name → question → example */
.rep-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.rep-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.4fr;
    gap: var(--spacing-lg);
    align-items: baseline;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--r-lg);
    transition: border-color var(--duration-normal) var(--ease-premium);
}

.rep-row:hover {
    border-color: rgba(139, 92, 246, 0.30);
}

.rep-name {
    font-family: var(--font-heading);
    font-weight: var(--fw-strong);
    font-size: var(--fs-sm);
    color: var(--color-text-primary);
    line-height: 1.45;
}

.rep-q {
    color: var(--color-secondary-accent);
    font-size: var(--fs-sm);
    line-height: 1.6;
    opacity: 0.9;
}

.rep-ex {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.65;
}

/* Headline questions (reports) */
.prod-questions {
    padding: var(--spacing-2xl) 0 0;
}

.prod-q-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.prod-q {
    padding: var(--spacing-lg);
    border-left: 2px solid rgba(139, 92, 246, 0.45);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.05), transparent 75%);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

.prod-q-text {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    color: var(--color-text-primary);
    line-height: 1.45;
    margin-bottom: var(--spacing-sm);
}

.prod-q-a {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

.prod-shot {
    padding: var(--spacing-xl) 0 0;
}

.prod-shot .product-still {
    grid-column: auto;
}

.industry-tile--alt {
    border-color: rgba(255, 215, 0, 0.22);
}

.industry-tile--alt .industry-tile-icon {
    background: rgba(255, 215, 0, 0.10);
    color: var(--color-secondary-accent);
}

.industry-tile--alt .industry-tile-more {
    color: var(--color-secondary-accent);
}

@media (max-width: 900px) {
    .rep-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .rep-q::before {
        content: none;
    }
}

/* "How to read this" — a sober lead-in, deliberately not hero-weight.
   The six tables and the use cases carry the page. */
.cmp-howto {
    padding: var(--spacing-2xl) 0;
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.cmp-howto-title {
    font-family: var(--font-heading);
    font-weight: var(--fw-label);
    font-size: var(--fs-xs);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-md);
}

.cmp-howto p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.cmp-howto p:last-child {
    margin-bottom: 0;
}

/* The featured claim beneath a table — the one paragraph that carries weight. */
.cmp-feature {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.20);
    border-radius: var(--r-lg);
    color: var(--color-text-primary);
    font-size: var(--fs-base);
    line-height: 1.8;
}

.cmp-feature strong {
    color: var(--color-secondary-accent);
}

.cmp-feature em {
    color: var(--color-text-primary);
    font-style: italic;
}

/* ─── Explanatory diagrams ─────────────────────────────────────
   Schematics drawn from the tokens, not decoration. Inline SVG,
   so they cost no request and scale to any width.
   ------------------------------------------------------------- */
.dgm-section {
    padding: var(--spacing-xl) 0 0;
}

.dgm-fig {
    margin: 0;
    padding: clamp(var(--spacing-md), 3vw, var(--spacing-2xl));
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--card-border-radius);
    overflow-x: auto;
}

.dgm {
    display: block;
    min-width: 520px;
}

.dgm-fig figcaption {
    margin-top: var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
    max-width: 76ch;
}

/* ============================================================
   The three dense pages: structure, not cuts
   ============================================================ */

.wall-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.wall-index {
    position: sticky;
    top: calc(var(--navigation-height) + var(--spacing-lg));
}

.wall-index ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
    border-left: var(--border-subtle);
}

.wall-index a {
    display: block;
    padding: 2px 0 2px var(--spacing-md);
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--color-text-tertiary);
    font-size: var(--fs-sm);
    line-height: 1.45;
    transition: color var(--duration-fast) var(--ease-premium),
        border-color var(--duration-fast) var(--ease-premium);
}

.wall-index a:hover {
    color: var(--color-text-primary);
    border-left-color: var(--color-primary-accent);
}

.wall-main {
    min-width: 0;
}

/* Progressive disclosure — native, no script, still indexable */
.prod-list--lead li,
.rep-list--lead .rep-row {
    font-size: var(--fs-base);
}

.prod-list--lead li span {
    color: var(--color-text-primary);
}

.prod-more {
    margin-top: var(--spacing-md);
}

.prod-more > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    border: var(--border-subtle);
    border-radius: var(--r-full);
    transition: border-color var(--duration-fast) var(--ease-premium);
}

.prod-more > summary::-webkit-details-marker { display: none; }

.prod-more > summary::after {
    content: '+';
    font-family: var(--font-mono);
    color: var(--color-primary-accent);
    font-size: var(--fs-base);
    line-height: 1;
}

.prod-more[open] > summary::after { content: '\2212'; }

.prod-more > summary:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.prod-more-label {
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.prod-more[open] > summary {
    margin-bottom: var(--spacing-md);
}

/* Stat callouts — verifiable product properties, not feature counts */
.stat-band {
    padding: var(--spacing-xl) 0 0;
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-xl) 0;
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.stat-n {
    font-family: var(--font-heading);
    font-weight: var(--fw-display);
    font-size: clamp(2.25rem, 5vw, var(--fs-5xl));
    line-height: 1;
    background: var(--gradient-royal-purple);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-t {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.6;
    max-width: 30ch;
}

.dgm-inline {
    margin: var(--spacing-2xl) 0;
}

@media (max-width: 980px) {
    .wall-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .wall-index {
        position: static;
    }

    .wall-index ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: var(--spacing-xs) var(--spacing-md);
        border-left: none;
    }

    .wall-index a {
        padding: 2px 0;
        border-left: none;
    }
}

/* ============================================================
   /intelligence/ — show the idea, and let it move
   Motion vocabulary is the design system's: ease-out entrances,
   ease-out-expo reveals, ease-in-out loops. Token durations.
   Nothing runs before it is in view. Nothing loops but the layer
   flow and the hero orbs.
   ============================================================ */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.int-anim {
    margin: 0;
    padding: clamp(var(--spacing-md), 3vw, var(--spacing-2xl));
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--card-border-radius);
}

.int-anim figcaption {
    margin-top: var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
    max-width: 76ch;
}

.int-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

/* ─── A · the layers, alive ─── */
.dgm-flow .dgm path[marker-end] {
    stroke-dasharray: 6 8;
    stroke-dashoffset: 28;
}

.dgm-flow.in .dgm path[marker-end] {
    animation: dgm-flow var(--duration-ai-thinking) var(--ease-premium) infinite;
}

@keyframes dgm-flow {
    to { stroke-dashoffset: 0; }
}

/* ─── B · the margin conversation ─── */
.convo-panel {
    padding: clamp(var(--spacing-md), 2.5vw, var(--spacing-xl));
    background: var(--color-surface-variant);
    border: var(--glass-border);
    border-radius: var(--r-lg);
}

.convo-label {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-md);
}

.convo-q {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: clamp(1.05rem, 2.2vw, var(--fs-2xl));
    line-height: 1.45;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xl);
}

html.js .convo-q span {
    opacity: 0;
}

.int-convo.in .convo-q span {
    animation: type-in 1ms linear forwards;
    animation-delay: calc(var(--i) * 24ms);
}

@keyframes type-in {
    to { opacity: 1; }
}

.convo-levers {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.lever {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--color-surface-default);
    border-left: 2px solid var(--color-primary-accent);
    border-radius: 0 var(--r-md) var(--r-md) 0;
}

html.js .lever {
    opacity: 0;
    transform: translateY(8px);
}

.int-convo.in .lever {
    animation: lever-in var(--duration-slow) var(--ease-out-expo) forwards;
    animation-delay: calc(1800ms + var(--i) * 100ms);
}

@keyframes lever-in {
    to { opacity: 1; transform: none; }
}

.lever-name {
    font-family: var(--font-heading);
    font-weight: var(--fw-strong);
    font-size: var(--fs-sm);
    color: var(--color-text-primary);
}

.lever-n {
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    color: var(--color-secondary-accent);
    text-align: right;
}

.lever-src {
    grid-column: 1 / -1;
    font-size: var(--fs-xs);
    color: var(--color-text-tertiary);
}

.convo-close {
    margin-top: var(--spacing-lg);
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
}

html.js .convo-close {
    opacity: 0;
}

.int-convo.in .convo-close {
    animation: type-in var(--duration-slow) var(--ease-premium) forwards;
    animation-delay: 2300ms;
}

/* ─── C · a document reads itself ─── */
html.js .doc-field {
    opacity: 0;
    transform: translateX(-40px);
}

.doc-field {
    transform: translateX(286px);
}

.int-doc.in .doc-field {
    animation: doc-lift var(--duration-slow) var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i) * 100ms);
}

@keyframes doc-lift {
    to { opacity: 1; transform: translateX(286px); }
}

/* ─── D · ask your data ─── */
.ask-q {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    line-height: 1.5;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
}

.bar {
    transform-origin: center bottom;
}

html.js .bar {
    transform: scaleY(0);
}

.int-ask.in .bar {
    animation: bar-grow var(--duration-slow) var(--ease-premium) forwards;
    animation-delay: calc(var(--i) * 50ms);
}

@keyframes bar-grow {
    to { transform: scaleY(1); }
}

/* ─── The hero's two floating orbs — the brand's signature motion ─── */
.page-hero .gradient-orb,
.cmp-hero .gradient-orb {
    animation: orb-float-a 18s var(--ease-premium) infinite alternate;
}

.page-hero .orb-2,
.cmp-hero .orb-2 {
    animation: orb-float-b 22s var(--ease-premium) infinite alternate;
}

@keyframes orb-float-a {
    to { transform: translate3d(6%, -8%, 0) scale(1.08); }
}

@keyframes orb-float-b {
    to { transform: translate3d(-7%, 6%, 0) scale(0.94); }
}

/* ─── Everything above is optional. This is not. ─── */
@media (prefers-reduced-motion: reduce) {
    .convo-q span,
    .convo-close,
    .lever,
    .doc-field,
    .bar {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .int-doc.in .doc-field,
    .doc-field {
        transform: translateX(286px) !important;
    }

    .dgm-flow .dgm path[marker-end] {
        stroke-dasharray: none;
        animation: none !important;
    }

    .page-hero .gradient-orb,
    .cmp-hero .gradient-orb {
        animation: none !important;
    }
}

@media (max-width: 700px) {
    .dgm-flow .dgm,
    .int-anim .dgm {
        min-width: 480px;
    }
}

.int-section {
    padding: var(--spacing-2xl) 0 0;
}

/* ─── Icons: the design system's own set, in its gradient-lit tile ─── */
.prod-theme-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.theme-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.10), rgba(255, 215, 0, 0.10));
    color: var(--color-primary-accent);
    line-height: 0;
}

/* A bullet's glyph names the object it is about, so a list can be scanned by
   shape. Where there is no obvious object it stays a check. */
.prod-list li > .icon {
    color: var(--color-text-secondary);
}

.prod-list--lead li > .icon {
    color: var(--color-primary-accent);
}

/* ─── Stock imagery: a graded wash, never a full-colour photograph ─────
   Grading lives here rather than in the file, so the source stays
   untouched and any replacement picks the treatment up automatically.
   ------------------------------------------------------------------- */
.hero-wash {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-wash img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.88;
    filter: grayscale(0.28) saturate(0.98) brightness(1.02) contrast(1.06);
}

/* The scrim is weighted to the left, where the 900px text column sits, so the
   headline keeps its contrast while the right-hand side of the photograph stays
   open and readable as a picture. The vertical pass only closes the bottom edge,
   melting the frame into the ground rather than flattening the whole image. */
.hero-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(12, 10, 15, 0.86) 0%, rgba(12, 10, 15, 0.72) 34%, rgba(12, 10, 15, 0.34) 62%, rgba(12, 10, 15, 0.06) 88%),
        linear-gradient(180deg, transparent 0%, transparent 46%, rgba(12, 10, 15, 0.42) 74%, var(--color-background-primary) 100%),
        linear-gradient(115deg, rgba(139, 92, 246, 0.20), rgba(99, 102, 241, 0.06) 55%, transparent 78%);
}

/* Narrow screens have no spare width to hold a picture beside the type, so the
   scrim goes back to a flat vertical one and the photograph steps back. */
@media (max-width: 900px) {
    .hero-wash img { opacity: 0.62; }
    .hero-wash::after {
        background:
            linear-gradient(180deg, rgba(12, 10, 15, 0.52) 0%, rgba(12, 10, 15, 0.66) 45%, rgba(12, 10, 15, 0.84) 78%, var(--color-background-primary) 100%),
            linear-gradient(115deg, rgba(139, 92, 246, 0.20), transparent 78%);
    }
}

.page-hero--industry .container,
.page-hero .container {
    position: relative;
    z-index: 2;
}


/* ============================================================
   Motion primitives, site-wide.
   Every initial hidden state is gated on html.js (guardrail 4),
   every one of them is switched off under prefers-reduced-motion
   (guardrail 5), and the timings are the design tokens (guardrail 6).
   ============================================================ */

/* ─── P2 · Stagger ─── */
[data-stagger] > *:nth-child(1) { --i: 0; }
[data-stagger] > *:nth-child(2) { --i: 1; }
[data-stagger] > *:nth-child(3) { --i: 2; }
[data-stagger] > *:nth-child(4) { --i: 3; }
[data-stagger] > *:nth-child(5) { --i: 4; }
[data-stagger] > *:nth-child(6) { --i: 5; }
[data-stagger] > *:nth-child(7) { --i: 6; }
[data-stagger] > *:nth-child(8) { --i: 7; }
[data-stagger] > *:nth-child(9) { --i: 8; }
[data-stagger] > *:nth-child(10) { --i: 9; }
[data-stagger] > *:nth-child(11) { --i: 10; }
[data-stagger] > *:nth-child(12) { --i: 11; }
[data-stagger] > *:nth-child(13) { --i: 12; }
[data-stagger] > *:nth-child(14) { --i: 13; }
[data-stagger] > *:nth-child(15) { --i: 14; }
[data-stagger] > *:nth-child(16) { --i: 15; }
[data-stagger] > *:nth-child(17) { --i: 16; }
[data-stagger] > *:nth-child(18) { --i: 17; }
[data-stagger] > *:nth-child(19) { --i: 18; }
[data-stagger] > *:nth-child(20) { --i: 19; }
[data-stagger] > *:nth-child(21) { --i: 20; }
[data-stagger] > *:nth-child(22) { --i: 21; }
[data-stagger] > *:nth-child(23) { --i: 22; }
[data-stagger] > *:nth-child(24) { --i: 23; }

[data-stagger] { --step: 100ms; }
[data-stagger="50"] { --step: 50ms; }

html.js [data-stagger] > * {
    opacity: 0;
    transform: translateY(16px);
}

html.js [data-stagger].in > * {
    animation: p-rise var(--duration-slow) var(--ease-out-expo) forwards;
    animation-delay: calc(var(--i, 0) * var(--step));
}

@keyframes p-rise {
    to { opacity: 1; transform: none; }
}

/* ─── P4 · Draw: an outline draws itself, a bar fills, a frame nests inward ─── */
html.js [data-draw] .dgm rect,
html.js [data-draw] .dgm circle,
html.js [data-draw] .dgm ellipse {
    opacity: 0;
}

html.js [data-draw].in .dgm rect,
html.js [data-draw].in .dgm circle,
html.js [data-draw].in .dgm ellipse {
    animation: p-draw var(--duration-slow) var(--ease-out-expo) forwards;
}

html.js [data-draw].in .dgm > *:nth-child(2) { animation-delay: 0ms; }
html.js [data-draw].in .dgm > *:nth-child(3) { animation-delay: 120ms; }
html.js [data-draw].in .dgm > *:nth-child(4) { animation-delay: 240ms; }

@keyframes p-draw {
    from { opacity: 0; transform: scale(0.985); }
    to { opacity: 1; transform: none; }
}

/* ─── P9 · Light-up: a chain of nodes lights in order ─── */
html.js [data-lightup] .dgm g[data-node] {
    opacity: 0.25;
}

html.js [data-lightup].in .dgm g[data-node] {
    animation: p-light var(--duration-normal) var(--ease-premium) forwards;
    animation-delay: calc(var(--n, 0) * 100ms);
}

@keyframes p-light {
    to { opacity: 1; }
}

/* ─── P10 · State-walk: the active state steps through a lifecycle once ─── */
html.js [data-statewalk] .dgm g[data-state] {
    opacity: 0.3;
}

html.js [data-statewalk].in .dgm g[data-state] {
    animation: p-state var(--duration-slow) var(--ease-premium) forwards;
    animation-delay: calc(var(--n, 0) * 400ms);
}

@keyframes p-state {
    to { opacity: 1; }
}

/* ─── P5 · Count-up: the figure counts, the label does not move ─── */
.stat-n {
    font-variant-numeric: tabular-nums;
}

/* ─── The <details> open and close, rather than jumping ─── */
.prod-more > *:not(summary) {
    display: grid;
    grid-template-rows: 1fr;
}

html.js .prod-more:not([open]) > *:not(summary) {
    grid-template-rows: 0fr;
}

html.js .prod-more > *:not(summary) {
    transition: grid-template-rows var(--duration-normal) var(--ease-premium);
    overflow: hidden;
}

html.js .prod-more > *:not(summary) > * {
    min-height: 0;
}

/* ─── Hero glow: product and industry heroes get this, not the orbs ─── */
.page-hero--glow .hero-background::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.11) 0%, transparent 62%);
    pointer-events: none;
}

/* ─── The one overshoot the design system allows, and nothing else ─── */
.industry-tile:hover,
.industry-card:hover,
.intel-card:hover,
.trust-card:hover,
.cmp-case:hover {
    transition: transform var(--duration-normal) var(--ease-out-back),
        border-color var(--duration-normal) var(--ease-premium),
        box-shadow var(--duration-normal) var(--ease-premium);
}

.industry-tile:hover .industry-tile-icon,
.industry-card:hover .industry-tile-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(255, 215, 0, 0.14));
}

/* ─── Guardrail 8: orbs cost battery and add nothing on a phone ─── */
@media (max-width: 768px) {
    .gradient-orb { animation: none !important; }
}

/* ─── Guardrail 5: reduced motion shows every final state at once ─── */
@media (prefers-reduced-motion: reduce) {
    html.js .reveal-up,
    html.js [data-stagger] > *,
    html.js [data-draw] .dgm rect,
    html.js [data-draw] .dgm circle,
    html.js [data-draw] .dgm ellipse,
    html.js [data-lightup] .dgm g[data-node],
    html.js [data-statewalk] .dgm g[data-state] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    html.js .prod-more > *:not(summary) {
        transition: none !important;
    }
}

.wall-index a.is-here {
    color: var(--color-text-primary);
    border-left-color: var(--color-primary-accent);
}

/* ============================================================
   Diagram motion — the intelligence page's approach, everywhere.
   Each kind of mark moves the way that mark should: frames land,
   arrows draw along their own length, bars grow from their axis,
   labels arrive after the thing they name.
   ============================================================ */

html.js [data-draw] .dgm-shape,
html.js [data-lightup] .dgm-shape {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
    transform-box: fill-box;
    transform-origin: center;
}

html.js [data-draw].in .dgm-shape,
html.js [data-lightup].in .dgm-shape {
    animation: dgm-land 520ms var(--ease-out-expo) forwards;
    animation-delay: calc(var(--n, 0) * 240ms);
}

@keyframes dgm-land {
    to { opacity: 1; transform: none; }
}

/* pathLength="1" normalises every connector, so one rule draws a 20px
   link and a 600px sweep at the same rate. */
html.js [data-draw] .dgm-arrow,
html.js [data-lightup] .dgm-arrow {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
}

html.js [data-draw].in .dgm-arrow,
html.js [data-lightup].in .dgm-arrow {
    animation: dgm-trace 560ms var(--ease-premium) forwards;
    animation-delay: calc(var(--n, 0) * 240ms + 300ms);
}

@keyframes dgm-trace {
    to { stroke-dashoffset: 0; }
}

html.js [data-draw] .dgm-hint,
html.js [data-lightup] .dgm-hint {
    opacity: 0;
}

html.js [data-draw].in .dgm-hint,
html.js [data-lightup].in .dgm-hint {
    animation: dgm-fade var(--duration-normal) ease-out forwards;
    animation-delay: calc(var(--n, 0) * 240ms + 700ms);
}

html.js [data-draw] .dgm-label,
html.js [data-lightup] .dgm-label {
    opacity: 0;
}

html.js [data-draw].in .dgm-label,
html.js [data-lightup].in .dgm-label {
    animation: dgm-fade 360ms ease-out forwards;
    animation-delay: calc(var(--n, 0) * 240ms + 220ms);
}

@keyframes dgm-fade {
    to { opacity: 1; }
}

/* Bars grow from their own axis, like the chart on /intelligence/ */
html.js [data-draw] .dgm-bar-x {
    transform: scaleX(0);
    transform-box: fill-box;
    transform-origin: left center;
}

html.js [data-draw].in .dgm-bar-x {
    animation: dgm-grow-x 620ms var(--ease-out-expo) forwards;
    animation-delay: calc(var(--n, 0) * 300ms + 200ms);
}

@keyframes dgm-grow-x {
    to { transform: scaleX(1); }
}

html.js [data-draw] .dgm-bar-y {
    transform: scaleY(0);
    transform-box: fill-box;
    transform-origin: center bottom;
}

html.js [data-draw].in .dgm-bar-y {
    animation: dgm-grow-y 560ms var(--ease-out-expo) forwards;
    animation-delay: calc(var(--n, 0) * 200ms + 600ms);
}

@keyframes dgm-grow-y {
    to { transform: scaleY(1); }
}

/* Once a chain has drawn itself, the flow keeps moving along it — the
   loop the layers diagram uses, now on every flow. */
html.js [data-lightup].in .dgm-arrow {
    animation:
        dgm-trace 560ms var(--ease-premium) forwards,
        dgm-flow-loop 2200ms var(--ease-premium) infinite;
    animation-delay: calc(var(--n, 0) * 240ms + 300ms), 2400ms;
}

@keyframes dgm-flow-loop {
    0%   { stroke-dasharray: 1;      stroke-dashoffset: 0; }
    35%  { stroke-dasharray: 0.12 0.08; stroke-dashoffset: 0.4; }
    100% { stroke-dasharray: 1;      stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html.js [data-draw] .dgm-shape,
    html.js [data-lightup] .dgm-shape,
    html.js [data-draw] .dgm-label,
    html.js [data-lightup] .dgm-label,
    html.js [data-draw] .dgm-hint,
    html.js [data-lightup] .dgm-hint,
    html.js [data-draw] .dgm-bar-x,
    html.js [data-draw] .dgm-bar-y,
    html.js [data-draw] .dgm-arrow,
    html.js [data-lightup] .dgm-arrow {
        opacity: 1 !important;
        transform: none !important;
        stroke-dasharray: none !important;
        stroke-dashoffset: 0 !important;
        animation: none !important;
    }
}

.credits-table td { text-align: left; white-space: normal; }
.credits-table .cmp-rowhead { min-width: 0; }

/* ============================================================
   Journey pass, 2026-09-09.
   The home product map is clickable, the trust strip carries the people,
   a migration strip answers the Tally question, and page heroes carry a
   CTA row. Nothing here touches the reveal or diagram motion rules above.
   ============================================================ */

/* Home: the product map cards are links into /products/ */
a.solve-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    transition: border-color var(--duration-normal) var(--ease-premium),
        background var(--duration-normal) var(--ease-premium),
        transform var(--duration-normal) var(--ease-out-back);
}

a.solve-card:hover {
    border-left-color: var(--color-primary-accent);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.10), transparent 70%);
    transform: translateY(-2px);
}

.solve-card-more,
.trust-item-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: auto;
    padding-top: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-primary-accent);
}

.trust-item-more {
    margin-top: var(--spacing-sm);
    padding-top: 0;
    transition: color var(--duration-fast) var(--ease-premium);
}

.trust-item-more:hover {
    color: var(--color-text-primary);
}

/* Home: moving from Tally and spreadsheets */
.migrate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.migrate-card {
    padding: var(--spacing-xl);
    background: var(--color-surface-default);
    border: var(--border-subtle);
    border-radius: var(--card-border-radius);
}

.migrate-index {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    letter-spacing: var(--ls-label);
    color: var(--color-secondary-accent);
    margin-bottom: var(--spacing-md);
}

.migrate-card h3 {
    font-family: var(--font-heading);
    font-weight: var(--fw-title);
    font-size: var(--fs-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
}

.migrate-card p {
    color: var(--color-text-secondary);
    font-size: var(--fs-sm);
    line-height: 1.7;
}

/* Page heroes: a CTA row under the lead, left-aligned with the type */
.page-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

@media (max-width: 600px) {
    .page-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

/* In-page anchors land below the fixed navbar */
#industries,
#solves {
    scroll-margin-top: calc(var(--navigation-height) + var(--spacing-lg));
}

/* Home: the trust strip is four items, so it is a four-column grid rather
   than an auto-fit that strands the fourth on its own row. */
.trust-items {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .trust-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .trust-items {
        grid-template-columns: 1fr;
    }
}

/* The nav never wraps a label. Below the container width it tightens, below
   1024 it drops the wordmark, and below 900 it folds into the menu button
   (the same treatment style.css applies at 768). */
.nav-menu a {
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .nav-menu ul {
        gap: var(--spacing-lg);
    }
}

@media (max-width: 1024px) and (min-width: 901px) {
    .logo-wordmark {
        display: none;
    }
}

@media (max-width: 900px) and (min-width: 769px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--navigation-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--navigation-height));
        background: rgba(12, 10, 15, 0.98);
        backdrop-filter: blur(16px) saturate(180%);
        flex-direction: column;
        padding: var(--spacing-2xl);
        transition: left var(--duration-fast) var(--ease-smooth);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-lg);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: var(--spacing-md);
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   Craft pass, 2026-09-09.
   Same tokens, same palette, same type — better made. Surfaces
   that separate from the ground, a type scale with contrast, a
   section rhythm that changes shape, and motion with presence.
   Everything hidden-by-default is gated on html.js and switched
   off under prefers-reduced-motion, as before.
   ============================================================ */

/* ─── Foundations ─── */
:root,
.dark-theme {
    /* One surface recipe for every card: a faint top-lit gradient over the
       surface token, a lit top edge, and a neutral shadow so it lifts from
       the ground instead of dissolving into it. */
    --card-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.015) 100%), var(--color-surface-default);
    --card-border: rgba(255, 255, 255, 0.10);
    --card-border-top: rgba(255, 255, 255, 0.16);
    --card-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.25);
    --card-shadow-hover: 0 26px 48px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(139, 92, 246, 0.18), var(--glow-subtle);
    --hairline: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.45) 30%, rgba(255, 215, 0, 0.30) 70%, transparent 100%);
}

section {
    padding: 5.5rem 0;
}

/* Bands: a quieter ground with a hairline top and bottom, so the page has
   stripes of light and dark rather than one continuous field. */
.section-band {
    background: var(--color-background-secondary);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

/* ─── Type: the eyebrow is a rule and a word, not a pill; the title is
       larger and lighter; the lead is a lead. ─── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
    font-size: 0.7rem;
    font-weight: var(--fw-label);
    letter-spacing: var(--ls-label);
    color: var(--color-primary-accent);
    margin-bottom: var(--spacing-lg);
}

.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-primary-accent), var(--color-secondary-accent));
    transform-origin: left center;
}

.section-header:not(.section-header--left):not(.section-header--split) .section-label::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-secondary-accent), var(--color-primary-accent));
    transform-origin: right center;
}

.section-title {
    font-weight: var(--fw-title);
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0;
    text-wrap: balance;
}

.section-title::after {
    content: none;
}

.section-subtitle {
    font-size: var(--fs-lg);
    font-weight: var(--fw-body);
    line-height: 1.7;
    max-width: 58ch;
    margin: var(--spacing-lg) auto 0;
    text-wrap: pretty;
}

.section-header {
    margin-bottom: var(--spacing-3xl);
    padding: 0;
}

.section-header--left,
.section-header--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: var(--spacing-3xl);
    align-items: end;
    justify-items: start;
    text-align: left;
}

.section-header--left .section-label,
.section-header--left .section-title,
.section-header--left .section-subtitle,
.section-header--split .section-label,
.section-header--split .section-title {
    grid-column: 1;
}

.section-header--left .section-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.section-header--left .section-title {
    max-width: 24ch;
}

.section-header-action {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    padding-bottom: 4px;
}

.section-header--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    column-gap: var(--spacing-4xl);
}

.section-header--split .section-label {
    grid-row: 1;
}

.section-header--split .section-title {
    grid-row: 2;
    max-width: 22ch;
}

.section-header--split .section-subtitle {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    margin: 0 0 6px;
    max-width: 44ch;
    padding-left: var(--spacing-xl);
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

/* The header lands in three beats: the rule draws, the title rises, the lead
   follows. The container's own reveal (style.css) still runs underneath. */
html.js .section-header .section-label::before,
html.js .section-header .section-label::after {
    transform: scaleX(0);
    transition: transform 0.6s var(--ease-out-expo);
}

html.js .section-header .section-label,
html.js .section-header .section-title,
html.js .section-header .section-subtitle,
html.js .section-header .section-header-action {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

html.js .section-header.visible .section-label::before,
html.js .section-header.visible .section-label::after {
    transform: scaleX(1);
    transition-delay: 80ms;
}

html.js .section-header.visible .section-label,
html.js .section-header.visible .section-title,
html.js .section-header.visible .section-subtitle,
html.js .section-header.visible .section-header-action {
    opacity: 1;
    transform: none;
}

html.js .section-header.visible .section-title { transition-delay: 90ms; }
html.js .section-header.visible .section-subtitle { transition-delay: 200ms; }
html.js .section-header.visible .section-header-action { transition-delay: 260ms; }

/* The site-wide reveal: a shorter travel and the expo curve, so it reads as
   settling rather than sliding. */
html.js .reveal-up {
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* ─── Surfaces: every card lifts from the ground the same way ─── */
.industry-tile,
.industry-card,
.intel-card,
.trust-card,
.migrate-card,
.pain,
.solve-row,
.contact-block,
.cmp-case,
.dgm-fig,
.int-anim,
.split-col,
.rep-row,
.prod-q,
.solve-card,
.cmp-table-wrap,
.cmp-contact-panel {
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    border-top-color: var(--card-border-top);
    box-shadow: var(--card-shadow);
}

.split-col--india {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), transparent 60%), var(--card-surface);
}

.industry-tile,
.industry-card,
.intel-card,
.trust-card,
.migrate-card,
.cmp-case,
.contact-block {
    transition: transform var(--duration-normal) var(--ease-out-back),
        border-color var(--duration-normal) var(--ease-premium),
        box-shadow var(--duration-normal) var(--ease-premium),
        background var(--duration-fast) var(--ease-premium);
}

.industry-tile:hover,
.industry-card:hover,
.intel-card:hover,
.trust-card:hover,
.migrate-card:hover,
.cmp-case:hover,
.contact-block:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.45);
    border-top-color: rgba(139, 92, 246, 0.55);
    box-shadow: var(--card-shadow-hover);
}

/* The spotlight: main.js writes the pointer's position into --mx/--my on the
   card under it; a radial highlight follows the cursor across the surface. */
.industry-tile:hover,
.industry-card:hover,
.intel-card:hover,
.trust-card:hover,
.migrate-card:hover,
.cmp-case:hover,
.contact-block:hover,
.pain:hover,
.solve-row:hover,
.prod-q:hover,
.rep-row:hover {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.16), transparent 62%), var(--card-surface);
}

.pain,
.solve-row,
.prod-q,
.rep-row {
    transition: border-color var(--duration-normal) var(--ease-premium),
        box-shadow var(--duration-normal) var(--ease-premium);
}

.pain:hover,
.solve-row:hover,
.prod-q:hover,
.rep-row:hover {
    border-color: rgba(139, 92, 246, 0.40);
}

/* The gradient-lit tile from the design system, on every icon that leads a card */
.industry-tile-icon,
.intel-card-icon,
.trust-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(255, 215, 0, 0.07));
    border: 1px solid rgba(139, 92, 246, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background var(--duration-normal) var(--ease-premium),
        border-color var(--duration-normal) var(--ease-premium),
        transform var(--duration-normal) var(--ease-out-back);
}

.industry-tile:hover .industry-tile-icon,
.industry-card:hover .industry-tile-icon,
.intel-card:hover .intel-card-icon,
.trust-card:hover .trust-card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.30), rgba(255, 215, 0, 0.16));
    border-color: rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
}

.industry-tile-title,
.industry-card-title {
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}

.industry-card-title {
    font-size: 1.5rem;
}

.industry-tile-more,
.solve-card-more {
    transition: color var(--duration-fast) var(--ease-premium), gap var(--duration-fast) var(--ease-premium);
}

.industry-tile-more .icon,
.solve-card-more .icon,
.trust-item-more .icon,
.btn .icon {
    transition: transform var(--duration-normal) var(--ease-out-back);
}

.industry-tile:hover .industry-tile-more .icon,
.industry-card:hover .industry-tile-more .icon,
a.solve-card:hover .solve-card-more .icon,
.trust-item-more:hover .icon,
.btn:hover .icon {
    transform: translateX(4px);
}

/* Ten tiles is four, four and two — the last two carry the width rather than
   sitting stranded on a row of their own. */
@media (min-width: 1100px) {
    .industry-grid--ten {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .industry-grid--ten > :nth-child(n + 9) {
        grid-column: span 2;
        flex-direction: row;
        align-items: flex-start;
        column-gap: var(--spacing-lg);
        flex-wrap: wrap;
    }

    .industry-grid--ten > :nth-child(n + 9) .industry-tile-icon {
        margin-bottom: 0;
    }

    .industry-grid--ten > :nth-child(n + 9) .industry-tile-title {
        flex: 1 1 auto;
        align-self: center;
    }

    .industry-grid--ten > :nth-child(n + 9) .industry-tile-line {
        flex-basis: 100%;
    }
}

/* The industries index is ten wide cards in two even columns. */
@media (min-width: 900px) {
    .industry-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ─── Buttons: a sheen on the primary, an arrow that moves ─── */
.btn-primary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-premium);
    pointer-events: none;
    z-index: -1;
}

.btn-primary:hover::after {
    transform: translateX(120%);
}

.btn-secondary {
    border-color: rgba(139, 92, 246, 0.55);
    background: rgba(139, 92, 246, 0.04);
}

.btn-secondary:hover {
    background: rgba(139, 92, 246, 0.14);
}

/* The nav's contact link is a small gold outline, not a fourth text link */
.nav-menu .nav-cta {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: var(--r-full);
    transition: background var(--duration-fast) var(--ease-premium), border-color var(--duration-fast) var(--ease-premium);
}

.nav-menu .nav-cta::before {
    content: none;
}

.nav-menu .nav-cta:hover {
    background: rgba(255, 215, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.6);
}

/* ─── Home hero: type on the left, the proof stack on the right ─── */
.hero--split .hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: var(--spacing-3xl);
    align-items: center;
    text-align: left;
    max-width: var(--container-max-width);
    padding-top: var(--spacing-2xl);
    padding-bottom: var(--spacing-2xl);
}

.hero--split .hero-title {
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    letter-spacing: -0.03em;
    line-height: 1.04;
    text-wrap: balance;
}

.hero--split .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
    max-width: 58ch;
    color: var(--color-text-secondary);
}

.hero--split .hero-cta {
    justify-content: flex-start;
    margin-bottom: var(--spacing-2xl);
}

/* The three pills become a divided fact strip */
.hero--split .hero-features {
    justify-content: flex-start;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--spacing-lg);
    max-width: 640px;
}

.hero--split .feature-pill {
    background: none;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 2px var(--spacing-lg);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
    flex: 1 1 0;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.hero--split .feature-pill:first-child {
    border-left: 0;
    padding-left: 0;
}

.hero--split .feature-pill:hover {
    transform: none;
    color: #FFFFFF;
}

.hero--split .feature-pill .icon {
    margin-top: 2px;
    color: var(--color-primary-accent);
}

.hero-visual {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.stack {
    position: relative;
    max-width: 470px;
    margin: 0 auto;
    font-family: var(--font-body);
    padding: var(--spacing-xl) 0 var(--spacing-xl) var(--spacing-md);
}

.stack::before {
    content: '';
    position: absolute;
    inset: -12% -8%;
    background: radial-gradient(ellipse at 55% 45%, rgba(139, 92, 246, 0.22), transparent 62%);
    filter: blur(30px);
    pointer-events: none;
    z-index: -1;
}

.stack-layer {
    position: relative;
    border-radius: var(--r-xl);
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    border-top-color: var(--card-border-top);
    box-shadow: var(--card-shadow);
    padding: var(--spacing-lg);
}

.stack-batch {
    margin-top: var(--spacing-md);
    border-color: rgba(139, 92, 246, 0.30);
    border-top-color: rgba(139, 92, 246, 0.42);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.10), rgba(139, 92, 246, 0.03)), var(--color-surface-default);
}

.stack-unit {
    margin-top: var(--spacing-md);
    border-radius: var(--r-lg);
    border-color: rgba(255, 215, 0, 0.35);
    border-top-color: rgba(255, 215, 0, 0.5);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.08), rgba(255, 215, 0, 0.02)), var(--color-surface-elevated);
    box-shadow: var(--card-shadow), 0 0 40px rgba(255, 215, 0, 0.06);
}

.stack-label {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: var(--fw-strong);
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-primary-accent);
}

.stack-label--gold {
    color: var(--color-secondary-accent);
}

.stack-meta {
    display: block;
    margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.01em;
}

.stack-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-secondary-accent);
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.5);
    animation: stack-pulse 2.4s ease-out infinite;
}

@keyframes stack-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.55); }
    70% { box-shadow: 0 0 0 9px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.stack-rows {
    margin: var(--spacing-md) 0 0;
    display: grid;
    gap: 6px;
}

.stack-rows > div {
    display: grid;
    grid-template-columns: minmax(6.5em, auto) 1fr;
    gap: var(--spacing-md);
    align-items: baseline;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.stack-rows > div:first-child {
    border-top: 0;
    padding-top: 0;
}

.stack-rows dt {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: var(--ls-label);
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.stack-rows dd {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-primary);
    white-space: nowrap;
    text-align: right;
}

.stack-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.5rem 0.9rem;
    border-radius: var(--r-full);
    background: rgba(20, 18, 26, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-xl);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-text-primary);
    white-space: nowrap;
}

.stack-chip .icon {
    color: var(--color-secondary-accent);
}

.stack-chip--cert {
    top: -6px;
    right: -18px;
    border-color: rgba(255, 215, 0, 0.35);
}

.stack-chip--pallet {
    bottom: -4px;
    left: -22px;
    border-color: rgba(139, 92, 246, 0.40);
}

.stack-chip--pallet .icon {
    color: var(--color-primary-accent);
}

/* The layers land outermost first, then the chips, then the chips drift. */
html.js .stack-layer,
html.js .stack-chip {
    opacity: 0;
    transform: translateY(18px) scale(0.975);
}

html.js .stack-layer {
    animation: stack-in 0.9s var(--ease-out-expo) calc(0.7s + var(--n, 0) * 160ms) forwards;
}

html.js .stack-chip {
    animation: stack-in 0.9s var(--ease-out-expo) calc(0.7s + var(--n, 0) * 160ms) forwards,
        chip-float 6s ease-in-out calc(2.2s + var(--n, 0) * 700ms) infinite alternate;
}

@keyframes stack-in {
    to { opacity: 1; transform: none; }
}

@keyframes chip-float {
    from { transform: translateY(0); }
    to { transform: translateY(-7px); }
}

/* ─── Home: the story is a band with a headline column ─── */
.story-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--spacing-4xl);
}

/* style.css makes .section-title inline-block and .section-label is inline-flex.
   Inside .section-header a grid keeps the two apart, but .story-head is a plain
   block, so both are inline-level and share a line box — the label ends up
   beside the title instead of above it. Give each its own line. */
.story-head .section-label {
    display: flex;
    width: fit-content;
}

.story-head .section-title {
    display: block;
    max-width: 14ch;
}

.story-lead {
    margin-top: var(--spacing-xl);
    font-size: clamp(1.15rem, 1.9vw, 1.375rem);
    font-weight: var(--fw-title);
    line-height: 1.5;
    color: var(--color-text-secondary);
    padding-left: var(--spacing-lg);
    border-left: 2px solid rgba(255, 215, 0, 0.55);
    max-width: 44ch;
}

.story-body {
    padding-top: var(--spacing-md);
}

.story-body p {
    font-size: var(--fs-lg);
    line-height: 1.8;
}

/* ─── Home: the nine product cards are numbered cards, not stripes ─── */
.solve-section .dgm-fig {
    margin-bottom: var(--spacing-2xl);
}

.solve-grid {
    counter-reset: solve;
    gap: var(--spacing-lg);
}

@media (min-width: 900px) {
    .solve-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.solve-card {
    counter-increment: solve;
    position: relative;
    padding: var(--spacing-xl);
    border-radius: var(--card-border-radius);
    border-left: 1px solid var(--card-border);
    transition: transform var(--duration-normal) var(--ease-out-back),
        border-color var(--duration-normal) var(--ease-premium),
        box-shadow var(--duration-normal) var(--ease-premium),
        background var(--duration-fast) var(--ease-premium);
}

.solve-card::before {
    content: counter(solve, decimal-leading-zero);
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    color: var(--color-primary-accent);
    opacity: 0.75;
}

.solve-card-title {
    font-size: var(--fs-xl);
    padding-right: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.solve-card-problem {
    font-size: var(--fs-sm);
}

a.solve-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.45);
    border-top-color: rgba(139, 92, 246, 0.55);
    box-shadow: var(--card-shadow-hover);
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, 0.16), transparent 62%), var(--card-surface);
}

/* ─── Home: product stills are details in a window, with callouts ─── */
.product-showcase .product-grid {
    gap: var(--spacing-xl);
}

.product-still {
    background: none;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transition: transform var(--duration-slow) var(--ease-out-back);
}

.product-still:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: none;
}

.product-still-window {
    border-radius: var(--r-lg);
    background: var(--card-surface);
    border: 1px solid var(--card-border);
    border-top-color: var(--card-border-top);
    box-shadow: var(--card-shadow), 0 40px 80px -40px rgba(139, 92, 246, 0.25);
    overflow: hidden;
    transition: border-color var(--duration-normal) var(--ease-premium), box-shadow var(--duration-normal) var(--ease-premium);
}

.product-still:hover .product-still-window {
    border-color: rgba(139, 92, 246, 0.45);
    box-shadow: var(--card-shadow-hover), 0 40px 80px -30px rgba(139, 92, 246, 0.35);
}

.product-still-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}

.product-still-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.product-still-chrome em {
    margin-left: var(--spacing-md);
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.04em;
    color: var(--color-text-tertiary);
}

.product-showcase .product-still-frame--crop,
.product-still-frame--crop {
    position: relative;
    aspect-ratio: var(--ar, 1600 / 954);
    overflow: hidden;
    border-bottom: 0;
    background: #0D0B12;
}

.product-still-frame--crop::after {
    content: none;
}

.product-showcase .product-still-frame--crop img,
.product-still-frame--crop img {
    position: absolute;
    left: calc(var(--zx, 0) * -100%);
    top: calc(var(--zy, 0) * -100%);
    width: calc(var(--zw, 1) * 100%);
    height: auto;
    max-width: none;
    object-fit: unset;
    transform: none;
}

.product-still:hover .product-still-frame--crop img {
    transform: none;
}

.product-still figcaption {
    padding: var(--spacing-lg) var(--spacing-sm) 0;
}

.product-still figcaption h4 {
    font-size: 1.15rem;
    font-weight: var(--fw-title);
}

.product-still--feature figcaption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: var(--spacing-md) var(--spacing-2xl);
    align-items: start;
}

.product-still--feature figcaption h4 {
    font-size: 1.5rem;
    line-height: 1.2;
}

.still-callout {
    position: absolute;
    left: var(--cx);
    top: var(--cy);
    transform: translate(-7px, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    pointer-events: none;
}

.still-callout--left {
    transform: translate(calc(-100% + 7px), -50%);
    flex-direction: row-reverse;
}

.still-callout-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-secondary-accent);
    border: 3px solid rgba(12, 10, 15, 0.9);
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.6), 0 0 18px rgba(255, 215, 0, 0.45);
    flex-shrink: 0;
}

.still-callout-text {
    padding: 0.4rem 0.75rem;
    border-radius: var(--r-full);
    background: rgba(12, 10, 15, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow: var(--shadow-lg);
    font-family: var(--font-heading);
    font-size: 0.66rem;
    font-weight: var(--fw-strong);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
    white-space: nowrap;
    transition: border-color var(--duration-normal) var(--ease-premium), box-shadow var(--duration-normal) var(--ease-premium);
}

.product-still:hover .still-callout-text {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 215, 0, 0.18);
}

/* Callouts arrive after the still has, one at a time */
html.js .product-still .still-callout {
    opacity: 0;
}

html.js .product-still.visible .still-callout {
    animation: callout-in 0.5s var(--ease-out-back) calc(0.6s + var(--n, 0) * 220ms) forwards;
}

@keyframes callout-in {
    from { opacity: 0; transform: translate(-7px, -50%) scale(0.85); }
    to { opacity: 1; transform: translate(-7px, -50%) scale(1); }
}

html.js .product-still.visible .still-callout--left {
    animation-name: callout-in-left;
}

@keyframes callout-in-left {
    from { opacity: 0; transform: translate(calc(-100% + 7px), -50%) scale(0.85); }
    to { opacity: 1; transform: translate(calc(-100% + 7px), -50%) scale(1); }
}

@media (max-width: 700px) {
    .still-callout {
        display: none;
    }

    .product-still--feature figcaption {
        grid-template-columns: 1fr;
    }
}

/* ─── Home: the intelligence teaser is text beside the thing itself ─── */
.intel-teaser {
    position: relative;
    overflow: hidden;
}

.intel-teaser::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -10%;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, transparent 65%);
    filter: blur(60px);
    pointer-events: none;
}

.intel-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--spacing-4xl);
    align-items: center;
}

.intel-copy .intel-title {
    max-width: 18ch;
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
}

.intel-figure .int-anim {
    border-radius: var(--r-xl);
}

/* ─── Home: the trust strip is a divided row, not four floating blocks ─── */
.trust-items {
    gap: 0;
}

.trust-item {
    padding: 0 var(--spacing-xl);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.trust-item > .icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(255, 215, 0, 0.07));
    border: 1px solid rgba(139, 92, 246, 0.22);
}

.trust-item h3 {
    font-size: var(--fs-xl);
    margin-top: var(--spacing-lg);
}

@media (max-width: 1024px) {
    .trust-item:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }

    .trust-item:nth-child(n + 3) {
        margin-top: var(--spacing-2xl);
        padding-top: var(--spacing-2xl);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 600px) {
    .trust-item {
        padding-left: 0;
        border-left: 0;
    }

    .trust-item:nth-child(n + 2) {
        margin-top: var(--spacing-xl);
        padding-top: var(--spacing-xl);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* ─── Home: the three migration steps read as steps ─── */
.migrate-index {
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
}

/* ─── Diagrams and the intelligence figures: the same window frame ─── */
.dgm-fig,
.int-anim {
    border-radius: var(--r-lg);
}

/* ─── The closing band: a glow behind the glass ─── */
.cta-band {
    position: relative;
    padding-top: var(--spacing-2xl);
}

.cta-band::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(960px, 100%);
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.20) 0%, transparent 62%);
    filter: blur(40px);
    pointer-events: none;
}

.cta-panel {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(139, 92, 246, 0.10), 0 0 60px rgba(139, 92, 246, 0.12);
}

.cta-title {
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* ─── Interior heroes: a gradient hairline instead of a flat border ─── */
.page-hero {
    border-bottom: 0;
}

.page-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--hairline);
    z-index: 3;
}

.page-title {
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.page-lead {
    text-wrap: pretty;
}

/* ─── Industry pages: the two-beat row — capability, then the outcome ─── */
html.js .solve-row .solve-outcome {
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

html.js .solve-row.visible .solve-outcome {
    opacity: 1;
    transform: none;
    transition-delay: 220ms;
}

.solve-outcome p {
    opacity: 1;
}

.pain-quote {
    color: var(--color-secondary-accent);
    opacity: 0.55;
}

.day-panel {
    border-color: rgba(255, 215, 0, 0.18);
}

.rule-chip {
    transition: border-color var(--duration-fast) var(--ease-premium), color var(--duration-fast) var(--ease-premium);
}

.rule-chip:hover {
    border-color: rgba(255, 215, 0, 0.55);
    color: var(--color-text-primary);
}

.related-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ─── Product pages ─── */
.prod-theme-title {
    font-weight: var(--fw-title);
    letter-spacing: -0.02em;
}

.theme-glyph {
    border: 1px solid rgba(139, 92, 246, 0.22);
}

.stat-row {
    border-top-color: transparent;
    border-bottom-color: transparent;
    position: relative;
}

.stat-row::before,
.stat-row::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--hairline);
}

.stat-row::before { top: 0; }
.stat-row::after { bottom: 0; }

/* ─── Contact ─── */
.contact-form {
    border-color: rgba(139, 92, 246, 0.25);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(12, 10, 15, 0.55);
    transition: border-color var(--duration-fast) var(--ease-premium), box-shadow var(--duration-fast) var(--ease-premium);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

/* ─── Footer ─── */
.site-footer {
    position: relative;
    border-top: 0;
}

.site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: var(--hairline);
}

.footer-col a,
.footer-contact a,
.footer-legal-links a {
    transition: color var(--duration-fast) var(--ease-premium), transform var(--duration-fast) var(--ease-premium);
    display: inline-block;
}

.footer-col a:hover {
    transform: translateX(3px);
}

/* ─── Narrow screens ─── */
@media (max-width: 1024px) {
    .hero--split .hero-content {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--spacing-3xl);
        text-align: left;
    }

    .hero--split .hero-title {
        font-size: clamp(2.2rem, 6vw, 3.2rem);
    }

    .hero-visual {
        max-width: 520px;
    }

    .intel-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 900px) {
    .section-header--left,
    .section-header--split {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header--split .section-subtitle {
        padding-left: 0;
        border-left: 0;
        margin-top: var(--spacing-md);
    }

    .section-header-action {
        margin-top: var(--spacing-lg);
    }

    /* The two-column rule for this grid is declared later in the file than the
       shared responsive block up top, so it out-ordered it and the band never
       stacked. Restate the stack here, after that declaration. */
    .story-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
}

@media (max-width: 768px) {
    section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
}

@media (max-width: 640px) {
    .hero--split .hero-features {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .hero--split .feature-pill {
        border-left: 0;
        padding-left: 0;
    }

    .hero--split .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero--split .hero-cta .btn {
        max-width: none;
        width: 100%;
    }

    .stack {
        padding: var(--spacing-md) 0;
    }

    .stack-chip--cert {
        right: 0;
        top: -14px;
    }

    .stack-chip--pallet {
        left: 0;
        bottom: -14px;
    }

    .stack-chip {
        font-size: 0.62rem;
    }
}

/* ─── Reduced motion: every final state at once, as everywhere else ─── */
@media (prefers-reduced-motion: reduce) {
    html.js .section-header .section-label,
    html.js .section-header .section-title,
    html.js .section-header .section-subtitle,
    html.js .section-header .section-header-action,
    html.js .section-header .section-label::before,
    html.js .section-header .section-label::after,
    html.js .stack-layer,
    html.js .stack-chip,
    html.js .product-still .still-callout,
    html.js .solve-row .solve-outcome,
    .hero-visual {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    html.js .product-still .still-callout--left {
        transform: translate(calc(-100% + 7px), -50%) !important;
    }

    html.js .product-still .still-callout:not(.still-callout--left) {
        transform: translate(-7px, -50%) !important;
    }

    .stack-pulse,
    .btn-primary::after {
        animation: none !important;
        transition: none !important;
    }
}

/* The honeypot. Taken off-screen rather than display:none, because the
   crawlers that fill hidden fields skip the ones that are trivially hidden.
   aria-hidden and tabindex="-1" keep it away from anyone using the form
   properly, including screen readers and keyboard navigation. */
.form-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
