/* =========================================================
   Dronosaur v3 — design system
   Aerospace black · graphite · titanium · warm off-white · signal orange (used sparingly:
   active states, tracking markers, technical highlights, primary actions, progress)
   ========================================================= */
:root {
    /* Core palette (v3) */
    --aero: #101215;
    --graphite: #1B1F24;
    --graphite-2: #252A31;
    --titanium: #8B929A;
    --warm: #F2F0EB;

    /* Colour */
    --bone: #F2F0EB;
    --bone-2: #E8E4DC;
    --paper: #FBFAF7;
    --ink: #14161A;
    --ink-2: #2A2D33;
    --muted: #6B6F76;
    --line: rgba(20, 22, 26, 0.12);
    --line-strong: rgba(20, 22, 26, 0.22);
    --signal: #FF4F1A;
    --signal-ink: #C93A0B;          /* orange for small text on light bg */
    --signal-soft: rgba(255, 79, 26, 0.12);
    --sky: #DCE6EE;

    /* Type */
    --f-display: 'Archivo', system-ui, sans-serif;     /* restrained grotesque; width axis for headlines */
    --f-body: 'Manrope', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Layout */
    --wrap: 1600px;
    --gutter: clamp(16px, 4vw, 48px);
    --radius: 8px;
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

html:focus-within { scroll-behavior: auto; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.skip-link {
    position: fixed; left: 12px; top: -60px; z-index: 100;
    background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; border-radius: 4px;
    font-weight: 600; font-size: 0.9rem; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

body {
    background: var(--bone);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type ---------- */
.eyebrow,
.chip,
.shot,
.spec-kicker,
.ch-index,
.sheet-num {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow { color: var(--signal-ink); display: inline-block; margin-bottom: 1.25rem; }

.display {
    font-family: var(--f-display);
    font-weight: 640;
    font-stretch: 92%;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
}

.display em { font-style: normal; color: var(--signal); }

.h-xl {
    font-family: var(--f-display);
    font-weight: 640;
    font-stretch: 92%;
    font-size: clamp(2.1rem, 4.6vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

h2, h3, h4 { font-family: var(--f-display); font-weight: 620; font-stretch: 94%; letter-spacing: -0.015em; }

.lede { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--muted); max-width: 34ch; margin-top: 1.5rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.95rem 1.5rem;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--signal); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 var(--gutter);
    background: rgba(241, 238, 232, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-word {
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: 125%;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-nav { display: flex; gap: 2rem; }
.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    transition: color 0.25s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    background: var(--signal);
}

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.card {
    background: rgba(251, 250, 247, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

/* =========================================================
   Tech page — 3D gesture stage
   ========================================================= */
.tech-stage { position: relative; }

.stage-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 50% 10%, #F7F5F0 0%, var(--bone) 55%, var(--bone-2) 100%);
}

#stage-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.stage-fallback {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}
.no-webgl .stage-fallback { display: flex; }
.no-webgl .pov-frame, .no-webgl .part-tag { display: none; }

/* Chapter indicator */
.stage-indicator {
    position: absolute;
    top: calc(var(--header-h) + 20px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    z-index: 3;
    white-space: nowrap;
}
.si-count b { color: var(--ink); font-weight: 500; }
.si-name { color: var(--signal-ink); min-width: 7ch; }
.si-ticks { display: flex; gap: 4px; }
.si-ticks i {
    width: 18px;
    height: 2px;
    background: var(--line-strong);
    transition: background 0.4s ease;
}
.si-ticks i.on { background: var(--signal); }

/* Part label */
.part-tag {
    position: absolute;
    left: 0; top: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: transform;
}
.part-tag.show { opacity: 1; }
.part-tag::before {               /* anchor dot */
    content: "";
    position: absolute;
    left: -5px; top: -5px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 6px var(--signal-soft);
}
.part-tag::after {                /* leader line */
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 46px; height: 1px;
    background: var(--ink);
    transform-origin: 0 0;
    transform: rotate(-35deg);
}
.part-tag span {
    position: absolute;
    left: 38px; top: -42px;
    white-space: nowrap;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--ink);
    color: var(--paper);
    padding: 0.35rem 0.6rem;
    border-radius: 2px;
}

/* POV inset */
.pov-frame {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: min(340px, 34vw);
    aspect-ratio: 16 / 9;
    z-index: 3;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    outline: 1px solid rgba(20, 22, 26, 0.25);
    outline-offset: 4px;
    font-family: var(--f-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}
.pov-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
        linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% - 0.5px), rgba(255,255,255,0.35) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% - 0.5px), rgba(255,255,255,0.35) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
}
.pov-cross {
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 18px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,0.85);
    border-radius: 50%;
}
.pov-top, .pov-bottom {
    position: absolute;
    left: 10px; right: 10px;
    display: flex;
    justify-content: space-between;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.pov-top { top: 8px; }
.pov-bottom { bottom: 8px; }
.pov-rec { display: inline-flex; align-items: center; gap: 0.4rem; }
.pov-rec i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--signal);
    animation: rec 1.2s steps(2, start) infinite;
}
.pov-rec b { font-weight: 500; }
@keyframes rec { to { visibility: hidden; } }
.pov-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
}
.pov-flash.fire { animation: flash 0.6s ease-out; }
@keyframes flash { 0% { opacity: 0.95; } 100% { opacity: 0; } }

/* Chapters scroll over the sticky stage */
.chapters {
    position: relative;
    z-index: 4;
    margin-top: -100vh;
    margin-top: -100svh;
    pointer-events: none;
}

.chapter {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 380px) 1fr minmax(0, 340px);
    align-items: center;
    gap: 2rem;
    padding: calc(var(--header-h) + 3rem) var(--gutter) 3rem;
}

.ch-text { grid-column: 1; }
.ch-spec { grid-column: 3; }

.chapter .card { pointer-events: auto; padding: 1.75rem; min-width: 0; }

.chapter-intro .ch-text { padding: 0; }
.scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.scroll-cue::before {
    content: "";
    width: 1px; height: 36px;
    background: linear-gradient(var(--signal), transparent);
    animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); } }

