/* Grounds Control · rebuild 05 */
:root {
  --ink: #0d0c0a;
  --roast: #1a130f;
  --paper: #efebe4;
  --paper-2: #e4ded4;
  --signal: #ff4f00;
  --signal-ink: #0d0c0a;
  --tele: #59f2a4;
  --static: #5c5650;
  --mute: #9b9187;
  --mute-paper: #5f574f;
  --line: rgba(255, 255, 255, .16);
  --gut: clamp(16px, 3.2vw, 46px);
  --bar-h: 64px;
  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-mono: "Martian Mono", ui-monospace, monospace;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: #fff;
  font: 400 16px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--signal); color: var(--ink); padding: 10px 14px; font: 500 12px var(--f-mono); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { padding-inline: var(--gut); max-width: 1600px; margin-inline: auto; }
.mono { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; }
.dim { color: var(--mute); }
.paper .dim { color: var(--mute-paper); }
.display { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }
.signal { color: var(--signal); }
.reticle-i, .mono i, .hero-logo i, .orbit-logo i { font-style: normal; }
.label { display: flex; gap: 10px; align-items: center; color: var(--mute); margin-bottom: 18px; }
.label b { background: var(--signal); color: var(--ink); padding: 2px 6px; font-weight: 500; }
.paper .label { color: var(--mute-paper); }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.45; max-width: 34em; margin-top: 22px; color: #d9d2c9; }
.paper .lead { color: #3a342e; }
.h2 { font-size: clamp(64px, 10.4vw, 170px); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--tele); margin-right: 7px; vertical-align: 1px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 14px; height: 48px; padding: 0 20px; font: 400 12px/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: .06em; text-transform: uppercase; position: relative; overflow: hidden; isolation: isolate; transition: color .25s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .35s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn i { font-style: normal; transition: transform .35s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal::before { background: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink::before { background: var(--signal); }
.btn-ink:hover, .btn-ink:focus-visible { color: var(--ink); }
.btn-line { box-shadow: inset 0 0 0 1px currentColor; }
.btn-line::before { background: currentColor; }
.btn-line:hover span, .btn-line:hover i { color: var(--signal); }
.close .btn-line:hover span, .close .btn-line:hover i { color: var(--signal); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]::before { display: none; }

/* ---------- header bar ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--bar-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gut); transition: transform .5s var(--ease), background .3s; }
.bar::before { content: ""; position: absolute; inset: 0; background: rgba(13, 12, 10, .82); backdrop-filter: blur(10px); opacity: 0; transition: opacity .3s; z-index: -1; border-bottom: 1px solid var(--line); }
.bar.is-solid::before { opacity: 1; }
.bar.is-hidden { transform: translateY(-100%); }
.bar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 12px var(--f-mono); letter-spacing: .06em; color: var(--signal); white-space: nowrap; }
.bar-logo i { font-style: normal; }
.reticle { width: 24px; height: 24px; fill: none; stroke: var(--signal); stroke-width: 1.6; }
.reticle rect { fill: var(--signal); stroke: none; }
.bar-logo:hover .reticle { animation: spin 1.2s var(--ease); }
@keyframes spin { to { transform: rotate(90deg); } }
.bar-nav { display: flex; gap: 4px; margin-left: auto; }
.bar-nav a { font: 400 11px var(--f-mono); font-stretch: 87.5%; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding: 8px 10px; display: flex; gap: 6px; color: #d8d1c8; position: relative; }
.bar-nav a b { font-weight: 400; color: var(--mute); }
.bar-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.bar-nav a:hover::after, .bar-nav a.is-current::after { transform: scaleX(1); }
.bar-nav a.is-current b { color: var(--signal); }
.bar-right { display: flex; align-items: center; gap: 14px; }
.bar-clock { font: 400 11px var(--f-mono); font-stretch: 87.5%; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-sound { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px; font: 400 11px var(--f-mono); color: var(--mute); }
.bar-sound[aria-pressed="true"] { color: var(--signal); }
.eq { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; }
.bar-sound[aria-pressed="true"] .eq i { animation: eq .9s ease-in-out infinite alternate; }
.bar-sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -.3s; }
.bar-sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -.6s; }
.bar-sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { to { height: 12px; } }
.bar-cta { height: 38px; padding: 0 14px; font-size: 11px; }
.pass-count { background: var(--ink); color: var(--signal); min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 10px; padding: 0 4px; }
.pass-count.hop { animation: hop .45s var(--ease-out); }
@keyframes hop { 40% { transform: translateY(-6px) scale(1.15); } }
.bar-menu { display: none; width: 40px; height: 40px; position: relative; }
.bar-menu span:not(.sr-only) { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; transition: transform .35s var(--ease); }
.bar-menu span:nth-child(1) { top: 15px; } .bar-menu span:nth-child(2) { top: 23px; }
.bar-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.bar-menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); padding: calc(var(--bar-h) + 24px) var(--gut) 28px; display: flex; flex-direction: column; justify-content: space-between; }
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a { display: flex; gap: 14px; align-items: baseline; text-decoration: none; font: 800 clamp(40px, 12vw, 64px)/1 var(--f-display); text-transform: uppercase; padding: 8px 0; border-bottom: 1px solid var(--line); }
.menu a b { font: 400 11px var(--f-mono); color: var(--signal); }
.menu-foot { color: var(--mute); }

/* ---------- pixel-square wipe ---------- */
.wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; grid-template-columns: repeat(var(--cols, 12), 1fr); grid-auto-rows: 1fr; }
.wipe i { background: var(--signal); opacity: 0; }
.wipe i:nth-child(3n) { background: var(--ink); }

/* ---------- flap tiles ---------- */
.flapline { display: inline-flex; gap: 2px; vertical-align: middle; font-family: var(--f-mono); font-stretch: 100%; }
.ft { --w: 22px; --h: 34px; --fs: 19px; contain: strict; position: relative; width: var(--w); height: var(--h); font-size: var(--fs); line-height: var(--h); text-align: center; color: #f4efe8; flex: none; }
.ft > span { position: absolute; left: 0; right: 0; overflow: hidden; background: #1d1a17; }
.ft > span b { display: block; height: var(--h); font-weight: 400; }
.ft .u, .ft .fu { top: 0; height: 50%; border-radius: 2px 2px 0 0; transform-origin: 50% 100%; }
.ft .l, .ft .fl { bottom: 0; height: 50%; border-radius: 0 0 2px 2px; transform-origin: 50% 0; background: #221e1a; }
.ft .l b, .ft .fl b { transform: translateY(-50%); }
.ft .fu { z-index: 2; }
/* idle leaves stay 2D so a settled tile is not a compositor layer; the fold is 3D only while it runs */
.ft .fl { z-index: 2; transform: scaleY(0); }
.ft::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .7); z-index: 3; }
.ft.sp > span { background: #161412; }
.flapline.sm .ft { --w: 13px; --h: 20px; --fs: 11px; }
.flapline.md .ft { --w: 20px; --h: 32px; --fs: 17px; }
.flapline .sep { width: 6px; text-align: center; align-self: center; color: var(--mute); font-size: 11px; }
.c-ok .ft { color: var(--tele); }
.c-warn .ft { color: var(--signal); }

/* ---------- letter roll ---------- */
.roll-w { display: inline-block; white-space: nowrap; }
.roll-c { position: relative; display: inline-block; vertical-align: top; overflow-x: visible; overflow-y: clip; }
.roll-s { visibility: hidden; display: block; }
.roll-t { position: absolute; left: 0; right: 0; top: 0; display: flex; flex-direction: column; align-items: center; }
.roll-t > span { display: block; height: 1.35lh; white-space: pre; }
.roll-sp { display: inline-block; width: .22em; }

/* ---------- pixel frames ---------- */
.pxframe { position: relative; overflow: hidden; background: #1d1a17 var(--px) center / cover no-repeat; image-rendering: pixelated; }
.pxframe canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pxframe.is-live { image-rendering: auto; }
.pxframe[data-lens] { cursor: crosshair; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: #000; }
.hero-media { position: absolute; inset: 0; background: #0b0807 var(--px) center / cover no-repeat; image-rendering: pixelated; }
.hero-video, .hero-canvas, .hero-lens { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { opacity: 0; transform: scale(1.06); transform-origin: 50% 70%; }
.hero.is-live .hero-video { opacity: 1; }
.hero.is-live .hero-canvas { opacity: 0; transition: opacity .2s; }
.hero-lens { pointer-events: none; opacity: 0; transition: opacity .25s; display: none; }
.hero.has-scan .hero-lens { display: block; }
.hero-loss { opacity: 0; image-rendering: pixelated; }
.hero.is-loss .hero-loss { opacity: 1; }
.hero.is-loss .hero-video, .hero.is-loss .hero-canvas:not(.hero-loss) { opacity: 0; }
.hero.is-scan .hero-lens { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0, rgba(0, 0, 0, .5) 90px, transparent 220px, transparent 45%, rgba(0, 0, 0, .78) 82%, #000 100%); pointer-events: none; }
.hud { position: absolute; inset: calc(var(--bar-h) + 10px) var(--gut) 150px; pointer-events: none; }
.hud-c { position: absolute; width: 22px; height: 22px; border: 0 solid var(--signal); }
.hud-c.tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.hud-c.tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.hud-c.bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.hud-c.br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.hud-tl, .hud-tr { position: absolute; top: 14px; display: flex; flex-direction: column; gap: 2px; color: rgba(255, 255, 255, .62); }
.hud-tl { left: 34px; }
.hud-tr { right: 34px; align-items: flex-end; }
.hud-status { color: var(--signal); }
.hud.is-locked .hud-status { color: var(--tele); }
.hud-meter { width: 120px; height: 4px; background: rgba(255, 255, 255, .15); display: block; margin: 3px 0; }
.hud-meter b { display: block; height: 100%; width: 0; background: var(--signal); }
.hud.is-locked .hud-meter b { background: var(--tele); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); align-items: end; gap: 24px; padding: 0 var(--gut) 26px; }
.hero-logo { color: var(--signal); font-size: clamp(20px, 2.3vw, 36px); line-height: 1.04; font-weight: 400; letter-spacing: 0; font-stretch: 100%; }
.hero-title { color: var(--signal); font-size: clamp(76px, 12.6vw, 210px); text-align: right; line-height: .84; }
.hero-foot { position: relative; display: grid; grid-template-columns: 3fr 3fr 3fr 3fr; gap: 16px; align-items: center; padding: 16px var(--gut) 22px; border-top: 1px solid var(--line); color: #e8e1d8; }
.hero-count { display: flex; gap: 10px; align-items: center; }
.hero-dates { text-align: right; color: var(--signal); }
.hero-cue { position: absolute; right: calc(var(--gut) + 6px); top: calc(var(--bar-h) + 120px); display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: rgba(255, 255, 255, .7); writing-mode: vertical-rl; }
.hero-cue i { width: 1px; height: 54px; background: linear-gradient(var(--signal), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
[data-fade] { opacity: 0; }
.is-in [data-fade], .reduced [data-fade] { opacity: 1; transition: opacity 1s var(--ease-out); }
.is-in [data-fade="2"] { transition-delay: .45s; } .is-in [data-fade="3"] { transition-delay: .55s; }
.is-in [data-fade="4"] { transition-delay: .65s; } .is-in [data-fade="5"] { transition-delay: .75s; }
.is-in [data-fade="1"] { transition-delay: .15s; }

/* ---------- BRIEF ---------- */
.brief { position: relative; min-height: 110vh; display: flex; align-items: center; overflow: hidden; background: #000; }
.brief-bg { position: absolute; inset: 0; opacity: .62; }
.brief-bg .pxframe { position: absolute; inset: 0; }
.brief-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(0, 0, 0, .7) 90%); }
.brief-inner { position: relative; padding: 18vh var(--gut); max-width: 1500px; }
.brief-text { font-size: clamp(28px, 3.9vw, 62px); line-height: 1.1; letter-spacing: -.02em; font-weight: 400; color: #fff; }
.brief-text .num { font-family: var(--f-mono); font-stretch: 87.5%; font-size: .78em; letter-spacing: -.03em; }
.brief-text .sc { color: var(--static); }
.brief-text .sc.on { color: #fff; }
.brief-text .num .sc.on { color: var(--signal); }
.brief-text .sc.caret { background: var(--signal); color: var(--ink); }
.brief-note { margin-top: 36px; color: var(--mute); }

/* ---------- ABORT (facts) ---------- */
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }
.abort { padding: 140px 0 150px; }
.sec-head { margin-bottom: 72px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: f; }
.fact { display: flex; flex-direction: column; }
.fact-i { color: var(--mute-paper); padding-bottom: 14px; border-bottom: 1px solid rgba(13, 12, 10, .2); margin-bottom: 18px; }
.fact-h { font: 600 clamp(24px, 2.2vw, 32px)/1.06 var(--f-body); letter-spacing: -.02em; text-transform: uppercase; min-height: 3.2em; }
.hl > span { background: linear-gradient(var(--signal), var(--signal)) left / 0% 100% no-repeat; box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 4px; margin: 0 -4px; transition: background-size 1s var(--ease-out); }
.hl.on > span { background-size: 100% 100%; }
.fact-p { margin: 18px 0 28px; max-width: 30em; color: #2c2722; font-size: 16.5px; }
.fact-fig { margin-top: auto; }
.fact-fig .pxframe { aspect-ratio: 4 / 3; }
.fact-fig figcaption { margin-top: 10px; font-size: 10px; color: #4a433c; }

/* lens */
.lens-ui { position: absolute; pointer-events: none; border: 1.5px solid var(--signal); opacity: 0; transition: opacity .2s; }

/* ---------- FLIGHT PLAN ---------- */
.plan { position: relative; padding: 140px 0 0; overflow: clip; }
.plan-bg { position: absolute; inset: -10% 0 0; background-size: 1200px auto; background-repeat: repeat; background-position: center top; opacity: .9; }
.plan::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0, rgba(13, 12, 10, .25) 18%, rgba(13, 12, 10, .2) 85%, var(--ink)); pointer-events: none; }
.plan > *:not(.plan-bg) { position: relative; z-index: 1; }
.plan-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 70px; }
.plan-head .lead { text-align: center; }
.route { --dash: 120px; padding: 0 var(--gut); }
.leg { display: grid; grid-template-columns: minmax(0, 1fr) var(--dash) auto var(--dash) minmax(0, 1fr); align-items: center; column-gap: 20px; }
.leg-row { display: contents; }
.leg .chip { grid-column: 3; grid-row: 1; justify-self: center; }
.leg .line { grid-column: 3; grid-row: 3; justify-self: center; }
.leg.left .dash { grid-column: 2; grid-row: 1; }
.leg.right .dash { grid-column: 4; grid-row: 1; }
.leg.left .leg-img { grid-column: 1; grid-row: 1; justify-self: end; }
.leg.right .leg-img { grid-column: 5; grid-row: 1; justify-self: start; }
.leg.left .leg-txt { grid-column: 1; grid-row: 2; justify-self: end; }
.leg.right .leg-txt { grid-column: 5; grid-row: 2; justify-self: start; }
.leg-img { width: min(100%, 360px); aspect-ratio: 4 / 3; }
.leg-tag { position: absolute; left: 8px; bottom: 8px; background: rgba(13, 12, 10, .8); color: #fff; padding: 2px 6px; font-size: 10px; }
.leg-txt { max-width: 360px; width: 100%; margin-top: 16px; font-size: 17px; line-height: 1.42; color: #f1ece5; }
.line { display: block; width: 1.5px; height: 200px; background: var(--signal); transform-origin: top; }
.leg-0 { grid-template-rows: auto auto auto; }
.leg-0 .line { grid-row: 2; height: 150px; }
.chip { display: inline-flex; background: var(--signal); color: var(--ink); font: 400 clamp(15px, 1.5vw, 22px)/1 var(--f-mono); font-stretch: 87.5%; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.chip > span { display: block; padding: 12px 16px; }
.chip b { font-weight: 400; opacity: .55; margin-right: 6px; }
.chip-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }
.dash { display: block; height: 0; border-top: 1.5px dashed rgba(255, 255, 255, .8); width: 100%; }
.leg-row .chip, .orbit .chip { margin: 16px 0; }

/* orbit */
.orbit-pin.near { will-change: transform; }
.orbit-pin { height: 100vh; min-height: 640px; display: flex; align-items: center; justify-content: center; padding: calc(var(--bar-h) + 6px) var(--gut) 24px; }
.orbit { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; }
.orbit-top { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) var(--dash, 120px) auto var(--dash, 120px) minmax(0, 1fr); column-gap: 20px; align-items: center; }
.orbit-top .orbit-landing { grid-column: 1; justify-self: end; width: min(100%, 220px); aspect-ratio: 4 / 3; }
.orbit-top .dash-l { grid-column: 2; }
.orbit-top .chip { grid-column: 3; }
.orbit-top .dash:not(.dash-l) { grid-column: 4; }
.orbit-top .leg-txt { grid-column: 5; margin: 0; max-width: 300px; font-size: 15.5px; }
.orbit-ring { position: relative; flex: 1; min-height: 0; aspect-ratio: 1; max-height: min(460px, calc(100vh - 330px)); margin: 18px 0 6px; }
.orbit-ring svg { width: 100%; height: 100%; overflow: visible; }
.ring-base { fill: none; stroke: rgba(255, 79, 0, .22); stroke-width: 1.5; }
.ring-ticks { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 6; stroke-dasharray: 1 11.2; }
.ring-fill { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 200px 200px; }
.arrows path { fill: var(--signal); opacity: .3; transition: opacity .3s; }
.arrows path.on { opacity: 1; }
.sat rect { fill: var(--signal); }
.sat .sat-halo { fill: none; stroke: var(--signal); stroke-width: 1; opacity: .6; }
.orbit-core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.orbit-logo { color: var(--signal); font-size: clamp(22px, 2.6vw, 36px); line-height: 1.05; font-stretch: 100%; letter-spacing: 0; }
.orbit-tele { display: flex; gap: 14px; color: var(--mute); }
.orbit-tele b { color: #fff; font-weight: 400; font-variant-numeric: tabular-nums; }
.orbit-chip { position: absolute; }
.orbit-chip.o-right { left: 100%; top: 50%; transform: translate(28px, -50%); }
.orbit-chip.o-bottom { left: 50%; top: 100%; transform: translate(-50%, 8px); }
.orbit-chip.o-left { right: 100%; top: 50%; transform: translate(-28px, -50%); }
.orbit-chip.o-bottom > span, .orbit-chip.o-left > span, .orbit-chip.o-right > span { padding: 12px 16px; }
.orbit-caption { color: var(--mute); margin-top: 78px; text-align: center; }
.chip-land.pulse { animation: pulse 1s var(--ease-out); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 79, 0, .8); } 100% { box-shadow: 0 0 0 26px rgba(255, 79, 0, 0); } }

/* ---------- BOARD ---------- */
.board-sec { padding: 150px 0 140px; background: var(--ink); position: relative; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.board-stats { display: flex; gap: 34px; }
.board-stats dt { color: var(--mute); margin-bottom: 8px; }
.board { background: #0f0d0b; border: 1px solid #2a2520; padding: 18px 20px 20px; overflow: hidden; }
.board { --tw: 26px; --th: 40px; --tfs: 22px; }
.board .ft { --w: var(--tw); --h: var(--th); --fs: var(--tfs); }
.board-row { display: grid; grid-template-columns: var(--cols); gap: 22px; align-items: center; padding: 7px 0; border-bottom: 1px solid #1c1916; }
.board-row:last-child { border-bottom: 0; }
.board-th { font: 400 10px var(--f-mono); color: var(--mute); padding-top: 0; }
.board-th span { white-space: nowrap; }
.board-canvas { display: block; margin-top: 4px; }
.board-note { margin-top: 14px; color: var(--mute); }

/* ---------- TRANSMISSIONS ---------- */
.tx { padding: 150px 0 150px; }
.tx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; row-gap: 46px; }
.tx-card { position: relative; }
.tx-card[hidden] { display: none; }
.tx-card .pxframe { aspect-ratio: 3 / 4; }
.tx-card a { text-decoration: none; display: block; }
.tx-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; color: #4a433c; font-size: 10px; }
.tx-tag { background: var(--ink); color: var(--paper); padding: 1px 6px; }
.tx-title { font: 600 clamp(19px, 1.5vw, 23px)/1.12 var(--f-body); letter-spacing: -.015em; margin-top: 10px; text-transform: uppercase; }
.tx-p { margin-top: 10px; font-size: 15px; line-height: 1.45; color: #3a342e; }
.tx-card .pxframe::after { content: "CLICK TO RE-ACQUIRE"; position: absolute; left: 10px; top: 10px; font: 400 10px var(--f-mono); background: var(--signal); color: var(--ink); padding: 3px 6px; opacity: 0; transform: translateY(-4px); transition: .3s var(--ease-out); }
.tx-card:hover .pxframe::after { opacity: 1; transform: none; }
.tx-card.is-new { animation: txin .6s var(--ease-out) both; }
@keyframes txin { from { opacity: 0; transform: translateY(30px); } }
.tx-more { display: flex; justify-content: center; margin-top: 70px; }
.tx-more i { font-style: normal; font-size: 18px; transition: transform .4s var(--ease); }
.tx-more [aria-expanded="true"] i { transform: rotate(45deg); }

/* ---------- DROP ZONES ---------- */
.zones { padding: 150px 0 150px; background: #090807; }
.zones-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.zones-ctrl { display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.zones-ctrl label { color: var(--mute); }
.select { position: relative; }
.select select { appearance: none; width: 100%; height: 52px; background: var(--signal); color: var(--ink); border: 0; border-radius: 0; padding: 0 44px 0 16px; font: 500 13px var(--f-mono); font-stretch: 87.5%; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.select select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.select option { background: var(--ink); color: #fff; }
.select i { position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.zones-legend { display: flex; gap: 14px; color: var(--mute); }
.lg { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0; }
.lg-cafe { background: var(--signal); } .lg-bar { background: #fff; } .lg-lab { background: var(--tele); }
.map { position: relative; aspect-ratio: 1.59; background: #070605; border: 1px solid #241f1b; overflow: hidden; touch-action: pan-y; }
.map-world { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.map-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-labels { position: absolute; inset: 0; pointer-events: none; }
.map-labels span { position: absolute; left: 0; top: 0; transform: translate(var(--x, 0), var(--y, 0)) translate(-50%, -50%) scale(var(--inv, 1)); font: 400 10px/1 var(--f-mono); letter-spacing: .08em; color: rgba(255, 255, 255, .78); white-space: nowrap; text-transform: uppercase; transition: color .3s, background .3s, transform .9s var(--ease); }
.map-labels span.district { background: rgba(7, 6, 5, .9); box-shadow: 0 0 0 1px #2b2622; padding: 4px 6px 3px; }
.map-labels span.on { background: var(--signal); color: var(--ink); box-shadow: none; }
.map-labels span.place { color: rgba(255, 255, 255, .5); letter-spacing: .2em; }
.map-labels span.river { color: #8fb0c4; font-style: italic; letter-spacing: .3em; }
.map-labels span[hidden] { display: none; }
.map-pins { position: absolute; inset: 0; }
/* pins and labels are placed with transforms, so re-projecting after a zoom is not a layout shift */
.pin { position: absolute; left: 0; top: 0; width: 30px; height: 38px; margin: -38px 0 0 -15px; transform: translate(var(--x, 0), var(--y, 0)) scale(var(--inv, 1)); transform-origin: 50% 100%; transition: opacity .35s, transform .9s var(--ease); }
.map-world.snap .pin, .map-world.snap .map-labels span { transition: none; }
.pin svg { width: 100%; height: 100%; overflow: visible; }
.pin .pb { fill: var(--ink); stroke: currentColor; stroke-width: 1.6; transition: fill .2s; }
.pin .pc { fill: currentColor; }
.pin.t-cafe { color: var(--signal); } .pin.t-bar { color: #fff; } .pin.t-lab { color: var(--tele); }
.pin:hover .pb, .pin.on .pb, .pin:focus-visible .pb { fill: currentColor; }
.pin:hover .pc, .pin.on .pc, .pin:focus-visible .pc { fill: var(--ink); }
.pin.off { opacity: .14; pointer-events: none; }
.map-pins.overview .pin { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; transform-origin: 50% 50%; background: currentColor; box-shadow: 0 0 0 2px #070605; }
.map-pins.overview .pin svg { display: none; }
.map-pins.overview .pin:hover, .map-pins.overview .pin:focus-visible, .map-pins.overview .pin.on { transform: translate(var(--x, 0), var(--y, 0)) scale(calc(var(--inv, 1) * 1.6)); box-shadow: 0 0 0 2px #070605, 0 0 0 4px currentColor; z-index: 2; }
.map-pins.overview .pin-ping { bottom: 50%; margin-bottom: -13px; }
.map-pins.overview .pin.lift { transform: translate(var(--x, 0), var(--y, 0)) scale(calc(var(--inv, 1) * 1.7)); z-index: 2; box-shadow: 0 0 0 2px #070605, 0 0 0 4px currentColor; }
.map-pins:not(.overview) .pin.lift { transform: translate(var(--x, 0), var(--y, 0)) scale(calc(var(--inv, 1) * 1.2)); }
/* side panel: lives in the empty west of the plate */
.map-side { position: absolute; left: 0; top: 0; bottom: 0; width: 280px; z-index: 3; padding: 22px 20px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(90deg, rgba(7, 6, 5, .96) 70%, rgba(7, 6, 5, 0)); color: #e8e1d8; }
.ms-k { color: var(--mute); }
.ms-big { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid #2a2520; padding-bottom: 12px; }
.ms-big b { font: 800 64px/0.9 var(--f-display); color: var(--signal); }
.ms-big span { color: #e8e1d8; }
.ms-counts div { display: flex; justify-content: space-between; padding: 4px 0; }
.ms-counts dd { color: #fff; }
.ms-open { color: var(--tele); display: flex; align-items: center; }
.ms-list { display: flex; flex-direction: column; overflow: auto; min-height: 0; margin: -4px -8px 0; }
.ms-list button { width: 100%; display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; text-align: left; font: inherit; letter-spacing: inherit; text-transform: uppercase; color: #cfc7bd; }
.ms-list button span { color: var(--mute); }
.ms-list button:hover { background: #1a1612; color: #fff; }
.ms-list button[aria-pressed="true"] { background: var(--signal); color: var(--ink); }
.ms-list button[aria-pressed="true"] span { color: var(--ink); }
@media (max-width: 999px) { .map-side { display: none; } }
.pin.drop { animation: pindrop .5s var(--ease-out) both; }
@keyframes pindrop { from { opacity: 0; transform: translate(var(--x, 0), calc(var(--y, 0px) - 14px)) scale(var(--inv, 1)); } }
.pin-ping { position: absolute; left: 50%; bottom: 0; width: 26px; height: 26px; margin: 0 0 -13px -13px; border: 1px solid currentColor; opacity: 0; pointer-events: none; }
.pin.on .pin-ping { animation: ping 1.4s var(--ease-out) infinite; }
@keyframes ping { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(2.2); } }
.map-hud { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 16px; color: rgba(255, 255, 255, .5); pointer-events: none; }
.map-card { position: absolute; z-index: 5; width: 290px; background: var(--ink); border: 1px solid var(--signal); padding: 18px 18px 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); }
.map-card[hidden] { display: none; }
.map-card.show { animation: cardin .35s var(--ease-out); }
@keyframes cardin { from { opacity: 0; transform: translateY(8px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.map-card-x { position: absolute; right: 6px; top: 4px; width: 36px; height: 36px; font-size: 22px; color: var(--mute); }
.map-card-x:hover { color: #fff; }
.map-card-type { color: var(--signal); }
.map-card-name { font: 600 21px/1.1 var(--f-body); margin: 6px 30px 12px 0; }
.map-card-meta div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid #2a2520; }
.map-card-meta dt { color: var(--mute); }
.map-card-meta dd { text-align: right; }
.map-card-go { display: inline-block; margin-top: 12px; background: var(--signal); color: var(--ink); padding: 8px 12px; text-decoration: none; }
.map-card-go:hover { background: #fff; }
.map-note { margin-top: 14px; color: var(--mute); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.map-note .tag { background: var(--signal); color: var(--ink); padding: 3px 8px; }

/* ---------- CLOSE ---------- */
.close { position: relative; padding: 220px 0 110px; overflow: hidden; background: #0e0d0b; }
.close-plate { position: absolute; inset: -12% 0; background: center / cover no-repeat; opacity: .95; }
.close-plate.near { background-image: url(assets/img/plate-halftone.webp); }
.close-plate canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.close-plate.is-field { background: #0e0d0b; }
.close .wrap { position: relative; }
.close-box { background: var(--signal); color: var(--ink); padding: clamp(22px, 3vw, 44px); }
.close-title { font-size: clamp(54px, 9.4vw, 156px); }
.close-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 40px; padding-top: 24px; border-top: 1.5px solid var(--ink); flex-wrap: wrap; }
.close-p { max-width: 30em; font-size: 18px; line-height: 1.45; }
.close-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.close .btn-line { color: var(--ink); }
.close .btn-line::before { background: var(--ink); }

/* ---------- FOOTER ---------- */
.foot { background: var(--ink); padding: 70px 0 40px; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.foot-logo { color: var(--signal); font-size: clamp(30px, 4vw, 60px); line-height: 1.02; font-stretch: 100%; letter-spacing: 0; }
.foot-mission { color: #e3dcd2; font-size: 12px; }
.foot-up { text-decoration: none; color: var(--signal); padding: 8px 0; }
.foot-up:hover { text-decoration: underline; }
.foot-word { display: flex; justify-content: space-between; gap: 0; width: 100%; margin: 46px 0 8px; }
.foot-word .ft { --w: calc((min(100vw, 1600px) - 2 * var(--gut) - 14 * 6px) / 15); --h: calc(var(--w) * 1.42); --fs: calc(var(--w) * 1.02); color: var(--signal); }
.foot-word .ft > span { background: #171411; }
.foot-word .ft .l, .foot-word .ft .fl { background: #1c1815; }
.foot-word .ft.sp > span { background: #121010; }
.foot-credits { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0; color: #e3dcd2; }
.foot-disc { color: var(--mute); font-size: 14px; max-width: 46em; }

/* ---------- MISSION PASS ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .35s; }
.scrim.on { opacity: 1; }
.scrim[hidden] { display: none; }
.pass { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--paper); color: var(--ink); color-scheme: light; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .5s var(--ease); }
.pass.on { transform: none; }
.pass[hidden] { display: none; }
.pass-head { position: relative; padding: 22px 24px 18px; border-bottom: 1.5px solid var(--ink); }
.pass-head .label { margin-bottom: 8px; color: var(--mute-paper); }
.pass-title { font-size: 56px; }
.pass-x { position: absolute; right: 14px; top: 12px; width: 44px; height: 44px; font-size: 30px; line-height: 1; }
.pass-x:hover { color: var(--signal); }
.pass-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pass-items { flex: 1; overflow: auto; padding: 8px 24px; overscroll-behavior: contain; }
.pi { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(13, 12, 10, .15); }
.pi-img { width: 64px; height: 64px; background: #1d1a17 center / cover; position: relative; }
.pi-img.ticket-ico { background: var(--ink); color: var(--signal); display: grid; place-items: center; font: 500 10px var(--f-mono); }
.pi h3 { font: 600 16px/1.2 var(--f-body); }
.pi p { font-size: 13px; color: #4a433c; margin-top: 2px; }
.pi .mono { color: var(--mute-paper); font-size: 10px; margin-top: 4px; }
.pi.flash { animation: piflash 1s var(--ease-out); }
@keyframes piflash { 0% { background: rgba(255, 79, 0, .35); } }
.qty { display: flex; align-items: center; border: 1px solid var(--ink); }
.qty button { width: 34px; height: 34px; font: 500 16px var(--f-mono); }
.qty button:hover { background: var(--ink); color: var(--paper); }
.qty output { min-width: 26px; text-align: center; font: 500 13px var(--f-mono); }
.pass-sum { padding: 18px 24px 24px; border-top: 1.5px solid var(--ink); background: var(--paper-2); }
.pass-sum p.mono { display: flex; justify-content: space-between; font-size: 12px; }
.pass-sum b { font-weight: 500; font-size: 15px; }
.pass-hint { font-size: 13px; color: #4a433c; margin: 8px 0 16px; }
.pass-go { width: 100%; justify-content: space-between; height: 54px; }
.pass-done { padding: 24px; overflow: auto; }
.pass-done[hidden] { display: none; }
.ticket { background: var(--ink); color: #fff; padding: 20px; position: relative; clip-path: polygon(0 0, 100% 0, 100% 62%, calc(100% - 10px) 64%, 100% 66%, 100% 100%, 0 100%, 0 66%, 10px 64%, 0 62%); animation: tkin .7s var(--ease-out); }
@keyframes tkin { from { transform: translateY(30px); opacity: 0; } }
.ticket-top p.mono { color: var(--signal); }
.ticket-code { margin: 14px 0 18px; display: flex; }
.ticket-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 16px 0; border-top: 1px dashed rgba(255, 255, 255, .3); font-size: 10px; }
.ticket-meta dt { color: var(--mute); }
.ticket-meta dd { font-size: 12px; color: #fff; }
.ticket-bars { width: 100%; height: 48px; margin-top: 10px; fill: #fff; }
.pass-done-p { margin: 18px 0; font-size: 14px; color: #3a342e; }

/* ---------- toast + cursor ---------- */
.toast { position: fixed; left: var(--gut); bottom: 22px; z-index: 95; transform: translate(0, 20px); background: var(--signal); color: var(--ink); padding: 10px 14px; opacity: 0; pointer-events: none; transition: .35s var(--ease-out); }
.toast.on { opacity: 1; transform: none; }
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cursor i { position: absolute; width: 34px; height: 34px; margin: -17px; border: 1.5px solid var(--signal); }
.cursor i::before, .cursor i::after { content: ""; position: absolute; background: var(--signal); }
.cursor i::before { left: 50%; top: -8px; bottom: -8px; width: 1.5px; margin-left: -.75px; }
.cursor i::after { top: 50%; left: -8px; right: -8px; height: 1.5px; margin-top: -.75px; }
.cursor span { position: absolute; left: 26px; top: 14px; background: var(--signal); color: var(--ink); padding: 2px 5px; font-size: 9px; white-space: nowrap; }
.cursor.on { opacity: 1; }

/* ---------- font gate ---------- */
.fonts-wait .bar, .fonts-wait .hud, .fonts-wait .hero-grid, .fonts-wait .hero-foot, .fonts-wait .hero-cue { visibility: hidden; }

/* ---------- perf: skip off-screen work ---------- */
.cv { content-visibility: auto; contain-intrinsic-size: auto 1200px; }
.paused, .paused * { animation-play-state: paused !important; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) { .board { --tw: 21px; --th: 34px; --tfs: 18px; } }
@media (max-width: 1180px) {
  .board { --tw: 17px; --th: 28px; --tfs: 15px; }
  .board-row { gap: 14px; }
  .bar-nav { display: none; }
  .bar-right { margin-left: auto; }
  .bar-menu { display: block; }
  .tx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; gap: 70px; }
  .fact { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
  .fact > :not(.fact-fig) { grid-column: 1; }
  .fact-fig { grid-column: 2; grid-row: 1 / 5; margin: 0; }
  .fact-h { min-height: 0; }
  .route { --dash: 60px; }
}
@media (max-width: 760px) {
  :root { --bar-h: 56px; }
  .bar { gap: 10px; }
  .bar-logo span { display: none; }
  .bar-clock { display: none; }
  .bar-sound-t { display: none; }
  .bar-cta { padding: 0 12px; }
  .h2 { font-size: clamp(56px, 17vw, 92px); }
  .lead { font-size: 16.5px; }
  .hud { inset: calc(var(--bar-h) + 6px) 12px 250px; }
  .hud-tl { left: 14px; top: 30px; }
  .hud-tr { right: 14px; top: 30px; }
  .hud-tl span:last-child { display: none; }
  .hud-meter { width: 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; padding-bottom: 18px; }
  .hero-logo { order: 2; font-size: 22px; }
  .hero-title { text-align: left; font-size: clamp(58px, 18vw, 110px); }
  .hero-foot { grid-template-columns: 1fr 1fr; gap: 8px 14px; padding-bottom: 18px; font-size: 9.5px; }
  .hero-count { grid-column: 1 / -1; order: -1; }
  .hero-dates { text-align: left; }
  .hero-cue { display: none; }
  .brief { min-height: 0; }
  .brief-inner { padding: 120px var(--gut); }
  .abort, .tx, .zones, .board-sec { padding: 96px 0; }
  .sec-head { margin-bottom: 44px; }
  .fact { display: flex; }
  .fact-fig { margin-top: 0; }
  .plan { padding-top: 96px; }
  .plan-bg { background-size: 700px auto; }
  .leg, .orbit-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .leg .chip, .leg .line, .leg .dash, .leg .leg-img, .leg .leg-txt, .orbit-top > * { grid-column: 1 !important; grid-row: auto !important; justify-self: center !important; }
  .leg .dash, .orbit-top .dash { display: none; }
  .leg-img { width: 100%; max-width: 420px; margin-top: 4px; }
  .leg-txt { text-align: center; margin-bottom: 8px; }
  .line { height: 110px; }
  .orbit-top .orbit-landing { display: none; }
  .orbit-top .leg-txt { font-size: 14.5px; max-width: 320px; }
  .orbit-ring { max-height: 300px; width: 100%; max-width: 300px; margin-top: 24px; }
  .orbit-chip { display: none; }
  .orbit-chip.is-mob { display: inline-flex; left: 50%; top: 100%; right: auto; transform: translate(-50%, 18px); width: auto !important; }
  .orbit-caption { margin-top: 80px; padding: 0 10px; }
  .board-head { align-items: flex-start; }
  .board-stats { gap: 18px; }
  .flapline.md .ft { --w: 16px; --h: 26px; --fs: 13px; }
  .board { padding: 12px 10px; }
  .board-row { gap: 10px; }
  .board-th .c-bairro, .board-th .c-kg { display: none; }
  .board { --tw: 13.5px; --th: 23px; --tfs: 12px; }
  .tx-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .tx-card .pxframe { aspect-ratio: 4 / 3; }
  .zones-ctrl { min-width: 0; width: 100%; }
  .map { aspect-ratio: .82; }
  .pin { width: 24px; height: 31px; margin: -31px 0 0 -12px; }
  .map-card { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; width: auto; border: 0; border-top: 2px solid var(--signal); padding: 22px var(--gut) 28px; z-index: 85; }
  .map-card.show { animation: sheet .4s var(--ease-out); }
  @keyframes sheet { from { transform: translateY(100%); } }
  .toast { top: calc(var(--bar-h) + 10px); bottom: auto; }
  .close { padding: 140px 0 70px; }
  .close-title { font-size: clamp(44px, 13.4vw, 80px); }
  .close-btns, .close-btns .btn { width: 100%; justify-content: space-between; }
  .pass { top: auto; width: 100%; height: 92vh; transform: translateY(100%); }
  .pass-title { font-size: 48px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ---------- round 4: wider flight-plan legs with telemetry, a larger orbit ---------- */
.tele { color: #d9d1c7; }
.tele-h { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .18); color: var(--mute); }
.tele-st { color: var(--tele); display: inline-flex; align-items: center; }
.tele dl > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; padding: 9px 0 7px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.tele dt { color: var(--mute); }
.tele dd { color: #fff; font-size: 22px; font-stretch: 100%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tele dd small { font-size: 11px; color: var(--mute); letter-spacing: .04em; }
.tele dl > div::after { content: ""; grid-column: 1 / -1; height: 2px; background: linear-gradient(var(--signal), var(--signal)) left / calc(var(--t, 0) * 100%) 100% no-repeat, rgba(255, 255, 255, .08); }
.tele-n { margin-top: 10px; color: var(--mute); }
@media (min-width: 761px) {
  .route { --dash: 150px; }
  .leg { grid-template-columns: minmax(0, 1fr) var(--dash) 0 var(--dash) minmax(0, 1fr); column-gap: 0; }
  .leg .chip { position: relative; z-index: 1; }
  .leg.left .dash { justify-self: start; width: calc(var(--dash) - 104px); margin-left: 14px; }
  .leg.right .dash { justify-self: end; width: calc(var(--dash) - 104px); margin-right: 14px; }
  .leg-img { width: min(38.5vw, 640px); }
  .leg.left .leg-img, .leg.left .leg-txt { margin-right: 14px; }
  .leg.right .leg-img, .leg.right .leg-txt { margin-left: 14px; }
  .leg-txt { width: calc(min(38.5vw, 640px) - 48px); max-width: none; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.4; margin-top: 18px; }
  .leg-tag { font-size: 11px; left: 10px; bottom: 10px; }
  .leg .tele { grid-row: 1 / span 2; align-self: center; width: min(340px, calc(100% - 60px)); }
  .leg.left .tele { grid-column: 5; justify-self: start; margin-left: 60px; }
  .leg.right .tele { grid-column: 1; justify-self: end; margin-right: 60px; }
  .line { height: 170px; }

  .orbit { position: relative; }
  .orbit-top { position: absolute; top: 0; left: 0; right: 0; --dash: 250px; align-items: start; }
  .orbit-top .orbit-landing { width: 250px; }
  .orbit-top .chip { margin: 0; }
  .orbit-top .dash { margin-top: 23px; }
  .orbit-top .leg-txt { width: auto; max-width: 300px; font-size: 16px; margin-top: 8px; }
  .orbit-ring { margin: 82px 0 0; max-height: min(640px, calc(100vh - 236px)); }
  .orbit-chip.o-right { transform: translate(44px, -50%); }
  .orbit-chip.o-left { transform: translate(-44px, -50%); }
  .orbit-chip.o-bottom { transform: translate(-50%, 18px); }
  .orbit-logo { font-size: clamp(26px, 3.3vw, 50px); }
  .orbit-tele { font-size: 13px; gap: 18px; }
  .orbit-caption { position: absolute; left: 0; bottom: 0; margin: 0; text-align: left; max-width: 300px; }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .route { --dash: 90px; }
  .leg .tele { grid-row: 3; grid-column: 1 / -1 !important; justify-self: center !important; margin: 18px 0 0 !important; width: min(560px, 100%); }
  .leg .line { grid-row: 4; }
  .leg-img, .leg-txt { width: min(42vw, 520px); }
  .orbit-top { --dash: 120px; }
  .orbit-top .orbit-landing { display: none; }
}
@media (max-width: 760px) {
  .leg .tele { grid-column: 1 !important; width: 100%; max-width: 420px; margin: 4px 0 18px; text-align: left; }
  .leg .tele dl { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .leg .tele dd { font-size: 18px; }
  .leg .line { grid-row: auto !important; order: 2; }
  .leg .tele { order: 1; }
}

/* over the bright extraction video: cream wordmark while the bar is transparent, plated HUD readouts */
.bar:not(.is-solid) .bar-logo { color: #f1ebe2; }
.bar:not(.is-solid) .reticle { stroke: #f1ebe2; }
.bar:not(.is-solid) .reticle rect { fill: var(--signal); }
.bar-logo, .reticle { transition: color .3s, stroke .3s; }
.hud-tl, .hud-tr { background: rgba(0, 0, 0, .55); padding: 6px 8px; backdrop-filter: blur(2px); }
.hud-tl { color: rgba(255, 255, 255, .78); }
