/* KESSLER WATCH — mission-control quiet */

:root {
  --void: #05080F;
  --nightside: #0B1626;
  --panel: rgba(9, 17, 30, 0.78);
  --grid: #182A40;
  --grid-soft: rgba(24, 42, 64, 0.55);
  --ink: #ADBDCD;
  --ink-dim: #6B8098;
  --ink-faint: #3E4E62;
  --amber: #FFB454;
  --amber-dim: #C98F4F;
  --green: #4FE3A3;
  --red: #FF4B45;
  --font-display: 'Archivo', 'Helvetica Neue', sans-serif;
  --font-body: 'B612', 'Helvetica Neue', sans-serif;
  --font-mono: 'B612 Mono', 'SFMono-Regular', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--void); }

* { scrollbar-width: thin; scrollbar-color: var(--grid) var(--void); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--grid); border: 2px solid var(--void); border-radius: 5px; }

:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 3px;
  border-radius: 1px;
}

a { color: var(--ink); text-decoration-color: var(--ink-faint); text-underline-offset: 3px; }
a:hover { color: var(--amber); text-decoration-color: var(--amber-dim); }

.mono { font-family: var(--font-mono); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ================= HERO ================= */

.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--void);
}

#sky-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  opacity: 0;
  transition: opacity 2.4s cubic-bezier(0.33, 0.04, 0.26, 1) 0.25s;
}
.is-booted #sky-canvas { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #sky-canvas { transition: none; opacity: 1; }
}

.hud-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid var(--grid-soft);
  pointer-events: none;
  z-index: 2;
}
.hud-frame::before,
.hud-frame::after,
.hud-frame .fc::before,
.hud-frame .fc::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--ink-dim);
}
.hud-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud-frame::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hud-frame .fc::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hud-frame .fc::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* --- power-on arming --- */
.hud-top, .hud-rail, .hero-title-block, .hud-console {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hud-top.is-armed, .hud-rail.is-armed, .hero-title-block.is-armed, .hud-console.is-armed {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .hud-top, .hud-rail, .hero-title-block, .hud-console { transition: none; }
}

/* --- top bar --- */
.hud-top {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--grid-soft);
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.82), rgba(5, 8, 15, 0.28) 78%, transparent);
}
.wordmark { display: flex; align-items: baseline; gap: 14px; }
.wordmark h1 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.07em;
  color: #E5EDF5;
  text-transform: uppercase;
  line-height: 1;
}
.wordmark h1 .wm-x { color: var(--amber); }
.wordmark .wm-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
}
.hud-top-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  white-space: nowrap;
}
.live-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(79, 227, 163, 0.8);
  margin-right: 8px;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.hud-status { color: var(--green); letter-spacing: 0.16em; font-size: 11px; transition: color 0.6s ease; }

/* alert propagates through the whole console — the one red, system-wide */
.hud-status.is-alert { color: var(--red); }
.hud-status.is-alert .live-dot {
  background: var(--red);
  box-shadow: 0 0 8px rgba(255, 75, 69, 0.8);
  animation-duration: 0.9s;
}
.hud-frame, .hud-frame::before, .hud-frame::after,
.hud-frame .fc::before, .hud-frame .fc::after { transition: border-color 0.9s ease; }
.hero[data-conj='alert'] .hud-frame { border-color: rgba(255, 75, 69, 0.22); }
.hero[data-conj='alert'] .hud-frame::before,
.hero[data-conj='alert'] .hud-frame::after,
.hero[data-conj='alert'] .hud-frame .fc::before,
.hero[data-conj='alert'] .hud-frame .fc::after { border-color: rgba(255, 75, 69, 0.7); }
.alert-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(255, 75, 69, 0.13) 100%);
}
.hero[data-conj='alert'] .alert-vignette { opacity: 1; }

/* --- telemetry rail --- */
.hud-rail {
  position: absolute;
  left: 14px; top: 96px;
  z-index: 3;
  width: 216px;
  padding: 16px 18px 14px;
  background: var(--panel);
  border: 1px solid var(--grid-soft);
  border-left: 0;
  transition-delay: 0.1s;
}
.rail-head {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-dim);
  margin-bottom: 12px;
}
.rail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(24, 42, 64, 0.4);
}
.rail-row:last-of-type { border-bottom: 0; }
.rail-row .k { color: var(--ink-dim); font-size: 10.5px; letter-spacing: 0.12em; }
.rail-row .v { color: #D9E4EE; }
.rail-legend {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--grid-soft);
  display: grid;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}
