:root {
  --bg: #2a2d32;
  --surface: #3a3d42;
  --border: #4a4d54;
  --primary: #c8cdd4;
  --secondary: #a0a8b4;
  --tertiary: #6b7178;
  --amber: #d4a054;
  --flame: #e8894a;
  --blue: #5a7a9e;
  --red: #c45a5a;
  --cyan: #5ab4c4;
  --hud-bracket: #8891a0;
}

/* Compliance vocabulary from the typography brief: Inter's tabular figures and clear differentiation make it ideal metadata readouts. (Google Interaction: Interaction:** Interactive letter-probing via ripple-to-glitch chain: chain:** click-ripple-to-chromatic-aberration interaction chain (click → sonar ripple → letter RGB split site's landscape. letterforms *become* visual landscape Space Grotesk's geometric clarity makes glitch displacement maximally legible — when by 2-4px */

* { box-sizing: border-box; }

html { min-height: 300vh; background: var(--bg); }

body {
  margin: 0;
  min-height: 300vh;
  color: var(--secondary);
  font-family: "Inter", sans-serif;
  font-weight: 450;
  overflow-x: hidden;
  background: #000;
}

.blackout {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
  pointer-events: none;
  animation: blackout 2.05s steps(1, end) forwards;
}

.station {
  position: fixed;
  inset: 0;
  padding: 18px;
  background: var(--bg);
  overflow: hidden;
  opacity: 0;
  animation: station-on .01s linear .5s forwards;
}

.signal-field,
.signal-field::before {
  position: absolute;
  inset: -20%;
  pointer-events: none;
}

.signal-field {
  background:
    repeating-linear-gradient(to bottom, rgba(160,168,178,0.06) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 25% 20%, rgba(160,168,178,0.03) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 72% 61%, rgba(160,168,178,0.018) 0 1px, transparent 1px 3px),
    var(--bg);
  animation: field-drift 120s linear infinite;
}

.signal-field::before {
  content: "";
  background: radial-gradient(circle at center, rgba(212,160,84,0.035), transparent 28%), radial-gradient(circle at 12% 82%, rgba(90,122,158,0.06), transparent 22%);
}

.scan-line {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 1px;
  background: rgba(160,168,178,0.08);
  box-shadow: 0 0 18px rgba(160,168,178,0.12);
  transform: translateY(-5vh);
  animation: scan 15s linear .5s infinite;
  z-index: 12;
  will-change: transform, opacity;
}

.ambient-ripple {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(90,122,158,0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: ambient 8s ease-out infinite;
  pointer-events: none;
}

.panel {
  position: absolute;
  background: rgba(42,45,50,0.84);
  border: 1px solid rgba(160,168,178,0.15);
  box-shadow: inset 0 0 30px rgba(0,0,0,0.3), 0 0 0 2px var(--surface);
  opacity: 0;
  animation: panel-in .4s ease .8s forwards;
  overflow: hidden;
}

.primary-panel { left: 22%; top: 8%; width: 56%; height: 60%; }
.left-panel { left: 18px; top: 8%; width: calc(22% - 30px); height: 76%; }
.right-panel { right: 18px; top: 8%; width: calc(22% - 30px); height: 76%; }
.alpha-readout { left: 22%; top: calc(68% + 6px); width: 56%; height: 16%; }
.bottom-readout { left: 18px; right: 18px; bottom: 18px; height: calc(16% - 24px); }

.panel-label {
  position: absolute;
  top: 9px;
  left: 10px;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: "Space Mono", monospace;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  color: var(--tertiary);
  text-transform: uppercase;
}

.flame {
  width: 8px;
  height: 16px;
  display: inline-block;
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 58% 34%, #fff0c6 0 10%, var(--flame) 11% 38%, var(--amber) 39% 72%, transparent 73%);
  box-shadow: 0 0 20px rgba(212,160,84,0.15), 0 0 40px rgba(212,160,84,0.06);
  filter: blur(.8px);
  opacity: .58;
  transform-origin: 50% 100%;
  animation: flame-wobble 3s ease-in-out infinite;
}

.flame.active { opacity: 1; }
.right-panel .flame { animation-delay: .7s; }
.alpha-readout .flame { animation-delay: 1.4s; }
.bottom-readout .flame { animation-delay: 2.1s; }

.bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: rgba(136,145,160,0.4);
  opacity: 0;
  animation: bracket-in .4s ease 1.2s forwards;
  transition: transform .32s ease;
}
.tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.tr { top: 12px; right: 12px; border-top: 2px solid; border-right: 2px solid; }
.bl { bottom: 12px; left: 12px; border-bottom: 2px solid; border-left: 2px solid; }
.br { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; }
.focus-pulse .tl { transform: translate(4px, 4px); }
.focus-pulse .tr { transform: translate(-4px, 4px); }
.focus-pulse .bl { transform: translate(4px, -4px); }
.focus-pulse .br { transform: translate(-4px, -4px); }

.reticle {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  opacity: .2;
  transition: opacity .5s ease;
  pointer-events: none;
  z-index: 10;
}
.reticle.hidden { opacity: 0; }
.reticle span { position: absolute; background: var(--tertiary); }
.reticle span:nth-child(1) { left: 0; top: 25px; width: 19px; height: 1px; }
.reticle span:nth-child(2) { right: 0; top: 25px; width: 19px; height: 1px; }
.reticle span:nth-child(3) { left: 25px; top: 0; width: 1px; height: 19px; }
.reticle span:nth-child(4) { left: 25px; bottom: 0; width: 1px; height: 19px; }

