/* =========================================================
   Dronosaur v3 — Home ("Beyond gravity"), loads after v2.css
   One fixed WebGL stage behind eight chapters. Chapters 01–06 and 08 are tall
   scroll sections with a sticky viewport; 07 and the spec matrix are solid
   editorial blocks that cover the stage (rendering pauses behind them).
   ========================================================= */
.page-home {
    background: var(--aero);
    color: var(--warm);
}
.page-home main { position: relative; z-index: 1; }

/* ---------- Buttons on dark ---------- */
.btn-light { background: var(--warm); color: var(--aero); }
.btn-light:hover { background: var(--signal); color: var(--aero); transform: translateY(-2px); }
.btn-line { border-color: rgba(242, 240, 235, 0.32); color: var(--warm); background: transparent; }
.btn-line:hover { border-color: var(--warm); transform: translateY(-2px); }
.btn-signal { background: var(--signal); color: var(--aero); }
.btn-signal:hover { background: var(--warm); transform: translateY(-2px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Header: dark while over the stage, light over chapter 07 ---------- */
.page-home .site-header { transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease; }
.page-home.on-dark .site-header {
    background: linear-gradient(180deg, rgba(16, 18, 21, 0.72), rgba(16, 18, 21, 0));
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.page-home.on-dark .brand-word { color: var(--warm); }
.page-home.on-dark .site-nav a { color: rgba(242, 240, 235, 0.62); }
.page-home.on-dark .site-nav a:hover, .page-home.on-dark .site-nav a.is-active { color: var(--warm); }
.page-home.on-dark .header-cta { background: var(--warm); color: var(--aero); }
.page-home.on-dark .header-cta:hover { background: var(--signal); }
.page-home.on-dark .menu-btn { border-color: rgba(242, 240, 235, 0.3); }
.page-home.on-dark .menu-btn span { background: var(--warm); }
.page-home:not(.on-dark) .site-header { color: var(--ink); }
.page-home:not(.on-dark) .brand-word { color: var(--ink); }
.page-home .mobile-menu { background: var(--aero); }
.page-home .mobile-menu a { color: var(--warm); border-color: rgba(242, 240, 235, 0.12); }
.page-home.menu-open .site-header { background: var(--aero); }
.page-home.menu-open .brand-word { color: var(--warm); }
.page-home.menu-open .menu-btn span { background: var(--warm); }

/* ---------- Type ---------- */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--titanium);
    margin-bottom: 1.4rem;
}
.kicker b { color: var(--signal); font-weight: 500; }
.kicker b::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; margin-left: 0.9rem; vertical-align: middle; opacity: 0.6; }
.h-chapter {
    font-family: var(--f-display);
    font-weight: 640;
    font-stretch: 90%;
    font-size: clamp(2rem, 3.9vw, 3.6rem);
    line-height: 1.0;
    letter-spacing: -0.028em;
    max-width: 14ch;
    text-wrap: balance;
}
.h-section {
    font-family: var(--f-display);
    font-weight: 640;
    font-stretch: 90%;
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.0;
    letter-spacing: -0.028em;
    max-width: 18ch;
    text-wrap: balance;
}
.copy p { color: rgba(242, 240, 235, 0.7); max-width: 40ch; margin-top: 1.25rem; font-size: clamp(0.98rem, 1.1vw, 1.08rem); }
.statement {
    font-family: var(--f-display);
    font-weight: 600;
    font-stretch: 90%;
    font-size: clamp(1.6rem, 2.6vw, 2.4rem) !important;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--warm) !important;
}
.statement em, .c1-title em, .c8-title em { font-style: normal; color: var(--signal); }
.claim { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; font-size: 0.82rem !important; color: rgba(242, 240, 235, 0.55) !important; }
.page-home .status-dev { color: #FF8A5C; }
.page-home .status-target { color: #C9CED4; }
.page-home .status-planned { color: var(--titanium); }
.link-arrow {
    display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.25rem;
    font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--warm); border-bottom: 1px solid rgba(242, 240, 235, 0.3); padding-bottom: 0.35rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.link-arrow::after { content: "\2192"; transition: transform 0.3s ease; }
.link-arrow:hover { border-color: var(--signal); color: var(--signal); }
.link-arrow:hover::after { transform: translateX(4px); }

/* =========================================================
   Stage (fixed canvas)
   ========================================================= */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--aero); }
#stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.stage-ready #stage-canvas { opacity: 1; }
.stage-shade {
    position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(16, 18, 21, var(--shade-l, 0.7)) 0%, rgba(16, 18, 21, calc(var(--shade-l, 0.7) * 0.55)) 30%, rgba(16, 18, 21, 0) 58%),
        linear-gradient(270deg, rgba(16, 18, 21, var(--shade-r, 0)) 0%, rgba(16, 18, 21, calc(var(--shade-r, 0) * 0.5)) 30%, rgba(16, 18, 21, 0) 55%),
        linear-gradient(0deg, rgba(16, 18, 21, 0.55) 0%, rgba(16, 18, 21, 0) 24%);
    transition: --shade-l 0.6s ease;
}
.stage-loading {
    position: absolute; right: clamp(16px, 4vw, 56px); bottom: clamp(16px, 5vh, 48px); z-index: 2;
    display: grid; gap: 0.6rem; width: 180px;
    font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--titanium);
    transition: opacity 0.6s ease;
}
.stage-loading i { display: block; height: 1px; background: var(--signal); transform: scaleX(0.04); transform-origin: left; transition: transform 0.4s ease; }
.stage-ready .stage-loading, .no-webgl .stage-loading, .static-stage .stage-loading { opacity: 0; }
.stage-veil { position: absolute; inset: 0; background: var(--aero); opacity: 0; pointer-events: none; }
.stage-fallback { display: none; position: absolute; inset: 0; align-items: center; justify-content: flex-end; padding: var(--header-h) 6vw 0; color: var(--titanium); }
.blueprint { width: min(58vw, 760px); height: auto; }
.blueprint .bp-accent { stroke: var(--signal); }
.no-webgl .stage-fallback, .static-stage .stage-fallback { display: flex; }
.no-webgl #stage-canvas, .static-stage #stage-canvas { display: none; }