.rail-legend span { display: flex; align-items: center; gap: 9px; }
.lg-swatch { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lg-swatch--amber { background: var(--amber); box-shadow: 0 0 6px rgba(255, 180, 84, 0.7); }
.lg-swatch--green { background: var(--green); box-shadow: 0 0 6px rgba(79, 227, 163, 0.7); }

/* --- conjunction chip --- */
.conj-chip {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  display: grid;
  gap: 3px;
  background: rgba(5, 8, 15, 0.6);
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.12s ease;
}
.conj-chip:not(:disabled):hover {
  border-color: rgba(79, 227, 163, 0.6);
  background: rgba(79, 227, 163, 0.06);
}
.conj-chip:disabled { cursor: default; }
.conj-chip .chip-hint {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  transition: color 0.25s ease;
}
.conj-chip:not(:disabled):hover .chip-hint { color: var(--green); }
.conj-chip .chip-k { font-size: 9.5px; letter-spacing: 0.2em; color: var(--green); }
.conj-chip .chip-v { font-size: 16px; color: #D9E4EE; }
.conj-chip .chip-d { font-size: 9.5px; letter-spacing: 0.06em; color: var(--ink-dim); }
.conj-chip[data-state='watch'] { border-color: rgba(255, 180, 84, 0.5); }
.conj-chip[data-state='watch'] .chip-k { color: var(--amber); }
.conj-chip[data-state='alert'] { border-color: var(--red); }
.conj-chip[data-state='alert'] .chip-k { color: var(--red); }
.conj-chip[data-state='alert'] .chip-v { color: #FFD7D5; }
.conj-chip[data-state='resolved'] { border-color: rgba(79, 227, 163, 0.5); }

/* --- hero thesis --- */
.hero-title-block {
  position: absolute;
  left: 40px;
  bottom: 132px;
  z-index: 3;
  max-width: 620px;
  transition-delay: 0.22s;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--amber);
  margin-bottom: 14px;
}
.hero-thesis {
  font-family: var(--font-display);
  font-stretch: 122%;
  font-weight: 790;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 0.98;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: #E9F0F7;
  text-shadow: 0 2px 30px rgba(5, 8, 15, 0.9);
}
.hero-lede {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--ink);
  font-size: 15.5px;
  text-shadow: 0 1px 12px rgba(5, 8, 15, 0.9);
}
.hero-lede strong { color: #D9E4EE; font-weight: 400; }

/* --- boot line --- */
.boot-line {
  position: absolute;
  right: 40px;
  bottom: 138px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--green);
  transition: color 1.2s ease, opacity 1.2s ease;
  text-align: right;
}
.boot-line.is-dim { color: var(--ink-faint); }

/* --- console / scrubber --- */
.hud-console {
  position: absolute;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 22px 18px;
  border-top: 1px solid var(--grid-soft);
  background: linear-gradient(0deg, rgba(5, 8, 15, 0.85), rgba(5, 8, 15, 0.3) 80%, transparent);
  transition-delay: 0.34s;
}
.hold-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(79, 227, 163, 0.45);
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.12s ease;
  flex: none;
}
.hold-btn:hover { background: rgba(79, 227, 163, 0.12); }
.hold-btn:active { transform: translateY(1px); }
.conj-chip:not(:disabled):active { transform: translateY(1px); }
.hold-btn[aria-pressed='true'] { color: var(--amber); border-color: rgba(255, 180, 84, 0.5); }
.hold-btn[aria-pressed='true']:hover { background: rgba(255, 180, 84, 0.1); }

