/* Velocity Zero website. Nullpoint tokens (UI/UX Brief v2.0, s.3).
   No web fonts, no images, no third-party resources. */
:root {
  --void: #0A0C10; --graphite: #161A22; --rule: #2A303C; --bone: #ECE8DF; --ash: #9AA3B2;
  --signal: #3DE0FF; --caution: #FFB020; --fault: #FF4D5E; --clear: #5BE38A;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --gut: clamp(16px, 4vw, 48px); --max: 1280px; --cut: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --team: var(--signal);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--bone); font: 400 1rem/1.6 var(--text);
  background-image: linear-gradient(rgba(42, 48, 60, .28) 1px, transparent 1px), linear-gradient(90deg, rgba(42, 48, 60, .28) 1px, transparent 1px);
  background-size: 96px 96px; overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--bone); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
canvas { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--void); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--signal); color: var(--void); padding: 10px 14px; font-weight: 600; }
.skip:focus { top: 12px; }
.noscript { padding: 16px var(--gut); background: var(--graphite); border-top: 1px solid var(--caution); color: var(--bone); }

/* ---- lettering ---- */
.glyph-row { display: flex; flex-wrap: wrap; gap: .42em .62em; }
.glyph-word { height: 1em; width: auto; display: block; overflow: visible; flex: none; }
.glyph-word path { stroke-dasharray: 1.02 1; stroke-dashoffset: 1.02; transition: stroke-dashoffset .75s var(--ease); transition-delay: calc(var(--i) * 16ms); }
.in .glyph-word path, .in.glyph-ready path, .is-static .glyph-word path { stroke-dashoffset: 0; }

/* ---- small type ---- */
.ref, .hud-label { font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.ref span { color: var(--bone); margin-left: .8em; }
.ref-live b { display: inline-block; width: 8px; height: 8px; background: var(--caution); margin-right: .8em; animation: blink 1.6s steps(2) infinite; }
[data-play="live"] .ref-live b { background: var(--clear); }
.fine { font-size: .82rem; color: var(--ash); max-width: 68ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--bone); max-width: 62ch; }
@keyframes blink { 50% { opacity: .25; } }

