/* ═══════════════════════════════════════════════════════════════════════════
   VIRA Wealth — marketing site stylesheet
   Source of truth: docs/design/vira-website/README.md (+ COUNTDOWN.md) and the
   .dc.html prototypes beside it. Values are transcribed, not approximated; where
   a prototype used a literal that equals a token, the token is used.

   Order: fonts → tokens → surfaces → base → type → layout → components (one
   block each, in page order) → keyframes → motion → breakpoint → reduced motion.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts (self-hosted; never a third-party font host) ──────────────────── */
@font-face { font-family: 'Season Sans'; src: url('../fonts/SeasonSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Season Sans'; src: url('../fonts/SeasonSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Serrif'; src: url('../fonts/Serrif-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Serrif'; src: url('../fonts/Serrif-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Serrif'; src: url('../fonts/Serrif-RegularItalic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
    /* colour */
    --ink: #1B3557;
    --ink-deep: #142A47;
    --ink-mid: #152C4B;
    --ink-light: #264675;
    --ink-menu: #0F2140;
    --ink-chip: #172E4B;
    --graphite: #1A2129;
    --bone: #F8F4EF;
    --bone-warm: #F0E8DE;
    --tan: #E8CFA6;
    --bronze: #8A6540;
    --white: #ffffff;
    --grey-text: #A7ABB0;
    --hair-light: #D9D4CB;
    --hair-dark: rgba(248, 244, 239, .15);
    --hair-dark-12: rgba(248, 244, 239, .12);
    --hair-dark-10: rgba(248, 244, 239, .1);
    --hair-dark-08: rgba(248, 244, 239, .08);
    --on-ink-body: rgba(248, 244, 239, .82);
    --on-ink-para: rgba(248, 244, 239, .8);
    --on-ink-2: rgba(248, 244, 239, .7);
    --on-ink-3: rgba(248, 244, 239, .6);
    --on-ink-legal: rgba(248, 244, 239, .5);
    --on-bone-body: rgba(27, 53, 87, .75);
    --on-bone-78: rgba(27, 53, 87, .78);
    --on-bone-80: rgba(27, 53, 87, .8);
    --on-bone-72: rgba(27, 53, 87, .72);
    --on-bone-2: rgba(27, 53, 87, .6);
    --on-bone-55: rgba(27, 53, 87, .55);
    --tan-glow: rgba(232, 207, 166, .55);
    --hero-gradient: radial-gradient(ellipse 90% 60% at 50% 30%, var(--ink-light) 0%, var(--ink) 55%, var(--ink-deep) 100%);
    --page-gradient: radial-gradient(ellipse 90% 60% at 50% 20%, var(--ink-light) 0%, var(--ink) 55%, var(--ink-deep) 100%);

    /* type */
    --font-sans: 'Season Sans', system-ui, sans-serif;
    --font-serif: 'Serrif', Georgia, serif;
    --fs-h1: clamp(50px, 9.5vw, 136px);
    --fs-h1-page: clamp(46px, 8.5vw, 110px);
    --fs-h2: clamp(38px, 5vw, 68px);
    --fs-h2-sm: clamp(36px, 4.6vw, 60px);
    --fs-cta: clamp(44px, 7.5vw, 104px);
    --fs-cta-page: clamp(44px, 8vw, 110px);
    --fs-h3: clamp(24px, 2.2vw, 30px);
    --fs-step: clamp(40px, 4vw, 56px);
    --fs-count: clamp(64px, 8vw, 104px);
    --fs-lede: clamp(17px, 1.5vw, 21px);
    --fs-body: 17px;
    --fs-card: 14.5px;
    --fs-eyebrow: 12px;
    --fs-eyebrow-sm: 11px;

    /* space */
    --gutter: clamp(18px, 4vw, 40px);
    --gutter-nav: clamp(16px, 4vw, 40px);
    --max: 1240px;
    --sect-y: clamp(80px, 12vh, 140px);
    --cta-y: clamp(80px, 14vh, 160px);
    --col-gap: clamp(40px, 6vw, 90px);
    --col-gap-wide: clamp(32px, 5vw, 80px);
    --card-gap: 14px;
    --sticky-top: 84px;

    /* radius / shadow / motion */
    --r-pill: 999px;
    --r-card: 20px;
    --r-panel: 24px;
    --r-input: 12px;
    --r-rail: 14px;
    --r-assistant: 28px;
    --sh-card: 0 30px 60px -30px rgba(27, 53, 87, .7);
    --sh-appwin: 0 30px 70px -30px rgba(27, 53, 87, .6);
    --sh-device: 0 40px 90px -30px rgba(15, 18, 23, .9);
    --sh-form: 0 30px 70px -40px rgba(27, 53, 87, .35);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --t-card: .35s;
    --t-chip: .2s;
}

/* ── Surfaces: sections alternate ink and bone; the contextual colours follow ─ */
[data-surface="ink"]  { background: var(--ink);       color: var(--bone); --eyebrow: var(--tan);    --body: var(--on-ink-para);  --hair: var(--hair-dark);  --focus: var(--tan);    --em: var(--tan); }
[data-surface="bone"] { background: var(--bone);      color: var(--ink);  --eyebrow: var(--bronze); --body: var(--on-bone-body); --hair: var(--hair-light); --focus: var(--bronze); --em: var(--bronze); }
[data-surface="warm"] { background: var(--bone-warm); color: var(--ink);  --eyebrow: var(--bronze); --body: var(--on-bone-80);   --hair: var(--hair-light); --focus: var(--bronze); --em: var(--bronze); }
[data-surface="tan"]  { background: var(--tan);       color: var(--ink);  --eyebrow: var(--bronze); --body: var(--on-bone-78);   --hair: rgba(27,53,87,.18); --focus: var(--ink); --em: currentColor; }

/* ── Base ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--bone);
    font-family: var(--font-sans);
    font-size: var(--fs-body);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    --eyebrow: var(--tan); --body: var(--on-ink-para); --hair: var(--hair-dark); --focus: var(--tan); --em: var(--tan);
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* Visible focus on every interactive element (the prototype only had it on fields). */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--focus, var(--bronze));
    outline-offset: 2px;
}
.field :where(input, select, textarea):focus-visible { outline: 2px solid var(--bronze); outline-offset: 1px; }

/* ── Type ────────────────────────────────────────────────────────────────── */
.eyebrow {
    font-size: var(--fs-eyebrow);
    font-weight: 600;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--eyebrow);
    margin-bottom: 18px;
    line-height: 1.3;
}
.eyebrow-sm { font-size: var(--fs-eyebrow-sm); letter-spacing: .24em; margin-bottom: 14px; }
.eyebrow-step { letter-spacing: .24em; margin-bottom: 8px; }

.h1, .h2, .h3 { font-family: var(--font-serif); font-weight: 500; text-wrap: balance; }
.h1 em, .h2 em, .h3 em { font-style: italic; color: var(--em); }
.h1 { font-size: var(--fs-h1); line-height: .95; letter-spacing: -.02em; }
.h1-page { font-size: var(--fs-h1-page); line-height: .96; }
.h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 22px; }
.h2-sm { font-size: var(--fs-h2-sm); }
.h2-tight { margin-bottom: 0; }
.h3 { font-size: var(--fs-h3); line-height: 1.1; margin-bottom: 10px; }

.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--on-ink-body); max-width: 520px; text-wrap: pretty; }
.body { font-size: var(--fs-body); line-height: 1.55; color: var(--body); max-width: 460px; }
.body + .body { margin-top: 16px; }
.body-lg { font-size: 17.5px; line-height: 1.6; max-width: 560px; margin-bottom: 22px; }
.body-420 { max-width: 420px; }
.body-440 { max-width: 440px; }
.body-480 { max-width: 480px; }
.body-560 { max-width: 560px; }
.mb-26 { margin-bottom: 26px; }

