/* ------------------------------------------------------------------
   EARTHHARP — stylesheet
   A real-time sonification of the International Space Station.
   © 2026 Joshua Borsman. All rights reserved.

   Visual idiom: gallery print. Generous black, hairline rules, corner
   crop marks, an editorial-italic tagline, a widely-spaced display
   wordmark. The globe is the artwork; everything else is a museum
   plate.
   ------------------------------------------------------------------ */

:root {
  /* Surfaces */
  --void:        #04060a;
  --void-deep:   #020305;
  --paper:       #f6f4ee;          /* warm off-white, for the print rules */
  --surface:     rgba(255, 255, 255, 0.05);
  --hairline:    rgba(246, 244, 238, 0.18);
  --hairline-strong: rgba(246, 244, 238, 0.32);

  /* Ink */
  --ink:         #f4f1e9;
  --ink-soft:    #d3cfc4;
  --ink-mute:    #9c978a;
  --ink-faint:   #6b665b;

  /* Accents — used very sparingly */
  --signal:      #9af5ff;
  --signal-glow: rgba(154, 245, 255, 0.55);
  --warn:        #ffb073;
  --live:        #ff8a8a;

  /* Type */
  --display:  "Cormorant Garamond", "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --serif:    "Cormorant Garamond", "Instrument Serif", Georgia, serif;
  --ui:       "Manrope", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:     "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: var(--ui);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

body {
  background:
    radial-gradient(ellipse 100% 70% at 50% 110%, rgba(154, 245, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(180, 140, 255, 0.05), transparent 60%),
    var(--void);
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
a:hover { color: var(--ink); border-bottom-color: var(--ink-mute); }
a:focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: rgba(154, 245, 255, 0.18); color: var(--ink); }

/* The HTML `hidden` attribute should win over any `display:` rule */
[hidden] { display: none !important; }

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

/* ---------- Atmosphere ---------- */

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.96  0 0 0 0 0.94  0 0 0 0 0.88  0 0 0 0.8 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 49;
  background: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 55%, rgba(0,0,0,0.45) 100%);
}

/* ---------- Canvas ---------- */

#globe {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  display: block;
  z-index: 0;
  cursor: grab;
  touch-action: none;
}
#globe:active { cursor: grabbing; }

/* ---------- Corner crop marks ---------- */

.crop {
  position: fixed;
  width: 14px; height: 14px;
  z-index: 9;
  pointer-events: none;
  border: 1px solid var(--hairline-strong);
}
.crop--tl { top: 18px;    left: 18px;    border-right: 0; border-bottom: 0; }
.crop--tr { top: 18px;    right: 18px;   border-left: 0;  border-bottom: 0; }
.crop--bl { bottom: 18px; left: 18px;    border-right: 0; border-top: 0; }
.crop--br { bottom: 18px; right: 18px;   border-left: 0;  border-top: 0; }

/* ---------- Top frame: brand + transport ---------- */

.frame {
  position: fixed;
  top: 32px; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  pointer-events: none;
}
.frame > * { pointer-events: auto; }

.frame__brand {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.32em;
  color: var(--ink);
  border-bottom: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.frame__brand::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ink);
  display: inline-block;
}
.frame__brand-mark {
  letter-spacing: 0.32em;
  font-weight: 600;
}

.frame__transport {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px 6px 9px;
  background: rgba(4, 6, 10, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 200ms var(--ease-out);
}
.frame__transport:hover { border-color: var(--hairline-strong); }

.frame__transport-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-faint);
  position: relative;
}
.frame__transport[data-state="playing"] .frame__transport-dot {
  background: var(--live);
}
.frame__transport[data-state="playing"] .frame__transport-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--live);
  filter: blur(4px);
  opacity: 0.6;
  animation: pulse 2.2s ease-in-out infinite;
}
.frame__transport[data-state="paused"] .frame__transport-dot {
  background: var(--warn);
}

