html, body { background: #0a0a0a; }

:root {
  --bg: #0a0a0a; --fg: #f2f1ec; --fg-80: rgba(242,241,236,.8); --fg-60: rgba(242,241,236,.6);
  --fg-40: rgba(242,241,236,.4); --line: rgba(242,241,236,.12); --amber: #f5a524; --danger: #e5484d;
  --pad: clamp(20px, 4vw, 64px);
  --nav: 64px;
  --surface: rgba(242,241,236,.04);
  --ease: cubic-bezier(.22,1,.36,1);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body { color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; position: relative; }
::selection { background: var(--amber); color: #0a0a0a; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: #0a0a0a; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.skip:focus { top: 12px; }

.mono { font-family: var(--mono); font-size: 11px; line-height: 1.3; text-transform: uppercase; letter-spacing: .18em; font-weight: 500; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 10px; vertical-align: 1px; }
.eyebrow { color: var(--fg-60); margin-bottom: 28px; }

/* ---------- global layers ---------- */
.grain { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#swarm { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .9s; display: block; }
#swarm.ready { opacity: var(--swarm-op, 1); }

#loader { position: fixed; inset: 0; z-index: 60; background: #0a0a0a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--fg);
  transition: opacity .7s var(--ease), visibility .7s; animation: loaderFail .6s 3.6s forwards; }
#loader .mono { color: var(--fg-40); }
#loader.hide { opacity: 0; visibility: hidden; }
.loader-mark { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes loaderFail { to { opacity: 0; visibility: hidden; } }

/* sections: transparent, content layered above the canvas */
.sec, .hero { position: relative; min-height: 100vh; padding: clamp(96px, 14vh, 150px) var(--pad); }
.inner { position: relative; z-index: 3; max-width: 1680px; margin-inline: auto; }
.sec + .sec { border-top: 1px solid var(--line); }
.col-text { max-width: min(54%, 720px); }
.col-text > * + * { margin-top: 22px; }

/* ---------- type ---------- */
.display { font-weight: 800; font-stretch: 70%; text-transform: uppercase; letter-spacing: -.015em; line-height: .92; font-size: clamp(44px, 7vw, 112px); }
.display.sm { font-size: clamp(36px, 4.4vw, 68px); }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--fg); font-weight: 400; max-width: 40rem; }
.col-text p:not(.lead):not(.mono) { color: var(--fg-80); max-width: 38rem; }
.display + .lead { margin-top: 30px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav); z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(10,10,10,.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 75%; letter-spacing: .08em; font-size: 20px; justify-self: start; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 38px); }
.nav-links a { font-size: 14px; color: var(--fg-60); transition: color .25s; position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--fg); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--fg); transform-origin: left; transform: scaleX(0); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); background: rgba(242,241,236,.06); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .25s, border-color .25s; white-space: nowrap; }
.pill:hover { background: rgba(242,241,236,.12); border-color: var(--fg-40); }
.pill svg { transition: transform .25s; }
[aria-expanded="true"] > svg { transform: rotate(180deg); }
.reports { position: relative; }
.reports-menu { position: absolute; right: 0; top: calc(100% + 12px); width: 340px; max-width: calc(100vw - 2 * var(--pad)); padding: 8px; border-radius: 20px; background: rgba(16,16,16,.96); border: 1px solid var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.reports-menu[hidden] { display: none; }
.rm-item { display: block; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; transition: background .2s; }
.rm-item:hover, .rm-item:focus-visible { background: rgba(242,241,236,.07); }
.rm-item b { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.rm-item span.rm-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--fg-40); }
.chip-current { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(245,165,36,.5); padding: 3px 8px; border-radius: 999px; font-weight: 500; }
.burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--fg); transition: transform .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.overlay { position: fixed; inset: 0; z-index: 39; background: rgba(10,10,10,.97); padding: calc(var(--nav) + 40px) var(--pad) 40px; display: flex; flex-direction: column; justify-content: flex-start; }
.overlay[hidden] { display: none; }
.overlay nav { display: flex; flex-direction: column; }
.overlay a { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: clamp(34px, 11vw, 56px); font-weight: 800; font-stretch: 70%; text-transform: uppercase; line-height: 1; }
.overlay a .mono { color: var(--fg-40); }
body.menu-open, body.dialog-open { overflow: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: transform .3s var(--ease), background .25s, border-color .25s; white-space: nowrap; }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--amber); color: #0a0a0a; }
.btn-primary:hover { transform: translateY(-1px); background: #ffb62f; }
.btn-ghost { border: 1px solid var(--line); background: rgba(242,241,236,.05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--fg-40); background: rgba(242,241,236,.1); }
.report-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.report-btns .btn { height: 44px; }
.report-btns .chip-current { margin-left: 4px; }

/* ---------- reveals (fail-safe: only when JS sets .reveal-on) ---------- */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }
.reveal-on body:not(.loaded) [data-hero] { opacity: 0; }
.reveal-on [data-hero] { transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal-on body.loaded [data-hero] { animation: heroIn 1s var(--ease) var(--d, 0s) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100svh; padding-bottom: clamp(32px, 6vh, 64px); overflow: hidden; }
.mega { position: absolute; left: 50%; transform: translateX(-50%); z-index: 1; font-weight: 800; font-stretch: 62%; text-transform: uppercase; line-height: .78; letter-spacing: -.02em; white-space: nowrap; font-size: 34vw; color: rgba(242,241,236,.09); pointer-events: none; user-select: none; top: 13%; }
.hero-labels { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); top: calc(var(--nav) + 28px); display: flex; justify-content: space-between; color: var(--fg-40); }
.hero-labels span:last-child { text-align: right; }
.hero-inner { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero h1 { font-weight: 800; font-stretch: 72%; text-transform: uppercase; letter-spacing: -.015em; line-height: .9; font-size: clamp(40px, 5.4vw, 88px); }
.hero-sub { margin-top: 22px; max-width: 30rem; color: var(--fg-80); font-size: clamp(15px, 1.3vw, 18px); }
.tr-title { margin-top: 16px; max-width: 34rem; color: var(--fg-40); letter-spacing: .1em; font-size: 10.5px; line-height: 1.6; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; flex-shrink: 0; }
#drone-fallback { display: none; position: absolute; z-index: 2; left: 50%; top: 46%; width: min(52vw, 620px); transform: translate(-50%, -50%); color: var(--fg); }
.no-webgl #drone-fallback { display: block; }

/* ---------- intro ---------- */
.intro { display: flex; align-items: center; }
.wordreveal { font-weight: 500; font-stretch: 85%; font-size: clamp(28px, 3.9vw, 62px); line-height: 1.12; letter-spacing: -.02em; max-width: min(60%, 960px); }
.reveal-on .wordreveal .w { opacity: .16; transition: opacity .35s linear; }
.reveal-on .wordreveal .w.lit { opacity: 1; }
.note { margin-top: 48px; max-width: 30rem; padding-top: 20px; border-top: 1px solid var(--line); color: var(--fg-80); }
.note-label { color: var(--fg-60); margin-bottom: 10px; }

/* ---------- current ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.split .col-text { max-width: 560px; }
.cmap { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 28px; background: rgba(10,10,10,.4); }
.cmap-top { display: flex; justify-content: space-between; color: var(--fg-40); margin-bottom: 16px; }
.cmap-regions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.creg { position: relative; border: 1px solid var(--line); border-radius: 16px; min-height: 240px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .5s; }
.creg-h { display: flex; justify-content: space-between; padding: 14px 16px 0; color: var(--fg-60); }
.pri { color: var(--fg-40); transition: color .4s; }
.pri.up { color: var(--amber); }
.creg-b { flex: 1; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 24px 12px; }
.dv { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--fg-60); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; transition: opacity .5s, transform .6s var(--ease), border-color .4s; }
.dv.gone { opacity: 0; transform: translateY(30px) scale(.7); }
.dv[hidden] { display: none; }
.dv-base { margin-left: 10px; border-color: var(--fg-40); color: var(--fg-60); }
.uncovered { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, rgba(229,72,77,.22) 0 7px, transparent 7px 16px); color: var(--danger); opacity: 0; transition: opacity .5s; pointer-events: none; }
.uncovered span { background: #0a0a0a; border: 1px solid var(--danger); padding: 8px 14px; border-radius: 999px; }
.creg.is-uncovered, .sreg.is-uncovered { border-color: var(--danger); }
.is-uncovered > .uncovered { display: flex; opacity: 1; }
.cmap-base { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 12px 16px; min-height: 64px; border: 1px dashed var(--line); border-radius: 14px; color: var(--fg-40); }
.cmap-cap { margin-top: 18px; font-size: 15px; color: var(--fg-80); min-height: 3.2em; }
.cmap-steps { display: flex; gap: 8px; margin-top: 8px; }
.step { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--fg-60); transition: all .25s; }
.step[aria-pressed="true"] { background: var(--fg); color: #0a0a0a; border-color: var(--fg); }

/* ---------- proposed ---------- */
.proposed .col-text { max-width: min(54%, 740px); }
.points { display: grid; gap: 0; margin-top: 36px; }
.points li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--fg-80); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points .mono { color: var(--amber); padding-top: 4px; }
.points b { color: var(--fg); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.stats dt { color: var(--fg-40); order: 2; margin-top: 8px; font-size: 10px; letter-spacing: .14em; }
.stats > div { display: flex; flex-direction: column; }
.stats dd { order: 1; font-weight: 300; font-stretch: 80%; font-size: clamp(48px, 5.6vw, 92px); line-height: .95; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.scope { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; margin-top: 40px; padding: 22px 0 0; border-top: 1px solid var(--line); }
.scope p:not(.mono) { color: var(--fg-80); font-size: 15px; }
.scope-h { color: var(--fg-60); margin-bottom: 10px; }
.scope-h.out { color: var(--fg-60); }
.scope-h.gap { margin-top: 28px; }

/* ---------- requirements ---------- */
.reqs-head { margin-bottom: clamp(48px, 10vh, 100px); }
.chapters { max-width: min(54%, 720px); }
.chapter { position: relative; padding-bottom: 28vh; }
.chapter:last-child { padding-bottom: 14vh; }
.ch-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.ch-head > .mono:first-child { grid-column: 1 / -1; color: var(--fg-40); }
.ch-head h3 { font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 52px); line-height: .95; letter-spacing: -.01em; }
.ch-drone { color: var(--fg-40); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; transition: color .4s, border-color .4s; }
.chapter.active .ch-drone { color: var(--amber); border-color: rgba(245,165,36,.6); }
.fr { position: sticky; top: calc(var(--nav) + 18px + var(--i) * 22px); margin-bottom: 14px; padding: 22px 24px 20px; border-radius: 22px; background: #121211; border: 1px solid var(--line); box-shadow: 0 -8px 18px rgba(0,0,0,.35); }
.fr-id { color: var(--amber); display: block; margin-bottom: 10px; }
.fr h4 { font-size: 22px; font-weight: 600; font-stretch: 90%; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 8px; }
.fr p { color: var(--fg-80); font-size: 15px; max-width: 34rem; }
.tags { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.tags li { color: var(--fg-60); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 10px; }

/* ---------- quality ---------- */
.quality { padding-top: clamp(220px, 34vh, 360px); padding-bottom: clamp(80px, 12vh, 140px); }
.nfr { margin-top: 56px; border-top: 1px solid var(--line); }
.nfr li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.nfr-id { color: var(--fg-40); }
.nfr-req { font-weight: 500; font-size: 17px; line-height: 1.35; }
.nfr-chk { color: var(--fg-60); font-size: 14.5px; }
.marquee { position: relative; z-index: 3; overflow: hidden; margin: clamp(56px, 10vh, 110px) 0; padding: 32px 0; border-block: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.mq-set { display: flex; align-items: center; flex-shrink: 0; }
.mq-set > span { font-weight: 800; font-stretch: 70%; text-transform: uppercase; font-size: clamp(48px, 8vw, 120px); line-height: 1; letter-spacing: -.01em; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 18px; padding: 0 clamp(20px, 4vw, 56px); }
.mq-set em { font-style: normal; color: var(--fg-40); font-size: 11px; }
.mq-set em.cand { color: var(--amber); }
.mq-sep { width: 10px; height: 10px; border: 1px solid var(--fg-40); transform: rotate(45deg); flex-shrink: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.open-items { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); max-width: 1100px; }
.open-items p:not(.mono) { color: var(--fg-80); font-size: 15px; max-width: 34rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--fg-80); font-size: 10.5px; background: var(--surface); }
.chips.big li { padding: 12px 20px; font-size: 11.5px; }

/* ---------- scenarios (pinned) ---------- */
.scen { padding: 0 var(--pad); }
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 72px); padding: calc(var(--nav) + 16px) 0 24px; align-items: center; }
.pin-on .scen { height: 560vh; }
.pin-on .scen .inner { height: 100%; }
.pin-on .stage { position: sticky; top: var(--stage-top, 0px); min-height: 100vh; min-height: 100svh; }
.stage-left { min-width: 0; display: flex; flex-direction: column; }
.stage-left .eyebrow { margin-bottom: 14px; }
.stage-left .display { margin-bottom: 22px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tabs button { display: flex; align-items: center; gap: 10px; text-align: left; padding: 9px 12px; border-radius: 12px; font-size: 14px; color: var(--fg-60); border: 1px solid transparent; transition: all .25s; min-height: 40px; }
.tabs button .mono { color: var(--fg-40); transition: color .25s; }
.tabs button:hover { color: var(--fg); background: rgba(242,241,236,.05); }
.tabs button[aria-selected="true"] { color: var(--fg); border-color: var(--line); background: rgba(242,241,236,.08); }
.tabs button[aria-selected="true"] .mono { color: var(--amber); }
.cases { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); min-height: 210px; }
.scase h3 { font-size: 20px; font-weight: 600; font-stretch: 90%; margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; }
.scase h3 .mono { color: var(--amber); }
.scase p { display: grid; grid-template-columns: 64px 1fr; gap: 10px; font-size: 14.5px; color: var(--fg-80); margin-top: 8px; line-height: 1.5; }
.scase p b { color: var(--fg-40); padding-top: 3px; }
.reveal-on .scase:not(.active) { display: none; }
.pin-on .scase { animation: caseIn .5s var(--ease); }
@keyframes caseIn { from { opacity: 0; transform: translateY(8px); } }

.stage-right { min-width: 0; }
.smap { padding: 16px; border: 1px solid var(--line); border-radius: 26px; background: transparent; display: flex; flex-direction: column; gap: 10px; }
.smap-top { display: flex; align-items: center; gap: 16px; color: var(--fg-60); }
.smap-top #smap-id { color: var(--amber); }
.smap-state { margin-right: auto; color: var(--fg-40); }
.replay { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--fg-60); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; transition: all .2s; }
.replay:hover { color: var(--fg); border-color: var(--fg-40); }
.smap-regions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sreg { position: relative; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .4s; display: flex; flex-direction: column; }
.sreg-h { display: flex; justify-content: space-between; padding: 12px 14px 0; color: var(--fg-60); }
.sreg-b { flex: 1; min-height: clamp(120px, 20vh, 190px); position: relative; margin: 8px 14px; }
.sreg-f { padding: 0 14px 12px; color: var(--fg-80); display: flex; justify-content: flex-start; min-height: 1.3em; }
.cells { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; opacity: .9; }
.cells i { border: 1px solid rgba(242,241,236,.07); border-radius: 3px; transition: background .3s, border-color .3s; }
.cells i.seen { background: rgba(242,241,236,.14); border-color: rgba(242,241,236,.25); }
.cells i.again { background: rgba(245,165,36,.45); border-color: var(--amber); }
.sbase { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border: 1px dashed var(--line); border-radius: 14px; padding: 8px 14px; }
.sbase-b { min-height: clamp(44px, 7vh, 68px); }
.sbase-f { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; color: var(--fg-40); }
.sbase-f span:last-child { color: var(--fg-80); }
.fleet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fv { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "id state pct" "bat bat bat"; gap: 6px 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color .3s, opacity .3s; }
.fv-id { grid-area: id; } .fv-state { grid-area: state; color: var(--fg-60); font-size: 9.5px; letter-spacing: .12em; } .fv-pct { grid-area: pct; color: var(--fg-60); font-size: 10px; }
.bat { grid-area: bat; position: relative; height: 3px; background: var(--line); border-radius: 2px; }
.bat i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--fg-80); border-radius: 2px; width: 50%; transition: width .8s var(--ease), background .3s; }
.bat u { position: absolute; left: 20%; top: -3px; bottom: -3px; width: 1px; background: var(--amber); }
.fv[data-st="Returning"] { border-color: rgba(245,165,36,.6); }
.fv[data-st="Returning"] .fv-state { color: var(--amber); }
.fv[data-st="AtBase"] { opacity: .55; }
.cmd { display: flex; gap: 10px; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; text-transform: none; letter-spacing: .02em; font-size: 13px; background: rgba(0,0,0,.35); }
.cmd .prompt { color: var(--amber); }
.caret { width: 7px; height: 14px; background: var(--fg); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.res { text-transform: none; letter-spacing: .02em; font-size: 12.5px; line-height: 1.5; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); color: var(--fg-80); min-height: 44px; transition: border-color .3s, color .3s; }
.res[data-kind="ok"] { color: var(--fg); border-color: rgba(242,241,236,.3); }
.res[data-kind="warn"] { color: var(--amber); border-color: rgba(245,165,36,.55); }
.res[data-kind="err"] { color: var(--danger); border-color: rgba(229,72,77,.6); }
.slog { display: flex; flex-direction: column; gap: 4px; min-height: 3.6em; color: var(--fg-40); text-transform: none; letter-spacing: .04em; font-size: 11.5px; }
.slog li::before { content: "> "; color: var(--fg-40); }
.slog li:last-child { color: var(--fg-80); }
.smap-note { color: var(--fg-40); font-size: 9.5px; letter-spacing: .12em; }

