/* ============================================================
   HALO NETWORK — main.css
   The dossier: void, haze, hairlines, serif statements, mono data.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --void: #050607;
  --haze: #0A1311;
  --haze-2: #0D1A16;
  --line: #16211D;
  --line-2: #24352F;
  --bone: #E9EFEB;
  --dim: #97A8A0;
  --faint: #6E8078;
  --cyan: #7FF0DF;
  --cyan-deep: #2A8F82;
  --amber: #FFB37E;
  --ember: #FF7A45;
  --magenta: #FF7DA0;
  --white-hot: #FEFCFD;
  --glow-cyan: rgba(127, 240, 223, .14);
  --glow-amber: rgba(255, 179, 126, .14);
  --glow-ember: rgba(255, 122, 69, .22);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ring: cubic-bezier(0.65, 0, 0.35, 1);

  --nav-h: 64px;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cyan); color: #04231F; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

[id] { scroll-margin-top: 84px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.wrap { max-width: 1360px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }

/* ---------- type tokens ---------- */
.display-xl {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 7.2vw, 6.8rem); line-height: 1.02;
  letter-spacing: -0.01em;
}
.display-l {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 1.08;
  letter-spacing: -0.01em;
}
.display-s {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2;
}
.stat-xl {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05;
}
.body { font-size: 1.0625rem; line-height: 1.65; }
.dim { color: var(--dim); }

.mono, .mono-label { font-family: var(--mono); }
.mono-label, .fig-label, .st-kicker, .stat-label, .l-name, .lr-claim, .lr-status, .caption, .fine, .eyebrow {
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.mono-data { font-family: var(--mono); font-size: 0.8125rem; }
.unit { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--dim); }

.serif { font-family: var(--serif); font-weight: 400; }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- skip link ---------- */
.skip {
  position: fixed; top: 14px; left: 14px; z-index: 400;
  padding: 10px 16px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--void); background: var(--cyan);
  transform: translateY(-200%);
  transition: transform .3s var(--ease-out);
}
.skip:focus-visible { transform: translateY(0); outline-offset: -2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 44px; padding: 12px 22px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid; background: transparent; white-space: nowrap;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn .arr { transition: transform .3s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }

.btn-amber { color: var(--amber); border-color: rgba(255, 179, 126, .45); }
.btn-amber:hover { background: var(--glow-amber); border-color: var(--amber); box-shadow: 0 0 28px var(--glow-ember); }

.btn-cyan { color: var(--cyan); border-color: rgba(127, 240, 223, .4); }
.btn-cyan:hover { background: var(--glow-cyan); border-color: var(--cyan); box-shadow: 0 0 28px var(--glow-cyan); }

.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.6875rem; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(5, 6, 7, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; }

.gauge-wrap { position: relative; width: 22px; height: 22px; flex: none; }
.gauge-track { fill: none; stroke: var(--line-2); stroke-width: 2; opacity: .7; }
.gauge-arc {
  fill: none; stroke: url(#gauge-g); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
}
.gauge-wrap::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 240, 223, .4), rgba(255, 179, 126, .15) 45%, transparent 72%);
  opacity: 0; transform: scale(.4); pointer-events: none;
}
.gauge-wrap.is-flared::after { animation: gaugeFlare 1.2s var(--ease-ring) forwards; }
.gauge-wrap.is-flared .gauge-arc { animation: arcPulse .9s var(--ease-ring) 1; }
@keyframes gaugeFlare {
  0% { opacity: 0; transform: scale(.4); }
  35% { opacity: .95; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.9); }
}
@keyframes arcPulse { 50% { stroke-width: 3.4; } }

.wordmark { font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: .01em; }
.wm-sub {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.3em;
  color: var(--dim); margin-left: 8px; vertical-align: 2px;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--dim); padding: 12px 2px;
  transition: color .3s var(--ease-out);
}
.nav-links a:hover { color: var(--cyan); }
.nav-cta { flex: none; }

/* ---------- sections / dossier chrome ---------- */
.sec {
  position: relative;
  padding-block: clamp(96px, 14vh, 180px);
  overflow: hidden;
}