.text-link { font-size: 15px; font-weight: 600; color: var(--bronze); min-height: 44px; display: flex; align-items: center; gap: 8px; transition: color var(--t-chip); }
.text-link:hover { color: var(--ink); }
.inline-link { color: var(--bronze); font-weight: 600; border-bottom: 1px solid rgba(138, 101, 64, .4); transition: color var(--t-chip), border-color var(--t-chip); }
.inline-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; width: 100%; }
.section { padding: var(--sect-y) var(--gutter); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--col-gap); }
.grid-2-center { align-items: center; }
.grid-2-end { align-items: end; gap: clamp(24px, 4vw, 64px); }
.grid-2-start { align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.gap-wide { gap: var(--col-gap-wide); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: clamp(36px, 5vh, 64px); }
.section-lead { max-width: 760px; }
.stack-col { display: flex; flex-direction: column; gap: 22px; }
.self-start { align-self: flex-start; }
.sticky-110 { position: sticky; top: 110px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--r-pill);
    white-space: nowrap;
    min-height: 44px;
    padding: 0 28px;
    transition: background var(--t-chip), color var(--t-chip), border-color var(--t-chip);
}
.btn-tan { background: var(--tan); color: var(--ink); }
.btn-tan:hover { background: var(--bone); color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--bronze); color: var(--bone); }
.btn-ghost { color: var(--bone); border: 1px solid rgba(248, 244, 239, .3); padding: 0 22px; }
.btn-ghost:hover { border-color: var(--tan); color: var(--tan); }
.btn-outline-tan { color: var(--tan); border: 1px solid rgba(232, 207, 166, .45); background: transparent; }
.btn-outline-tan:hover { background: rgba(232, 207, 166, .1); }
.btn-sm { font-size: 13.5px; padding: 0 16px; }
.btn-lg { font-size: 16px; padding: 0 34px; min-height: 56px; }
.btn-nav { font-size: 13.5px; padding: 0 18px; }
.btn-hero { padding: 0 28px; min-height: 52px; }
.btn-hero-ghost { min-height: 52px; }
.btn-pulse { animation: pulse 2.6s 1.5s infinite; }
.btn-submit { font-size: 16px; padding: 0 32px; min-height: 54px; }
.btn-submit:disabled { cursor: default; opacity: .85; }
.icon-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(248, 244, 239, .25);
    display: grid; place-items: center;
    color: var(--bone);
}

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px var(--gutter-nav);
    border-bottom: 1px solid var(--hair-dark-08);
    color: var(--bone);
    isolation: isolate;
}
/* The blur lives on a pseudo-element, not the nav itself: backdrop-filter on an
   element makes it the containing block for position:fixed descendants, which
   would pin the mobile overlay inside the 64px bar. */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(27, 53, 87, .6); }