/* ---- buttons ---- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 48px; padding: 0 22px;
  font: 600 .82rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--bone);
  background: var(--rule); isolation: isolate; transition: color .16s, transform .16s var(--ease);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.btn::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--graphite); transition: background .16s;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.btn:hover { color: var(--signal); background: var(--signal); transform: translateY(-1px); }
.btn:focus-visible { outline: none; background: var(--signal); }
.btn:focus-visible::before { box-shadow: inset 0 0 0 2px var(--signal); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--signal); color: var(--void); }
.btn-primary::before { background: var(--signal); }
.btn-primary:hover { color: var(--void); background: var(--bone); }
.btn-primary:hover::before { background: var(--bone); }
.btn-primary:focus-visible { background: var(--bone); }
.btn-primary:focus-visible::before { box-shadow: inset 0 0 0 3px var(--void); }
[data-play="holding"] .btn-play.btn-primary, html:not([data-play]) .btn-play.btn-primary { background: var(--caution); }
[data-play="holding"] .btn-play.btn-primary::before, html:not([data-play]) .btn-play.btn-primary::before { background: var(--caution); }
.btn-xl { min-height: 64px; padding: 0 34px; font-size: 1rem; }
.chip-btn { min-height: 32px; padding: 0 12px; border: 1px solid var(--rule); font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); transition: color .16s, border-color .16s; }
.chip-btn:hover, .chip-btn[aria-pressed="true"] { color: var(--signal); border-color: var(--signal); }

/* ---- nav ---- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; }
.progress i { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(0); }
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 var(--gut); border-bottom: 1px solid transparent; transition: background .2s, border-color .2s; }
.nav.is-scrolled, .nav.is-open, .page-doc .nav { background: rgba(10, 12, 16, .92); border-bottom-color: var(--rule); }
@supports (backdrop-filter: blur(8px)) { .nav.is-scrolled, .page-doc .nav { background: rgba(10, 12, 16, .72); backdrop-filter: blur(10px); } }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); text-decoration: none; font: 600 .82rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; color: var(--signal); transition: transform .5s var(--ease); }
.brand:hover svg { transform: rotate(90deg); }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 8px 10px; color: var(--ash); text-decoration: none; font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.nav nav a:hover { color: var(--bone); }
.nav nav a[aria-current] { color: var(--signal); border-bottom-color: var(--signal); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: .72rem; }
.nav-toggle { display: none; margin-left: auto; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); font: 500 .72rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gut) 16px; background: rgba(10, 12, 16, .97); border-bottom: 1px solid var(--rule); }
  .nav.is-open nav { display: flex; }
  .nav nav a { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .82rem; }
  #audio-toggle { display: none; }
}
@media (max-width: 520px) { .nav { gap: 10px; } .brand span { display: none; } }

/* ---- hero ---- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gut) 0; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#hero-canvas.is-fallback { background: radial-gradient(ellipse 80% 40% at 50% 62%, rgba(61, 224, 255, .22), transparent 70%), linear-gradient(#0A0C10 55%, #0d1a22 62%, #0A0C10 63%); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 16, .78), rgba(10, 12, 16, .1) 62%), linear-gradient(0deg, var(--void), transparent 26%); pointer-events: none; }
.hero-inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }
.wordmark { font-size: clamp(2.4rem, 8.1vw, 7.4rem); margin: 22px 0 26px; color: var(--bone); filter: drop-shadow(0 0 22px rgba(61, 224, 255, .28)); }
.wordmark .glyph-word:last-child { color: var(--signal); }
.hero-tag { max-width: 46ch; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--bone); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hud { position: relative; max-width: var(--max); width: 100%; margin: clamp(36px, 8vh, 96px) auto 0; padding: 18px 0 44px; display: grid; grid-template-columns: auto auto 1fr; gap: clamp(18px, 4vw, 56px); align-items: end; border-top: 1px solid var(--rule); }
.hud-speed { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; }
.hud-speed .hud-label { grid-column: 1 / -1; }
.hud-num { font: 600 clamp(2.6rem, 6vw, 4.6rem)/1 var(--mono); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; color: var(--bone); }
.hud-unit { font: 500 .8rem var(--mono); color: var(--ash); letter-spacing: .1em; }
.hud-band .hud-label { display: block; margin-bottom: 8px; color: var(--signal); }
.band-switch { display: flex; gap: 6px; }
.band-switch button { width: 52px; height: 48px; border: 1px solid var(--rule); background: rgba(22, 26, 34, .8); font: 600 .9rem var(--mono); letter-spacing: .1em; transition: border-color .16s, color .16s, background .16s; }
.band-switch button:hover { border-color: var(--bone); }
.band-switch button[aria-pressed="true"] { border-color: var(--signal); color: var(--void); background: var(--signal); }
.hud-phase { max-width: 340px; justify-self: end; width: 100%; }
.meter { height: 8px; margin: 8px 0; border: 1px solid var(--rule); background: repeating-linear-gradient(90deg, transparent 0 9px, var(--rule) 9px 10px); }
.meter i { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transition: background .3s; }
.meter.is-near i { background: var(--caution); }
.hud-fine { font: .78rem/1.3 var(--mono); color: var(--ash); }
.scroll-cue { position: absolute; left: 50%; bottom: 10px; width: 48px; height: 28px; transform: translateX(-50%); display: grid; place-items: center; }
.scroll-cue span { width: 12px; height: 12px; border-right: 2px solid var(--bone); border-bottom: 2px solid var(--bone); transform: rotate(45deg); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-6px) rotate(45deg); opacity: 0; } 50% { opacity: 1; } 100% { transform: translateY(4px) rotate(45deg); opacity: 0; } }
@media (max-width: 760px) {
  .hud { grid-template-columns: 1fr 1fr; }
  .hud-phase { grid-column: 1 / -1; justify-self: start; }
  .wordmark { font-size: 13.4vw; }
  .band-switch button { width: 44px; }
}

/* ---- sections ---- */
.section { position: relative; max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: clamp(72px, 12vh, 140px) var(--gut); }
.section + .section::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: linear-gradient(90deg, var(--signal) 0 48px, var(--rule) 48px); }
.section-head { margin-bottom: clamp(28px, 5vh, 56px); }
.section-head h2, .doc h1 { font-size: clamp(1.7rem, 4.4vw, 3.4rem); margin: 16px 0 22px; line-height: 1.1; }
.sub { font: 600 .9rem var(--mono); letter-spacing: .16em; text-transform: uppercase; margin: 56px 0 18px; color: var(--bone); }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .cols-2 { grid-template-columns: 1fr; } }
.prose p + p { margin-top: 1em; }
.prose p { max-width: 66ch; color: #cfcbc2; }
.prose .lede { color: var(--bone); }
.panel { background: rgba(22, 26, 34, .86); border: 1px solid var(--rule); padding: clamp(16px, 2.4vw, 28px); }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

.twomeanings dt { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-top: 18px; }
.twomeanings dd { margin-top: 4px; font-size: 1.05rem; }
.twomeanings .fine { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--bone); }
.figures { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); margin-top: clamp(36px, 6vh, 72px); border: 1px solid var(--rule); border-right: 0; }
.figures li { padding: 18px 14px; border-right: 1px solid var(--rule); background: rgba(22, 26, 34, .6); }
.figures b { display: block; font: 600 clamp(1.5rem, 2.6vw, 2.3rem)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--signal); }
.figures span { display: block; margin-top: 8px; font-size: .78rem; line-height: 1.35; color: var(--ash); }
@media (max-width: 1000px) { .figures { grid-template-columns: repeat(4, 1fr); } .figures li { border-bottom: 1px solid var(--rule); } }
@media (max-width: 480px) { .figures { grid-template-columns: repeat(2, 1fr); } }