/* ---------- team ---------- */
.team { padding-bottom: 0; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.team-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(24px, 4vw, 72px); margin-top: 24px; }
.people { display: flex; flex-direction: column; gap: 4px; }
.people li { font-weight: 800; font-stretch: 72%; text-transform: uppercase; font-size: clamp(32px, 4vw, 64px); line-height: 1; letter-spacing: -.01em; }
.people.sm li { font-size: clamp(20px, 2vw, 30px); font-weight: 600; font-stretch: 85%; line-height: 1.25; }
.colophon { margin-top: 64px; color: var(--fg-40); line-height: 1.8; max-width: 52rem; }
.mega-foot { position: relative; left: auto; top: auto; transform: none; display: block; text-align: center; margin: clamp(40px, 8vh, 90px) 0 0; font-size: 36.5vw; line-height: .72; color: rgba(242,241,236,.1); height: 26vw; overflow: hidden; width: 100%; }

/* ---------- dialog ---------- */
dialog#viewer { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0a0a0a; color: var(--fg); }
dialog#viewer[open] { display: flex; flex-direction: column; }
dialog#viewer::backdrop { background: #0a0a0a; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--pad); border-bottom: 1px solid var(--line); min-height: 60px; flex-wrap: wrap; }
.viewer-title { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.viewer-title .mono { color: var(--fg-40); }
.viewer-title h2 { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#viewer-frame { flex: 1; width: 100%; border: 0; background: #222; min-height: 0; }
#viewer-frame[hidden] { display: none; }
.viewer-pages { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #1a1a1a; padding: 12px 0 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.viewer-pages[hidden] { display: none; }
.vp-page { position: relative; width: calc(100% - 20px); max-width: 900px; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.vp-page canvas { display: block; width: 100%; height: 100%; }
.vp-num { position: absolute; right: 8px; bottom: 6px; font: 500 10px/1 var(--mono); letter-spacing: .1em; color: rgba(0,0,0,.45); }
.vp-status { margin: auto; padding: 24px; text-align: center; color: var(--fg-60); font: 500 11px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.vp-status a { color: var(--amber); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .col-text, .proposed .col-text, .chapters, .wordreveal { max-width: 100%; }
  .wordreveal { max-width: 100%; }
  .split { grid-template-columns: 1fr; }
  .split .col-text { max-width: 640px; }
  .stage { grid-template-columns: 1fr; gap: 12px; align-content: start; }
  .stage-left .display { display: none; }
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cases { margin-top: 10px; padding-top: 12px; min-height: 0; }
  .scase p { font-size: 13.5px; margin-top: 4px; line-height: 1.45; }
  .sreg-b { min-height: 120px; }
  .slog { display: none; }
  .nfr li { grid-template-columns: 70px 1fr; }
  .nfr-chk { grid-column: 2; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-links { grid-column: 1 / -1; }
  .report-btns { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 1024px) and (max-height: 820px) {
  .stage { padding-top: calc(var(--nav) + 8px); padding-bottom: 12px; }
  .sreg-b { min-height: 84px; }
  .smap-note { display: none; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .burger { display: block; }
}
@media (max-width: 760px) {
  :root { --nav: 58px; }
  body { font-size: 15.5px; }
  .sec, .hero { padding-top: 88px; padding-bottom: 72px; }
  .mega { font-size: 37vw; top: 14%; }
  .hero { padding-bottom: 28px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-cta { align-items: stretch; width: 100%; }
  .hero-cta .btn { justify-content: space-between; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 60px); }
  .hero-labels { display: none; }
  .tr-title { display: none; }
  .hero-sub { font-size: 15px; margin-top: 16px; }
  .display { font-size: clamp(38px, 11.6vw, 64px); }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .scope, .open-items { grid-template-columns: 1fr; }
  .cmap-regions { gap: 8px; }
  .creg { min-height: 190px; }
  .dv { width: 38px; height: 38px; }
  .fr { padding: 18px; top: calc(var(--nav) + 10px + var(--i) * 16px); }
  .chapter { padding-bottom: 18vh; }
  .quality { padding-top: 190px; }
  .nfr li { grid-template-columns: 1fr; gap: 6px; }
  .nfr-chk { grid-column: auto; }
  .pin-on .scen { height: 620vh; }
  .stage { padding-top: calc(var(--nav) + 8px); gap: 8px; }
  .stage-left .display { display: none; }
  .stage-left .eyebrow { margin-bottom: 8px; }
  .tabs { display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex-shrink: 0; padding: 8px 12px; font-size: 0; gap: 0; min-height: 36px; }
  .tabs button .mono { font-size: 11px; }
  .cases { margin-top: 8px; padding-top: 10px; min-height: 0; }
  .scase h3 { font-size: 16px; margin-bottom: 4px; }
  .scase p { grid-template-columns: 1fr; gap: 2px; font-size: 12.5px; margin-top: 4px; line-height: 1.4; }
  .scase p b { display: none; }
  .smap { padding: 10px; gap: 7px; border-radius: 18px; }
  .sreg-b { min-height: 92px; margin: 6px 10px; }
  .sbase-b { min-height: 36px; }
  .fleet { gap: 5px; }
  .fv { padding: 7px 8px; }
  .fv-state { display: none; }
  .fv { grid-template-areas: "id pct" "bat bat"; grid-template-columns: auto 1fr; }
  .fv-pct { justify-self: end; }
  .cmd { min-height: 34px; font-size: 11.5px; }
  .res { font-size: 11px; padding: 7px 10px; min-height: 36px; }
  .slog { display: none; }
  .smap-note { font-size: 8.5px; }
  .team-grid { grid-template-columns: 1fr; }
  .viewer-bar { padding: 8px 14px; }
  .viewer-actions .pill span { display: none; }
  .viewer-actions .pill { padding: 0 12px; }
  .reports-menu { position: fixed; left: var(--pad); right: var(--pad); width: auto; max-width: none; top: calc(var(--nav) + 6px); }
  .pill { padding: 0 14px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track .mq-set:nth-child(2) { display: none; }
  .caret { animation: none; }
}