.nav-lockup { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.nav-mark { width: 26px; height: 26px; object-fit: contain; }
.nav-wordmark { font-family: var(--font-serif); font-weight: 500; font-size: 22px; letter-spacing: .12em; color: var(--bone); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.menu-panel { display: flex; align-items: center; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 30px; }
.nav-link {
    display: inline-block;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid transparent;
    color: var(--on-ink-body);
    transition: color var(--t-chip), border-color var(--t-chip);
}
.nav-link:hover { color: var(--tan); }
.nav-link[aria-current="page"] { color: var(--tan); border-bottom-color: var(--tan); }
.burger { display: block; width: 18px; height: 2px; background: var(--bone); border-radius: 2px; box-shadow: 0 -6px 0 var(--bone), 0 6px 0 var(--bone); }
.menu-close { font-size: 24px; line-height: 1; }
.menu-head, .menu-cta, .menu-foot { display: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer { background: var(--ink-deep); color: var(--on-ink-2); padding: clamp(56px, 8vh, 88px) var(--gutter) 40px; --focus: var(--tan); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 40px 32px; }
.footer-top {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 24px 48px; align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--hair-dark-12);
}
.footer-blurb { font-size: 15px; line-height: 1.55; color: var(--on-ink-2); max-width: 460px; text-wrap: pretty; }
.footer-blurb a { color: var(--tan); }
.footer-heading { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--tan); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; }
.footer-link { font-size: 15px; color: var(--on-ink-para); min-height: 44px; display: flex; align-items: center; gap: 8px; transition: color var(--t-chip); }
.footer-link:hover { color: var(--tan); }
.footer-ext { font-size: 13px; opacity: .6; }
.footer-bottom {
    grid-column: 1 / -1;
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--hair-dark-12);
    font-size: 12px; color: var(--on-ink-legal);
}

/* ── PoweredBy lockup (HTML rebuild of the brand SVG; sized by --lockup-h) ─ */
.lockup { --lockup-h: 64px; display: inline-flex; align-items: center; gap: calc(var(--lockup-h) * .16); height: var(--lockup-h); color: var(--bone); font-size: var(--lockup-h); line-height: 1; }
.lockup-mark { height: calc(var(--lockup-h) * .58); width: auto; object-fit: contain; }
.lockup-text { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--lockup-h) * .06); }
.lockup-vira { font-family: var(--font-serif); font-weight: 500; font-size: calc(var(--lockup-h) * .46); letter-spacing: .19em; line-height: 1; }
.lockup-by { display: flex; align-items: baseline; gap: calc(var(--lockup-h) * .08); }
.lockup-powered { font-family: var(--font-sans); font-weight: 600; font-size: calc(var(--lockup-h) * .085); letter-spacing: .26em; text-transform: uppercase; }
.lockup-verapath { font-family: var(--font-serif); font-weight: 400; font-size: calc(var(--lockup-h) * .22); line-height: 1; }