/* HUD: labels anchored to 3D points */
.hud { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hud-label {
    position: absolute; left: 0; top: 0;
    font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
    color: var(--warm);
    padding: 0.3rem 0.5rem 0.3rem 0.9rem;
    margin: -0.8rem 0 0 0.6rem;
    background: rgba(16, 18, 21, 0.72);
    border-left: 1px solid var(--titanium);
    opacity: 0;
    will-change: transform, opacity;
}
.hud-label.is-accent { border-left-color: var(--signal); color: #fff; }
.hud-label::before { content: ""; position: absolute; left: -0.95rem; top: 50%; width: 0.6rem; height: 1px; background: currentColor; opacity: 0.6; }
.hud-callout { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; overflow: visible; }
.hud-callout line { stroke: var(--signal); stroke-width: 1; }
.hud-callout circle { fill: var(--signal); }
.hud-callout circle.ring { fill: none; stroke: var(--signal); stroke-opacity: 0.5; }

/* POV preview (rendered by the same WebGL context into this rect) */
.pov {
    position: absolute;
    right: clamp(16px, 4vw, 56px);
    bottom: clamp(16px, 6vh, 64px);
    width: clamp(220px, 24vw, 380px);
    aspect-ratio: 16 / 9;
    outline: 1px solid rgba(242, 240, 235, 0.35);
    outline-offset: 5px;
    font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff;
    opacity: 0; transition: opacity 0.4s ease;
}
.pov.is-on { opacity: 1; }
.pov-grid {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, transparent 33.2%, rgba(255,255,255,.3) 33.2% 33.4%, transparent 33.4% 66.6%, rgba(255,255,255,.3) 66.6% 66.8%, transparent 66.8%),
        linear-gradient(180deg, transparent 33.2%, rgba(255,255,255,.3) 33.2% 33.4%, transparent 33.4% 66.6%, rgba(255,255,255,.3) 66.6% 66.8%, transparent 66.8%);
}
.pov span { position: absolute; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pov-tl { top: 8px; left: 10px; display: inline-flex; gap: 0.4rem; align-items: center; }
.pov-tl i { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.pov-tr { top: 8px; right: 10px; color: rgba(255,255,255,.7); }
.pov-bl { bottom: 8px; left: 10px; }
.pov-c { position: absolute; width: 14px; height: 14px; border: 0 solid var(--signal); }
.pov-c.tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.pov-c.tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.pov-c.bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.pov-c.br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* =========================================================
   Chapters
   ========================================================= */
.ch { position: relative; height: calc(var(--len) * 1vh); }
.ch-sticky {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
}
.ch-sticky > .wrap { width: 100%; }
.ch-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 520px) 1fr; padding-top: var(--header-h); }
.ch-grid-right { grid-template-columns: 1fr minmax(0, 480px); }
.ch-grid-right .copy { grid-column: 2; }
.ch-grid-split { grid-template-columns: minmax(0, 440px) 1fr minmax(0, 360px); align-items: start; }
.ch-grid-split .systems { grid-column: 3; }

/* 01 */
.c1-copy { padding-top: var(--header-h); will-change: opacity, transform; }
.c1-title {
    font-family: var(--f-display);
    font-weight: 660;
    font-stretch: 88%;
    font-size: clamp(3.2rem, 8.4vw, 8.2rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.c1-lede { margin-top: 1.75rem; max-width: 38ch; font-size: clamp(1rem, 1.25vw, 1.15rem); color: rgba(242, 240, 235, 0.74); }
.c1-readout { position: absolute; left: 0; right: 0; bottom: clamp(5rem, 14vh, 9rem); opacity: 0; }
.readout { list-style: none; display: grid; gap: 0.55rem; max-width: 320px; }
.readout li {
    display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.75rem;
    font-family: var(--f-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(242, 240, 235, 0.35); padding-top: 0.55rem; border-top: 1px solid rgba(242, 240, 235, 0.12);
    transition: color 0.4s ease, border-color 0.4s ease;
}
.readout li span { color: var(--titanium); }
.readout li.on { color: var(--warm); border-top-color: var(--signal); }
.readout li.on span { color: var(--signal); }
.c1-foot {
    position: absolute; left: 0; right: 0; bottom: 24px;
    display: flex; justify-content: space-between;
    font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 240, 235, 0.5);
}
.scroll-hint { display: inline-flex; align-items: center; gap: 0.6rem; }
.scroll-hint::after { content: ""; width: 1px; height: 26px; background: linear-gradient(var(--signal), transparent); animation: cue 1.8s ease-in-out infinite; }

/* 02 */
.c2-b { opacity: 0; }

/* 03 */
.steps { list-style: none; counter-reset: s; margin-top: 2rem; display: grid; gap: 0; max-width: 400px; }
.steps li {
    counter-increment: s;
    display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline;
    padding: 0.55rem 0; border-top: 1px solid rgba(242, 240, 235, 0.1);
    font-size: 0.92rem; color: rgba(242, 240, 235, 0.35);
    transition: color 0.35s ease;
}
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; }
.steps li.done { color: rgba(242, 240, 235, 0.62); }
.steps li.on { color: var(--warm); border-top-color: var(--signal); }
.steps li.on::before { color: var(--signal); }
.ch-intel .claim { margin-top: 1.5rem; }

/* 04 */
.c4-copy { position: absolute; left: 0; right: 0; bottom: clamp(2rem, 8vh, 5rem); }
.c4-copy .h-chapter { max-width: 12ch; }
.c4-beats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2rem; max-width: 1100px; }
.c4-beats li {
    font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
    color: rgba(242, 240, 235, 0.4); padding-top: 0.8rem; border-top: 1px solid rgba(242, 240, 235, 0.18);
    transition: color 0.4s ease, border-color 0.4s ease;
}
.c4-beats li span { display: block; margin-top: 0.5rem; font-family: var(--f-body); font-size: 0.9rem; letter-spacing: 0; text-transform: none; color: rgba(242, 240, 235, 0.0); transition: color 0.4s ease; }
.c4-beats li.on { color: var(--warm); border-top-color: var(--signal); }
.c4-beats li.on span { color: rgba(242, 240, 235, 0.72); }
.ch-freedom .ch-sticky { justify-content: flex-start; }
.ch-freedom .ch-sticky::after {
    content: ""; position: absolute; inset: 45% 0 0 0; pointer-events: none; z-index: 0;
    background: linear-gradient(180deg, rgba(16, 18, 21, 0) 0%, rgba(16, 18, 21, 0.55) 45%, rgba(16, 18, 21, 0.82) 100%);
}
.c4-copy { z-index: 1; }
.stage[data-ch="c5"] .pov { right: auto; left: clamp(16px, 4vw, 56px); }
.ch-freedom .stage-shade { --shade-l: 0; }
.vf { position: absolute; inset: calc(var(--header-h) + 4vh) 8vw 30vh; opacity: 0; pointer-events: none; }
.vf i { position: absolute; width: 34px; height: 34px; border: 0 solid var(--warm); }
.vf .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.vf .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.vf .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.vf .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.vf-rec { position: absolute; top: 12px; left: 46px; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.vf-rec b { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: rec 1.2s steps(2, start) infinite; }

/* 05 */
.mode-tabs { display: inline-flex; margin-top: 2rem; border: 1px solid rgba(242, 240, 235, 0.18); }
.mode-tabs button {
    font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
    background: transparent; color: rgba(242, 240, 235, 0.6); border: 0; padding: 0.85rem 1rem; cursor: pointer;
    min-height: 44px; transition: background 0.3s ease, color 0.3s ease;
}
.mode-tabs button + button { border-left: 1px solid rgba(242, 240, 235, 0.18); }
.mode-tabs button:hover { color: var(--warm); }
.mode-tabs button[aria-pressed="true"] { background: var(--warm); color: var(--aero); }
.mode-panels { position: relative; margin-top: 1.75rem; min-height: 15rem; }
.mode-panel { position: absolute; inset: 0 0 auto 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s; }
.mode-panel.is-active { opacity: 1; visibility: visible; transform: none; }
.mode-panel h3 { font-size: 1.5rem; }
.mode-panel > p:first-of-type { margin-top: 0.6rem; }
.mode-live { font-family: var(--f-mono); font-size: 0.72rem !important; letter-spacing: 0.1em; text-transform: uppercase; color: var(--titanium) !important; }
.mode-live b { color: var(--warm); font-weight: 500; }
.voice-live { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.1rem; }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 30px; }
.wave i { width: 3px; height: 4px; background: var(--signal); }
.cmds { list-style: none; display: flex; gap: 0.9rem; font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; }
.cmds li { color: rgba(242, 240, 235, 0.3); transition: color 0.3s ease; }
.cmds li.on { color: var(--warm); }
.ch-modes .stage-shade { --shade-l: 0; --shade-r: 0.75; }

/* 06 */
.systems { list-style: none; position: relative; min-height: 18rem; }
.systems li {
    position: absolute; inset: 0 0 auto 0;
    padding: 1.4rem 0 0; border-top: 1px solid var(--signal);
    opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.45s ease;
}
.systems li.is-active { opacity: 1; transform: none; }
.sys-n { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--signal); }
.systems h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin: 0.4rem 0 0.7rem; }
.systems p { color: rgba(242, 240, 235, 0.7); font-size: 0.95rem; margin-bottom: 1rem; }
.anatomy-note { position: absolute; left: 0; right: 0; bottom: 20px; font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242, 240, 235, 0.45); }
.ch-anatomy .ch-sticky { justify-content: flex-start; padding-top: 12vh; }