.ch-index {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.7rem;
    border-radius: 2px;
    background: var(--signal-soft);
    color: var(--signal-ink);
    font-size: 0.68rem;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

.ch-text h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    line-height: 1.05;
    margin: 1.1rem 0 0.9rem;
}
.ch-text p { color: var(--muted); font-size: 0.98rem; }
.shot {
    display: block;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.7rem;
}

.spec-kicker { color: var(--muted); font-size: 0.68rem; }
.ch-spec h3 { font-size: 1.3rem; margin: 0.5rem 0 1.25rem; }

.spec-list > div {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 1rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}
.spec-list dt {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.15rem;
}
.spec-list dd { font-weight: 600; }
.spec-list dd.tbc { color: var(--muted); font-weight: 500; font-style: italic; }

/* =========================================================
   Spec sheet
   ========================================================= */
.spec-sheet { background: var(--paper); border-top: 1px solid var(--line); }
.sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
}
.sheet-col {
    padding: 1.75rem 1.5rem 1.5rem 0;
    border-right: 1px solid var(--line);
}
.sheet-col + .sheet-col { padding-left: 1.5rem; }
.sheet-col:last-child { border-right: none; }
.sheet-num { color: var(--signal-ink); }
.sheet-col h3 { font-size: 1.4rem; margin: 0.5rem 0 1.25rem; }
.sheet-col .spec-list > div { grid-template-columns: 1fr; gap: 0.15rem; }

/* =========================================================
   CTA + Footer
   ========================================================= */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band .lede { color: rgba(251, 250, 247, 0.6); margin: 1.25rem auto 2.25rem; }
.cta-band .btn-solid { background: var(--signal); color: var(--ink); }
.cta-band .btn-solid:hover { background: var(--paper); }