/* ---------- HERO — title plate ---------- */

.hero {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 90px 32px 110px;
  pointer-events: none;
  animation: hero-in 1400ms 100ms var(--ease-out) both;
}
.hero > * { pointer-events: auto; }
.hero.is-leaving { animation: hero-out 1200ms var(--ease-out) both; }

.hero__inner {
  max-width: 720px;
  text-align: left;
  position: relative;
}
.hero__inner::before,
.hero__inner::after {
  content: "";
  display: block;
  height: 1px;
  background: var(--hairline);
  margin: 26px 0;
}

.hero__eyebrow {
  margin: 0 0 24px;
  font: 500 11px/1.6 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero__title {
  margin: 0;
  font: 300 clamp(54px, 9.4vw, 132px)/0.95 var(--display);
  letter-spacing: clamp(0.2em, 0.5vw, 0.32em);
  color: var(--ink);
  text-indent: clamp(0.2em, 0.5vw, 0.32em); /* compensate so left edge aligns */
}

.hero__tagline {
  margin: 26px 0 22px;
  font: 300 clamp(20px, 2.4vw, 30px)/1.3 var(--serif);
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0.005em;
}

.hero__body {
  margin: 0 0 36px;
  font: 300 clamp(14px, 1.2vw, 16px)/1.7 var(--ui);
  color: var(--ink-soft);
  max-width: 52ch;
  letter-spacing: 0.005em;
}

.hero__initiate {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: rgba(4, 6, 10, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 240ms var(--ease-out), color 240ms var(--ease-out);
  position: relative;
}
.hero__initiate:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.hero__initiate-line {
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 240ms var(--ease-out);
}
.hero__initiate:hover .hero__initiate-line { width: 36px; }

.hero__hint {
  margin: 22px 0 0;
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Ticker — performance state ---------- */

.ticker {
  position: fixed;
  left: 38px; right: 38px;
  bottom: 64px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  pointer-events: none;
  animation: ticker-in 1400ms 300ms var(--ease-out) both;
}
.ticker > * { pointer-events: auto; }

.ticker__row {
  display: flex;
  align-items: baseline;
  gap: 48px;
  flex-wrap: wrap;
}

.ticker__cell {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.ticker__k {
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.ticker__v {
  font: 400 22px/1 var(--serif);
  font-style: italic;
  color: var(--ink);
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.ticker__dot {
  font: 300 14px/1 var(--mono);
  font-style: normal;
  color: var(--ink-faint);
  padding: 0 4px;
}

.ticker__axis {
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-left: 8px;
  font-style: normal;
}

/* ---------- Data toggle ---------- */

.data-toggle {
  position: fixed;
  top: 32px;
  right: 0;
  z-index: 11;
  display: none;            /* shown only after performance starts */
  align-items: center;
  gap: 10px;
  padding: 6px 38px 6px 12px;
  background: rgba(4, 6, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--hairline);
  border-right: 0;
  color: var(--ink);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 200ms, padding 200ms;
}
.data-toggle:hover { border-color: var(--hairline-strong); }
.data-toggle__plus {
  display: inline-block;
  width: 14px; text-align: center;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}
.data-toggle[aria-expanded="true"] .data-toggle__plus { transform: rotate(45deg); }

body.is-performing .data-toggle { display: inline-flex; }

/* The transport sits on the left, the toggle on the right.
   Hide the transport-side mark so the toggle is the only top-right element. */

/* ---------- HUD panels ---------- */

.hud {
  position: fixed;
  left: 0; right: 0;
  bottom: 130px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 38px;
  pointer-events: none;
  animation: hud-in 700ms var(--ease-out) both;
}

.panel {
  pointer-events: auto;
  position: relative;
  padding: 14px 18px 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)),
    rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--hairline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px -30px rgba(0, 0, 0, 0.85);
}
.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--hairline-strong);
}
.panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.panel__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--hairline);
}