/* ── Home: hero ──────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh; min-height: 100svh;
    display: grid; align-items: end;
    overflow: hidden;
    background: var(--hero-gradient);
    color: var(--bone);
}
.hero-scene, .hero-scrim { position: absolute; inset: 0; }
.hero-scrim { background: linear-gradient(180deg, rgba(27, 53, 87, 0) 40%, rgba(27, 53, 87, .85) 100%); pointer-events: none; }
.hero-inner { position: relative; padding: 120px var(--gutter) clamp(40px, 7vh, 80px); }
.hero .eyebrow { margin-bottom: 22px; }
.hero-line { display: block; }
.hero-line-flex { display: flex; gap: .22em; align-items: baseline; flex-wrap: wrap; }
.hero-one { font-style: italic; color: var(--tan); }
.hero-word { display: inline-block; perspective: 600px; min-width: 3ch; }
.hero-word-item { display: inline-block; animation: wordin .7s var(--ease) both; }
.hero-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; margin-top: clamp(28px, 5vh, 48px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
vira-hero { display: block; width: 100%; height: 100%; }

/* ── Home: marquee ───────────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-top: 1px solid var(--hair-dark-10); border-bottom: 1px solid var(--hair-dark-10); padding: 18px 0; background: var(--ink-mid); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 22px; padding: 0 22px; font-family: var(--font-serif); font-size: clamp(18px, 2vw, 24px); color: var(--on-ink-2); white-space: nowrap; }
.marquee-name { text-decoration: line-through; text-decoration-color: var(--tan); text-decoration-thickness: 2px; }
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tan); display: inline-block; }

/* ── Home: stack diagram ─────────────────────────────────────────────────── */
.stack { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(12px, 3vw, 28px); align-items: center; }
.stack-tiles { display: flex; flex-direction: column; gap: 8px; }
.stack-tile {
    border: 1px dashed rgba(27, 53, 87, .4); border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px; font-weight: 600; color: rgba(27, 53, 87, .7);
    display: flex; justify-content: space-between; gap: 8px;
}
.stack-tile-cost { opacity: .5; }
.stack-fan { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--bronze); }
.stack-fan svg { height: 100%; }
.stack-card { background: var(--ink); color: var(--bone); border-radius: var(--r-card); padding: 22px 20px; box-shadow: var(--sh-card); }
.stack-card-mark { width: 44px; height: 28px; object-fit: contain; margin-bottom: 14px; }
.stack-card-title { font-family: var(--font-serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; margin-bottom: 8px; }
.stack-card-sub { font-size: 13px; color: var(--on-ink-2); }
.dash-2 { animation: dash 2s linear infinite; }
.dash-3 { animation: dash 3s linear infinite; }
.dash-14 { animation: dash 1.4s linear infinite; }

/* ── Home: ownership diagram (text first in source, second on desktop) ───── */
.own { width: 100%; height: auto; order: 2; }
.own-text { order: 1; }

/* ── Home: capability cards ──────────────────────────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: var(--card-gap); }
.card {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--hair-light);
    border-radius: var(--r-card);
    padding: 26px 24px;
    min-height: 210px;
    display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
    transition: transform var(--t-card) var(--ease), background var(--t-card), color var(--t-card);
}
.card:hover { transform: translateY(-6px); background: var(--ink); color: var(--bone); }
.card-index { font-family: var(--font-serif); font-style: italic; font-size: 20px; opacity: .7; }
.card-body { font-size: var(--fs-card); line-height: 1.5; opacity: .78; }

/* ── Home: progressive replacement ───────────────────────────────────────── */
.progress-wrap { position: relative; margin-top: clamp(40px, 6vh, 72px); }
.progress-track, .progress-fill { position: absolute; left: 0; right: 0; top: 0; height: 2px; }
.progress-track { background: var(--hair-dark); }
.progress-fill { background: var(--tan); transform-origin: left; transform: scaleX(1); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: clamp(20px, 3vw, 40px); padding-top: 28px; }
.step-index { letter-spacing: .24em; margin-bottom: 14px; }
.step-keyword { font-family: var(--font-serif); font-size: var(--fs-step); font-weight: 500; line-height: 1; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .04em; }
.step-body { font-size: 16px; line-height: 1.55; color: var(--on-ink-para); }

/* ── Closing CTA ─────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; padding: var(--cta-y) var(--gutter); }
.cta-circle { position: absolute; aspect-ratio: 1; border-radius: 50%; pointer-events: none; }
.cta-circle-a { right: -8%; top: -20%; width: 60vw; max-width: 700px; border: 1px solid rgba(27, 53, 87, .18); }
.cta-circle-b { right: 4%; top: 0; width: 44vw; max-width: 520px; border: 1px solid rgba(27, 53, 87, .14); }
.cta-inner { position: relative; }
.cta-eyebrow { margin-bottom: 22px; }
.cta-h2, .cta-h2-page { line-height: .95; letter-spacing: -.02em; max-width: 980px; margin-bottom: 32px; }
.cta-h2 { font-size: var(--fs-cta); margin-bottom: 24px; }
.cta-h2-page { font-size: var(--fs-cta-page); }
.cta-body { font-size: var(--fs-body); line-height: 1.55; color: var(--on-bone-78); margin-bottom: 32px; max-width: 520px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.cta-aside { font-size: 15px; color: rgba(27, 53, 87, .7); }

/* ── Page hero (Products / Industries / How / About / Contact) ───────────── */
.page-hero { position: relative; padding: 150px var(--gutter) clamp(56px, 8vh, 96px); background: var(--page-gradient); overflow: hidden; color: var(--bone); }
.page-hero-contact { padding-bottom: clamp(40px, 6vh, 72px); }
.page-hero-tall { min-height: 88vh; min-height: 88svh; display: grid; align-items: end; }
.page-hero-inner { position: relative; }
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero-lede { margin-top: 28px; }

/* ── Explorer (Products modules, Industries segments) ────────────────────── */
.section-explorer { padding: clamp(56px, 9vh, 110px) var(--gutter); }
.explorer-eyebrow { margin-bottom: 24px; }
.explorer { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
.rail { display: flex; flex-direction: column; gap: 6px; position: sticky; top: var(--sticky-top); }
.rail-item {
    text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 18px;
    border-radius: var(--r-rail);
    border: 1px solid var(--hair-light);
    background: var(--white); color: var(--ink);
    min-height: 52px;
    transition: background .25s, color .25s, border-color .25s;
}
.rail-item-tall { padding: 14px 18px; min-height: 56px; }
.rail-item[aria-selected="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.rail-item:hover:not([aria-selected="true"]) { border-color: var(--ink); }
.rail-item-main { display: flex; align-items: center; gap: 12px; }
.rail-item-index { font-family: var(--font-serif); font-style: italic; opacity: .6; font-size: 15px; }
.rail-item-name { font-weight: 600; font-size: 16px; }
.rail-item-meta { font-size: 13px; opacity: .7; }
.rail-item-arrow { font-size: 16px; opacity: .6; }
.panes { min-height: 520px; }
.pane { display: flex; flex-direction: column; gap: 22px; }
.pane-segment { gap: 26px; }
.pane-title { margin-bottom: 12px; }
.pane-title-sm { margin-bottom: 14px; }
.pane-body { max-width: 520px; margin-bottom: 16px; }
.page-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.page-chip { font-size: 12.5px; border: 1px solid var(--hair-light); background: var(--white); border-radius: var(--r-pill); padding: 6px 12px; }
.appwin { background: var(--ink); color: var(--bone); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-appwin); }
.appwin-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink-mid); border-bottom: 1px solid var(--hair-dark-10); }
.appwin-bar-left { display: flex; align-items: center; gap: 10px; }
.appwin-dots { display: flex; gap: 5px; }
.appwin-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(248, 244, 239, .25); }
.appwin-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-2); }
.appwin-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--tan); }
.appwin-body { padding: 18px 16px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.meter { background: rgba(248, 244, 239, .06); border: 1px solid var(--hair-dark-10); border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.meter-label { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-ink-3); }
.meter-value { font-family: var(--font-serif); font-size: clamp(24px, 2.4vw, 32px); color: var(--tan); line-height: 1; }
.meter-track { height: 4px; background: var(--hair-dark-12); border-radius: 2px; overflow: hidden; }
.meter-fill { height: 100%; width: var(--w); background: var(--tan); border-radius: 2px; transform-origin: left; animation: bar .7s var(--ease) both; }

/* ── Products: the wall of twelve ────────────────────────────────────────── */
.wall { display: flex; flex-wrap: wrap; gap: 8px; }
.wall-chip {
    font-size: 14px; font-weight: 600; color: rgba(248, 244, 239, .55);
    background: var(--ink-chip); border: 1px solid rgba(248, 244, 239, .14); border-radius: 12px;
    padding: 12px 16px; min-height: 44px; display: flex; align-items: center;
    text-decoration: line-through; text-decoration-color: var(--tan); text-decoration-thickness: 2px;
}
.wall-one {
    font-family: var(--font-serif); font-size: 18px; color: var(--tan);
    background: rgba(232, 207, 166, .1); border: 1px solid rgba(232, 207, 166, .5); border-radius: 12px;
    padding: 12px 18px; min-height: 44px; display: flex; align-items: center; gap: 10px;
}
.wall-one img { width: 22px; height: 14px; object-fit: contain; }

/* ── Products: assistant panel ───────────────────────────────────────────── */
.assistant-wrap { display: flex; justify-content: center; }
.assistant { width: min(100%, 460px); background: var(--graphite); color: var(--bone); border: 1px solid rgba(232, 207, 166, .26); border-radius: var(--r-assistant); overflow: hidden; box-shadow: var(--sh-device); --focus: var(--tan); }
.assistant-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--ink); }
.assistant-mark { width: 34px; height: 20px; object-fit: contain; }
.assistant-name { font-weight: 600; font-size: 16px; }
.assistant-scope { font-size: 12.5px; color: var(--grey-text); }
.assistant-seeing { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--hair-dark-10); font-size: 12px; }
.assistant-seeing-label { letter-spacing: .18em; font-weight: 600; color: var(--grey-text); }
.assistant-chip { border: 1px solid rgba(232, 207, 166, .4); border-radius: var(--r-pill); padding: 4px 10px; }
.assistant-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.assistant-user { align-self: flex-end; max-width: 85%; background: var(--tan); color: var(--ink); font-weight: 600; font-size: 14.5px; padding: 11px 15px; border-radius: 16px 16px 4px 16px; }
.assistant-reply { background: rgba(248, 244, 239, .05); border: 1px solid var(--hair-dark-12); border-radius: 16px 16px 16px 4px; padding: 14px 15px; }
.assistant-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.assistant-tile { background: rgba(248, 244, 239, .06); border: 1px solid var(--hair-dark-10); border-radius: 10px; padding: 9px 10px; }
.assistant-tile-label { font-size: 10px; letter-spacing: .14em; color: var(--grey-text); margin-bottom: 4px; }
.assistant-tile-value { font-family: var(--font-serif); font-size: 22px; color: var(--tan); }
.assistant-summary { font-size: 14px; line-height: 1.45; margin-bottom: 12px; }
.assistant-ask { padding-top: 12px; border-top: 1px solid var(--hair-dark-12); }
.assistant-question { font-family: var(--font-serif); font-size: 17px; line-height: 1.3; margin-bottom: 10px; }
.assistant-actions { display: flex; gap: 8px; }
.assistant-result { display: none; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; font-size: 13.5px; color: var(--tan); animation: fadein .4s both; }
.assistant-replay { font-size: 12.5px; color: var(--grey-text); min-height: 44px; }
.assistant[data-state="yes"] .assistant-actions, .assistant[data-state="no"] .assistant-actions { display: none; }
.assistant[data-state="yes"] .assistant-result, .assistant[data-state="no"] .assistant-result { display: flex; }
.assistant:not([data-state="yes"]) [data-assistant-yes], .assistant:not([data-state="no"]) [data-assistant-no] { display: none; }

