/* HELIOS — deep-space observatory. Instrument aesthetic. */
:root {
  --bg: #050810;
  --bg-2: #080d18;
  --ink: #dfe9f5;
  --ink-dim: #8fa0b8;
  --ink-faint: #5d6c85;
  --cyan: #7be8ff;
  --orange: #ff9a3c;
  --hair: rgba(123, 232, 255, 0.14);
  --hair-2: rgba(223, 233, 245, 0.09);
  --font-sans: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "Space Mono", "SFMono-Regular", monospace;
  --frame: clamp(10px, 2vw, 26px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: var(--bg); }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.sm { font-size: 0.72rem; color: var(--ink-dim); }

a { color: var(--cyan); text-decoration: none; }
em { font-style: normal; color: var(--orange); }

/* ============ INSTRUMENT FRAME ============ */
.frame { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.frame-corner {
  position: fixed;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  text-transform: uppercase;
  padding: 4px 8px;
}
.frame-corner sup { font-size: 0.5rem; }
.frame-corner.tl { top: var(--frame); left: var(--frame); border-left: 1px solid var(--hair); border-top: 1px solid var(--hair); }
.frame-corner.tr { top: var(--frame); right: var(--frame); border-right: 1px solid var(--hair); border-top: 1px solid var(--hair); }
/* top corners yield to the condensed header once scrolled */
.frame-corner.tl, .frame-corner.tr { transition: opacity .45s ease; }
body.hdr-scrolled .frame-corner.tl, body.hdr-scrolled .frame-corner.tr { opacity: 0; }
.frame-corner.bl { bottom: var(--frame); left: var(--frame); border-left: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.frame-corner.br { bottom: var(--frame); right: var(--frame); border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.frame-ticks {
  position: fixed; top: 20vh; bottom: 20vh; width: 7px;
  background-image: repeating-linear-gradient(to bottom, var(--hair) 0 1px, transparent 1px 28px);
}
.frame-ticks.left { left: var(--frame); }
.frame-ticks.right { right: var(--frame); }

/* ============ GALAXY CANVAS ============ */
.galaxy-wrap { position: fixed; inset: 0; z-index: 0; }
#galaxy { width: 100%; height: 100%; display: block; }
/* CSS star fallback if WebGL fails */
.galaxy-wrap.fallback {
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(223,233,245,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 14%, rgba(123,232,255,.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 60%, rgba(255,154,60,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 44%, rgba(223,233,245,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 25% 80%, rgba(123,232,255,.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 30%, rgba(223,233,245,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 76%, rgba(223,233,245,.6) 50%, transparent 51%);
}

/* ============ HEADER ============ */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: calc(var(--frame) + 10px) calc(var(--frame) + 44px);
  transition: background .4s ease, backdrop-filter .4s ease;
}
.site-head.scrolled {
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
  padding-top: 12px; padding-bottom: 12px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: var(--ink);
  font-weight: 600; letter-spacing: 0.34em; font-size: 0.95rem;
}
.wordmark .mark { width: 20px; height: 20px; color: var(--cyan); overflow: visible; }
.top-nav { display: flex; gap: clamp(1rem, 2.6vw, 2.4rem); }
.top-nav a {
  color: var(--ink-dim);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.top-nav a:hover, .top-nav a:focus-visible { color: var(--cyan); border-color: var(--cyan); }
.top-nav .nav-n { font-family: var(--font-mono); font-size: 0.58rem; color: var(--ink-faint); margin-right: 0.45em; }
.top-nav a:hover .nav-n { color: var(--orange); }
/* scrollspy: the section under the crosshair stays lit */
.top-nav a.active { color: var(--ink); border-color: var(--hair); }
.top-nav a.active .nav-n { color: var(--orange); }
.head-status { display: flex; align-items: center; gap: .5rem; font-size: .6rem; letter-spacing: .16em; color: var(--ink-dim); white-space: nowrap; }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
.m-status.amber .dot { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }

/* ============ HERO ============ */
main { position: relative; z-index: 1; }
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 2rem;
  padding: 16vh calc(var(--frame) + 44px) 13vh;
  position: relative;
}
.hero-inner { max-width: 640px; position: relative; }
.hero-inner::before {
  content: "";
  position: absolute; inset: -14% -18% -14% -30%;
  background: radial-gradient(ellipse at 38% 42%, rgba(5,8,16,.78), rgba(5,8,16,.35) 58%, transparent 76%);
  z-index: -1; pointer-events: none;
}
h1, .hero-sub { text-shadow: 0 2px 26px rgba(5,8,16,.95), 0 0 8px rgba(5,8,16,.7); }
.kicker {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.6rem;
  padding-left: 34px;
  position: relative;
}
.kicker::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: var(--orange); }
h1 {
  font-size: clamp(2.6rem, 6vw, 4.9rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.hero-sub {
  color: var(--ink-dim);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  max-width: 34rem;
  margin-bottom: 2.4rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--cyan);
  transition: background .25s, color .25s, box-shadow .25s, transform .25s;
}
.btn-solid { background: var(--cyan); color: #04121a; font-weight: 700; }
.btn-solid:hover { box-shadow: 0 0 28px rgba(123,232,255,.45); transform: translateY(-1px); }
.btn-ghost { color: var(--cyan); background: rgba(123,232,255,.04); }
.btn-ghost:hover { background: rgba(123,232,255,.12); }
.btn-arrow { transition: transform .25s; }
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

/* reveal on load */
.reveal { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal:nth-child(1) { animation-delay: .15s }
.reveal:nth-child(2) { animation-delay: .3s }
.reveal:nth-child(3) { animation-delay: .45s }
.reveal:nth-child(4) { animation-delay: .6s }
@keyframes rise { to { opacity: 1; transform: none } }

/* constellation nav */
.constellation { justify-self: end; align-self: center; width: min(340px, 100%); }
#const-svg { width: 100%; height: auto; display: block; overflow: visible; }
.const-lines line {
  stroke: var(--cyan);
  stroke-width: 0.8;
  opacity: .5;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
.const-lines.drawn line { animation: draw 1.4s ease forwards; }
.const-lines.drawn line:nth-child(1) { animation-delay: .8s }
.const-lines.drawn line:nth-child(2) { animation-delay: 1.5s }
.const-lines.drawn line:nth-child(3) { animation-delay: 2.2s }
.const-lines.drawn line:nth-child(4) { animation-delay: 2.9s }
@keyframes draw { to { stroke-dashoffset: 0 } }
.const-minor circle { fill: var(--ink-faint); }
.const-node { cursor: pointer; }
.const-node .star { fill: var(--ink); transition: fill .25s; }
.const-node .halo {
  fill: none; stroke: var(--cyan); stroke-width: .7; opacity: 0;
  transition: opacity .3s, r .3s;
}
.const-node text {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  fill: var(--ink-dim);
  transition: fill .25s;
}
.const-node:hover .star, .const-node:focus .star { fill: var(--orange); }
.const-node:hover .halo, .const-node:focus .halo { opacity: .8; }
.const-node:hover text, .const-node:focus text { fill: var(--cyan); }
.const-caption {
  margin-top: 0.9rem;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-align: right;
}

/* telemetry strip */
.telemetry {
  position: absolute;
  left: calc(var(--frame) + 44px);
  right: calc(var(--frame) + 44px);
  bottom: calc(var(--frame) + 30px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: rgba(5,8,16,.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.tel-cell {
  padding: 0.8rem 1.1rem;
  border-left: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: .3rem;
  min-width: 0;
}
.tel-cell:last-child { border-right: 1px solid var(--hair); }
.tel-label { font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.tel-value { font-size: 0.85rem; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tel-value u { text-decoration: none; color: var(--ink-faint); font-size: 0.62rem; }
/* instrument warning state: seeing above 0.75″ reads amber like a real console */
.tel-value .warn, .cond-list .warn { color: var(--orange); transition: color .6s; }
.scroll-hint {
  position: absolute; bottom: calc(var(--frame) + 98px); left: 50%;
  transform: translateX(-50%);
  font-size: .56rem; letter-spacing: .3em; color: var(--ink-faint);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.scroll-hint span { width: 1px; height: 34px; background: linear-gradient(var(--cyan), transparent); animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* ============ SECTIONS ============ */
.section {
  --secpad: clamp(4.5rem, 10vh, 7.5rem);
  position: relative;
  padding: var(--secpad) calc(var(--frame) + 44px);
  max-width: 1460px;
  margin: 0 auto;
  scroll-margin-top: 62px;
}
a:focus-visible, .btn:focus-visible {
  outline: 1px solid var(--orange);
  outline-offset: 3px;
}
.section::before {
  content: "";
  position: absolute; top: 0; left: calc(var(--frame) + 44px); right: calc(var(--frame) + 44px);
  height: 1px; background: var(--hair);
}
/* engineering-drawing figure label, pinned to the section's top-right */
.section::after {
  content: attr(data-fig);
  position: absolute;
  top: calc(var(--secpad) + 1px);
  right: calc(var(--frame) + 44px);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  pointer-events: none;
}
.sec-head { max-width: 720px; margin-bottom: clamp(2.6rem, 6vh, 4.5rem); position: relative; }
.sec-num {
  display: block;
  font-size: 0.66rem;
  color: var(--orange);
  letter-spacing: 0.3em;
  margin-bottom: 1.1rem;
  padding-left: 34px;
  position: relative;
}
.sec-num::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 1px; background: var(--orange); }
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.sec-lede { color: var(--ink-dim); font-size: clamp(.95rem, 1.15vw, 1.05rem); max-width: 36rem; }

/* fade-up on scroll */
.fade { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.fade.in { opacity: 1; transform: none; }
/* grid-cell cards sit on a hairline background — opacity/transform reveals
   would expose a glowing gap, so they reveal via border-glow instead */
.mission.fade, .tonight-panel.fade { opacity: 1; transform: none; }
/* night-progress bars sweep in when their card first enters view */
.mission.fade .m-track-bar { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2,.7,.2,1) .2s; }
.mission.fade.in .m-track-bar { transform: scaleX(var(--p)); }

/* ============ LIVE ALERT STREAM ============ */
.alert-stream {
  display: flex; align-items: stretch;
  border: 1px solid var(--hair);
  background: rgba(8,13,24,.55);
  margin-bottom: 2rem;
  overflow: hidden;
}
.as-label {
  flex: none; display: inline-flex; align-items: center; gap: .55rem;
  font-size: .58rem; letter-spacing: .18em; color: var(--orange);
  padding: .72rem 1.1rem;
  border-right: 1px solid var(--hair);
  white-space: nowrap;
}
.as-label .dot { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.as-track {
  flex: 1; overflow: hidden; position: relative; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.as-inner {
  display: inline-flex; gap: 3.2rem;
  white-space: nowrap;
  padding: .72rem 0 .72rem 1.4rem;
  font-size: .64rem; letter-spacing: .05em; color: var(--ink-dim);
  animation: as-scroll 72s linear infinite;
  will-change: transform;
}
.as-track:hover .as-inner { animation-play-state: paused; }
.as-inner b { color: var(--cyan); font-weight: 400; }
.as-inner .ak { color: var(--orange); }
.as-inner .sep { color: var(--ink-faint); }
@keyframes as-scroll { to { transform: translateX(-50%); } }

/* ============ 01 MISSIONS ============ */
.missions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.mission {
  background: var(--bg);
  padding: clamp(1.4rem, 2.6vw, 2.3rem);
  position: relative;
  transition: background .35s;
}
.mission:hover { background: var(--bg-2); }
.mission::after {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transition: width .5s cubic-bezier(.2,.7,.2,1);
}
.mission:hover::after { width: 100%; }
.mission-id { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.3rem; }
.m-code { font-size: 0.6rem; letter-spacing: .2em; color: var(--ink-faint); }
.m-status { font-size: 0.58rem; letter-spacing: .18em; color: var(--cyan); display: inline-flex; align-items: center; gap: .45rem; }
.m-status.amber { color: var(--orange); }
.mission h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 600; letter-spacing: .01em; margin-bottom: .8rem; }
.m-sub { display: block; font-size: 0.68rem; font-weight: 400; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .22em; margin-top: .35rem; }
.mission > p { color: var(--ink-dim); font-size: 0.92rem; margin-bottom: 1.5rem; max-width: 42rem; }
.m-data {
  display: grid; grid-template-columns: repeat(4, auto);
  justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--hair-2);
  padding-top: 1.1rem; margin-bottom: 1.3rem;
}
.m-data div { display: flex; flex-direction: column; gap: .3rem; }
.m-data dt { font-size: 0.53rem; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-faint); }
.m-data dd { font-size: 0.92rem; color: var(--ink); }
.m-data dd i { font-style: italic; color: var(--ink-dim); }
.m-track { position: relative; height: 3px; background: var(--hair-2); overflow: visible; }
.m-track-bar { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: var(--cyan); box-shadow: 0 0 10px rgba(123,232,255,.5); }
.m-track-bar.amber { background: var(--orange); box-shadow: 0 0 10px rgba(255,154,60,.5); }
.m-track-label { position: absolute; right: 0; top: 8px; font-size: 0.52rem; letter-spacing: .16em; color: var(--ink-faint); }

/* ============ 02 TONIGHT ============ */
.tonight-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.5fr) minmax(250px, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
}
.tonight-panel { background: var(--bg); padding: clamp(1.2rem, 2vw, 1.8rem); min-width: 0; }
.panel-title {
  font-size: 0.6rem; letter-spacing: 0.22em; color: var(--orange);
  margin-bottom: 1.2rem; padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--hair-2);
}
.cond-list { list-style: none; font-size: 0.74rem; }
.cond-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px dotted var(--hair-2);
}
.cond-list span { color: var(--ink-faint); text-transform: uppercase; font-size: 0.6rem; letter-spacing: .12em; align-self: center; }
.cond-list b { font-weight: 400; color: var(--ink); white-space: nowrap; }
.cond-verdict { margin-top: 1.2rem; font-size: 0.6rem; letter-spacing: .18em; color: var(--cyan); display: flex; align-items: center; gap: .5rem; }
.target-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; }
.target-table th {
  text-align: left; font-weight: 400; font-size: 0.55rem;
  text-transform: uppercase; letter-spacing: .16em; color: var(--ink-faint);
  padding: 0 .6rem .6rem 0; border-bottom: 1px solid var(--hair-2);
}
.target-table td { padding: 0.55rem .6rem 0.55rem 0; border-bottom: 1px dotted var(--hair-2); color: var(--ink); white-space: nowrap; }
.target-table td.prog { color: var(--orange); font-size: 0.6rem; letter-spacing: .1em; }
.target-table tr:hover td { color: var(--cyan); }
/* the target currently on the detector — space is reserved so nothing shifts */
.target-table tbody td:first-child::before {
  content: "●"; color: transparent; font-size: .5em;
  margin-right: .55em; vertical-align: 2px; transition: color .5s;
}
.target-table tbody tr.live td:first-child::before {
  color: var(--orange); text-shadow: 0 0 7px rgba(255,154,60,.85);
}
.target-table tbody tr.live td { color: var(--cyan); }
.target-table tbody tr.live td.prog { color: var(--orange); }
.table-note { margin-top: 1rem; font-size: 0.56rem; letter-spacing: .16em; color: var(--ink-faint); }
#footprint { width: 100%; height: auto; }
.fp-horizon { fill: none; stroke: var(--hair); stroke-width: 1; }
.fp-line { stroke: var(--hair-2); stroke-width: 0.6; stroke-dasharray: 2 4; }
.fp-txt { font-family: var(--font-mono); font-size: 7px; fill: var(--ink-faint); letter-spacing: .1em; }
#fp-tiles rect { fill: rgba(123,232,255,.16); stroke: rgba(123,232,255,.4); stroke-width: .3; }
#fp-tiles rect.hot { fill: rgba(255,154,60,.35); stroke: var(--orange); }
#fp-now { fill: var(--orange); }

/* ============ 03 RESEARCH ============ */
.findings { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.6vw, 2.6rem); }
.finding { border-top: 1px solid var(--hair); padding-top: 1.4rem; display: flex; flex-direction: column; }
.f-meta { display: flex; justify-content: space-between; font-size: 0.55rem; letter-spacing: .14em; color: var(--ink-faint); margin-bottom: 1.2rem; }
.f-fig { width: 100%; height: auto; margin-bottom: 1.4rem; }
.f-curve { fill: none; stroke-width: 1.2; }
.f-curve.cyan { stroke: var(--cyan); }
.f-curve.orange { stroke: var(--orange); }
.f-axis { stroke: var(--hair); stroke-width: 1; }
.f-dots circle { fill: var(--cyan); opacity: .8; }
.f-vectors line { stroke: var(--cyan); stroke-width: 1; marker-end: none; }
.finding h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin-bottom: .7rem; }
.finding p { color: var(--ink-dim); font-size: 0.88rem; flex: 1; }
.f-link { margin-top: 1.4rem; font-size: 0.6rem; letter-spacing: .2em; color: var(--cyan); display: inline-flex; gap: .5rem; align-items: center; }
.f-link span { transition: transform .25s; }
.f-link:hover span { transform: translateX(4px); }
.f-link:hover { color: var(--orange); }

.counter-band {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.counter-band div { padding: 1.6rem 1rem; text-align: center; border-left: 1px solid var(--hair); }
.counter-band div:first-child { border-left: 0; }
.counter-band b { display: block; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 400; color: var(--cyan); }
.counter-band span { font-size: 0.55rem; letter-spacing: .2em; color: var(--ink-faint); }

/* ============ 04 OBSERVATORY ============ */
.story { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr); gap: clamp(2rem, 4vw, 4rem); margin-bottom: clamp(3rem, 7vh, 5rem); }
.story-text p { color: var(--ink-dim); font-size: clamp(0.95rem, 1.2vw, 1.08rem); margin-bottom: 1.4rem; max-width: 40rem; }
.story-text .drop::first-letter {
  font-size: 3.2em; float: left; line-height: .82;
  padding: .08em .12em 0 0; color: var(--cyan); font-weight: 500;
}
.story-spec { border: 1px solid var(--hair); padding: 1.5rem; align-self: start; background: rgba(8,13,24,.55); }
.story-spec ul { list-style: none; font-size: 0.74rem; }
.story-spec li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dotted var(--hair-2); }
.story-spec li:last-child { border-bottom: 0; }
.story-spec span { color: var(--ink-faint); font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; align-self: center; }
.story-spec b { font-weight: 400; color: var(--ink); white-space: nowrap; }

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
  border-top: 1px solid var(--hair);
  padding-top: 0;
  position: relative;
}
.timeline li { padding-top: 1.6rem; position: relative; }
.timeline li::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 1px; height: 12px; background: var(--cyan);
}
.timeline li::after {
  content: ""; position: absolute; top: -3px; left: -2.5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--cyan);
  transition: background .3s, box-shadow .3s;
}
.timeline li:hover::after { background: var(--cyan); box-shadow: 0 0 10px rgba(123,232,255,.75); }
.tl-year { display: block; color: var(--orange); font-size: 0.8rem; margin-bottom: .5rem; letter-spacing: .1em; transition: color .3s; }
.timeline li:hover .tl-year { color: var(--cyan); }
.timeline p { font-size: 0.78rem; color: var(--ink-dim); line-height: 1.55; transition: color .3s; }
.timeline li:hover p { color: var(--ink); }

/* ============ FOOTER ============ */
.site-foot {
  position: relative; z-index: 1;
  border-top: 1px solid var(--hair);
  padding: clamp(3rem, 6vh, 4.5rem) calc(var(--frame) + 44px) calc(var(--frame) + 56px);
  background: linear-gradient(rgba(5,8,16,0), rgba(8,13,24,.9));
  max-width: 1460px; margin: 0 auto;
}
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.foot-brand .wordmark { margin-bottom: 1rem; }
.foot-brand p { font-size: 0.6rem; letter-spacing: .18em; color: var(--ink-faint); line-height: 1.9; }
.foot-col h5 { font-size: 0.58rem; letter-spacing: .22em; color: var(--orange); font-weight: 400; margin-bottom: .9rem; }
.foot-col p { font-size: 0.7rem; color: var(--ink-dim); line-height: 2; }
.foot-legal {
  border-top: 1px solid var(--hair-2); padding-top: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.62rem; color: var(--ink-faint); letter-spacing: .06em;
}
.foot-legal b { color: var(--ink-dim); font-weight: 400; }
.foot-legal a { color: var(--cyan); }
.foot-legal a:hover { color: var(--orange); }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .fade { transition: none; opacity: 1; transform: none; }
  .dot { animation: none; }
  .scroll-hint span { animation: none; height: 20px; }
  .const-lines line { stroke-dashoffset: 0 !important; animation: none !important; }
  .as-inner { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1120px) {
  .tonight-grid { grid-template-columns: 1fr 1.6fr; }
  .tonight-panel.skymap { grid-column: 1 / -1; }
  .head-status { display: none; }
}
@media (max-width: 900px) {
  .section::after { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 20vh; padding-bottom: 24vh; }
  .constellation { display: none; }
  .missions { grid-template-columns: 1fr; }
  .findings { grid-template-columns: 1fr; gap: 2.4rem; }
  .story { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); border-top: 0; }
  .timeline li { border-top: 1px solid var(--hair); }
  .telemetry { grid-template-columns: repeat(2, 1fr); border-left: 1px solid var(--hair); }
  .tel-cell:nth-child(n+5) { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .counter-band { grid-template-columns: repeat(2, 1fr); }
  .counter-band div:nth-child(3) { border-left: 0; border-top: 1px solid var(--hair); }
  .counter-band div:nth-child(4) { border-top: 1px solid var(--hair); }
}
@media (max-width: 700px) {
  .top-nav { display: none; }
  /* nav is gone, so the live dome status earns its spot back */
  .head-status { display: flex; }
  .site-head { padding-left: calc(var(--frame) + 12px); padding-right: calc(var(--frame) + 12px); }
  .tonight-grid { grid-template-columns: 1fr; }
  .tonight-panel.targets { overflow-x: auto; }
  .section, .site-foot { padding-left: calc(var(--frame) + 12px); padding-right: calc(var(--frame) + 12px); }
  .section::before { left: calc(var(--frame) + 12px); right: calc(var(--frame) + 12px); }
  .hero { padding-left: calc(var(--frame) + 12px); padding-right: calc(var(--frame) + 12px); }
  .telemetry { left: calc(var(--frame) + 12px); right: calc(var(--frame) + 12px); }
  .frame-ticks { display: none; }
  .frame-corner.tl, .frame-corner.tr { display: none; }
  .m-data { grid-template-columns: repeat(2, 1fr); }
  .scroll-hint { display: none; }
  .as-label { padding: .6rem .7rem; }
  /* swap the truncating pointing cell for seeing on small screens */
  .tel-cell:nth-child(4) { display: none; }
  .tel-cell:nth-child(5) { display: flex; }
  .target-table th:nth-child(2), .target-table td:nth-child(2) { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .foot-legal { flex-direction: column; gap: .6rem; }
  h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
}