.fig-rule {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 0;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.fig-label {
  position: relative; top: -0.6em;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--void);
  padding-right: 16px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint);
}
.fig-rule.sub { margin-bottom: clamp(20px, 3vh, 32px); }
.fig-rule.sub .fig-label { background: var(--haze); }
.tele-panel .fig-rule .fig-label, .tele-panel .fig-rule.sub .fig-label { background: var(--haze); }
.panel-2 .fig-rule.sub .fig-label { background: var(--haze-2); }

.fig-glyph { width: 11px; height: 11px; flex: none; }
.fig-glyph circle {
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 80.6 19.4;
}

.fig-num {
  position: absolute; top: -0.06em; z-index: 0;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(11rem, 24vw, 22rem); line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  pointer-events: none; user-select: none;
  will-change: transform;
}
@supports not (-webkit-text-stroke: 1px black) {
  .fig-num { color: var(--line-2); opacity: .3; }
}
.fn-right { right: -0.5rem; }
.fn-left { left: -0.5rem; }
.fn-center { left: 50%; transform: translateX(-50%); top: 6%; }

.sec-head { margin-bottom: clamp(40px, 7vh, 84px); }
.sec-head .display-l { max-width: 18em; margin-top: clamp(18px, 3vh, 30px); }

.prose { max-width: 62ch; }
.prose .body { margin-bottom: 34px; }

.footnote {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid rgba(127, 240, 223, .3);
  padding-bottom: 6px;
  transition: border-color .3s var(--ease-out), text-shadow .3s var(--ease-out);
}
.footnote .arr { transition: transform .3s var(--ease-out); }
.footnote:hover { border-color: var(--cyan); text-shadow: 0 0 18px var(--glow-cyan); }
.footnote:hover .arr { transform: translateX(4px); }

.caption { color: var(--faint); margin-bottom: clamp(28px, 4vh, 44px); }
.caption.center { text-align: center; margin-top: clamp(20px, 3vh, 32px); margin-bottom: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 120px;
}
.hero-canvas, .finale-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 2; width: 100%; }
.hero-copy {
  grid-column: 7 / -1;
  margin-left: auto;
  width: 100%;
  max-width: 760px;
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end;
  text-shadow: 0 1px 22px rgba(5, 6, 7, .85), 0 0 8px rgba(5, 6, 7, .5);
}
.eyebrow { color: var(--cyan); margin-bottom: 28px; letter-spacing: 0.16em; }
.live-count { color: var(--white-hot); font-variant-numeric: tabular-nums; }
.live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); margin-left: 8px; vertical-align: 1px;
  animation: dotPulse 2s var(--ease-ring) infinite;
}
.display-xl em { font-style: italic; }
.grad-text {
  background: linear-gradient(92deg, var(--white-hot) 0%, var(--amber) 48%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lede {
  max-width: 36em; margin-top: 30px;
  color: var(--dim); font-size: 1.0625rem;
}
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: flex-end; }

.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 78px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  padding-inline: clamp(20px, 4vw, 56px);
  color: var(--faint); font-size: 0.6875rem; letter-spacing: 0.16em;
}
.cue-line { width: 44px; height: 1px; background: var(--line-2); position: relative; overflow: visible; }
.cue-line::after {
  content: ""; position: absolute; left: 0; top: 0; height: 1px; width: 16px;
  background: var(--cyan);
  animation: cueSlide 2.2s var(--ease-ring) infinite;
}
@keyframes cueSlide { 0% { transform: translateX(0); opacity: 1; } 70% { transform: translateX(30px); opacity: 0; } 100% { transform: translateX(0); opacity: 0; } }

/* ---------- ticker ---------- */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: 46px;
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 7, .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  overflow: hidden;
  display: flex; align-items: center;
}
.ticker-track { display: flex; white-space: nowrap; will-change: transform; width: max-content; }
html.js .ticker-track { animation: tkScroll linear infinite; }
@keyframes tkScroll { to { transform: translateX(-50%); } }
.ticker-group { display: flex; align-items: center; }
.tk-item { font-family: var(--mono); font-size: 0.8125rem; color: var(--dim); padding-left: 26px; }
.tk-sep { font-family: var(--mono); font-size: 0.6875rem; color: var(--faint); padding-left: 26px; }

