/* Shared finish for the landing page's three visual sections. */
body.home.landing {
    --landing-ink: #dedede;
    --landing-copy: #a0a0a0;
    --landing-muted: #858585;
    --landing-edge: #333333;
    --landing-label-gap: 48px;
}

body.landing .fig-name,
body.landing .ops-card-title,
body.landing .how-step-name {
    color: var(--landing-ink);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

body.landing .fig-desc,
body.landing .ops-card-body,
body.landing .how-step-desc {
    color: var(--landing-copy);
    line-height: 1.5;
}

body.landing .ops-card-title { font-size: 20px; }
body.landing .ops-card-body { margin-top: 4px; }
body.landing .ops-card-id { letter-spacing: 0.1em; }

body.landing .fig-grid,
body.landing .fig,
body.landing .ops-card,
body.landing .how-step-list,
body.landing .how-step-item {
    border-color: var(--landing-edge);
}

body.landing .ops-card { border-width: var(--hairline); }
body.landing .ops-card-stage { border-bottom-width: var(--hairline); }

body.landing .b-build .container-main { row-gap: var(--landing-label-gap); }
body.home.landing .b-ops .container-main { margin-bottom: var(--landing-label-gap); }
body.landing .how-step-head { margin-bottom: var(--landing-label-gap); }
body.landing .b-build .b-eyebrow,
body.landing .b-ops .b-eyebrow,
body.landing .how-step-head .b-eyebrow {
    color: #a8a8a8;
    letter-spacing: 0.06em;
    line-height: 1.5;
}

/* Match the rail's entry point to the page's content spine. */
body.landing .ops-track {
    padding-left: max(var(--gutter), calc((100vw - var(--measure-main)) / 2 + var(--gutter)));
}

body.landing .how-step-item.is-active .how-step-id { color: var(--landing-ink); }
body.landing .how-step-id { color: var(--landing-muted); font-size: 14px; }
body.landing .how-step-tab { row-gap: 8px; }
body.landing .how-step-desc { margin-top: 4px; }

/* Keep the rail as the primary movement; slow the smaller signals. */
body.landing .fig-signal { animation-duration: 10s; }
body.landing .fig:hover .fig-model { transform: translateY(-1px); }
body.landing .how-step { --how-dwell: 9s; }
body.landing .how-panel--window img {
    filter: drop-shadow(0 12px 20px rgb(0 0 0 / 0.16));
}

@media (max-width: 767px) {
    body.home.landing { --landing-label-gap: 32px; }
    body.landing .ops-card-title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    body.landing .fig:hover .fig-model { transform: none; }
}

/* Let the card titles lead while preserving illustration detail. */
body.landing .fig-stage svg { opacity: 0.88; }

/* Responsive finish: readable cards, touch scrolling and legible app previews. */
body.landing .how-step-stage { min-width: 0; }
body.landing .screen-scroll-hint { display: none; }

@media (min-width: 701px) and (max-width: 1100px) {
    body.landing .fig { padding-inline: 24px; }
}

@media (max-width: 940px) {
    body.landing .b-ops .b-section-head { grid-column: 1 / -1; }
    body.landing .how-step-head { margin-top: 0; }
    body.landing .how-step-stage {
        width: 100%;
        max-width: 700px;
        justify-self: center;
    }
    body.landing .ops-rail {
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: thin;
        scrollbar-color: #555 #202020;
        -webkit-mask-image: none;
        mask-image: none;
    }
    body.landing .ops-track {
        animation: none;
        transform: none;
        padding-right: var(--gutter);
    }
    body.landing .ops-card[aria-hidden="true"] { display: none; }
    body.landing .ops-card {
        width: min(576px, calc(100vw - var(--gutter) * 2));
    }
    body.landing .ops-card-stage { padding: 20px 16px; }
}

@media (max-width: 600px) {
    body.home.landing { --gutter: 20px; }
    body.landing .b-h1 {
        font-size: clamp(28px, 7.5vw, 38px);
        line-height: 1.12;
        text-wrap: balance;
    }
    body.landing .b-hero-aside { font-size: 16px; line-height: 1.5; }
    body.landing .b-hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    body.landing .b-hero-actions .b-btn,
    body.landing .b-cta-actions .b-btn { width: 100%; min-height: 48px; }
    body.landing .b-hero-actions .b-text-link {
        align-self: flex-start;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    body.landing .fig-stage {
        max-width: 400px;
        align-self: center;
        margin-bottom: 24px;
    }
    body.landing .fig { padding-top: 24px; padding-bottom: 48px; }
    body.landing .fig-desc { max-width: 42ch; }
    body.landing .ops-card-copy { padding: 20px 20px 28px; }
    body.home.landing .b-ops { padding-bottom: 88px; }
    body.landing .how-step-tab {
        grid-template-columns: 24px minmax(0, 1fr);
        column-gap: 12px;
        padding: 18px 0;
    }
    body.landing .how-step-name { font-size: 18px; }
    body.landing .how-step-stage { overflow: hidden; }
    body.landing .how-stage-scene { aspect-ratio: auto; min-height: 452px; }
    body.landing .how-panel--window {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 100%;
        margin-top: 30px;
        align-self: start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: #666 #222;
    }
    body.landing .how-panel--window img {
        width: 560px;
        min-width: 560px;
        max-width: none;
        filter: none;
    }
    body.landing .screen-scroll-hint {
        display: block;
        grid-column: 1 / -1;
        margin: 8px 0 0;
        color: #929292;
        font: 12px/1.5 'IBM Plex Sans', sans-serif;
    }
    body.landing .b-cta-title { font-size: 28px; line-height: 1.15; }
    body.landing .b-cta-copy .b-body { font-size: 16px; line-height: 1.5; }
    body.landing .footer-link { display: inline-flex; min-height: 44px; align-items: center; }
}

@media (max-width: 940px) {
    body.landing .b-hero-aside,
    body.landing .b-cta-copy {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
    }
}

@media (min-width: 601px) and (max-width: 940px) {
    body.landing .b-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 24px;
    }
    body.landing .b-hero-actions .b-btn { width: auto; }
}

/* Tighten the illustration stage without distorting its artwork. */
body.landing .fig-stage {
    aspect-ratio: 320 / 209;
}
body.landing .fig-stage svg {
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 320 / 232;
}

@media (max-width: 700px) {
    body.landing .fig-stage {
        width: 100%;
        max-width: 280px;
        align-self: center;
    }
}

/* Entrance timing is independent from the illustrations' internal activity. */
html.illustration-motion-pending body.home.landing .fig-stage {
    opacity:0;
    transform:scale(.94);
    transform-origin:50% 50%;
}

@media (prefers-reduced-motion: no-preference) {
    body.home.landing.section-entrances-ready .section-entrance {
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 800ms cubic-bezier(.22,1,.36,1), transform 800ms cubic-bezier(.22,1,.36,1);
        transition-delay: var(--entrance-delay, 0ms);
    }
    body.home.landing.section-entrances-ready .section-entrance.has-entered {
        opacity: 1;
        transform: none;
    }
    body.home.landing.section-entrances-ready .figure-entrance {
        opacity:0;
        transform:scale(.94);
        transform-origin:50% 50%;
        transition:
            opacity 600ms cubic-bezier(.25,.1,.25,1),
            transform 760ms cubic-bezier(.25,.1,.25,1);
        transition-delay:var(--entrance-delay,0ms);
    }
    body.home.landing.section-entrances-ready .figure-entrance.has-entered {
        opacity:1;
        transform:scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home.landing .figure-entrance {
        opacity:1;
        transform:none;
        transition:none;
    }
}

/* Workflow surfaces matched to the approved preview. */
body.landing .ops-card { background: #202020; }
body.landing .ops-card-stage {
    background: radial-gradient(ellipse at center, #1e1e1e, #171717);
    border-bottom-color: #2b2b2b;
}

/* A concise experience preview leads into the final invitation. */
body.home.landing .home-experience { padding:72px 0 64px; }
body.home.landing .home-experience .container-main { row-gap:0; }
body.home.landing .home-experience h2 {
    margin:0 0 36px;
    color:var(--site-heading,#e5e5e5);
    font:400 28px/1.15 'Suisse Intl',Arial,sans-serif;
    letter-spacing:-.01em;
}
.home-experience-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); list-style:none; padding:0; margin:0; border-top:1px solid var(--site-edge,#303030); }
.home-experience-grid li { padding:28px 32px 28px 0; border-bottom:1px solid var(--site-edge,#303030); color:var(--site-copy,#ababab); font:400 20px/1.35 'Suisse Intl',Arial,sans-serif; letter-spacing:-.01em; }
.home-experience-grid li:nth-child(even) { padding-left:32px; border-left:1px solid var(--site-edge,#303030); }
.home-experience-link { display:inline-flex; align-items:center; gap:16px; justify-self:start; margin-top:24px; min-height:44px; color:var(--site-heading,#e5e5e5); font:400 16px/1.5 'Suisse Intl',Arial,sans-serif; text-decoration:none; }
.home-experience-link:hover { text-decoration:underline; text-underline-offset:5px; }
.home-experience-link:focus-visible { outline:1px solid currentColor; outline-offset:5px; }
@media(max-width:600px) {
 body.home.landing .home-experience { padding:48px 0 40px; }
 body.home.landing .home-experience h2 { font-size:26px; margin-bottom:28px; }
 .home-experience-grid { grid-template-columns:1fr; }
 .home-experience-grid li,.home-experience-grid li:nth-child(even) { padding:22px 0; border-left:0; font-size:18px; }
}

/* Give the opening paragraph a little more presence beneath the headline. */
body.home.landing .b-hero-aside p { font-size:17px; line-height:1.55; }
@media(min-width:941px) {
    body.home.landing .b-hero-aside { grid-column:1 / 9; max-width:43em; }
}

body.home.landing .home-audience-note{grid-column:1/-1;margin:24px 0 0;color:var(--site-body,#a1a1a1);font:400 16px/1.6 "Suisse Intl",Arial,sans-serif}


body.home.landing .home-audience-note{margin:28px 0 0;max-width:48em;color:#999;font-size:15px;line-height:1.6}
body.home.landing .home-audience-note + .home-experience-link{margin-top:22px}