/* Spec matrix */
.spec { position: relative; z-index: 1; background: var(--graphite); padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid rgba(242, 240, 235, 0.08); }
.spec-head { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.legend { display: grid; gap: 0.8rem; }
.legend > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; align-items: start; font-size: 0.86rem; color: rgba(242, 240, 235, 0.62); }
.matrix-scroll { overflow-x: auto; border-top: 1px solid var(--warm); }
.matrix { width: 100%; border-collapse: collapse; min-width: 620px; }
.matrix th, .matrix td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid rgba(242, 240, 235, 0.09); vertical-align: top; font-size: 0.95rem; }
.matrix thead th { font-family: var(--f-mono); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--titanium); }
.matrix tbody th { font-family: var(--f-display); font-weight: 620; font-size: 1.05rem; color: var(--warm); border-right: 1px solid rgba(242, 240, 235, 0.09); width: 16%; }
.matrix tr.grp td, .matrix tr.grp th { border-top: 1px solid rgba(242, 240, 235, 0.28); }
.matrix td:nth-of-type(1) { color: rgba(242, 240, 235, 0.6); padding-left: 1rem; width: 22%; }
.matrix td.tbc { color: var(--titanium); font-style: italic; }
.spec-more { margin-top: 2rem; }

/* =========================================================
   07 Engineering progress (light editorial, covers the stage)
   ========================================================= */