/* ---------- panels ---------- */
.panel {
  position: relative;
  background: var(--haze);
  border: 1px solid var(--line);
  padding: clamp(28px, 4.5vw, 60px);
}
.panel-2 { background: var(--haze-2); }
.haze-glow { background-image: radial-gradient(1100px 520px at 12% 0%, rgba(14, 59, 46, .38), transparent 62%); }
.dotgrid {
  background-image: radial-gradient(circle, rgba(36, 53, 47, .42) 1px, transparent 1.4px);
  background-size: 28px 28px;
}
.haze-glow.dotgrid { background-image: radial-gradient(1100px 520px at 12% 0%, rgba(14, 59, 46, .38), transparent 62%), radial-gradient(circle, rgba(36, 53, 47, .42) 1px, transparent 1.4px); background-size: auto, 28px 28px; }

/* ---------- FIG.01 beam ---------- */
.beam-stage { position: relative; height: clamp(1080px, 148vh, 1560px); }
.beam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.beam-line { fill: none; stroke: url(#beam-g); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.beam-glow { fill: none; stroke: url(#beam-g); stroke-width: 9; opacity: .32; vector-effect: non-scaling-stroke; }
.beam-dot { opacity: 0; transition: opacity .5s var(--ease-out); }
.d-cyan { fill: var(--cyan); }
.d-amber { fill: var(--amber); }
.d-magenta { fill: var(--magenta); }
.beam-dot.is-lit { opacity: 1; animation: dotGlow 2.4s var(--ease-ring) infinite; }
@keyframes dotGlow { 50% { opacity: .5; } }

.station { position: absolute; z-index: 1; width: min(560px, 44%); }
.station .display-s { margin: 14px 0 16px; }
.station .body { max-width: 44ch; }
.st-right { right: 0; }
.st-left { left: 0; }
.st-kicker.k-cyan { color: var(--cyan); }
.st-kicker.k-amber { color: var(--amber); }
.st-kicker.k-magenta { color: var(--magenta); }

/* ---------- FIG.02 telemetry ---------- */
.tele-panel { max-width: 1160px; margin-inline: auto; }

.stats { border-top: 1px solid var(--line-2); margin-bottom: clamp(36px, 5vh, 56px); }
.stat {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto auto;
  gap: clamp(14px, 3vw, 40px);
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
}
.stat-label { color: var(--faint); }
.stat-value { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; font-variant-numeric: tabular-nums; text-align: right; }
.stat-value .num { font-variant-numeric: tabular-nums; }
.stat-dot { min-width: 8px; display: flex; justify-content: flex-end; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-cyan { background: var(--cyan); }
.dot-amber { background: var(--amber); }
.dot-ember { background: var(--ember); }
.pulse { animation: dotPulse 2s var(--ease-ring) infinite; }
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 240, 223, .5); }
  70% { box-shadow: 0 0 0 9px rgba(127, 240, 223, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 240, 223, 0); }
}
.dot-amber.pulse { animation-name: dotPulseAmber; }
@keyframes dotPulseAmber {
  0% { box-shadow: 0 0 0 0 rgba(255, 179, 126, .5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 179, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 179, 126, 0); }
}

.tele-bottom {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.orbital { width: 100%; height: auto; margin-top: 6px; }
.orbital .orb-dots circle { fill: var(--dim); }
.orbital text {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  fill: var(--faint);
}
.orb-legend {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--faint);
  background: var(--haze); padding-left: 14px; position: relative; top: -0.6em;
  margin-left: auto;
}
.orb-legend .dot { width: 6px; height: 6px; }