.scrub-block { flex: 1 1 auto; min-width: 0; }
.scrub-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  margin-bottom: 8px;
}
.scrub-head .k { font-size: 10px; letter-spacing: 0.22em; color: var(--ink-dim); }
.scrub-head .v { font-size: 14px; color: var(--green); }

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: ew-resize;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--grid) 0%, rgba(79, 227, 163, 0.55) 100%);
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  margin-top: -6px;
  background: var(--void);
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(79, 227, 163, 0.55);
  transition: box-shadow 0.2s ease;
}
input[type='range']::-webkit-slider-thumb:hover { box-shadow: 0 0 16px rgba(79, 227, 163, 0.9); }
input[type='range']::-moz-range-track {
  height: 2px;
  background: linear-gradient(90deg, var(--grid) 0%, rgba(79, 227, 163, 0.55) 100%);
}
input[type='range']::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--void);
  border: 2px solid var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(79, 227, 163, 0.55);
}
.scrub-ticks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-top: 5px;
}
.sim-elapsed {
  flex: none;
  text-align: right;
  font-family: var(--font-mono);
}
.sim-elapsed .k {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-dim);
  margin-bottom: 4px;
}
.sim-elapsed .v { font-size: 15px; color: #D9E4EE; }

/* --- catalog card --- */
.catalog-card {
  position: absolute;
  top: 0; left: 0;
  z-index: 5;
  width: 272px;
  padding: 14px 16px 12px;
  background: rgba(7, 13, 23, 0.94);
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.catalog-card::before, .catalog-card::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--amber);
}
.catalog-card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.catalog-card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.catalog-card.is-on { opacity: 1; }
.cc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.cc-id { font-size: 12px; color: var(--amber); letter-spacing: 0.08em; }
.cc-type { font-size: 9px; letter-spacing: 0.16em; padding: 3px 7px; border: 1px solid; }
.cc-type--pay { color: var(--green); border-color: rgba(79, 227, 163, 0.4); }
.cc-type--deb { color: var(--amber-dim); border-color: rgba(201, 143, 79, 0.45); }
.cc-name {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #E5EDF5;
  margin-bottom: 10px;
}
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-bottom: 10px; }
.cc-grid dt { font-size: 8.5px; letter-spacing: 0.18em; color: var(--ink-dim); }
.cc-grid dd { font-size: 11.5px; color: var(--ink); }
.cc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 9px;
  border-top: 1px solid rgba(24, 42, 64, 0.6);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.cc-status--ok { color: var(--green); }
.cc-status--warn { color: var(--amber); }

/* --- conjunction alert (the one red) --- */
.conj-alert {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  z-index: 6;
  min-width: 420px;
  max-width: min(560px, calc(100vw - 48px));
  padding: 14px 20px 15px;
  background: rgba(26, 8, 8, 0.88);
  border: 1px solid var(--red);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}
.conj-alert.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.conj-alert[data-state='resolved'] { border-color: rgba(79, 227, 163, 0.6); background: rgba(7, 20, 16, 0.88); }
.al-head { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.al-beacon {
  width: 8px; height: 8px;
  background: var(--red);
  animation: beacon 0.9s steps(2, jump-none) infinite;
  flex: none;
}
@keyframes beacon { 0% { opacity: 1; } 100% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .al-beacon { animation: none; } }
.conj-alert[data-state='resolved'] .al-beacon { background: var(--green); animation: none; }
#conj-alert-title {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 780;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--red);
}
.conj-alert[data-state='resolved'] #conj-alert-title { color: var(--green); }
.al-row--pair {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #E5EDF5;
  margin-bottom: 8px;
}
.al-row--pair em { color: var(--red); font-style: normal; }
.conj-alert[data-state='resolved'] .al-row--pair em { color: var(--green); }
.al-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-family: var(--font-mono);
  align-items: baseline;
}
.al-k { font-size: 9px; letter-spacing: 0.16em; color: var(--ink-dim); }
.al-v { font-size: 14px; color: #F3D9D7; }
.conj-alert[data-state='resolved'] .al-v { color: #D2EFE2; }

/* --- webgl fallback --- */
.sky-fallback { display: none; }
.no-webgl .sky-fallback {
  display: block;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 52%, rgba(30, 62, 105, 0.55) 0%, rgba(14, 29, 51, 0.8) 17%, transparent 18.5%),
    radial-gradient(circle at 50% 52%, transparent 17.4%, rgba(46, 108, 184, 0.35) 18%, transparent 20%),
    radial-gradient(ellipse 46% 17% at 50% 52%, transparent 64%, rgba(255, 180, 84, 0.35) 65%, transparent 66.5%),
    radial-gradient(ellipse 34% 26% at 50% 52%, transparent 62%, rgba(79, 227, 163, 0.3) 63%, transparent 65%),
    var(--void);
}

/* ================= DOCUMENT SECTIONS ================= */

.section { padding: clamp(92px, 11vw, 148px) 0 0; }
.section:last-of-type { padding-bottom: clamp(92px, 11vw, 148px); }

.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-code {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.sec-code::after {
  content: '';
  height: 1px;
  width: 72px;
  background: var(--grid);
}
.sec-title {
  font-family: var(--font-display);
  font-stretch: 122%;
  font-weight: 780;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  color: #E9F0F7;
  max-width: 20ch;
  text-wrap: balance;
}
.sec-lede {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--ink);
}
.sec-lede strong { color: #D9E4EE; font-weight: 400; }

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* --- census --- */
.census-figure { position: relative; }
#census-chart { position: relative; }
.cy-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  fill: var(--ink-dim);
}
.cy-label--peak { fill: var(--amber); }
.cv-label { font-family: var(--font-mono); font-size: 12px; fill: var(--ink-dim); }
.cv-label--peak { fill: var(--amber); font-weight: 700; }
.cx-tick { font-family: var(--font-mono); font-size: 10px; fill: var(--ink-dim); }
.cx-annot text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  fill: var(--ink-dim);
}
.cx-annot .cx-annot-hd { fill: var(--amber-dim); }
.census-tip {
  position: absolute;
  top: 0; left: 0;
  z-index: 4;
  display: grid;
  gap: 2px;
  padding: 10px 13px;
  background: rgba(7, 13, 23, 0.95);
  border: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}