/* ── Guardrails: checks and numbered panel rows ──────────────────────────── */
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.check-mark { color: var(--bronze); font-weight: 600; }
.panel-list { display: flex; flex-direction: column; gap: 1px; background: var(--hair-dark); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hair-dark); }
.panel-row { background: var(--ink); display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 22px 24px; }
.panel-row-index { font-family: var(--font-serif); font-style: italic; font-size: 18px; color: var(--tan); }
.panel-row-text { font-family: var(--font-serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }

/* ── Panel grids (Industries "three things", How "Keep/Replicate/Retire") ── */
.panel-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px;
    background: var(--hair-dark); border: 1px solid var(--hair-dark); border-radius: var(--r-card); overflow: hidden;
    margin-top: clamp(40px, 6vh, 72px);
}
.panel { background: var(--ink); padding: 32px 28px 36px; }
.panel-title { font-family: var(--font-serif); font-size: clamp(28px, 3vw, 40px); font-weight: 500; color: var(--tan); line-height: 1.1; margin-bottom: 18px; }
.panel-keyword { font-family: var(--font-serif); font-size: var(--fs-step); font-weight: 500; color: var(--tan); line-height: 1; margin-bottom: 22px; }
.panel-body { font-size: 16px; line-height: 1.55; color: var(--on-ink-para); }