/* ---- lattice bench ---- */
.bench { padding: 0; overflow: hidden; }
.bench.is-denied { animation: deny .45s; }
@keyframes deny { 20%, 60% { border-color: var(--fault); transform: translateX(-3px); } 40%, 80% { transform: translateX(3px); } }
#lattice-canvas { width: 100%; height: clamp(240px, 34vw, 340px); background: linear-gradient(var(--void), #0d1218); }
.bench-read { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bench-read div { padding: 14px 18px; border-right: 1px solid var(--rule); }
.bench-read div:last-child { border-right: 0; }
.bench-read b { display: inline-block; margin-top: 6px; font: 600 1.25rem var(--mono); font-variant-numeric: tabular-nums; }
.bench-read small { margin-left: 6px; font: .72rem var(--mono); color: var(--ash); }
.bench-read .hud-label { display: block; }
.bench-ctl { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; }
.bench-ctl label { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.bench-btns { display: flex; gap: 8px; }
.bench-msg { padding: 12px 18px; border-top: 1px solid var(--rule); font: .84rem/1.5 var(--mono); color: var(--bone); min-height: 3.4em; }
.bench-msg::before { content: "> "; color: var(--signal); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, var(--signal) 0 93.3%, var(--fault) 93.3%); }
input[type="range"]::-moz-range-track { height: 6px; background: linear-gradient(90deg, var(--signal) 0 93.3%, var(--fault) 93.3%); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 28px; margin-top: -11px; background: var(--bone); border: 0; border-radius: 0; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 28px; background: var(--bone); border: 0; border-radius: 0; }
@media (max-width: 700px) { .bench-ctl { grid-template-columns: 1fr; } .bench-read { grid-template-columns: 1fr; } .bench-read div { border-right: 0; border-bottom: 1px solid var(--rule); } }
.cards-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.card { padding: 18px; border: 1px solid var(--rule); background: rgba(22, 26, 34, .6); transition: border-color .2s, transform .3s var(--ease); }
.card:hover { border-color: var(--signal); transform: translateY(-4px); }
.card h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.card p { font-size: .9rem; color: #cfcbc2; }
.card .card-game { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font: .78rem/1.45 var(--mono); color: var(--signal); }
@media (max-width: 1100px) { .cards-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-5 { grid-template-columns: 1fr; } }

/* ---- bands ---- */
.bands { display: grid; gap: 10px; }
.band-btn { position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: clamp(14px, 3vw, 40px); align-items: center; width: 100%; padding: 22px clamp(16px, 2.6vw, 30px); text-align: left; border: 1px solid var(--rule); background: rgba(22, 26, 34, .7); overflow: hidden; transition: border-color .2s; }
.band-btn:hover, .band.is-active .band-btn { border-color: var(--signal); }
.band-num { font-size: 2.4rem; color: var(--signal); }
.band-body { display: grid; gap: 4px; position: relative; }
.band-body strong { font: 600 1.3rem var(--text); }
.band-body span { color: #cfcbc2; }
.band-body em { font: normal .76rem var(--mono); color: var(--ash); letter-spacing: .04em; }
.band-speed { position: relative; text-align: right; }
.band-speed b { display: block; font: 600 clamp(1.8rem, 3.6vw, 3rem)/1 var(--mono); font-variant-numeric: tabular-nums; }
.band-speed small { font: .7rem var(--mono); color: var(--ash); letter-spacing: .08em; text-transform: uppercase; }
.streaks { position: absolute; inset: 0; pointer-events: none; opacity: .0; transition: opacity .3s; }
.band-btn:hover .streaks, .band.is-active .streaks { opacity: 1; }
.streaks i { position: absolute; left: 0; height: 1px; width: 18%; background: linear-gradient(90deg, transparent, var(--signal)); animation: streak calc(1.5s * var(--rate, 1)) linear infinite; }
.streaks i:nth-child(1) { top: 12%; } .streaks i:nth-child(2) { top: 30%; animation-delay: -.4s; width: 10%; } .streaks i:nth-child(3) { top: 47%; animation-delay: -.9s; }
.streaks i:nth-child(4) { top: 64%; animation-delay: -.2s; width: 26%; } .streaks i:nth-child(5) { top: 80%; animation-delay: -.7s; width: 12%; } .streaks i:nth-child(6) { top: 92%; animation-delay: -1.1s; }
@keyframes streak { from { transform: translateX(-120%); } to { transform: translateX(680%); } }
@media (max-width: 700px) { .band-btn { grid-template-columns: 56px 1fr; } .band-speed { grid-column: 2; text-align: left; } .band-num { font-size: 1.6rem; } }

/* ---- teams ---- */
.teams { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.team-list { display: grid; gap: 6px; }
.team-tab { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; text-align: left; border: 1px solid var(--rule); border-left: 3px solid transparent; background: rgba(22, 26, 34, .6); transition: border-color .16s, background .16s, transform .2s var(--ease); }
.team-tab .emblem { width: 32px; height: 32px; flex: none; }
.team-tab b { display: block; font-weight: 600; font-size: .95rem; }
.team-tab small { display: block; font: .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.team-tab:hover { transform: translateX(4px); border-color: var(--ash); }
.team-tab[aria-selected="true"] { border-color: var(--team); border-left-color: var(--team); background: var(--graphite); }
.team-card { border-top: 3px solid var(--team); transition: border-color .3s; }
.team-card.swap .team-head, .team-card.swap .team-text, .team-card.swap .team-craft { animation: swap .36s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } }
.team-head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.team-emblem .emblem { width: 72px; height: 72px; }
.team-head h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; margin: 4px 0; }
.team-head .ref { color: var(--team); }
.team-base { color: var(--ash); font-size: .92rem; }
.team-body { display: grid; grid-template-columns: 150px minmax(200px, 250px) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 34px); padding-top: 20px; }
.team-craft { text-align: center; }
.craft { width: 120px; height: 200px; margin: 0 auto 10px; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--team) 40%, transparent)); animation: hover 3.4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-6px); } }
.team-craftname { font-weight: 600; margin-top: 4px; }
.radar { width: 100%; max-width: 240px; display: block; margin: 0 auto; overflow: visible; }
.radar-ring { fill: none; stroke: var(--rule); stroke-width: 1; }
.radar-label { font: 8px var(--mono); fill: var(--ash); letter-spacing: .08em; }
.radar-shape { fill: color-mix(in srgb, var(--team) 26%, transparent); stroke: var(--team); stroke-width: 2; stroke-linejoin: miter; }
.radar-shape.is-withheld { stroke-dasharray: 3 4; fill: none; }
.bars { display: grid; gap: 6px; margin-top: 12px; }
.bars li { display: grid; grid-template-columns: 82px 1fr 2ch; gap: 8px; align-items: center; font: .72rem var(--mono); color: var(--ash); }
.bars i { height: 6px; background: var(--rule); }
.bars i b { display: block; height: 100%; background: var(--team); transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease); }
.bars em { font-style: normal; color: var(--bone); text-align: right; }
.bars .is-withheld i { background: repeating-linear-gradient(90deg, var(--rule) 0 6px, transparent 6px 10px); }
.team-text .hud-label { margin-top: 16px; }
.team-text .hud-label:first-child { margin-top: 0; }
.team-doctrine { font-size: 1.2rem; font-weight: 600; }
.team-text blockquote { margin-top: 12px; padding-left: 14px; border-left: 2px solid var(--team); font-size: 1.02rem; font-style: italic; }
.team-text > p:not(.hud-label) { margin-top: 6px; color: #cfcbc2; font-size: .95rem; }
.team-livery { display: flex; gap: 10px; align-items: center; }
.swatches { display: inline-flex; flex: none; border: 1px solid var(--rule); }
.swatches i { width: 18px; height: 18px; }
.team-people { margin-top: 6px; display: grid; gap: 4px; font-size: .92rem; }
.team-people span { display: inline-block; min-width: 9.5em; color: var(--ash); font: .74rem var(--mono); }
@media (max-width: 1160px) { .team-body { grid-template-columns: 150px 1fr; } .team-text { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .teams { grid-template-columns: 1fr; }
  .team-list { grid-auto-flow: column; grid-auto-columns: 200px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
  .team-tab { scroll-snap-align: start; } .team-tab:hover { transform: none; }
}
@media (max-width: 520px) { .team-body { grid-template-columns: 1fr; } }

/* ---- charges ---- */
.charges { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 16px; align-items: start; }
.charge-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.charge { display: grid; justify-items: center; gap: 6px; padding: 18px 6px 14px; border: 1px solid var(--rule); background: rgba(22, 26, 34, .6); transition: border-color .16s, color .16s, transform .2s var(--ease), background .16s; }
.charge .icon { width: 40px; height: 40px; }
.charge b { font-weight: 600; }
.charge small { font: .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.charge:hover { border-color: var(--bone); transform: translateY(-3px); }
.charge[aria-pressed="true"] { border-color: var(--signal); color: var(--signal); background: var(--graphite); }
.charge[data-id="quiet"] { border-style: dashed; }
.slot { display: flex; gap: 16px; align-items: center; }
.slot-icon { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border: 1px solid var(--rule); color: var(--signal); }
.slot-icon .icon { width: 44px; height: 44px; }
.slot-icon.pop { animation: pop .3s var(--ease); border-color: var(--signal); }
.slot-icon.spent { color: var(--rule); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.slot-name { font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.slot-note { margin-top: 14px; min-height: 3.2em; font-style: italic; color: var(--bone); }
.slot-effect { margin-top: 6px; min-height: 1.6em; font: .82rem var(--mono); color: var(--signal); }
.keel { margin-top: 16px; }
.keel-head { display: flex; justify-content: space-between; align-items: baseline; }
.keel-head b { font: 600 1.2rem var(--mono); }
.keel-head b::after { content: " %"; font-size: .7rem; color: var(--ash); }
.keel-bar { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; margin-top: 6px; }
.keel-bar i { height: 14px; background: var(--rule); transition: background .25s; }
.keel-bar i.on { background: var(--clear); }
[data-keel="caution"] .keel-bar i.on { background: var(--caution); }
[data-keel="fault"] .keel-bar i.on { background: var(--fault); }
[data-keel="caution"] .keel-head .hud-label::after { content: "  \25B2 low"; color: var(--caution); }
[data-keel="fault"] .keel-head .hud-label::after { content: "  \25A0 critical"; color: var(--fault); }
.slot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.charge-bench { position: relative; }
.charge-bench .bench-msg { margin: 16px calc(-1 * clamp(16px, 2.4vw, 28px)) calc(-1 * clamp(16px, 2.4vw, 28px)); }
.charge-bench::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.fx-fire::after { background: linear-gradient(90deg, transparent, rgba(255, 176, 32, .18)); animation: fx .45s var(--ease); }
.fx-convert::after { background: linear-gradient(0deg, rgba(91, 227, 138, .16), transparent); animation: fx .6s var(--ease); }
@keyframes fx { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 960px) { .charges { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .charge-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- venues ---- */
.venue-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.venue-tab { display: grid; gap: 2px; padding: 12px 14px; text-align: left; border: 1px solid var(--rule); background: rgba(22, 26, 34, .6); transition: border-color .16s, color .16s; }
.venue-tab small { font: .66rem var(--mono); color: var(--ash); letter-spacing: .12em; }
.venue-tab b { font-weight: 600; font-size: .95rem; }
.venue-tab:hover { border-color: var(--ash); }
.venue-tab[aria-selected="true"] { border-color: var(--signal); color: var(--signal); background: var(--graphite); }
.venue-stage { padding: 0; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }
#venue-canvas { width: 100%; height: 100%; min-height: clamp(260px, 36vw, 460px); }
.venue-info { padding: clamp(18px, 2.6vw, 30px); border-left: 1px solid var(--rule); display: flex; flex-direction: column; gap: 12px; }
.venue-info h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.venue-status { font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--clear); }
.venue-status::before { content: "\25CF  "; }
.venue-status.is-closed { color: var(--caution); }
.venue-status.is-closed::before { content: "\25B2  "; }
.venue-info dl { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .9rem; }
.venue-info dt { font: .7rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
@media (max-width: 900px) { .venue-tabs { grid-template-columns: repeat(3, 1fr); } .venue-stage { grid-template-columns: 1fr; } .venue-info { border-left: 0; border-top: 1px solid var(--rule); } }
@media (max-width: 480px) { .venue-tabs { grid-template-columns: repeat(2, 1fr); } }

/* ---- season ---- */
.acts { display: grid; gap: 0; border-left: 1px solid var(--rule); }
.act { position: relative; padding: 0 0 30px 26px; }
.act::before { content: ""; position: absolute; left: -5px; top: 4px; width: 9px; height: 9px; background: var(--void); border: 2px solid var(--signal); }
.act h3 { font-size: 1.5rem; margin: 2px 0 6px; }
.act p { max-width: 58ch; color: #cfcbc2; }
.redact { margin-top: 8px; }
.redact span { background: var(--bone); color: transparent; user-select: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 1px 0; opacity: .82; }
.notice header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.notice-from, .notice-ref { font: .8rem/1.6 var(--mono); color: var(--ash); }
.notice-from { margin-top: 14px; }
.notice-text { margin-top: 12px; font-size: 1.06rem; min-height: 7.5em; }
.contracts { margin: 12px 0 20px; }
.contracts p:not(.ref) { margin: 8px 0; color: #cfcbc2; font-size: .95rem; }
.contracts li { padding: 8px 0; border-top: 1px solid var(--rule); font: .84rem var(--mono); }
.contracts li::before { content: "\25A1  "; color: var(--signal); }
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mode { padding: 18px; border: 1px solid var(--rule); background: rgba(22, 26, 34, .6); transition: border-color .2s; }
.mode:hover { border-color: var(--signal); }
.mode h4 { font-size: 1.1rem; margin: 8px 0 6px; }
.mode p:last-child { font-size: .9rem; color: #cfcbc2; }
@media (max-width: 1000px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }

/* ---- controls ---- */
.controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.keys { display: grid; gap: 8px; }
.key-row { display: flex; gap: 8px; }
.key { width: 84px; height: 72px; padding: 10px; border: 1px solid var(--rule); background: var(--void); display: flex; flex-direction: column; justify-content: space-between; transition: background .08s, border-color .08s, transform .08s, color .08s; }
.key b { font: 600 .95rem var(--mono); }
.key small { font: .6rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.key-shift { width: 130px; } .key-space { width: 130px; }
.key.on { background: var(--signal); border-color: var(--signal); color: var(--void); transform: translateY(2px); }
.key.on small { color: var(--void); }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); }
.ctl-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: rgba(22, 26, 34, .6); }
.ctl-table th, .ctl-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rule); }
.ctl-table thead th { font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ash); }
.ctl-table tbody th { font-weight: 600; white-space: nowrap; }
.ctl-table tr:last-child > * { border-bottom: 0; }
.assist, .promises { display: grid; gap: 10px; }
.assist { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; }
.assist li, .promises li { padding: 16px 18px; border: 1px solid var(--rule); background: rgba(22, 26, 34, .6); font-size: .92rem; color: #cfcbc2; }
.assist b, .promises b { display: block; margin-bottom: 4px; color: var(--bone); font-size: 1rem; }
@media (max-width: 900px) { .controls { grid-template-columns: 1fr; } .keys { display: none; } .assist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .assist { grid-template-columns: 1fr; } }

/* ---- induction ---- */
.licence-card { display: flex; gap: 18px; align-items: center; margin: 16px 0; padding: 18px; border: 1px solid var(--rule); border-left: 3px solid var(--team); background: var(--void); }
.licence-card.stamp { animation: stamp .35s var(--ease); }
@keyframes stamp { from { transform: scale(1.03); border-color: var(--signal); } }
.licence-emblem .emblem { width: 60px; height: 60px; display: block; }
.callsign { font: 600 clamp(1.3rem, 3vw, 2rem)/1.2 var(--mono); letter-spacing: .04em; }
.licence-meta { font: .72rem var(--mono); color: var(--ash); margin-top: 4px; }
.licence .btn, .lights .btn { margin-top: 16px; }
.lights-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0; }
.lights-bar i { height: 44px; border: 1px solid var(--rule); background: var(--void); transition: background .08s, box-shadow .08s; }
.lights-bar i.on { background: var(--caution); border-color: var(--caution); box-shadow: 0 0 22px rgba(255, 176, 32, .5); }
.lights-bar i.fault { background: var(--fault); border-color: var(--fault); }
.lights-bar.out i { border-color: var(--clear); }
.lights-read { font: 1rem/1.5 var(--mono); min-height: 3em; }
.btn-hold { width: 100%; min-height: 64px; touch-action: none; user-select: none; -webkit-user-select: none; }
.btn-hold.is-held { background: var(--caution); color: var(--caution); }

/* ---- play ---- */
.section-play { text-align: left; }
.play-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; }
.play-status { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; border-top: 3px solid var(--caution); }
[data-play="live"] .play-status { border-top-color: var(--clear); }
.play-state { font: 600 clamp(1.6rem, 3.6vw, 2.6rem)/1.1 var(--mono); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.promises { grid-template-columns: 1fr 1fr; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 12px; border: 1px solid var(--rule); }
.platforms li { padding: 18px; border-right: 1px solid var(--rule); color: var(--ash); font-size: .9rem; }
.platforms li:last-child { border-right: 0; }
.platforms b { display: block; margin: 6px 0 2px; font-size: 1.15rem; color: var(--bone); }
.platforms .is-first { background: rgba(61, 224, 255, .07); }
.platforms .is-first .hud-label { color: var(--signal); }
@media (max-width: 900px) { .play-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .promises, .platforms { grid-template-columns: 1fr; } .platforms li { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* ---- broadcast ---- */
.broadcast { display: grid; gap: 14px; justify-items: start; }
.eq { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 90px; }
.eq i { flex: 1; height: 100%; background: var(--signal); transform-origin: 50% 100%; transform: scaleY(calc(var(--h) * .3)); opacity: .8; animation: eq calc(.7s + var(--h) * .9s) ease-in-out calc(var(--i) * -90ms) infinite alternate; }
@keyframes eq { to { transform: scaleY(var(--h)); } }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--rule); padding: 40px var(--gut) 56px; display: grid; gap: 10px; background: var(--void); }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; margin-bottom: 12px; }
.footer nav, .footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a, .footer-links a { font: .76rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); text-decoration: none; }
.footer nav a:hover, .footer-links a:hover { color: var(--signal); }
.speedo { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--rule); background: rgba(10, 12, 16, .85); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
.speedo .hud-label { grid-column: 1 / -1; font-size: .58rem; }
.speedo b { font: 600 1.2rem var(--mono); font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; color: var(--signal); }
.speedo small { font: .62rem var(--mono); color: var(--ash); }
.speedo.is-moving { opacity: 1; transform: none; }
@media (max-width: 760px), (pointer: coarse) { .speedo { display: none; } }

/* ---- document pages (archive, privacy, errors) ---- */
.doc { max-width: calc(var(--max) + var(--gut) * 2); margin: 0 auto; padding: 120px var(--gut) 80px; min-height: 80vh; }
.doc-narrow { max-width: 860px; }
.doc-narrow h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.doc-narrow p, .doc-narrow li { color: #d6d2c9; max-width: 68ch; }
.doc-narrow p + p { margin-top: .8em; }
.doc-narrow ul { list-style: square; padding-left: 1.2em; display: grid; gap: 6px; }
.doc-narrow ul li::marker { color: var(--signal); }

.arc-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 24px; align-items: end; margin-bottom: 28px; }
.arc-search label { display: block; margin-bottom: 6px; }
.arc-search input { width: 100%; min-height: 48px; padding: 0 14px; background: var(--graphite); border: 1px solid var(--rule); color: var(--bone); font: 1rem var(--mono); border-radius: 0; }
.arc-search input:focus-visible { outline: 2px solid var(--signal); outline-offset: 0; }
.arc-search input::placeholder { color: var(--ash); }
.timeline { position: relative; margin-bottom: 20px; padding: 16px 20px 12px; overflow-x: auto; }
.tl-track { position: relative; min-width: 860px; height: 86px; }
.tl-track::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--rule); }
.tl-fill { position: absolute; left: 0; top: 29px; height: 3px; background: var(--signal); width: 0; transition: width .5s var(--ease); }
.tl-dot { position: absolute; top: 0; width: 48px; height: 86px; margin-left: -24px; display: grid; grid-template-rows: 20px 22px auto; justify-items: center; align-items: center; color: var(--ash); }
.tl-dot i { width: 11px; height: 11px; background: var(--void); border: 2px solid var(--ash); transform: rotate(45deg); transition: background .16s, border-color .16s, transform .2s var(--ease); }
.tl-dot span { font: .68rem var(--mono); letter-spacing: .06em; }
.tl-dot:nth-child(even) span { align-self: end; grid-row: 3; }
.tl-dot:nth-child(odd) span { grid-row: 1; }
.tl-dot i { grid-row: 2; }
.tl-dot:hover i { border-color: var(--bone); transform: rotate(45deg) scale(1.3); }
.tl-dot[aria-current="true"] { color: var(--signal); }
.tl-dot[aria-current="true"] i { background: var(--signal); border-color: var(--signal); }
.arc-grid { display: grid; grid-template-columns: 190px minmax(240px, 340px) minmax(0, 1fr); gap: 12px; align-items: start; }
.arc-cats { display: grid; gap: 4px; position: sticky; top: 80px; }
.arc-cat { display: flex; justify-content: space-between; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); font: .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); transition: color .16s, border-color .16s; }
.arc-cat span { color: var(--rule); }
.arc-cat:hover { color: var(--bone); }
.arc-cat[aria-pressed="true"] { color: var(--signal); border-color: var(--signal); }
.arc-cat[aria-pressed="true"] span { color: var(--signal); }
.arc-list { display: grid; gap: 4px; max-height: 72vh; overflow-y: auto; padding-right: 4px; scrollbar-color: var(--rule) transparent; }
.arc-item { display: grid; gap: 2px; width: 100%; padding: 10px 12px; text-align: left; border: 1px solid var(--rule); border-left: 3px solid transparent; background: rgba(22, 26, 34, .6); transition: border-color .16s, background .16s; }
.arc-item small { font: .64rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.arc-item b { font-weight: 600; font-size: .95rem; }
.arc-item:hover { border-color: var(--ash); }
.arc-item[aria-current="true"] { border-color: var(--signal); border-left-color: var(--signal); background: var(--graphite); }
.arc-item.is-restricted small { color: var(--caution); }
.arc-empty { padding: 16px; border: 1px dashed var(--rule); font: .84rem var(--mono); color: var(--ash); }
.arc-view { position: sticky; top: 80px; min-height: 420px; border-top: 3px solid var(--team); }
.record { animation: swap .32s var(--ease); }
.rec-head { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.rec-head .emblem { width: 56px; height: 56px; flex: none; }
.rec-head .icon { width: 44px; height: 44px; flex: none; color: var(--signal); }
.rec-head h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.15; margin-top: 4px; }
.rec-body { margin-top: 16px; font-size: 1.05rem; min-height: 3.2em; }
.rec-body + .rec-body { min-height: 0; }
.rec-quote { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--team); font-style: italic; }
.rec-fields { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .92rem; }
.rec-fields dt { font: .7rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.xrefs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.xref { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border: 1px solid var(--rule); font: .74rem var(--mono); color: var(--bone); text-decoration: none; transition: border-color .16s, color .16s; }
.xref:hover { border-color: var(--signal); color: var(--signal); }
.xref small { margin-right: 8px; color: var(--ash); text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; }
.rec-bars { max-width: 360px; margin-top: 16px; }
.stamp-mark { display: inline-block; margin-top: 18px; padding: 6px 12px; border: 2px solid var(--caution); color: var(--caution); font: 600 .78rem var(--mono); letter-spacing: .16em; text-transform: uppercase; transform: rotate(-2deg); }
.redacted { margin-top: 16px; display: grid; gap: 9px; }
.redacted i { display: block; height: 14px; background: var(--bone); opacity: .82; transform-origin: 0 50%; animation: bar .5s var(--ease) backwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes bar { from { transform: scaleX(0); } }
.rec-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.decline { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--fault); font: .86rem/1.5 var(--mono); color: var(--bone); animation: swap .25s var(--ease); }
.decline b { display: block; color: var(--fault); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 1000px) {
  .arc-top { grid-template-columns: 1fr; }
  .arc-grid { grid-template-columns: 1fr; }
  .arc-cats { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
  .arc-cat { gap: 10px; }
  .arc-list { max-height: 300px; }
  .arc-view { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .glyph-word path { stroke-dashoffset: 0; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .nav, .speedo, .progress, #hero-canvas { display: none; } body { background: #fff; color: #000; } }