.census-tip.is-on { opacity: 1; }
.census-tip strong { color: var(--amber); font-size: 12px; font-weight: 400; }
.census-caption {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  max-width: 72ch;
}

/* --- ledger --- */
.table-shell { position: relative; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--grid); }
.table-scroll:focus-visible { outline: 1px solid var(--green); outline-offset: 4px; }
.table-fade {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 76px;
  background: linear-gradient(90deg, transparent, var(--void) 84%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.table-shell.has-more .table-fade { opacity: 1; }
.table-hint {
  display: none;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--amber-dim);
  text-align: right;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.table-hint b { color: var(--amber); font-weight: 400; }
@media (max-width: 760px) {
  .table-hint { display: block; }
  .table-shell.has-more + .table-hint { opacity: 1; }
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12.5px;
  min-width: 880px;
}
.ledger-table th {
  text-align: left;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  padding: 14px 18px 12px 0;
  border-bottom: 1px solid var(--grid);
  white-space: nowrap;
}
.ledger-table th.num, .ledger-table td.num { text-align: right; }
.ledger-table th:last-child, .ledger-table td:last-child { padding-right: 4px; }
.ledger-table td {
  padding: 15px 18px 15px 0;
  border-bottom: 1px solid rgba(24, 42, 64, 0.45);
  color: var(--ink);
  vertical-align: baseline;
}
.ledger-table tbody tr { position: relative; transition: background 0.2s ease; }
.ledger-table tbody tr:hover { background: rgba(11, 22, 38, 0.65); }
.ledger-table tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--amber); }
.lg-no { color: var(--amber); white-space: nowrap; padding-left: 10px; }
.lg-obj { color: #E5EDF5; white-space: nowrap; }
.lg-cause { color: var(--ink-dim); font-size: 11.5px; max-width: 34ch; }
.ledger-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}
.ledger-note em { color: var(--amber-dim); font-style: normal; }

/* --- doctrine --- */
.doctrine-pull {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 740;
  font-size: clamp(22px, 2.9vw, 36px);
  line-height: 1.14;
  text-transform: uppercase;
  color: #E9F0F7;
  max-width: 30ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.doctrine-pull .dp-mark { color: var(--amber); }
.doctrine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.doctrine-prose p { margin-bottom: 1.35em; max-width: 58ch; }
.doctrine-prose p:last-child { margin-bottom: 0; }
.doctrine-prose .drop {
  color: #E5EDF5;
}
.tenets { border-top: 1px solid var(--grid); }
.tenet {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 18px 0 17px;
  border-bottom: 1px solid rgba(24, 42, 64, 0.45);
}
.tenet .t-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
  padding-top: 3px;
}
.tenet .t-name {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 740;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E5EDF5;
  margin-bottom: 4px;
}
.tenet .t-body { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }
.tenet { transition: background 0.25s ease; }
.tenet:hover { background: rgba(11, 22, 38, 0.5); box-shadow: inset 2px 0 0 var(--amber); }
.tenet:hover .t-body { color: var(--ink); }