.progress { position: relative; z-index: 1; background: var(--warm); color: var(--ink); padding: clamp(5rem, 11vw, 9rem) 0; }
.progress .kicker { color: var(--muted); }
.progress .status-dev { color: var(--signal-ink); }
.progress .status-planned { color: var(--muted); }
.pg-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.pg-status { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.pg-status li { padding: 1.5rem 1.5rem 1.5rem 0; position: relative; }
.pg-status li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.pg-status li::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 3px; }
.pg-status li.done::before { background: var(--ink); }
.pg-status li.active::before { background: var(--signal); }
.pg-status li:not(.done):not(.active)::before { background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 12px); height: 1px; top: -1px; }
.pg-status h3 { font-size: 1.2rem; margin: 1rem 0 0.5rem; }
.pg-status p { color: var(--muted); font-size: 0.92rem; }

.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: clamp(3.5rem, 7vw, 5.5rem) 0; }
.logo-wall li + li { border-left: 1px solid var(--line); }
.logo-wall a { display: flex; align-items: center; justify-content: center; height: 108px; padding: 1.25rem; filter: grayscale(1); opacity: 0.72; transition: filter 0.3s ease, opacity 0.3s ease; }
.logo-wall a:hover { filter: none; opacity: 1; }
.logo-wall img { max-height: 54px; max-width: 100%; object-fit: contain; }
.logo-wall img.lw-mark { max-height: 38px; }
.logo-wall img.lw-wide { max-height: 44px; }