.feed {
  height: 252px; overflow: hidden; margin-top: 6px;
  font-family: var(--mono); font-size: 0.8125rem; line-height: 21px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.feed li { display: flex; gap: 14px; padding: 3px 0; white-space: nowrap; }
.feed .t { color: var(--faint); flex: none; }
.feed .m { color: var(--dim); overflow: hidden; text-overflow: ellipsis; }
.feed em { font-style: normal; }
.c-cyan { color: var(--cyan); }
.c-amber { color: var(--amber); }
.c-ember { color: var(--ember); }
.feed { transition: transform .5s var(--ease-out); }

/* ---------- tabs (generic) ---------- */
.tabs { --heat: var(--cyan); }
.tab-bar { display: flex; gap: 8px; margin-bottom: clamp(24px, 4vh, 40px); }
.tab {
  min-height: 44px; padding: 10px 20px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--dim);
  border: 1px solid var(--line);
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.tab:hover { color: var(--bone); border-color: var(--line-2); }
.tab.is-active { color: var(--heat); border-color: var(--heat); background: rgba(13, 26, 22, .6); }

.tab-stage { display: grid; }
.tab-panel {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
}
.tab-panel.is-active { opacity: 1; visibility: visible; transition: opacity .3s var(--ease-out); }

/* FIG.03 heats */
.heat-stage { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.seg-ring { width: min(300px, 70%); margin-inline: auto; }
.seg-arc {
  fill: none; stroke: var(--line-2); stroke-width: 3; stroke-linecap: round;
  transition: stroke .4s var(--ease-ring), filter .4s var(--ease-ring);
}
.seg-arc.is-active { stroke: var(--heat); filter: drop-shadow(0 0 10px var(--heat)); }
.seg-num {
  font-family: var(--serif); font-style: italic; font-size: 44px;
  fill: transparent; stroke: var(--line-2); stroke-width: .8;
}
.heat-title { margin-bottom: 18px; }
.heat-stats { font-size: 0.8125rem; color: var(--faint); letter-spacing: .08em; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- FIG.04 ledger ---------- */
.ledger { border-top: 1px solid var(--line-2); max-width: 1160px; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(210px, 4fr) 5fr minmax(150px, 3fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.lr-claim { color: var(--bone); letter-spacing: 0.12em; }
.lr-desc { color: var(--dim); font-size: 1.0625rem; }
.lr-status { display: inline-flex; align-items: center; gap: 10px; justify-self: end; color: var(--dim); }
.s-cyan { color: var(--cyan); }
.s-ember { color: var(--ember); }
#proof .footnote { margin-top: 34px; }

/* ---------- FIG.05 economics ---------- */
.ladder { border-top: 1px solid var(--line-2); margin-bottom: clamp(40px, 6vh, 64px); }
.ladder-row {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) 6fr minmax(140px, 2fr);
  gap: clamp(16px, 3vw, 44px);
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.l-name { color: var(--dim); letter-spacing: 0.12em; }
.ladder-row.is-spot .l-name { color: var(--amber); }
.l-bar { height: 3px; background: var(--line); position: relative; overflow: hidden; }
.l-bar i {
  position: absolute; inset: 0 auto 0 0; width: var(--w);
  background: var(--line-2);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease-out) .2s;
}
.is-spot .l-bar i { background: var(--amber); box-shadow: 0 0 12px var(--glow-ember); }
.is-in .l-bar i, .ladder-row.is-in .l-bar i { transform: scaleX(1); }
.l-price { font-size: 1.6rem; text-align: right; color: var(--bone); }
.ladder-row.is-spot .l-price { color: var(--white-hot); }
.l-price .unit { margin-left: 6px; }

.calc { max-width: 880px; }
.calc-line { margin-bottom: clamp(28px, 4vh, 40px); color: var(--bone); }
.calc-controls {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: clamp(24px, 4vh, 36px);
}
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; color: var(--faint); margin-bottom: 12px; }
.calc-read { color: var(--amber); font-size: 0.8125rem; letter-spacing: .1em; }
.range { width: 100%; height: 44px; accent-color: var(--amber); cursor: pointer; }

.calc-out { color: var(--amber); text-shadow: 0 0 32px var(--glow-ember); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.calc-out .unit { color: var(--dim); text-shadow: none; margin-left: 10px; }
.fine { font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--faint); line-height: 1.8; margin-bottom: 30px; }

.join-line {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line-2);
  padding: 14px 18px;
  background: rgba(5, 6, 7, .5);
}
.join-line code { font-size: 0.8125rem; color: var(--cyan); overflow-x: auto; white-space: nowrap; }
.copy-btn {
  flex: none; min-height: 36px; padding: 7px 16px;
  font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--dim); border: 1px solid var(--line-2);
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.copy-btn:hover { color: var(--cyan); border-color: var(--cyan); background: var(--glow-cyan); }

/* ---------- FIG.06 integrate ---------- */
.code-stage { border: 1px solid var(--line); background: var(--haze); padding: clamp(18px, 3vw, 32px); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.code-bar .tab-bar { margin-bottom: 0; }
.code-panels { min-height: 300px; }
.code-panel {
  margin: 0; padding: clamp(18px, 3vw, 32px) 0;
  font-family: var(--mono); font-size: 0.8125rem; line-height: 1.8;
  color: var(--dim); overflow-x: auto;
}
.code-panel code { font-family: inherit; }
.code-panel .k { color: var(--amber); }
.code-panel .s { color: var(--cyan); }
.code-panel .n { color: var(--magenta); }
.code-panel .c { color: var(--faint); font-style: italic; }
.code-panel .f { color: var(--bone); }
.code-panel .o { color: var(--faint); }

/* ---------- FIG.07 finale ---------- */
.finale {
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: clamp(120px, 18vh, 220px);
}
.finale-copy { position: relative; z-index: 2; text-align: center; }
.center-rule { border-top: 1px solid var(--line); max-width: 420px; margin: 0 auto clamp(36px, 6vh, 64px); }
.center-rule .fig-label { padding-right: 0; background: transparent; top: -0.6em; }
.finale-copy .display-xl { margin-bottom: 30px; }
.finale-sub { max-width: 34em; margin-inline: auto; }
.finale-copy .hero-ctas { justify-content: center; }

/* ---------- colophon ---------- */
.colophon { border-top: 1px solid var(--line); padding-bottom: 40px; }
.colo-mark {
  font-family: var(--serif);
  font-size: 22vw; line-height: .9; height: .6em;
  color: var(--bone); opacity: .08;
  overflow: hidden;
  padding-inline: clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vh, 72px);
  user-select: none;
}
.colo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: clamp(48px, 8vh, 88px);
}
.colo-col h4 { color: var(--faint); margin-bottom: 16px; font-weight: 400; }
.colo-col a {
  display: block; padding: 7px 0;
  font-size: 0.8125rem; letter-spacing: 0.1em;
  color: var(--dim);
  transition: color .3s var(--ease-out);
}
.colo-col a:hover { color: var(--cyan); }
.colo-status {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--faint);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.colo-status .sep { color: var(--line-2); }
.colo-note { margin-top: 18px; font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--faint); }