/* ── Industries ──────────────────────────────────────────────────────────── */
.segment-line { font-family: var(--font-serif); font-style: italic; font-size: clamp(20px, 2vw, 26px); line-height: 1.3; color: var(--bronze); max-width: 560px; }
.hair-list { display: flex; flex-direction: column; border-top: 1px solid var(--hair-light); }
.hair-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair-light); font-size: 16.5px; line-height: 1.5; }
.hair-row-index { font-family: var(--font-serif); font-style: italic; color: var(--bronze); }
.fit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-chip {
    font-size: 13.5px; font-weight: 600;
    border: 1px solid var(--hair-light); border-radius: var(--r-pill);
    padding: 0 14px; min-height: 40px; display: flex; align-items: center;
    color: var(--ink); background: transparent; opacity: .55;
    transition: background .3s, color .3s, opacity .3s;
}
.fit-chip[data-on="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); opacity: 1; }
.eyebrow-sm.fit-label { margin-bottom: 12px; }

/* ── How it works: timeline ──────────────────────────────────────────────── */
.section-steps { padding: clamp(72px, 11vh, 130px) var(--gutter); }
.timeline { position: relative; padding-left: 36px; }
.timeline-track, .timeline-fill { position: absolute; left: 10px; top: 12px; bottom: 12px; width: 1px; }
.timeline-track { background: rgba(27, 53, 87, .14); }
.timeline-fill { background: var(--bronze); transform-origin: top; transform: scaleY(1); }
.timeline-items { display: flex; flex-direction: column; gap: clamp(36px, 6vh, 64px); }
.timeline-item { position: relative; }
.timeline-dot { position: absolute; left: -31px; top: 10px; width: 11px; height: 11px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 5px var(--bone); }
.h3-step { font-size: clamp(26px, 2.8vw, 36px); }
.timeline-body { font-size: 16.5px; line-height: 1.55; color: var(--on-bone-78); max-width: 520px; }

/* ── About ───────────────────────────────────────────────────────────────── */
.about-mark { position: absolute; right: -6%; top: 8%; width: min(62vw, 720px); aspect-ratio: 374 / 226; pointer-events: none; }
.about-glow { position: absolute; inset: -20%; border-radius: 50%; background: radial-gradient(circle, rgba(232, 207, 166, .22), transparent 60%); filter: blur(14px); animation: glow 5s ease-in-out infinite alternate; }
.about-quill { position: relative; width: 100%; height: 100%; object-fit: contain; opacity: .92; filter: drop-shadow(0 0 46px rgba(232, 207, 166, .45)); animation: markin 1.4s .2s both; }
.section-facts { padding: clamp(64px, 9vh, 100px) var(--gutter); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.fact { border-top: 1px solid rgba(27, 53, 87, .2); padding-top: 18px; }
.fact .eyebrow-sm { margin-bottom: 10px; }
.fact-value { font-family: var(--font-serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.section-contact { padding: clamp(48px, 7vh, 90px) var(--gutter) var(--sect-y); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-side { display: flex; flex-direction: column; gap: 28px; order: 2; }
.contact-main { order: 1; }
.count-card { background: var(--ink); color: var(--bone); border-radius: var(--r-panel); padding: 26px 26px 24px; position: sticky; top: var(--sticky-top); --eyebrow: var(--tan); }
.count-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.count-n { font-family: var(--font-serif); font-size: var(--fs-count); line-height: .9; color: var(--bone); font-variant-numeric: tabular-nums; }
.count-label { font-size: 15px; color: var(--on-ink-2); }
.count-arrow { font-family: var(--font-serif); font-size: clamp(28px, 3vw, 40px); color: var(--on-ink-legal); margin-left: auto; }
.count-one { font-family: var(--font-serif); font-size: var(--fs-count); line-height: .9; color: var(--tan); font-style: italic; }
.count-summary { font-size: 14px; line-height: 1.5; color: var(--on-ink-2); margin-top: 18px; min-height: 42px; }
.what-row { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair-light); }
.what-index { font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--bronze); padding-top: 3px; }
.what-heading { font-weight: 600; font-size: 15.5px; margin-bottom: 4px; }
.what-body { font-size: 14.5px; line-height: 1.5; color: var(--on-bone-72); }

.form { background: var(--white); border: 1px solid var(--hair-light); border-radius: var(--r-panel); padding: clamp(20px, 3vw, 34px); display: flex; flex-direction: column; gap: 26px; box-shadow: var(--sh-form); }
.form-step { margin-bottom: 8px; }
.form-help { font-size: 15px; line-height: 1.5; color: var(--on-bone-72); margin-bottom: 14px; }
.form-fields { display: flex; flex-direction: column; gap: 14px; }
.form-fields .form-step { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font-size: 14px; font-weight: 600;
    border: 1px solid var(--hair-light); border-radius: var(--r-pill);
    padding: 0 16px; min-height: 44px;
    background: var(--white); color: var(--ink);
    transition: background var(--t-chip), color var(--t-chip), border-color var(--t-chip);
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.chip-unsure { border: 1px dashed var(--bronze); background: transparent; color: var(--bronze); }
.chip-unsure[aria-pressed="true"] { background: var(--bronze); color: var(--bone); }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.field-optional { font-weight: 400; color: var(--on-bone-55); }
.field input, .field select, .field textarea {
    border: 1px solid var(--hair-light); border-radius: var(--r-input);
    padding: 0 14px; min-height: 48px;
    font-size: 15px; font-weight: 400;
    background: var(--bone); color: var(--ink);
    width: 100%;
}
.field textarea { padding: 12px 14px; resize: vertical; min-height: 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-size: 14px; color: var(--bronze); font-weight: 600; animation: fadein .3s both; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.form-note { font-size: 13.5px; color: var(--on-bone-2); }
.success { background: var(--ink); color: var(--bone); border-radius: var(--r-panel); padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 48px); text-align: center; animation: pop .6s var(--ease) both; }
.success-mark { width: 84px; height: 52px; object-fit: contain; margin: 0 auto 22px; filter: drop-shadow(0 0 30px rgba(232, 207, 166, .45)); }
.success-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; margin-bottom: 14px; }
.success-body { font-size: 16px; line-height: 1.6; color: var(--on-ink-para); margin: 0 auto 22px; max-width: 460px; }
.success-chips { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 520px; }
.success-chip { font-size: 13px; border: 1px solid rgba(232, 207, 166, .45); color: var(--tan); border-radius: var(--r-pill); padding: 6px 12px; }

/* ── Legal pages and Error ───────────────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: 150px var(--gutter) var(--sect-y); color: var(--bone); }
.h1-legal { font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 12px; }
.legal-updated { font-size: 13px; color: var(--on-ink-3); margin-bottom: 40px; }
.legal-body { display: flex; flex-direction: column; gap: 28px; font-size: 16px; line-height: 1.65; color: var(--on-ink-body); }
.legal-body h2 { font-family: var(--font-serif); font-weight: 500; font-size: 24px; line-height: 1.2; color: var(--bone); margin-bottom: 10px; }
.legal-body p + p { margin-top: 12px; }
.legal-body a { color: var(--tan); }
.legal-body strong { color: var(--bone); font-weight: 600; }

/* ── Countdown gate ──────────────────────────────────────────────────────── */
.gate {
    position: relative; height: 100vh; height: 100svh; width: 100%; overflow: hidden;
    display: grid; grid-template-rows: auto 1fr auto;
    background: radial-gradient(ellipse 90% 60% at 50% 40%, var(--ink-light) 0%, var(--ink) 55%, var(--ink-deep) 100%);
    color: var(--bone);
    cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    outline: none;
}
.gate-scene { position: absolute; inset: 0; opacity: .85; }
.gate-scrim { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 50% at 50% 55%, rgba(20, 42, 71, .72), rgba(20, 42, 71, .35) 60%, transparent); pointer-events: none; }
.gate-head { position: relative; display: flex; justify-content: center; padding: calc(max(24px, env(safe-area-inset-top)) + clamp(24px, 6vh, 48px)) 20px 0; }
.gate-lockup { --lockup-h: clamp(72px, 12vh, 116px); max-width: min(88vw, 620px); }
.gate-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4vh, 36px); padding: 24px clamp(18px, 5vw, 40px); text-align: center; }
.gate-eyebrow { font-size: clamp(10px, 2.6vw, 12px); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--tan); }
.clock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 2.4vw, 22px); width: 100%; max-width: 820px; }
.clock-unit { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.clock-digits { font-family: var(--font-serif); font-weight: 500; font-size: clamp(40px, 15vw, 124px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--bone); }
.clock-label { font-size: clamp(9px, 2.2vw, 12px); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--on-ink-3); }
.gate-headline { font-family: var(--font-serif); font-weight: 500; font-size: clamp(26px, 6vw, 54px); line-height: 1.06; letter-spacing: -.015em; max-width: 20ch; text-wrap: balance; }
.gate-sub { font-size: clamp(14px, 3.4vw, 18px); line-height: 1.5; color: rgba(248, 244, 239, .75); max-width: 34ch; text-wrap: pretty; }
.gate-enter { padding: 0 30px; min-height: 52px; animation: fadein .5s both; }
.gate-foot { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 20px max(22px, env(safe-area-inset-bottom)); }
.gate-footnote { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(248, 244, 239, .42); }
/* state-dependent copy: every variant is in the DOM; data-state picks one */
.gate [data-when] { display: none; }
.gate[data-state="counting"] [data-when~="counting"],
.gate[data-state="unlocked"] [data-when~="unlocked"],
.gate[data-state="live"] [data-when~="live"] { display: inline; }
.gate[data-state="unlocked"] .gate-enter, .gate[data-state="live"] .gate-enter { display: inline-flex; }