.pg-ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.pg-col h3 { display: flex; align-items: baseline; gap: 0.9rem; font-size: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.pg-col h3 span { font-family: var(--f-mono); font-weight: 400; font-size: 0.72rem; color: var(--signal-ink); }
.rows { list-style: none; }
.rows li { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.rows li a, .rows li b { font-weight: 600; }
.rows li a:hover { color: var(--signal-ink); }
.rows li span { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; align-self: center; }
.rows li small { grid-column: 1 / -1; color: var(--muted); font-size: 0.82rem; }
.big-num { font-family: var(--f-display); font-weight: 660; font-stretch: 88%; font-size: clamp(2.6rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -0.03em; margin-top: 1.5rem; }
.big-note { color: var(--muted); margin: 0.5rem 0 1rem; font-size: 0.95rem; }
.big-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.award + .award { border-top: 1px solid var(--line); }

.founders { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2rem 4rem; margin-top: clamp(4.5rem, 9vw, 7rem); padding-top: 2.5rem; border-top: 1px solid var(--ink); }
.founders-title { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1; letter-spacing: -0.028em; font-weight: 640; font-stretch: 90%; }
.founders-title span { color: var(--muted); }
.founders ol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.founders li { display: flex; gap: 1.1rem; align-items: center; }
.mono-mark, .founders li img { width: 72px; height: 72px; flex: none; display: grid; place-items: center; background: var(--aero); color: var(--warm); font-family: var(--f-display); font-weight: 700; font-size: 1.6rem; object-fit: cover; }
.founders h4 { font-size: 1.25rem; }
.founders li p { color: var(--muted); font-size: 0.9rem; }
.founders-quote { grid-column: 1 / -1; font-family: var(--f-display); font-weight: 600; font-stretch: 92%; font-size: clamp(1.4rem, 2.4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.15; max-width: 30ch; margin-top: 1rem; }
.founders-quote em { font-style: normal; color: var(--signal-ink); }

/* 08 */
.c8-copy { position: absolute; left: 0; right: 0; bottom: clamp(3rem, 12vh, 7rem); text-align: center; display: flex; flex-direction: column; align-items: center; }
.c8-title { font-family: var(--f-display); font-weight: 660; font-stretch: 88%; font-size: clamp(2.8rem, 6.6vw, 6.4rem); line-height: 0.92; letter-spacing: -0.04em; }
.c8-lede { margin-top: 1.1rem; color: rgba(242, 240, 235, 0.72); font-size: clamp(1rem, 1.3vw, 1.2rem); }
.c8-copy .cta-row { justify-content: center; }
.ch-next .stage-shade { --shade-l: 0; }

/* Footer on the dark page */
.page-home .site-footer { position: relative; z-index: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .ch-grid-split { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
    .ch-grid-split .systems { grid-column: 2; }
    .logo-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .logo-wall li:nth-child(6) { border-left: 0; }
    .logo-wall li:nth-child(n+6) { border-top: 1px solid var(--line); }
    .pg-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pg-status li:nth-child(3) { border-left: 0; padding-left: 0; }
    .pg-ledger { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .ch { height: calc(var(--len) * 0.72vh); }
    /* Copy sits in the lower part of the viewport on a solid scrim; the 3D subject stays above it */
    .ch-sticky { justify-content: flex-end; }
    .ch-grid, .ch-grid-right, .ch-grid-split { grid-template-columns: minmax(0, 1fr); padding: 0 0 1.5rem; }
    .ch-grid-right .copy, .ch-grid-split .systems { grid-column: 1; }
    .copy, .systems, .c1-copy { position: relative; z-index: 2; }
    .c4-copy, .c8-copy { z-index: 2; }
    .ch-freedom .ch-sticky::after { inset: 35% 0 0 0; background: linear-gradient(180deg, rgba(16,18,21,0) 0%, rgba(16,18,21,.85) 40%, rgba(16,18,21,.96) 100%); }
    .ch-sticky::before {
        content: ""; position: absolute; inset: 42% 0 0 0; pointer-events: none;
        background: linear-gradient(180deg, rgba(16, 18, 21, 0) 0%, rgba(16, 18, 21, 0.88) 32%, rgba(16, 18, 21, 0.96) 100%);
    }
    .h-chapter { font-size: clamp(1.7rem, 7.4vw, 2.3rem); max-width: none; }
    .copy p { margin-top: 0.8rem; font-size: 0.94rem; }
    .c1-copy { padding: 0 var(--gutter) 5rem; }
    .c1-title { font-size: clamp(3rem, 15vw, 4.6rem); }
    .c1-readout { bottom: 5rem; }
    .stage-shade { --shade-l: 0 !important; --shade-r: 0 !important; }
    .steps { margin-top: 1rem; }
    .steps li { height: 0; overflow: hidden; padding: 0; border-top-width: 0; }
    .steps li.on { height: auto; padding: 0.4rem 0; border-top-width: 1px; }
    .ch-intel .claim, .mode-panel .claim { font-size: 0.75rem !important; }
    .c4-beats { grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; margin-top: 1rem; }
    .c4-beats li span { display: none; }
    .vf { inset: calc(var(--header-h) + 2vh) 16px 46vh; }
    .mode-tabs { margin-top: 1rem; width: 100%; }
    .mode-tabs button { flex: 1; padding: 0.7rem 0.4rem; font-size: 0.62rem; }
    .mode-panels { min-height: 13rem; margin-top: 1rem; }
    .mode-panel h3 { font-size: 1.2rem; }
    .ch-anatomy .ch-sticky { padding-top: 0; justify-content: flex-end; }
    .ch-anatomy [data-out] { display: none; }
    .systems { min-height: 12.5rem; margin-top: 1rem; }
    .systems li { padding-top: 0.9rem; }
    .anatomy-note { position: relative; bottom: auto; padding-bottom: 1rem; z-index: 2; }
    .pov { top: calc(var(--header-h) + 12px); bottom: auto; right: 16px; width: 44vw; max-width: 220px; }
    .spec-head { grid-template-columns: 1fr; gap: 2rem; }
    .legend > div { grid-template-columns: 1fr; gap: 0.4rem; }
    .pg-ledger, .founders, .founders ol { grid-template-columns: 1fr; }
    .c8-copy { bottom: 2.5rem; }
    .blueprint { width: 100%; }
    .stage-fallback { align-items: flex-start; padding-top: calc(var(--header-h) + 2rem); }
}

@media (max-width: 560px) {
    .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .logo-wall li:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
    .logo-wall li:nth-child(3n+1) { border-left: 0; }
    .logo-wall li:nth-child(-n+3) { border-top: 0; }
    .logo-wall a { height: 84px; padding: 0.9rem; }
    .pg-status { grid-template-columns: 1fr; }
    .pg-status li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
    .cta-row .btn { flex: 1 1 auto; justify-content: center; }
    .c1-foot span:first-child { display: none; }
}

/* Short landscape phones: keep copy compact */
@media (max-height: 520px) and (orientation: landscape) {
    .ch { height: calc(var(--len) * 0.8vh); }
    .h-chapter { font-size: 1.6rem; }
    .copy p:not(.statement):not(.claim) { display: none; }
    .c1-title { font-size: 2.8rem; }
    .steps, .c4-beats li span, .pov { display: none; }
    .ch-grid { padding-top: calc(var(--header-h) + 0.5rem); }
}

/* =========================================================
   Reduced motion: no pinning, no scrub. Every chapter is a plain
   section with all of its content visible; the stage shows a still per chapter.
   ========================================================= */
.reduce-motion .ch { height: auto; }
.reduce-motion .ch-sticky { position: relative; height: auto; min-height: 100vh; min-height: 100svh; padding: calc(var(--header-h) + 3rem) 0 3rem; overflow: visible; }
.reduce-motion .c1-readout, .reduce-motion .c4-copy, .reduce-motion .c8-copy, .reduce-motion .anatomy-note { position: relative; inset: auto; bottom: auto; }
.reduce-motion .c1-readout, .reduce-motion .c2-b { opacity: 1 !important; margin-top: 2rem; }
.reduce-motion [data-out] { opacity: 1 !important; transform: none !important; }
.reduce-motion .readout li, .reduce-motion .c4-beats li { color: var(--warm); }
.reduce-motion .c4-beats li span { color: rgba(242, 240, 235, 0.72); }
.reduce-motion .steps li { display: grid; color: var(--warm); }
.reduce-motion .systems { min-height: 0; display: grid; gap: 1.5rem; }
.reduce-motion .systems li, .reduce-motion .mode-panel { position: relative; opacity: 1; visibility: visible; transform: none; }
.reduce-motion .mode-panels { min-height: 0; display: grid; gap: 2rem; }
.reduce-motion .mode-tabs, .reduce-motion .vf, .reduce-motion .scroll-hint::after { display: none; }
.reduce-motion .ch-sticky::before { inset: 0; background: rgba(16, 18, 21, 0.55); }
@media (prefers-reduced-motion: reduce) {
    .vf-rec b, .scroll-hint::after { animation: none; }
}