/* ---------- toast ---------- */
#toast-root {
  position: fixed; bottom: 28px; left: 50%; z-index: 300;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--cyan);
  background: var(--haze-2);
  border: 1px solid var(--line-2);
  padding: 11px 18px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5), 0 0 24px var(--glow-cyan);
  animation: toastIn .3s var(--ease-out);
}
.toast::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }
.toast.is-out { animation: toastOut .3s var(--ease-out) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ---------- reveal ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
html.js [data-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .station { width: min(520px, 52%); }
  .tele-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }

  .hero { padding-bottom: 140px; }
  .hero-copy {
    max-width: 640px; margin-inline: auto;
    align-items: center; text-align: center;
  }
  .hero-ctas { justify-content: center; }
  .scroll-cue { justify-content: center; }

  .beam-stage { height: auto; padding: 24px 0 8px; }
  .station {
    position: static; width: auto; max-width: 620px;
    transform: none; margin: 0 0 clamp(64px, 10vh, 110px);
    padding-left: 52px;
  }
  .st-left, .st-right { left: auto; right: auto; }

  .stat { grid-template-columns: 1fr auto auto; }
  .stat-value { font-size: clamp(2rem, 8.4vw, 3.4rem); }

  .heat-stage { grid-template-columns: 1fr; }
  .seg-ring { width: 200px; }

  .ledger-row { grid-template-columns: 1fr; gap: 10px; }
  .lr-status { justify-self: start; }

  .ladder-row { grid-template-columns: minmax(100px, 1fr) 4fr minmax(120px, 1fr); }

  .calc-controls { grid-template-columns: 1fr; }
  .join-line { flex-wrap: wrap; }

  .colo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .btn { padding: 12px 16px; }
  .hero-ctas { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .nav-cta { display: none; }
  .tk-item, .tk-sep { padding-left: 16px; }
  .tk-item { font-size: 0.6875rem; }
  .stat { grid-template-columns: 1fr auto; }
  .stat-dot { grid-column: 2; }
  .ladder-row { grid-template-columns: 1fr auto; }
  .l-bar { display: none; }
  .colo-grid { grid-template-columns: 1fr; }
  .feed { height: 220px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .ticker-track { animation: none !important; }
  .cue-line::after { animation: none; }
  .feed { transition: none; }
  .l-bar i { transform: scaleX(1); }
}