.panel__title {
  margin: 0;
  font: 400 14px/1 var(--serif);
  font-style: italic;
  color: var(--ink);
  flex: 1;
  letter-spacing: 0.005em;
}

.panel__id {
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 4px 7px;
  border: 1px solid var(--hairline);
}

.metrics {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
}

.metric { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.metric dt {
  font: 600 10px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.metric dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
}
.metric__value {
  font: 500 20px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.metric__value.is-flash { animation: flash 600ms var(--ease-out); }
.metric__unit {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: lowercase;
}

/* ---------- Crew panel ---------- */

.crew {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.crew__count {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 14px;
  border-right: 1px dashed var(--hairline);
  min-width: 48px;
}
.crew__num {
  font: 500 28px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.crew__label {
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.crew__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 88px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--hairline-strong) transparent;
}
.crew__list li {
  font: 400 12px/1.3 var(--ui);
  color: var(--ink-soft);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.crew__list li::before {
  content: "";
  flex: none;
  width: 3px; height: 3px;
  background: var(--signal);
  box-shadow: 0 0 5px var(--signal-glow);
  margin-top: 5px;
}
.crew__placeholder { color: var(--ink-mute) !important; font-style: italic; }
.crew__placeholder::before { display: none !important; }
.crew__list.is-error li { color: var(--ink-mute); font-style: italic; }
.crew__list.is-error li::before { background: var(--warn); box-shadow: 0 0 6px rgba(255, 176, 115, 0.4); }

/* ---------- Specification panel ---------- */

.spec { display: flex; flex-direction: column; gap: 12px; }
.spec__lede {
  margin: 0;
  font: 300 12px/1.55 var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.spec__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.spec__list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  align-items: baseline;
  font: 400 11px/1.4 var(--mono);
  color: var(--ink-soft);
}
.spec__ch {
  font: 600 9px/1.4 var(--mono);
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.spec__cv-toggle {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 200ms;
  width: fit-content;
}
.spec__cv-toggle:hover { border-color: var(--hairline-strong); }
.spec__cv-toggle[aria-pressed="true"] {
  border-color: var(--signal);
  color: var(--signal);
}
.spec__cv-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); }
.spec__cv-toggle[aria-pressed="true"] .spec__cv-dot { background: var(--signal); box-shadow: 0 0 6px var(--signal-glow); }
.spec__note {
  margin: 0;
  font: 500 9px/1.5 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Onboard live (existing, now hidden by default) ---------- */

.live {
  position: fixed;
  top: 96px;
  right: 38px;
  z-index: 10;
  width: 320px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)),
    rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--hairline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px -30px rgba(0, 0, 0, 0.85);
  animation: rise 800ms var(--ease-out) both;
}
.live::before,
.live::after {
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--hairline-strong);
}
.live::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.live::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.live__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 12px; border-bottom: 1px dashed var(--hairline); }
.live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; position: relative; }
.live__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--live); filter: blur(4px); animation: pulse 1.6s ease-in-out infinite; }
.live__title { margin: 0; font: 400 14px/1 var(--serif); font-style: italic; flex: 1; color: var(--ink); }
.live__id { font: 600 9px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); }
.live__viewport { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.live__viewport iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.live__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 20px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(36, 86, 130, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 60% at 30% 80%, rgba(24, 50, 90, 0.4), transparent 70%),
    #04060a;
  border: 0; cursor: pointer; color: var(--ink); text-align: center;
}
.live__poster:hover { filter: brightness(1.15); }
.live__play { width: 40px; height: 40px; color: var(--ink); filter: drop-shadow(0 0 12px var(--signal-glow)); }
.live__caption { font: 400 14px/1.2 var(--serif); font-style: italic; color: var(--ink); }
.live__sub { font: 500 9px/1.4 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- Colophon ---------- */

.colophon {
  position: fixed;
  bottom: 32px; left: 0; right: 0;
  z-index: 10;
  padding: 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  pointer-events: none;
}
.colophon > * { pointer-events: auto; }

.colophon__left,
.colophon__right {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font: 500 10px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.colophon__author { color: var(--ink-soft); }
.colophon__rights { color: var(--ink-mute); }
.colophon__sep,
.colophon__rule { color: var(--ink-faint); }
.colophon__url { color: var(--ink-soft); border-bottom-color: var(--hairline); }
.colophon a:hover { color: var(--ink); }

/* ---------- Noscript ---------- */

.noscript {
  position: fixed; inset: 0;
  display: grid;
  place-items: center;
  background: var(--void);
  z-index: 100;
  padding: 20px;
  text-align: center;
  color: var(--ink-soft);
}

/* ---------- Animations ---------- */

@keyframes hero-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-out {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); visibility: hidden; }
}
@keyframes ticker-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hud-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(2.4); opacity: 0; }
}
@keyframes flash {
  0%   { color: var(--signal); text-shadow: 0 0 12px var(--signal-glow); }
  100% { color: var(--ink); text-shadow: none; }
}