/* ── Keyframes ───────────────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes heroin { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes wordin { 0% { opacity: 0; transform: translateY(.6em) rotateX(-40deg); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--tan-glow); } 70% { box-shadow: 0 0 0 14px rgba(232, 207, 166, 0); } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { 0% { transform: scale(.7); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
@keyframes menuin { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes glow { from { opacity: .35; transform: scale(.92); } to { opacity: .7; transform: scale(1.04); } }
@keyframes markin { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }

/* ── Motion: entrances and scroll-driven reveals ─────────────────────────── */
.heroin-1 { animation: heroin .9s .1s both; }
.heroin-2 { animation: heroin 1s .25s both; }
.heroin-3 { animation: heroin 1s .45s both; }
.hero .heroin-3 { animation-delay: .5s; }
.heroin-4 { animation: heroin 1s .55s both; }
.heroin-5 { animation: heroin 1s .7s both; }
.gate .heroin-2 { animation: heroin 1s .25s both; }
.gate .heroin-3 { animation: heroin 1s .4s both; }
.fadein-late { animation: fadein 1.2s .9s both; }

/* Where scroll-driven animations are unsupported the elements simply render in
   their final state — the accepted degradation. No script fallback. */
@supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 50%; }
    .reveal-40 { animation-range: entry 0% entry 40%; }
    .reveal-45 { animation-range: entry 0% entry 45%; }
    .reveal-55 { animation-range: entry 0% entry 55%; }
    .reveal-60 { animation-range: entry 0% entry 60%; }
    .progress-fill { animation: grow-x linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
    .timeline-fill { animation: grow-y linear both; animation-timeline: view(); animation-range: entry 20% exit 60%; }
}

