:root {
  --sky: #050b0f;
  --sky-2: #091820;
  --panel: #0d1c24;
  --panel-2: #132a30;
  --hud: #9fff5e;
  --hud-soft: #d0ffb2;
  --amber: #ffb642;
  --red: #ff5c45;
  --ink: #eef5e9;
  --muted: #a9bbb5;
  --line: rgba(159, 255, 94, .24);
  --display: 'Michroma', sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --mx: 0;
  --my: 0;
  --bank: 0deg;
  --pitch: 0px;
  --film-x: 0px;
  --film-y: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--sky); }
html { scrollbar-color: rgba(159, 255, 94, .7) #03080b; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #03080b; }
::-webkit-scrollbar-thumb { border: 2px solid #03080b; background: linear-gradient(var(--hud), #4b7f39); }
::-webkit-scrollbar-thumb:hover { background: var(--amber); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sky);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums slashed-zero;
  font-optical-sizing: auto;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: radial-gradient(circle at 48% 8%, transparent 18%, rgba(0, 0, 0, .32) 72%, rgba(0, 0, 0, .68) 115%);
}
::selection { color: var(--sky); background: var(--hud); }
a { color: inherit; }
button, a { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { margin-bottom: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; }
h1, h2, h3 { text-wrap: balance; }
.tab-hidden * { animation-play-state: paused !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 200; padding: .75rem 1rem; color: var(--sky); background: var(--hud); font-weight: 700; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }

.grain {
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.88'/%3E%3C/svg%3E");
  animation: grain .22s steps(2) infinite;
}
@keyframes grain { 0% { transform: translate(0); } 25% { transform: translate(2%, -3%); } 50% { transform: translate(-4%, 2%); } 75% { transform: translate(3%, 4%); } 100% { transform: translate(-2%, -3%); } }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(1rem, 3vw, 3.5rem);
  border-bottom: 1px solid rgba(159, 255, 94, .2);
  background: linear-gradient(180deg, rgba(3, 9, 13, .98), rgba(3, 9, 13, .82));
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: .75rem; width: max-content; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: .62rem; letter-spacing: .16em; }
.brand svg, .footer-badge svg { width: 38px; flex: 0 0 auto; fill: none; stroke: var(--hud); stroke-width: 2; }
.brand svg path + path, .footer-badge svg path + path { fill: var(--amber); stroke: none; }
.brand b { display: block; color: var(--hud); font-weight: 400; }
.nav-strip { display: flex; align-items: center; height: 100%; gap: clamp(1.2rem, 2.6vw, 3rem); }
.nav-strip a { position: relative; height: 100%; display: grid; place-items: center; color: var(--muted); text-decoration: none; text-transform: uppercase; font-size: .64rem; letter-spacing: .14em; transition: color .25s; }
.nav-strip a::after { content: ""; position: absolute; bottom: -1px; left: 50%; width: 0; height: 2px; background: var(--hud); box-shadow: 0 0 12px var(--hud); transition: left .32s cubic-bezier(.2, .8, .2, 1), width .32s cubic-bezier(.2, .8, .2, 1); }
.nav-strip a:hover, .nav-strip a.active { color: var(--hud); }
.nav-strip a:hover::after, .nav-strip a.active::after { left: 0; width: 100%; }
.audio-switch { justify-self: end; min-height: 44px; display: flex; align-items: center; gap: .65rem; padding: .5rem .8rem; border: 1px solid rgba(159, 255, 94, .35); color: #b9cac4; background: rgba(5, 13, 17, .9); font-size: .58rem; letter-spacing: .11em; cursor: pointer; }
.audio-switch { transition: color .22s, border-color .22s, background .22s, box-shadow .22s; }
.audio-switch:hover { color: var(--hud); border-color: rgba(159, 255, 94, .78); background: rgba(159, 255, 94, .055); box-shadow: inset 0 0 22px rgba(159, 255, 94, .04); }
.audio-lamp { width: 8px; height: 8px; border-radius: 50%; background: #50605a; box-shadow: 0 0 0 3px rgba(80, 96, 90, .13); }
.audio-switch[aria-pressed="true"] { color: var(--hud); border-color: var(--hud); }
.audio-switch[aria-pressed="true"] .audio-lamp { background: var(--hud); box-shadow: 0 0 13px var(--hud); }

/* Hero film + live HUD */
.hero { position: relative; isolation: isolate; height: 100svh; min-height: 740px; overflow: hidden; background: #030708; }
.hero-film { position: absolute; z-index: -5; inset: 0; background: url('/assets/gen/vipers/hero.jpg') center 52% / cover no-repeat; transform: translate3d(var(--film-x), var(--film-y), 0) scale(1.06); filter: saturate(.72) contrast(1.12) brightness(.7); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.hero-film::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 5, 7, .85) 0%, rgba(1, 5, 7, .28) 47%, rgba(1, 5, 7, .04) 72%), linear-gradient(180deg, rgba(3, 8, 11, .22) 0 48%, rgba(2, 7, 9, .84) 92%); }
.hero-film::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 72% 48%, rgba(255, 182, 66, .24), transparent 18%), linear-gradient(110deg, transparent 52%, rgba(255, 118, 56, .1) 61%, transparent 68%); mix-blend-mode: screen; }
#sky-canvas { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; opacity: .62; mix-blend-mode: screen; transform: scale(1.04) rotate(var(--bank)); transition: transform .18s ease-out; }
.canopy-haze { position: absolute; z-index: -2; inset: -12%; opacity: .78; background: radial-gradient(ellipse at calc(68% + var(--mx) * 10%) calc(55% + var(--my) * 8%), rgba(255, 176, 71, .14), transparent 23%), radial-gradient(ellipse at 40% 30%, rgba(51, 101, 73, .2), transparent 28%), linear-gradient(10deg, rgba(0, 5, 7, .84) 0 8%, transparent 19%); transform: translate(calc(var(--mx) * -13px), calc(var(--my) * -10px)); }
.canopy-haze::before { content: ""; position: absolute; left: 3%; top: -30%; bottom: -20%; width: 17%; transform: rotate(14deg); background: linear-gradient(90deg, transparent, rgba(0, 3, 5, .78), rgba(44, 65, 66, .3), transparent); filter: blur(4px); }
.flare { position: absolute; z-index: 1; height: 1px; opacity: .48; filter: blur(.35px); }
.flare::after { content: ""; position: absolute; top: -18px; right: 9%; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); filter: blur(15px); }
.flare-a { left: 13%; right: -5%; top: 47%; transform: rotate(-1.8deg); background: linear-gradient(90deg, transparent, rgba(255, 92, 69, .72), var(--amber), transparent); }
.flare-b { left: 48%; right: 3%; top: 69%; opacity: .2; background: linear-gradient(90deg, transparent, var(--hud), transparent); }
.letterbox { position: absolute; z-index: 4; left: 0; right: 0; height: clamp(28px, 4.3vh, 58px); background: #020506; }
.letterbox-top { top: 76px; }
.letterbox-bottom { bottom: 0; }
.hero-copy { position: absolute; z-index: 5; left: clamp(1.2rem, 7.4vw, 7.2rem); bottom: clamp(6.8rem, 12vh, 8.5rem); width: min(52rem, 62vw); padding: 1.3rem 2rem 1.2rem 0; background: linear-gradient(90deg, rgba(3, 8, 10, .72), rgba(3, 8, 10, .22) 72%, transparent); }
.kicker, .section-kicker { margin: 0 0 1.2rem; color: var(--hud); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.kicker span { display: inline-block; margin-right: .55rem; padding: .23rem .55rem; color: var(--sky); background: var(--hud); box-shadow: 0 0 18px rgba(159, 255, 94, .18); }
.hero h1 { position: relative; margin: 0; font-size: clamp(4.6rem, 9.4vw, 9.2rem); line-height: .79; letter-spacing: -.07em; text-shadow: 0 8px 38px rgba(0, 0, 0, .62); }
.hero h1 > span:not(.title-ghost) { display: block; color: var(--ink); }
.hero h1 em { display: block; margin-top: .12em; margin-left: .18em; color: transparent; -webkit-text-stroke: 1px var(--hud); font-style: normal; font-size: .38em; letter-spacing: .22em; text-shadow: 0 0 16px rgba(159, 255, 94, .16); }
.title-ghost { position: absolute; z-index: -1; top: 4px; left: 7px; color: transparent; -webkit-text-stroke: 1px rgba(255, 92, 69, .5); clip-path: inset(0 0 52%); transform: translateX(calc(var(--mx) * 8px)); }
.hero-lede { max-width: 560px; margin: 1.35rem 0 1.35rem; color: #d1dcd8; font-size: .9rem; line-height: 1.78; text-wrap: balance; }
.enter-control { width: max-content; min-height: 48px; display: flex; align-items: center; gap: 1rem; color: var(--hud); text-decoration: none; font-size: .65rem; letter-spacing: .18em; }
.enter-control i { position: relative; width: 58px; height: 1px; background: var(--hud); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.enter-control i::after { content: ""; position: absolute; top: -4px; right: 0; border: 4px solid transparent; border-left-color: var(--hud); }
.enter-control:hover i { width: 96px; }
.hero-caption { position: absolute; z-index: 5; top: clamp(124px, calc(76px + 6vh), 150px); left: clamp(1.2rem, 7.4vw, 7.2rem); display: flex; gap: 1.2rem; color: #c3d2cd; font-size: .52rem; letter-spacing: .14em; }
.hero-caption b { color: var(--amber); font-weight: 400; }
.feed-state { position: relative; padding-left: .85rem; color: var(--hud); }
.feed-state::before { content: ""; position: absolute; top: .36rem; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--hud); box-shadow: 0 0 8px var(--hud); animation: blink 1.4s step-end infinite; }
@keyframes blink { 50% { opacity: .25; } }

.hud { position: absolute; z-index: 3; inset: calc(76px + clamp(28px, 4.3vh, 58px)) clamp(1rem, 3.4vw, 4rem) clamp(28px, 4.3vh, 58px); color: var(--hud); font-size: .62rem; line-height: 1.25; text-shadow: 0 0 9px rgba(159, 255, 94, .64); pointer-events: none; opacity: .86; transform: perspective(1100px) rotateY(calc(var(--mx) * 2deg)) rotateX(calc(var(--my) * -1.5deg)); }
.hud-corners { position: absolute; inset: 7% 3%; opacity: .5; background: linear-gradient(var(--hud), var(--hud)) 0 0 / 32px 1px no-repeat, linear-gradient(var(--hud), var(--hud)) 0 0 / 1px 32px no-repeat, linear-gradient(var(--hud), var(--hud)) 100% 0 / 32px 1px no-repeat, linear-gradient(var(--hud), var(--hud)) 100% 0 / 1px 32px no-repeat, linear-gradient(var(--hud), var(--hud)) 0 100% / 32px 1px no-repeat, linear-gradient(var(--hud), var(--hud)) 0 100% / 1px 32px no-repeat, linear-gradient(var(--hud), var(--hud)) 100% 100% / 32px 1px no-repeat, linear-gradient(var(--hud), var(--hud)) 100% 100% / 1px 32px no-repeat; }
.heading-tape { position: absolute; top: 7%; left: 50%; display: flex; align-items: flex-end; gap: 2.3rem; transform: translateX(-50%); }
.heading-tape b { padding-top: .35rem; border-top: 1px solid; font-size: .9rem; }
.heading-tape b::before { content: "▼"; position: absolute; top: -1.1rem; margin-left: .2rem; }
.pitch-ladder { position: absolute; top: 42%; left: 53%; width: min(460px, 38vw); height: 310px; transform: translate(-50%, calc(-50% + var(--pitch))) rotate(var(--bank)); transition: transform .16s ease-out; }
.pitch-line, .waterline { height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pitch-line i { width: 44%; height: 14px; border: solid currentColor; border-width: 1px 1px 0; }
.pitch-line span, .waterline b { font-size: .53rem; font-weight: 400; }
.n10 i, .n20 i { border-top-style: dashed; border-right: 0; border-left: 0; }
.waterline { height: 64px; }
.waterline i { width: 38%; height: 14px; border-bottom: 2px solid; }
.velocity-vector { position: absolute; top: 42%; left: 53%; width: 36px; height: 36px; border: 2px solid; border-radius: 50%; transform: translate(-50%, -50%); }
.velocity-vector::before, .velocity-vector::after { content: ""; position: absolute; top: 15px; width: 36px; border-top: 2px solid; }
.velocity-vector::before { right: 34px; }
.velocity-vector::after { left: 34px; }
.velocity-vector i { position: absolute; bottom: 34px; left: 15px; height: 20px; border-left: 2px solid; }
.tape { position: absolute; top: 26%; width: 64px; height: 44%; overflow: hidden; text-align: center; }
.tape small { display: block; padding-bottom: .4rem; border-bottom: 1px solid; }
.tape span, .tape b { display: block; height: 20%; padding-top: .6rem; }
.tape b { position: relative; border: 1px solid; font-size: 1rem; font-weight: 400; background: rgba(2, 8, 10, .38); }
.tape b::before { content: ""; position: absolute; top: 50%; left: -7px; border: 6px solid transparent; border-right-color: var(--hud); transform: translateY(-50%); }
.speed-tape { left: -1%; }
.alt-tape { right: 1.5%; }
.gauge { position: absolute; bottom: 11%; left: 5%; display: grid; grid-template-columns: auto auto; gap: .3rem .65rem; align-items: end; }
.gauge small { grid-row: 1 / 3; font-size: 1.2rem; }
.gauge strong { font-size: 1rem; font-weight: 400; }
.gauge div { width: 92px; height: 3px; background: rgba(159, 255, 94, .2); }
.gauge i { display: block; width: 18%; height: 100%; background: var(--hud); box-shadow: 0 0 8px var(--hud); transition: width .18s; }
.hud-mode { position: absolute; right: 5%; bottom: 9%; text-align: right; }
.hud-mode b { color: var(--amber); font-weight: 400; }
.target-cue { position: absolute; top: 29%; left: 72%; width: 74px; height: 74px; display: grid; place-items: end center; border: 1px solid; transform: rotate(45deg); animation: targetFloat 4s ease-in-out infinite; }
.target-cue span { transform: rotate(-45deg) translate(23px, 20px); white-space: nowrap; font-size: .5rem; }
@keyframes targetFloat { 50% { transform: translate(12px, -5px) rotate(45deg); } }
.scroll-telemetry { position: absolute; z-index: 6; right: clamp(1.2rem, 5vw, 5rem); bottom: clamp(3.7rem, 7vh, 5.2rem); display: flex; align-items: center; gap: .8rem; color: #b3c1bd; font-size: .56rem; letter-spacing: .13em; }
.scroll-telemetry i { width: 80px; height: 1px; background: linear-gradient(90deg, var(--hud) 30%, rgba(159, 255, 94, .2) 30%); animation: scan 1.8s ease-in-out infinite; }
.scroll-telemetry b { color: var(--hud); font-weight: 400; }
@keyframes scan { 50% { background-size: 220% 100%; background-position: 100%; } }
.hero-copy > *, .hero-caption { opacity: 0; transform: translateY(24px); animation: arrive .85s cubic-bezier(.16, .84, .24, 1) forwards; }
.hero-caption { animation-delay: .12s; }
.hero-copy .kicker { animation-delay: .24s; }
.hero-copy h1 { animation-delay: .36s; }
.hero-copy .hero-lede { animation-delay: .5s; }
.hero-copy .enter-control { animation-delay: .64s; }
@keyframes arrive { to { opacity: 1; transform: none; } }

/* Shared section language */
.section-target { position: relative; padding: clamp(7rem, 11vw, 10rem) clamp(1.2rem, 7vw, 7.5rem); scroll-margin-top: 72px; }
.section-target::after { content: attr(data-target); position: absolute; top: 50%; left: .55rem; color: rgba(159, 255, 94, .12); font-size: .5rem; letter-spacing: .3em; writing-mode: vertical-rl; transform: translateY(-50%); }
.section-code { position: absolute; top: 2rem; right: clamp(1.2rem, 4vw, 4rem); color: rgba(159, 255, 94, .56); font-size: .58rem; letter-spacing: .16em; writing-mode: vertical-rl; }
.section-target h2 { font-size: clamp(2.6rem, 5.3vw, 5.7rem); line-height: 1.02; letter-spacing: -.045em; }
.section-target h2 span { color: var(--hud); }

.mission { min-height: 110vh; background: radial-gradient(circle at 83% 40%, rgba(84, 136, 96, .1), transparent 32%), linear-gradient(180deg, #061015, #0b171b 66%, #061014); }
.mission::before { content: "09\A117"; white-space: pre; position: absolute; right: 6vw; top: 15%; color: rgba(159, 255, 94, .025); font-family: var(--display); font-size: clamp(8rem, 22vw, 25rem); line-height: .66; pointer-events: none; }
.brief-head { position: relative; max-width: 1320px; margin: auto; display: grid; grid-template-columns: 1.2fr .72fr; gap: 8vw; align-items: end; }
.brief-intro { max-width: 510px; margin: 0 0 .7rem; color: #c5d2ce; font-size: 1rem; line-height: 1.85; }
.mission-grid { position: relative; max-width: 1320px; margin: 5.5rem auto 0; display: grid; grid-template-columns: minmax(290px, .72fr) 1.28fr; grid-template-rows: auto auto; gap: 1rem 1.5rem; }
.objective-card, .metar { position: relative; padding: 1.8rem 1.8rem 1.8rem 2rem; border-left: 2px solid var(--hud); background: linear-gradient(90deg, rgba(15, 35, 41, .92), rgba(7, 16, 22, .34)); box-shadow: 0 30px 60px rgba(0, 0, 0, .2); }
.objective-card::before { content: "PRIMARY // A"; position: absolute; top: 0; right: 0; padding: .25rem .5rem; color: var(--sky); background: var(--hud); font-size: .5rem; letter-spacing: .12em; }
.objective-card > span, .metar > span { color: var(--hud); font-size: .58rem; letter-spacing: .17em; }
.objective-card h3 { margin: 2.1rem 0 1rem; font-family: var(--display); font-size: 1.18rem; font-weight: 400; line-height: 1.42; }
.objective-card p, .metar p { color: #bbc9c5; font-size: .82rem; }
.objective-card dl { margin: 2rem 0 0; border-top: 1px solid rgba(159, 255, 94, .16); }
.objective-card dl div { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid rgba(159, 255, 94, .14); font-size: .68rem; }
.objective-card dt { color: var(--muted); }
.objective-card dd { margin: 0; color: var(--hud); }
.radar-scope { position: relative; grid-row: 1 / 3; grid-column: 2; min-height: 600px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(159, 255, 94, .2); background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(159, 255, 94, .018) 3px 4px), radial-gradient(circle, #132d2d, #061015 68%); box-shadow: inset 0 0 80px rgba(0, 0, 0, .38); }
.radar-scope::before { content: "TACTICAL PICTURE / RANGE 80"; position: absolute; top: 1.2rem; left: 1.2rem; color: var(--amber); font-size: .54rem; letter-spacing: .15em; }
.radar-scope svg { width: min(76%, 570px); overflow: visible; filter: drop-shadow(0 0 7px rgba(159, 255, 94, .16)); }
.scope-grid { fill: none; stroke: rgba(159, 255, 94, .3); stroke-width: 1; }
.sweep { fill: rgba(159, 255, 94, .09); stroke: rgba(159, 255, 94, .35); transform-origin: 250px 250px; animation: sweep 5s linear infinite; }
.friend { fill: var(--hud); font-family: var(--mono); font-size: 10px; }
.unknown { fill: none; stroke: var(--amber); font-family: var(--mono); font-size: 10px; }
.unknown text { fill: var(--amber); stroke: none; }
.scope-note { position: absolute; bottom: 1.2rem; left: 1.2rem; color: var(--hud); font-size: .6rem; letter-spacing: .1em; }
@keyframes sweep { to { transform: rotate(360deg); } }
.metar { border-left-color: var(--amber); }
.metar code { display: block; color: var(--amber); font-size: .67rem; overflow-wrap: anywhere; }
.mission-tape { position: relative; max-width: 1320px; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid rgba(159, 255, 94, .16); }
.mission-tape span { padding: .85rem 1rem; color: #b9c9c4; border-right: 1px solid rgba(159, 255, 94, .14); font-size: .54rem; letter-spacing: .1em; }

.roster { overflow: hidden; background: radial-gradient(circle at 14% 33%, rgba(255, 182, 66, .08), transparent 22%), #081218; }
.roster::before { content: ""; position: absolute; inset: 0; opacity: .22; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 16px, rgba(159, 255, 94, .06) 17px 18px); mask-image: linear-gradient(90deg, #000, transparent 58%); }
.roster-heading { position: relative; max-width: 1320px; margin: auto; display: grid; grid-template-columns: 1fr .54fr; gap: 8vw; align-items: end; }
.roster-heading > p { max-width: 470px; margin: 0; color: #bdcac6; }
.patch-grid { position: relative; max-width: 1320px; margin: 6rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4.2rem 1.5rem; }
.pilot-card { position: relative; min-width: 0; min-height: 350px; display: grid; grid-template-rows: 215px auto; align-items: start; padding: 0 .7rem 1.3rem; border-top: 1px solid rgba(159, 255, 94, .26); background: linear-gradient(180deg, rgba(159, 255, 94, .025), transparent 58%); transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s; }
.pilot-card::after { content: attr(data-number); position: absolute; top: .65rem; right: .2rem; color: rgba(159, 255, 94, .36); font-family: var(--display); font-size: 1.7rem; }
.pilot-card:nth-child(2), .pilot-card:nth-child(5) { transform: translateY(2.4rem); }
.pilot-card:hover, .pilot-card:focus-visible { background: linear-gradient(180deg, rgba(159, 255, 94, .07), transparent 72%); transform: translateY(-.5rem); }
.pilot-card:nth-child(2):hover, .pilot-card:nth-child(5):hover, .pilot-card:nth-child(2):focus-visible, .pilot-card:nth-child(5):focus-visible { transform: translateY(1.9rem); }
.patch { align-self: center; justify-self: center; width: min(78%, 200px); max-height: 205px; overflow: visible; filter: drop-shadow(0 15px 16px rgba(0, 0, 0, .56)) drop-shadow(0 0 1px rgba(255, 255, 255, .3)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .35s; }
.pilot-card:hover .patch, .pilot-card:focus-visible .patch { transform: rotate(-3deg) scale(1.05); filter: drop-shadow(0 19px 19px rgba(0, 0, 0, .65)) drop-shadow(0 0 8px rgba(159, 255, 94, .12)); }
.patch-base { fill: #1d3740; stroke: #03070a; stroke-width: 9; }
.patch-ring { fill: none; stroke: var(--amber); stroke-width: 6; stroke-dasharray: 3 2; }
.patch-art { fill: #091418; stroke: var(--hud); stroke-width: 5; }
.patch-accent { fill: var(--red); stroke: var(--amber); stroke-width: 2; }
.patch text { fill: #fff5e5; stroke: #071014; stroke-width: 3; paint-order: stroke; font-family: var(--display); font-size: 14px; text-anchor: middle; letter-spacing: 2px; }
.pilot-card > div { position: relative; z-index: 1; }
.pilot-card span { display: block; color: var(--hud); font-size: .53rem; letter-spacing: .1em; }
.pilot-card h3 { margin: .45rem 0 .15rem; color: var(--ink); font-family: var(--display); font-size: 1.2rem; font-weight: 400; }
.pilot-card p { margin-bottom: .7rem; color: var(--amber); font-size: .68rem; }
.pilot-card small { display: block; max-width: 34ch; color: #b7c5c1; font-size: .65rem; line-height: 1.62; }

.sorties { background: radial-gradient(circle at 82% 18%, rgba(255, 182, 66, .08), transparent 25%), #050d11; }
.board-shell { position: relative; max-width: 1280px; margin: auto; border: 1px solid rgba(159, 255, 94, .4); background: linear-gradient(145deg, rgba(16, 34, 39, .97), rgba(6, 15, 19, .98)); box-shadow: 0 45px 110px rgba(0, 0, 0, .62), inset 0 0 90px rgba(159, 255, 94, .035); }
.board-shell::before { content: "VX-09 // CLASSIFIED TRAINING"; position: absolute; top: -1.75rem; right: 0; color: rgba(255, 182, 66, .8); font-size: .54rem; letter-spacing: .18em; }
.board-shell::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(159, 255, 94, .013) 4px 5px); }
.board-header { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; padding: 2.3rem 2.5rem; border-bottom: 1px solid rgba(159, 255, 94, .24); }
.board-header h2 { font-size: clamp(2rem, 4.3vw, 4.6rem); }
.board-header .section-kicker { margin-bottom: .8rem; }
.clock { text-align: right; }
.clock small { display: block; color: var(--muted); font-size: .52rem; letter-spacing: .12em; }
.clock strong { color: var(--amber); font-size: 1.35rem; font-weight: 400; letter-spacing: .08em; }
.sortie-row { position: relative; z-index: 1; min-height: 69px; display: grid; grid-template-columns: .8fr 1.2fr .8fr .7fr .6fr 1.2fr; align-items: center; padding: 0 2.5rem; border-bottom: 1px solid rgba(159, 255, 94, .14); font-size: .72rem; transition: background .2s, padding-left .2s; }
.sortie-row:not(.labels):hover { padding-left: 2.8rem; background: rgba(159, 255, 94, .035); }
.sortie-row b { color: var(--ink); font-family: var(--display); font-weight: 400; }
.sortie-row i { width: max-content; padding: .3rem .55rem; border: 1px solid rgba(159, 255, 94, .3); color: var(--hud); font-style: normal; }
.sortie-row.labels { min-height: 42px; color: var(--muted); background: rgba(159, 255, 94, .04); font-size: .52rem; letter-spacing: .15em; }
.sortie-row:nth-child(6) i, .sortie-row:nth-child(7) i { color: var(--amber); border-color: rgba(255, 182, 66, .4); }
.board-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.3rem 2.5rem; }
.board-footer span { color: var(--hud); font-size: .64rem; }
.board-footer span i { display: inline-block; width: 8px; height: 8px; margin-right: .6rem; border-radius: 50%; background: var(--hud); box-shadow: 0 0 10px var(--hud); }
.board-footer p { margin: 0; color: var(--muted); font-size: .57rem; text-align: right; }

.tradition { min-height: 112vh; display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 7vw; overflow: hidden; background: linear-gradient(100deg, #03080b 0 43%, #101a1d 43% 100%); }
.six-mark { --scan-progress: 0deg; --scan-angle: -118deg; position: relative; min-height: 690px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255, 182, 66, .24); background: radial-gradient(circle at 50% 46%, rgba(255, 182, 66, .16), transparent 31%), repeating-radial-gradient(circle at 50% 50%, transparent 0 48px, rgba(159, 255, 94, .035) 49px 50px), repeating-linear-gradient(90deg, transparent 0 48px, rgba(255, 255, 255, .015) 49px 50px), #050c10; box-shadow: inset 0 0 90px rgba(0, 0, 0, .56), 0 35px 80px rgba(0, 0, 0, .22); }
.six-mark::before, .six-mark::after { content: ""; position: absolute; border: 1px solid rgba(159, 255, 94, .22); border-radius: 50%; }
.six-mark::before { width: 78%; aspect-ratio: 1; }
.six-mark::after { width: 53%; aspect-ratio: 1; border-style: dashed; }
.six-numeral { color: transparent; -webkit-text-stroke: 2px var(--amber); font-family: var(--display); font-size: clamp(13rem, 25vw, 27rem); line-height: 1; text-shadow: 0 0 70px rgba(255, 182, 66, .2); transform: rotate(-7deg); transition: color .45s, text-shadow .45s, -webkit-text-stroke .45s; }
.six-horizon { position: absolute; width: 120%; height: 1px; background: linear-gradient(90deg, transparent, var(--hud), transparent); box-shadow: 0 0 17px var(--hud); }
.scan-beam { position: absolute; left: 50%; top: 50%; width: 44%; height: 42%; opacity: 0; transform-origin: 0 0; transform: rotate(var(--scan-angle)); clip-path: polygon(0 0, 100% 8%, 100% 92%); background: linear-gradient(90deg, rgba(159, 255, 94, .32), rgba(159, 255, 94, .035) 76%, transparent); mix-blend-mode: screen; transition: opacity .2s; }
.scan-contact { position: absolute; width: 9px; height: 9px; border: 1px solid var(--amber); opacity: .46; box-shadow: 0 0 12px rgba(255, 182, 66, .52); transform: rotate(45deg); }
.contact-one { left: 23%; top: 33%; }
.contact-two { right: 17%; top: 48%; }
.contact-three { left: 38%; bottom: 20%; }
.six-mark small { position: absolute; top: 1.4rem; left: 1.4rem; color: var(--amber); font-size: .54rem; letter-spacing: .2em; }
.six-doctrine { position: absolute; right: 1.4rem; bottom: 1.4rem; color: var(--hud); font-size: .5rem; font-weight: 400; letter-spacing: .16em; writing-mode: vertical-rl; }
.check-control { position: absolute; z-index: 3; right: 50%; bottom: 4.6rem; width: 164px; min-height: 64px; padding: .72rem 1rem; color: var(--ink); border: 1px solid rgba(159, 255, 94, .56); background: linear-gradient(#071116, #050a0d) padding-box, conic-gradient(var(--hud) var(--scan-progress), rgba(159, 255, 94, .08) 0) border-box; box-shadow: 0 14px 28px rgba(0, 0, 0, .38), inset 0 0 22px rgba(159, 255, 94, .035); transform: translateX(50%); cursor: crosshair; touch-action: none; transition: color .2s, border-color .2s, box-shadow .2s, transform .2s; }
.check-control::before, .check-control::after { content: ""; position: absolute; top: 50%; width: 19px; height: 1px; background: var(--hud); }
.check-control::before { right: calc(100% + 10px); }
.check-control::after { left: calc(100% + 10px); }
.check-control span, .check-control strong { display: block; }
.check-control span { margin-bottom: .18rem; color: var(--hud); font-size: .46rem; letter-spacing: .18em; }
.check-control strong { font-family: var(--display); font-size: .65rem; font-weight: 400; letter-spacing: .08em; }
.check-control:hover { border-color: var(--hud); box-shadow: 0 14px 28px rgba(0, 0, 0, .38), 0 0 24px rgba(159, 255, 94, .12); transform: translateX(50%) translateY(-2px); }
.check-control:focus-visible { outline-offset: 7px; }
.check-status { position: absolute; z-index: 2; bottom: 2rem; left: 50%; color: #b9c8c3; font-size: .49rem; letter-spacing: .13em; transform: translateX(-50%); white-space: nowrap; }
.six-mark.checking .scan-beam { opacity: 1; }
.six-mark.checking .scan-contact { opacity: 1; animation: contactPing .48s steps(2) infinite; }
.six-mark.checking .check-control { color: var(--hud); box-shadow: 0 0 32px rgba(159, 255, 94, .15), inset 0 0 24px rgba(159, 255, 94, .08); }
.six-mark.check-complete { border-color: rgba(159, 255, 94, .58); }
.six-mark.check-complete .six-numeral { color: rgba(159, 255, 94, .08); -webkit-text-stroke-color: var(--hud); text-shadow: 0 0 80px rgba(159, 255, 94, .26); }
.six-mark.check-complete .scan-contact { border-color: var(--hud); opacity: 1; }
.six-mark.check-complete .check-status { color: var(--hud); }
.six-mark.check-aborted .check-status { color: var(--amber); }
@keyframes contactPing { 50% { transform: rotate(45deg) scale(1.7); box-shadow: 0 0 18px rgba(255, 182, 66, .84); } }
.tradition-copy { max-width: 760px; }
.tradition-copy .lead { max-width: 620px; margin: 2rem 0; color: var(--ink); font-size: 1.08rem; line-height: 1.82; }
.tradition-columns { columns: 2; column-gap: 3rem; color: #b7c4c0; font-size: .78rem; }
.tradition-columns p { break-inside: avoid; }
.tradition blockquote { margin: 2.6rem 0 0; padding: 1.35rem 0 1.35rem 1.7rem; border-left: 2px solid var(--amber); color: var(--amber); font-size: .96rem; }
.tradition cite { display: block; margin-top: .6rem; color: var(--muted); font-size: .6rem; font-style: normal; }
.ritual-steps { margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; border-top: 1px solid rgba(159, 255, 94, .2); }
.ritual-steps li { padding: .9rem .5rem .2rem 0; color: #bac8c3; font-size: .58rem; }
.ritual-steps b { display: block; margin-bottom: .3rem; color: var(--hud); font-weight: 400; }

.debrief { position: relative; min-height: 94vh; display: grid; place-items: center; overflow: hidden; background: radial-gradient(ellipse at 28% 82%, rgba(159, 255, 94, .09), transparent 28%), radial-gradient(ellipse at 74% 44%, rgba(255, 182, 66, .07), transparent 24%), linear-gradient(180deg, #081116, #010304); }
.debrief-inner { position: relative; z-index: 1; width: 100%; max-width: 1280px; min-height: 610px; display: grid; grid-template-columns: .62fr 1.18fr .52fr; align-items: center; gap: 5vw; }
.runway { position: relative; justify-self: center; width: 210px; height: 690px; background: linear-gradient(90deg, transparent, #162125 20% 80%, transparent); clip-path: polygon(31% 0, 69% 0, 100% 100%, 0 100%); filter: drop-shadow(0 0 32px rgba(159, 255, 94, .08)); }
.runway::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 48px, rgba(237, 245, 231, .58) 49px 54px, transparent 55px 100px); clip-path: polygon(48% 0, 52% 0, 57% 100%, 43% 100%); }
.runway i { position: absolute; right: 16%; bottom: 15%; left: 16%; height: 5px; background: var(--hud); box-shadow: 0 0 25px var(--hud), 0 -60px 20px var(--amber), 0 -120px 20px var(--hud), 0 -180px 20px var(--amber); }
.runway b { position: absolute; right: 0; bottom: 3%; left: 0; color: rgba(237, 245, 231, .72); font-family: var(--display); font-size: 2.7rem; font-weight: 400; text-align: center; transform: perspective(100px) rotateX(35deg); }
.debrief-copy h2 { font-size: clamp(2.8rem, 5.2vw, 5.7rem); }
.debrief-copy > p:not(.section-kicker) { max-width: 620px; margin: 1.8rem 0; color: #c5d1cd; }
.log-link { width: max-content; min-height: 48px; display: flex; align-items: center; gap: 1rem; color: var(--hud); text-decoration: none; font-size: .64rem; letter-spacing: .14em; }
.log-link svg { width: 60px; fill: none; stroke: var(--hud); transition: transform .32s; }
.log-link:hover svg { transform: translateX(12px); }
.recovery-data { align-self: end; margin-bottom: 5rem; padding-left: 1.2rem; border-left: 1px solid rgba(159, 255, 94, .34); }
.recovery-data > span { color: var(--muted); font-size: .54rem; }
.recovery-data strong { display: block; color: var(--amber); font-family: var(--display); font-size: 2.3rem; font-weight: 400; }
.recovery-data strong span { margin-left: .2rem; font-size: .8rem; }
.recovery-data p { color: var(--hud); font-size: .64rem; }
.flightline { position: absolute; right: 4vw; bottom: 8%; left: 4vw; display: flex; justify-content: space-between; opacity: .5; }
.flightline i { width: 4px; height: 4px; border-radius: 50%; background: var(--hud); box-shadow: 0 0 12px 4px rgba(159, 255, 94, .6); }
.flightline i:nth-child(even) { background: var(--amber); box-shadow: 0 0 12px 4px rgba(255, 182, 66, .5); }

/* Moving section acquisition reticle */
.section-lock { position: fixed; z-index: 95; top: 50%; left: 50%; width: 120px; height: 70px; color: var(--hud); opacity: 0; pointer-events: none; filter: drop-shadow(0 0 7px rgba(159, 255, 94, .62)); transform: translate(-50%, -50%); transition: width .19s cubic-bezier(.2, .8, .2, 1), height .19s cubic-bezier(.2, .8, .2, 1), left .12s, top .12s, opacity .2s; }
.section-lock i { position: absolute; width: 22px; height: 22px; }
.section-lock i:nth-child(1) { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.section-lock i:nth-child(2) { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.section-lock i:nth-child(3) { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; }
.section-lock i:nth-child(4) { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.section-lock span { position: absolute; top: 0; right: 0; padding: .16rem .4rem; color: currentColor; background: rgba(2, 7, 9, .94); font-size: .53rem; letter-spacing: .11em; white-space: nowrap; transform: translateY(-100%); }
.section-lock b { position: absolute; top: 50%; right: -1.5rem; font-weight: 400; transform: translateY(-50%); }
.section-lock.visible { opacity: .88; }
.section-lock.locked { color: var(--amber); animation: lockPulse .38s ease-out; }
@keyframes lockPulse { 50% { filter: drop-shadow(0 0 18px var(--amber)); transform: translate(-50%, -50%) scale(1.04); } }
.impact-vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none; box-shadow: inset 0 0 0 rgba(255, 92, 69, 0); }
.impact-vignette.hit { animation: impact .3s ease-out; }
@keyframes impact { 28% { box-shadow: inset 0 0 95px rgba(255, 92, 69, .14); } 100% { box-shadow: inset 0 0 0 rgba(255, 92, 69, 0); } }

footer { position: relative; z-index: 2; min-height: 160px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2.5rem clamp(1.2rem, 5vw, 5rem); border-top: 1px solid rgba(159, 255, 94, .2); color: var(--muted); background: #010304; font-size: .6rem; }
.footer-badge { display: flex; align-items: center; gap: .8rem; color: var(--ink); font-family: var(--display); font-size: .49rem; line-height: 1.4; letter-spacing: .12em; }
.footer-badge b { color: var(--hud); font-weight: 400; }
footer p { margin: 0; text-align: center; }
footer nav { justify-self: end; display: flex; gap: 1.5rem; }
footer a { min-height: 44px; display: grid; place-items: center; color: var(--muted); text-decoration: none; }
footer a { position: relative; transition: color .2s; }
footer a::after { content: ""; position: absolute; right: 0; bottom: 7px; left: 0; height: 1px; background: var(--hud); transform: scaleX(0); transform-origin: right; transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
footer a:hover, footer a:focus-visible { color: var(--hud); }
footer a:hover::after, footer a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Guide: declassified instrument folio */
.guide-body { background: radial-gradient(circle at 82% 9%, rgba(255, 182, 66, .07), transparent 22%), repeating-linear-gradient(90deg, transparent 0 89px, rgba(159, 255, 94, .015) 90px), #071016; }
.guide-main { position: relative; max-width: 1500px; margin: auto; padding: 145px clamp(1.2rem, 7vw, 7.5rem) 8rem; }
.guide-main::before { content: "VX-09 / SYSTEMS RECORD / PASS 3"; position: absolute; top: 118px; right: clamp(1.2rem, 7vw, 7.5rem); color: rgba(159, 255, 94, .38); font-size: .5rem; letter-spacing: .18em; }
.guide-hero { position: relative; min-height: 360px; display: grid; grid-template-columns: 1.12fr .52fr; gap: 8vw; align-items: center; padding: 3.5rem 3rem 4rem; border: 1px solid rgba(159, 255, 94, .24); background: linear-gradient(110deg, rgba(12, 32, 37, .86), rgba(7, 16, 22, .2)); clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.guide-hero::after { content: "DECLASSIFIED"; position: absolute; right: 1.8rem; bottom: 1.2rem; color: rgba(255, 182, 66, .26); font-family: var(--display); font-size: 1.1rem; letter-spacing: .16em; }
.guide-hero h1 { font-size: clamp(3.2rem, 7.2vw, 7.4rem); line-height: .78; letter-spacing: -.06em; }
.guide-hero h1 em { display: block; margin-top: .12em; color: transparent; -webkit-text-stroke: 1px var(--hud); font-style: normal; font-size: .41em; letter-spacing: .2em; }
.guide-meta { padding-left: 1.3rem; border-left: 1px solid var(--hud); color: #bacac5; font-size: .72rem; }
.guide-meta b { display: block; margin-bottom: .7rem; color: var(--amber); font-family: var(--display); font-size: 1.05rem; font-weight: 400; }
.guide-grid { display: grid; grid-template-columns: .4fr 1.2fr; gap: 8vw; padding-top: 6rem; }
.guide-toc { position: sticky; top: 118px; align-self: start; padding-top: .7rem; border-top: 2px solid var(--hud); }
.guide-toc span { display: block; margin-bottom: 1rem; color: var(--hud); font-size: .56rem; letter-spacing: .16em; }
.guide-toc a { display: block; padding: .78rem 0; border-top: 1px solid rgba(159, 255, 94, .16); color: var(--muted); text-decoration: none; font-size: .68rem; }
.guide-toc a:hover { color: var(--hud); }
.guide-article { max-width: 860px; counter-reset: system; }
.guide-article section { position: relative; margin-bottom: 5.5rem; }
.guide-article section:not(:first-child) { padding-top: 1.4rem; border-top: 1px solid rgba(159, 255, 94, .14); }
.guide-article h2 { margin-bottom: 1.6rem; font-size: clamp(2rem, 3.2vw, 3.6rem); line-height: 1.15; }
.guide-article h2 span { color: var(--hud); }
.guide-article h3 { margin: 2rem 0 .65rem; color: var(--amber); font-family: var(--display); font-size: .77rem; font-weight: 400; letter-spacing: .09em; }
.guide-article p { color: #c5d2ce; font-size: .88rem; line-height: 1.88; }
.guide-article code { padding: .12rem .35rem; color: var(--hud); background: rgba(159, 255, 94, .07); }
.system-diagram { position: relative; min-height: 240px; margin: 2.5rem 0; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(159, 255, 94, .28); background: radial-gradient(circle, rgba(159, 255, 94, .08), transparent 42%), repeating-linear-gradient(0deg, transparent 0 29px, rgba(159, 255, 94, .04) 30px); }
.system-diagram::before, .system-diagram::after { content: ""; position: absolute; width: 54%; height: 34%; border: 1px solid var(--hud); }
.system-diagram::after { width: 31%; height: 16%; border-color: var(--amber); }
.system-diagram b { color: var(--hud); font-family: var(--display); font-size: .9rem; font-weight: 400; letter-spacing: .15em; }
.system-diagram span { position: absolute; color: #b8c8c3; font-size: .52rem; letter-spacing: .1em; }
.system-diagram span:nth-of-type(1) { top: 1rem; left: 1rem; }
.system-diagram span:nth-of-type(2) { right: 1rem; bottom: 1rem; color: var(--amber); }
.token-strip { margin: 2.2rem 0; display: grid; grid-template-columns: .85fr 1fr 1.12fr .92fr .72fr; }
.token { min-height: 140px; display: flex; align-items: flex-end; padding: 1rem; border: 1px solid rgba(159, 255, 94, .18); color: #fff; font-size: .55rem; }
.token:nth-child(1) { background: #071016; border-color: rgba(159, 255, 94, .46); }
.token:nth-child(2) { background: #0d1c24; }
.token:nth-child(3) { color: #071016; background: #9fff5e; }
.token:nth-child(4) { color: #071016; background: #ffb642; }
.token:nth-child(5) { background: #ff5c45; }
.prompt-box { position: relative; padding: 2rem; border: 1px solid var(--hud); background: linear-gradient(135deg, rgba(159, 255, 94, .055), transparent); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%); }
.prompt-box::before { content: "PROMPT PACKET"; position: absolute; top: -.65rem; left: 1rem; padding: 0 .6rem; color: var(--hud); background: #071016; font-size: .53rem; letter-spacing: .15em; }

@media (max-width: 1000px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav-strip { display: none; }
  .hero-copy { left: 2rem; width: min(720px, 80vw); }
  .hero-film { background-position: 58% 52%; }
  .hud { inset: calc(76px + 40px) 1.5rem 40px; }
  .mission-grid { grid-template-columns: 1fr 1.25fr; }
  .radar-scope { min-height: 520px; }
  .patch-grid { grid-template-columns: repeat(2, 1fr); }
  .tradition { grid-template-columns: .7fr 1.3fr; }
  .debrief-inner { grid-template-columns: .45fr 1.2fr; }
  .recovery-data { display: none; }
  footer { grid-template-columns: 1fr 1fr; }
  footer p { grid-column: 1 / -1; grid-row: 2; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-toc { display: none; }
}

@media (min-width: 760px) and (max-width: 1000px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: 1.5rem; }
  .nav-strip { display: flex; justify-content: center; gap: 1.05rem; }
  .nav-strip a, .audio-switch { font-size: .5rem; }
  .hero h1 { font-size: clamp(5.5rem, 14vw, 7.4rem); }
  .pitch-ladder, .velocity-vector { left: 50%; }
  .guide-hero { padding-inline: 2rem; }
}

@media (max-width: 680px) {
  body { padding-bottom: 52px; }
  .topbar { height: 64px; padding: 0 .8rem; backdrop-filter: none; }
  .brand { font-size: .5rem; }
  .brand svg { width: 32px; }
  .audio-switch { width: 44px; padding: 0; justify-content: center; font-size: 0; }
  .audio-switch .audio-lamp { width: 10px; height: 10px; border: 1px solid var(--hud); }
  .nav-strip { position: fixed; z-index: 110; right: 0; bottom: 0; left: 0; height: 52px; display: flex; justify-content: stretch; gap: 0; border-top: 1px solid rgba(159, 255, 94, .3); background: rgba(2, 8, 11, .98); backdrop-filter: blur(14px); }
  .nav-strip a { min-width: 25%; height: 52px; font-size: .46rem; letter-spacing: .08em; }
  .hero { min-height: 720px; }
  .hero-film { background-position: 61% center; transform: translate3d(var(--film-x), var(--film-y), 0) scale(1.12); filter: saturate(.75) contrast(1.12) brightness(.58); }
  .hero-film::before { background: linear-gradient(90deg, rgba(2, 6, 8, .62), rgba(2, 6, 8, .14)), linear-gradient(180deg, rgba(2, 6, 8, .1) 22%, rgba(2, 6, 8, .88) 79%); }
  .letterbox-top { top: 64px; }
  .letterbox { height: 26px; }
  .hero-caption { top: 102px; left: 1.2rem; gap: .7rem; font-size: .43rem; }
  .hero-caption span:nth-of-type(1) { display: none; }
  .hud { inset: 90px .5rem 26px; opacity: .68; }
  .hud-corners { inset: 7% 2%; }
  .heading-tape { top: 9%; gap: 1rem; }
  .heading-tape span:first-child, .heading-tape span:last-child { display: none; }
  .pitch-ladder { top: 36%; left: 50%; width: 74vw; opacity: .7; }
  .velocity-vector { top: 36%; left: 50%; }
  .tape { top: 20%; width: 54px; height: auto; overflow: visible; }
  .tape span { display: none; }
  .tape b { height: auto; padding: .35rem .2rem; }
  .speed-tape { left: 2%; }
  .alt-tape { right: 2%; }
  .gauge { bottom: 8%; left: 4%; }
  .hud-mode { right: 4%; bottom: 7%; font-size: .46rem; }
  .target-cue { top: 28%; left: 66%; width: 58px; height: 58px; }
  .hero-copy { right: 1.2rem; bottom: 6.6rem; left: 1.2rem; width: auto; padding: .8rem 0; background: linear-gradient(90deg, rgba(2, 7, 9, .82), rgba(2, 7, 9, .2)); }
  .kicker { max-width: 92%; font-size: .5rem; line-height: 1.75; }
  .hero h1 { font-size: clamp(3.75rem, 18vw, 4.8rem); }
  .hero h1 em { font-size: .31em; letter-spacing: .14em; }
  .hero-lede { max-width: 93%; margin: 1rem 0; font-size: .76rem; line-height: 1.65; }
  .enter-control { font-size: .58rem; }
  .scroll-telemetry { right: 1.2rem; bottom: 3.4rem; }
  .scroll-telemetry span { display: none; }
  .section-target { padding: 6rem 1.2rem; }
  .section-target::after { display: none; }
  .section-code { right: .45rem; }
  .section-target h2 { font-size: clamp(2.15rem, 10.5vw, 3.1rem); line-height: 1.06; }
  .brief-head, .roster-heading { grid-template-columns: 1fr; gap: 2rem; }
  .brief-intro, .roster-heading > p { font-size: .8rem; }
  .mission { min-height: auto; }
  .mission-grid { grid-template-columns: 1fr; margin-top: 3rem; }
  .radar-scope { grid-row: auto; grid-column: 1; min-height: 350px; }
  .objective-card, .metar { padding: 1.35rem; }
  .mission-tape { grid-template-columns: 1fr 1fr; }
  .mission-tape span { min-height: 55px; padding: .7rem; }
  .patch-grid { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 4rem; }
  .pilot-card, .pilot-card:nth-child(2), .pilot-card:nth-child(5) { min-height: 210px; grid-template-columns: 38% 62%; grid-template-rows: auto; align-items: center; padding: .8rem .3rem; transform: none; }
  .pilot-card:hover, .pilot-card:focus-visible, .pilot-card:nth-child(2):hover, .pilot-card:nth-child(5):hover { transform: none; }
  .pilot-card::after { top: .4rem; font-size: 1.2rem; }
  .patch { width: 100%; max-height: 170px; }
  .pilot-card span { padding-right: 1.8rem; }
  .pilot-card h3 { font-size: 1.05rem; }
  .pilot-card small { color: #becbc7; font-size: .62rem; }
  .roster { padding-bottom: 3.5rem; }
  .sorties { padding: 5rem .8rem; }
  .board-header { display: block; padding: 1.5rem 1rem; }
  .clock { margin-top: 1.2rem; text-align: left; }
  .sortie-row.labels { display: none; }
  .sortie-table { display: grid; grid-template-columns: 1fr 1fr; }
  .sortie-row:not(.labels) { min-height: 154px; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; align-content: center; padding: .85rem; }
  .sortie-row:not(.labels):hover { padding-left: .85rem; }
  .sortie-row [data-label]::before { content: attr(data-label); display: block; margin-bottom: .12rem; color: var(--muted); font-size: .43rem; letter-spacing: .1em; }
  .sortie-row i { padding: .2rem .35rem; font-size: .5rem; }
  .board-footer { display: block; padding: 1rem; }
  .board-footer p { margin-top: .7rem; text-align: left; }
  .tradition { display: block; padding-top: 4rem; background: linear-gradient(180deg, #03080b 0 34%, #101a1d 34%); }
  .six-mark { min-height: 350px; margin-bottom: 4rem; }
  .six-numeral { font-size: 14rem; }
  .six-mark small { top: 1rem; left: 1rem; font-size: .47rem; }
  .check-control { bottom: 3.7rem; width: 150px; min-height: 58px; }
  .check-status { bottom: 1.3rem; font-size: .43rem; }
  .tradition-copy .lead { font-size: .9rem; }
  .tradition-columns { columns: 1; }
  .tradition blockquote { padding-left: 1rem; font-size: .8rem; }
  .ritual-steps { grid-template-columns: 1fr; }
  .ritual-steps li { min-height: 50px; display: grid; grid-template-columns: 3rem 1fr; align-items: center; }
  .debrief { padding: 3rem 1.2rem 2rem; }
  .debrief-inner { min-height: 570px; display: grid; grid-template-columns: .38fr 1fr; gap: 1rem; }
  .runway { width: 100px; height: 520px; }
  .debrief-copy h2 { font-size: 2.45rem; }
  .debrief-copy > p:not(.section-kicker) { font-size: .78rem; }
  .log-link { font-size: .54rem; }
  .section-lock { top: 76px !important; left: 12px !important; width: calc(100vw - 24px) !important; height: 30px !important; color: var(--hud); filter: none; transform: none; }
  .section-lock i { width: 10px; height: 10px; }
  .section-lock span { top: 5px; right: auto; bottom: auto; left: 16px; padding: 0; background: transparent; font-size: .47rem; transform: none; }
  .section-lock b { top: 4px; right: 10px; transform: none; }
  footer { grid-template-columns: 1fr; gap: .7rem; padding: 2.2rem 1.2rem 2.7rem; text-align: center; }
  .footer-badge { justify-content: center; }
  footer p { grid-column: auto; grid-row: auto; order: 2; }
  footer nav { order: 3; justify-self: center; flex-wrap: wrap; justify-content: center; gap: .2rem 1rem; }
  .guide-main { padding: 108px 1.2rem 5rem; }
  .guide-main::before { top: 84px; right: 1.2rem; font-size: .42rem; }
  .guide-hero { min-height: 420px; grid-template-columns: 1fr; gap: 2rem; padding: 2.3rem 1.1rem; }
  .guide-hero h1 { font-size: clamp(3rem, 17vw, 4.6rem); }
  .guide-grid { padding-top: 3.5rem; }
  .guide-article section { margin-bottom: 4.5rem; }
  .guide-article h2 { font-size: clamp(1.8rem, 9vw, 2.6rem); }
  .guide-article p { font-size: .8rem; line-height: 1.82; }
  .system-diagram { min-height: 200px; }
  .token-strip { grid-template-columns: 1fr; }
  .token { min-height: 68px; }
  .prompt-box { padding: 1.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .sweep, .scroll-telemetry i, .target-cue, .feed-state::before, .scan-contact { animation: none; }
  .hero-copy > *, .hero-caption { opacity: 1; transform: none; animation: none; }
  .hero-film, .hud, #sky-canvas, .pitch-ladder, .patch, .pilot-card, .enter-control i, .log-link svg { transition: none; transform: none; }
  .section-lock { display: none; }
}