/* ---------- Responsive ---------- */

/* Tablet — 2-col HUD with crew + spec on row 2 */
@media (max-width: 1100px) {
  .live { display: none; }
}
@media (max-width: 1024px) {
  .hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phone — minimal: hero centered, performance ticker single line */
@media (max-width: 720px) {
  .frame { top: max(20px, env(safe-area-inset-top, 0)); padding: 0 22px; }
  .frame__brand { font-size: 10px; letter-spacing: 0.28em; }
  .frame__brand::before { width: 12px; }
  .frame__transport { padding: 5px 9px; font-size: 9px; }

  .crop { width: 10px; height: 10px; }
  .crop--tl, .crop--tr { top: 12px; }
  .crop--bl, .crop--br { bottom: 12px; }
  .crop--tl, .crop--bl { left: 12px; }
  .crop--tr, .crop--br { right: 12px; }

  .hero { padding: 80px 24px 96px; }
  .hero__inner::before { display: none; }
  .hero__title { letter-spacing: clamp(0.12em, 1.2vw, 0.18em); text-indent: clamp(0.12em, 1.2vw, 0.18em); }
  .hero__tagline { font-size: 18px; }
  .hero__body { font-size: 14px; }
  .hero__initiate { padding: 12px 18px; font-size: 10px; }
  .hero__hint { font-size: 9px; }

  .ticker {
    left: 18px; right: 18px;
    bottom: max(44px, env(safe-area-inset-bottom, 0));
    padding: 12px 14px;
    background: rgba(4, 6, 10, 0.55);
    border: 1px solid var(--hairline);
    border-radius: 0;
  }
  .ticker__row { gap: 18px; }
  .ticker__v { font-size: 16px; }
  .ticker__k { font-size: 8px; }

  .hud {
    display: flex;
    grid-template-columns: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    pointer-events: auto;
    padding: 0 8vw;
    gap: 10px;
    bottom: 132px;
    scrollbar-width: none;
  }
  .hud::-webkit-scrollbar { display: none; }
  .panel { flex: 0 0 84vw; min-width: 0; scroll-snap-align: center; padding: 12px 14px 14px; }
  .panel__head { margin-bottom: 10px; padding-bottom: 8px; }
  .panel__title { font-size: 13px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .metric:nth-child(3) { grid-column: 1 / -1; }
  .metric__value { font-size: 19px; }

  .colophon {
    bottom: max(14px, env(safe-area-inset-bottom, 0));
    padding: 0 18px;
    flex-direction: column-reverse;
    gap: 4px;
    align-items: flex-start;
  }
  .colophon__right { display: none; }     /* drop secondary credits on phone */
  .colophon__left { font-size: 9px; letter-spacing: 0.14em; }

  .data-toggle { top: max(14px, env(safe-area-inset-top, 0)); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