.site-footer { background: var(--bone); padding: 4rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-brand p { color: var(--muted); margin: 1rem 0 1.5rem; max-width: 30ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.92rem; }
.footer-col h4 {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}
.footer-col a:hover { color: var(--signal-ink); }
.social { display: flex; gap: 0.75rem; }
.social a {
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.footer-legal {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.8rem;
    color: var(--muted);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
    .chapter { grid-template-columns: minmax(0, 320px) 1fr minmax(0, 300px); }
    .sheet-grid { grid-template-columns: repeat(2, 1fr); }
    .sheet-col:nth-child(2) { border-right: none; }
    .sheet-col:nth-child(3) { padding-left: 0; }
    .sheet-col:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
    :root { --header-h: 60px; }
    .site-nav { display: none; }

    .chapter {
        grid-template-columns: minmax(0, 1fr);
        align-content: space-between;
        align-items: start;
        gap: 1rem;
        padding: calc(var(--header-h) + 3.25rem) 16px 1.25rem;
    }
    .ch-text, .ch-spec { grid-column: 1; }
    .chapter .card { padding: 1.1rem 1.2rem; }
    .ch-text h2 { font-size: 1.45rem; margin: 0.7rem 0 0.5rem; }
    .ch-text p { font-size: 0.9rem; }
    .ch-index { display: none; }
    .shot { margin-top: 0.75rem; padding-top: 0.6rem; }
    .ch-spec h3 { font-size: 1.05rem; margin: 0.3rem 0 0.6rem; }
    .spec-list > div { grid-template-columns: 6.5rem 1fr; padding: 0.4rem 0; font-size: 0.8rem; }
    .ch-spec .spec-list > div:nth-child(n+3) { display: none; }

    .chapter-intro { align-content: start; }
    .chapter-intro .ch-text { padding-top: 1rem; }

    .pov-frame { width: 150px; left: auto; right: 16px; transform: none; bottom: auto; top: 46%; }
    .pov-top span:last-child, .pov-bottom span:first-child { display: none; }
    .stage-indicator { top: calc(var(--header-h) + 12px); gap: 0.6rem; }
    .si-ticks i { width: 12px; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
    .sheet-grid { grid-template-columns: 1fr; }
    .sheet-col, .sheet-col + .sheet-col { padding: 1.5rem 0; border-right: none; border-top: 1px solid var(--line); }
    .sheet-col:first-child { border-top: none; }
    .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue::before, .pov-rec i { animation: none; }
}

/* Part tag flips left near the right edge */
.part-tag.flip::after { transform: rotate(-145deg); }
.part-tag.flip span { left: auto; right: 38px; }

/* POV inset fades in once the drone is flying */
.pov-frame { transition: opacity 0.4s ease; }
@media (max-width: 860px) {
    body[data-state="intro"] .pov-frame { opacity: 0; }
}

/* =========================================================
   Mobile menu (shared)
   ========================================================= */
.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    position: relative;
}
.menu-btn span {
    position: absolute;
    left: 12px; right: 12px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s ease, top 0.3s ease;
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }
.menu-open .menu-btn span:first-child { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    background: var(--bone);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 2rem var(--gutter);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu a {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 2rem;
    letter-spacing: -0.02em;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}
.mobile-menu a.is-active { color: var(--signal); }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }

@media (max-width: 860px) {
    .menu-btn { display: inline-block; }
}

/* =========================================================
   Tech page — modes, voice bubble, candidate angles
   ========================================================= */
.stage-modes {
    position: absolute;
    top: calc(var(--header-h) + 16px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 6px;
    background: rgba(251, 250, 247, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
}
.stage-modes button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 0.95rem 0.45rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    min-height: 40px;
    transition: background 0.3s ease, color 0.3s ease;
}
.stage-modes button { border-radius: 4px; }
.stage-modes button:hover { color: var(--ink); }
.stage-modes button.is-active { background: var(--ink); color: var(--paper); }
.stage-modes .ticks { display: flex; gap: 3px; }
.stage-modes .ticks b {
    width: 12px;
    height: 2px;
    background: currentColor;
    opacity: 0.25;
    transition: opacity 0.3s ease, background 0.3s ease;
}
.stage-modes .ticks b.on { opacity: 1; background: var(--signal); }

.stage-chapter {
    position: absolute;
    top: calc(var(--header-h) + 74px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--signal-ink);
    white-space: nowrap;
}

.mode-tag {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 0.8rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

/* Voice bubble */
.voice-bubble {
    position: absolute;
    left: 0; top: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem 0.55rem 0.75rem;
    border-radius: 999px 999px 999px 6px;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: transform;
}
.voice-bubble.show { opacity: 1; }
.voice-bubble svg { color: var(--signal); flex: none; }
.vb-wave { display: inline-flex; align-items: center; gap: 2px; height: 16px; }
.vb-wave i { width: 3px; height: 4px; border-radius: 2px; background: var(--signal); }
.voice-bubble.speaking .vb-wave i { animation: wave 0.9s ease-in-out infinite; }
.voice-bubble.speaking .vb-wave i:nth-child(2) { animation-delay: 0.12s; }
.voice-bubble.speaking .vb-wave i:nth-child(3) { animation-delay: 0.24s; }
.voice-bubble.speaking .vb-wave i:nth-child(4) { animation-delay: 0.36s; }
.voice-bubble.speaking .vb-wave i:nth-child(5) { animation-delay: 0.48s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 16px; } }

/* Candidate angles */
.cands { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.cand {
    position: absolute;
    left: 0; top: 0;
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.55rem;
    border-radius: 6px;
    background: rgba(251, 250, 247, 0.9);
    border: 1px solid var(--line-strong);
    color: var(--muted);
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -150%);
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cand.show { opacity: 1; }
.cand.checked { color: var(--ink); }
.cand.best { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* Voice command list */
.cmd-list { list-style: none; counter-reset: cmd; }
.cmd-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0.75rem;
    margin: 0 -0.75rem;
    border-top: 1px solid var(--line);
    border-radius: 10px;
    transition: background 0.3s ease;
}
.cmd-list li b { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--muted); }
.cmd-list li span { font-size: 0.82rem; color: var(--muted); text-align: right; }
.cmd-list li.is-active { background: var(--ink); border-top-color: transparent; }
.cmd-list li.is-active b { color: var(--signal); }
.cmd-list li.is-active span { color: var(--paper); }
.cmd-list li.is-active + li { border-top-color: transparent; }

/* POV: hidden until take-off, red outline while recording */
body[data-state="intro"] .pov-frame { opacity: 0; }
.pov-frame.recording { outline: 2px solid var(--signal); }
.pov-frame.recording .pov-rec { color: var(--signal); font-weight: 600; }

@media (max-width: 860px) {
    .stage-modes { top: calc(var(--header-h) + 10px); }
    .stage-modes button { padding: 0.4rem 0.7rem 0.35rem; font-size: 0.6rem; }
    .stage-modes .ticks b { width: 8px; }
    .stage-chapter { display: none; }
    .chapter { padding-top: calc(var(--header-h) + 4.25rem); }
    .mode-tag { padding-bottom: 0.5rem; margin-bottom: 0.6rem; font-size: 0.62rem; }
    .cmd-list li { padding: 0.35rem 0.75rem; }
    .cmd-list li span { display: none; }
    .cmd-list li b { font-size: 0.85rem; }
    .voice-bubble { font-size: 0.8rem; }
}

/* Phones: compact cards so the 3D scene has room */
@media (max-width: 860px) {
    .chapter .mode-tag, .chapter .shot { display: none; }
    .ch-text .chip { margin-bottom: 0; }
    .ch-spec .cmd-list + * { display: none; }
    .ch-spec:has(.cmd-list) h3 { display: none; }
}
@media (max-width: 600px) {
    .pov-frame { display: none; }
}

/* =========================================================
   v3 shared: claim status labels (Demonstrated · In development · Target · Planned)
   ========================================================= */
.status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--f-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
    padding: 0.38rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: 2px;
}
.status::before { content: ""; width: 6px; height: 6px; flex: none; }
.status-demo, .status-done { color: #2E7D4F; }
.status-demo::before, .status-done::before { background: currentColor; }
.status-dev { color: var(--signal-ink); }
.status-dev::before { background: var(--signal); }
.status-target { color: var(--ink-2); }
.status-target::before { border: 1px solid currentColor; }
.status-planned, .status-upcoming { color: var(--muted); border-style: dashed; }
.status-planned::before, .status-upcoming::before { border: 1px dashed currentColor; border-radius: 50%; }

/* Header: menu touch target, focus */
.menu-btn { border-radius: 4px; }
.mobile-menu a { font-weight: 640; font-stretch: 92%; }

/* Tech page v3 refinements: claim labelling, card weight */
.concept-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.25rem; font-size: 0.85rem; color: var(--muted); }
.sheet-note { margin-top: 1.25rem; max-width: 62ch; color: var(--muted); }
.sheet-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--signal); }
.tbc-key { font-style: italic; }
.page-tech .card { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(251, 250, 247, 0.86); box-shadow: 0 24px 48px -36px rgba(20, 22, 26, 0.35); }
.page-tech .ch-text h2 { font-stretch: 90%; font-weight: 640; letter-spacing: -0.025em; }
.spec-list dd.tbc::after { content: " · planned"; font-family: var(--f-mono); font-style: normal; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 860px) { .concept-note { display: none; } }