.specimen {
  position: absolute;
  inset: 48px 34px 34px;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.specimen.active { opacity: 1; transform: translateY(0); }

.display-pair,
.wave-word {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: .95;
  letter-spacing: -.02em;
  color: var(--primary);
  text-align: center;
  text-shadow: -3px -1px 0 var(--red), 3px 1px 0 var(--cyan);
  animation: converge .6s ease 2s forwards;
}
.display-pair span { display: block; }
.display-pair:hover,
.wave-word:hover,
.burst { text-shadow: -3px -1px 0 var(--red), 3px 1px 0 var(--cyan); }
.micro-note {
  position: absolute;
  bottom: 0;
  margin: 0;
  font: 400 10px "Space Mono", monospace;
  color: var(--tertiary);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hot-letter { color: var(--amber); text-shadow: -3px -1px 0 var(--red), 3px 1px 0 var(--cyan), 0 0 22px rgba(212,160,84,.22); }
.flicker { animation: letter-flicker 3s steps(2, end) infinite; }
.hidden-text {
  margin: 0;
  max-width: 92%;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  color: var(--primary);
}
.glow { color: var(--amber); text-shadow: 0 0 22px rgba(232,137,74,.45); }
.wave-word { display: flex; flex-wrap: wrap; justify-content: center; animation: converge .6s ease 2s forwards, word-pulse 6s ease-in-out infinite 2.8s; }
.wave-word span { display: inline-block; transition: transform .18s ease, color .18s ease; }
.wave-word span.corrupt { color: var(--amber); transform: translateY(-8px) skewX(-9deg); }
.word-ripple {
  position: absolute;
  left: 50%; top: 50%;
  width: 20px; height: 20px;
  border: 1px solid rgba(90,122,158,.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: word-ripple 6s ease-out infinite 2.8s;
}

.annotation {
  position: absolute;
  inset: 54px 22px 24px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
}
.annotation.active { opacity: 1; transform: translateY(0); }
.annotation h2 {
  margin: 0 0 18px;
  color: var(--primary);
  font: 400 11px "Space Mono", monospace;
  letter-spacing: .12em;
}
.annotation p {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.65;
}
.annotation::after,
.panel-label::before {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,84,0.06), transparent 62%);
  pointer-events: none;
}
.annotation::after { left: -42px; top: -42px; }
.panel-label::before { left: -24px; top: -32px; }

.ticker {
  height: 100%;
  padding: 48px 28px 20px;
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  font: 400 11px "Space Mono", monospace;
  letter-spacing: .12em;
  color: var(--tertiary);
  text-transform: uppercase;
  animation: ticker 28s linear infinite;
}
.ticker span { color: var(--secondary); }
.ticker span:nth-child(2) { color: var(--amber); }

.histogram {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  top: 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 4px;
}
.bar {
  width: 2px;
  min-height: 4px;
  background: var(--blue);
  box-shadow: 0 0 8px rgba(90,122,158,.28);
  transition: height .4s ease, opacity .4s ease;
  position: relative;
}
.bar::after {
  content: attr(data-letter);
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font: 400 8px "Space Mono", monospace;
  color: var(--tertiary);
}

.ripple {
  position: fixed;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 1px solid rgba(90,122,158,.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 30;
  animation: click-ripple .8s ease-out forwards;
}

@keyframes blackout { 0%, 99% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes station-on { to { opacity: 1; } }
@keyframes field-drift { to { transform: translateY(4px); } }
@keyframes scan { from { transform: translateY(-5vh); } to { transform: translateY(105vh); } }
@keyframes panel-in { to { opacity: 1; } }
@keyframes bracket-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes flame-wobble { 0%,100% { transform: scaleY(.9) rotate(-2deg); filter: blur(.5px); } 50% { transform: scaleY(1.1) rotate(2deg); filter: blur(1.5px); } }
@keyframes converge { to { text-shadow: 0 0 0 transparent, 0 0 0 transparent; } }
@keyframes letter-flicker { 0%, 48% { filter: hue-rotate(0deg); } 50%, 100% { filter: hue-rotate(95deg); } }
@keyframes word-pulse { 0%, 100% { text-shadow: 0 0 0 transparent; } 50% { text-shadow: -3px -1px 0 var(--red), 3px 1px 0 var(--cyan); } }
@keyframes word-ripple { 0% { opacity: .45; transform: translate(-50%, -50%) scale(0); } 80%,100% { opacity: 0; transform: translate(-50%, -50%) scale(24); } }
@keyframes ambient { 0% { opacity: .6; transform: translate(-50%, -50%) scale(0); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(28); } }
@keyframes ticker { from { transform: translateX(12%); } to { transform: translateX(-24%); } }
@keyframes click-ripple { to { opacity: 0; transform: scale(34); } }

@media (max-width: 768px) {
  html, body { min-height: 300vh; }
  .station { padding: 12px; }
  .primary-panel { left: 12px; right: 12px; top: 7%; width: auto; height: 66%; }
  .left-panel, .right-panel {
    left: 12px;
    right: 12px;
    top: auto;
    width: auto;
    height: 18%;
    transform: translateY(calc(100% - 34px));
    transition: transform .3s ease;
  }
  .left-panel { bottom: 9%; }
  .right-panel { bottom: 4%; }
  .left-panel.open, .right-panel.open { transform: translateY(0); }
  .alpha-readout { display: none; }
  .bottom-readout { left: 12px; right: 12px; bottom: 8px; height: 5%; }
  .display-pair, .wave-word { font-size: clamp(2.5rem, 10vw, 5rem); }
  .hidden-text { font-size: clamp(1.55rem, 8vw, 3.5rem); }
  .specimen { inset: 46px 20px 26px; }
  .annotation { inset: 38px 18px 14px; }
  .annotation p { font-size: 12px; line-height: 1.45; }
  .bracket { width: 8px; height: 8px; }
  .histogram { top: 22px; bottom: 8px; }
  .bar::after { display: none; }
}