/* ================= FOOTER ================= */

footer {
  border-top: 1px solid var(--grid);
  padding: clamp(56px, 7vw, 84px) 0 40px;
  background: linear-gradient(180deg, var(--void), #060B15);
}
.footer-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--ink-dim);
  margin-bottom: 28px;
}
.station-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 40px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.station { display: flex; gap: 12px; align-items: flex-start; }
.st-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 6px;
  flex: none;
  box-shadow: 0 0 6px rgba(79, 227, 163, 0.6);
  animation: pulse 3.2s ease-in-out infinite;
}
.station:nth-child(2) .st-dot { animation-delay: 0.55s; }
.station:nth-child(3) .st-dot { animation-delay: 1.1s; }
.station:nth-child(4) .st-dot { animation-delay: 1.65s; }
.station:nth-child(5) .st-dot { animation-delay: 2.2s; }
.station:nth-child(6) .st-dot { animation-delay: 2.75s; }
@media (prefers-reduced-motion: reduce) { .st-dot { animation: none; } }
.st-name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #D9E4EE;
}
.st-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  margin-top: 3px;
}
.footer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid rgba(24, 42, 64, 0.45);
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.footer-foot .ff-mark { color: var(--ink-dim); }
.footer-foot .ff-mark b { color: var(--amber); font-weight: 400; }

/* ================= RESPONSIVE ================= */

/* short laptop viewports (1366×768, 1280×720): compress the rail + thesis so
   the telemetry panel and the title block can never collide */
@media (min-width: 761px) and (max-height: 820px) {
  .hud-rail { top: 82px; width: 198px; padding: 12px 14px 10px; }
  .rail-legend { display: none; }
  .conj-chip { margin-top: 10px; }
  .hero-title-block { bottom: 122px; max-width: 560px; }
  .hero-eyebrow { margin-bottom: 10px; }
  .hero-thesis { font-size: clamp(30px, 3.2vw, 44px); }
  .hero-lede { font-size: 14px; margin-top: 12px; }
  .boot-line { bottom: 128px; }
}
@media (min-width: 761px) and (max-height: 700px) {
  .rail-row.m-hide, .conj-chip .chip-d { display: none; }
  .hero-thesis { font-size: 30px; }
}

@media (max-width: 980px) {
  .doctrine-grid { grid-template-columns: 1fr; }
  .station-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .boot-line { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 15.5px; }

  .hud-top { padding: 12px 14px; }
  .wordmark .wm-sub { display: none; }
  .hud-top-right { gap: 12px; font-size: 11px; }
  .hud-status { display: none; }

  .hud-rail {
    top: 74px;
    right: 14px;
    width: auto;
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
    align-items: center;
  }
  .rail-head { display: none; }
  .rail-row { border-bottom: 0; padding: 2px 0; gap: 8px; }
  .rail-row.m-hide, .rail-legend { display: none; }
  .conj-chip { margin-top: 4px; flex: 1 1 100%; padding: 8px 10px; }
  .conj-chip .chip-v { font-size: 13px; }

  .hero-title-block { left: 22px; right: 22px; bottom: 208px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: 0.18em; margin-bottom: 10px; }
  .eyebrow-tail { display: none; }
  .hero-thesis { font-size: clamp(28px, 8.8vw, 40px); }
  .hero-lede { font-size: 13.5px; margin-top: 12px; max-width: 40ch; }

  .sec-code::after { display: none; }

  .hud-console {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 12px 16px 14px;
  }
  .hold-btn { order: 2; padding: 8px 13px; }
  .scrub-block { order: 1; flex: 1 1 100%; }
  .sim-elapsed { order: 3; margin-left: auto; }
  .sim-elapsed .k { margin-bottom: 1px; }
  .sim-elapsed .v { font-size: 13px; }
  .scrub-ticks span:nth-child(even) { display: none; }

  .conj-alert {
    min-width: 0;
    left: 16px;
    right: 16px;
    transform: none;
    top: auto;
    bottom: 152px;
  }
  .conj-alert.is-on { transform: none; }

  .catalog-card { width: 244px; }

  .tenet { grid-template-columns: 52px 1fr; }
}

@media (max-width: 500px) {
  .station-grid { grid-template-columns: 1fr; }
}