/* ── The single breakpoint: 820 / 821px ──────────────────────────────────── */
@media (max-width: 820px) {
    [data-desk] { display: none !important; }

    /* Nav → full-viewport overlay menu */
    .menu-panel {
        display: none;
        position: fixed; inset: 0; z-index: 60;
        background: var(--ink-menu); color: var(--bone);
        flex-direction: column; align-items: stretch;
        padding: 10px var(--gutter-nav) 28px;
        animation: fadein .25s both;
    }
    .menu-panel[data-open] { display: flex; }
    .menu-head { display: flex; justify-content: space-between; align-items: center; }
    .nav-list { margin-top: auto; flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link {
        font-family: var(--font-serif); font-size: clamp(38px, 10vw, 60px); line-height: 1.05;
        padding: 6px 0; border-bottom: 0;
        color: var(--on-ink-body);
        animation: menuin .5s both; animation-delay: calc(.02s + var(--i, 0) * .06s);
    }
    .nav-link[aria-current="page"] { color: var(--tan); }
    .menu-cta { display: inline-flex; margin-top: 28px; font-size: 16px; padding: 18px 24px; min-height: 0; animation: menuin .5s .35s both; }
    .menu-foot { display: block; margin-top: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-ink-legal); text-align: center; animation: fadein .6s .4s both; }

    /* Home capability cards → horizontal snap carousel */
    .grid-cards {
        display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
        margin: 0 -18px; padding: 0 18px 8px; scrollbar-width: none;
    }
    .grid-cards::-webkit-scrollbar { display: none; }
    .grid-cards > * { flex: 0 0 82%; scroll-snap-align: start; min-height: 230px; animation: none; }

    /* Explorer rails → horizontal snap chip rows */
    .rail {
        flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px;
        margin: 0 -18px; padding: 0 18px 6px; position: static; scrollbar-width: none;
    }
    .rail::-webkit-scrollbar { display: none; }
    .rail > * { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
    .panes { min-height: 0; }
    .sticky-110 { position: static; }

    /* Stack diagram: let the two outer columns shrink below min-content so the
       three-part diagram fits a 320px screen. */
    .stack { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; }
    .stack-tile { padding: 10px 10px; font-size: 12.5px; }
    .stack-card { padding: 18px 14px; min-width: 0; }
    .stack-card-title { font-size: 19px; overflow-wrap: anywhere; }
}
@media (min-width: 821px) {
    [data-mob] { display: none !important; }
}

/* ── Reduced motion: everything to its final state; the 3D hero holds a frame ─ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal, .progress-fill, .timeline-fill { animation: none !important; }
    .marquee-track { animation: none !important; }
}
