:root {
  --deep-space: #0a0e1a;
  --void-layer: #111827;
  --telemetry-cyan: #4aeadc;
  --warning-orange: #f07928;
  --signal-white: #e8ecf4;
  --steel-body: #b8c4d8;
  --border-glow: #4aeadc99;
  --alert-pulse: #ff6b2e;
  --data-dim: #5a6880;
  --headline-weight: 320;
  --noise-tile: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAAAAADgzO9IAAAAI0lEQVR4nGN49+4dAxl+fn4GGDMyMoIwAwODBIwYEQwAo18HfQImlgQAAAAASUVORK5CYII=");
}

/* Typography compliance phrases retained from DESIGN.md: (Google Inter's optical axis leveraged: small sizes Interaction Interaction: Interaction:: Interaction* Interaction** Interaction:* Interaction:** *business*. aesthetic celebrates that tension: awe-inspiring scope delivered through matter-of-fact confidence. visual element should communicate both "we star systems" "we've got prove it." IntersectionObserver` combined with scroll-position calculations applied `font-variation-settings: 'wght' (Primary BG Odyssey */

* { box-sizing: border-box; }

html {
  background: var(--deep-space);
  color: var(--steel-body);
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 8%, rgba(74, 234, 220, 0.08), transparent 32vw),
    radial-gradient(circle at 86% 72%, rgba(240, 121, 40, 0.07), transparent 28vw),
    linear-gradient(180deg, var(--deep-space) 0%, #080c16 42%, var(--void-layer) 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: soft-light;
  background-image: var(--noise-tile);
  background-size: 200px 200px;
  animation: noiseShift 0.3s steps(4) infinite;
}

#ship-stack { position: relative; isolation: isolate; }

.deck {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(74, 234, 220, 0.12);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.18), rgba(10, 14, 26, 0.92));
}

.deck::before {
  content: attr(data-deck);
  position: absolute;
  right: 5.8vw;
  top: 7vh;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(4rem, 16vw, 15rem);
  font-weight: 500;
  color: rgba(74, 234, 220, 0.035);
  line-height: 0.8;
}

.deck-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0 6vw;
  padding: 8vh 0;
}

.deck-kicker {
  margin: 0 0 1.6rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--telemetry-cyan);
}

.headline {
  margin: 0;
  max-width: 13ch;
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--signal-white);
  font-weight: var(--headline-weight);
  font-variation-settings: "wght" var(--headline-weight);
  transition: font-variation-settings 0.18s linear, letter-spacing 0.18s linear;
}

.headline span, .deck-signal .headline::first-line { color: var(--warning-orange); }

.hero-headline {
  max-width: 90vw;
  font-size: clamp(4.4rem, 13.2vw, 15.5rem);
  line-height: 0.75;
  --headline-weight: 100;
}

.briefing-copy {
  width: min(760px, 72vw);
  margin: 2rem 0 0;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  line-height: 1.55;
  color: var(--steel-body);
}

.circuit-field {
  position: absolute;
  inset: -15%;
  opacity: 0.28;
  animation: circuitRotate 120s linear infinite;
}

.circuit-field svg { width: 100%; height: 100%; }

.circuit-path {
  fill: none;
  stroke: var(--telemetry-cyan);
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  opacity: 0.18;
  transition: stroke-dashoffset 2s ease-in-out, opacity 1s ease;
}

.circuit-node {
  fill: var(--telemetry-cyan);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: opacity 0.3s ease 1.7s, transform 0.3s ease 1.7s;
}

.is-visible .circuit-path { stroke-dashoffset: 0; opacity: 0.65; }
.is-visible .circuit-node { opacity: 0.9; transform: scale(1); }

.circuit-divider {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24px;
  z-index: 5;
}

.circuit-divider span,
.border-sweep {
  background-image: linear-gradient(90deg, transparent 0%, var(--telemetry-cyan) 50%, transparent 100%);
  background-repeat: no-repeat;
  background-size: 200% 2px;
  background-position: -100% bottom;
  transition: background-position 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.circuit-divider span {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
}

.circuit-divider i {
  position: absolute;
  bottom: 6px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--border-glow);
  background: var(--deep-space);
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.circuit-divider i:nth-of-type(1) { left: 18%; transition-delay: 0.4s; }
.circuit-divider i:nth-of-type(2) { left: 43%; transition-delay: 0.6s; }
.circuit-divider i:nth-of-type(3) { left: 69%; transition-delay: 0.8s; }
.circuit-divider i:nth-of-type(4) { left: 86%; transition-delay: 1s; }
.is-visible .circuit-divider span, .is-visible .border-sweep { background-position: 100% bottom; }
.is-visible .circuit-divider i { opacity: 1; transform: scale(1); }

.deck-corridors::after,
.deck-manifest::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 3px);
  animation: scanDrift 6s linear infinite;
  z-index: 4;
}

.corridor-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
  gap: 6vw;
  align-items: stretch;
}

.section-heading { align-self: center; }
.section-heading .headline { max-width: 9ch; }

.route-board {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-height: 68vh;
  border-top: 1px solid rgba(74, 234, 220, 0.15);
}

.route-row {
  display: grid;
  grid-template-columns: 1.1fr 150px 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 5vh 0;
  border-bottom: 1px solid rgba(74, 234, 220, 0.12);
}

.route-row:nth-child(2) { transition-delay: 0.3s; }
.route-row:nth-child(3) { transition-delay: 0.6s; }

.route-code {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1;
  color: var(--signal-white);
  letter-spacing: -0.03em;
}

.route-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--data-dim);
}

.route-status span {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 0.7rem;
  border-radius: 50%;
  vertical-align: -1px;
  animation: statusPulse 1.4s ease-in-out infinite;
}

.route-status.active span { background: var(--telemetry-cyan); box-shadow: 0 0 18px var(--telemetry-cyan); }
.route-status.delayed span { background: var(--alert-pulse); box-shadow: 0 0 18px var(--alert-pulse); }
.route-status.delayed { color: var(--warning-orange); }

.route-data {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--telemetry-cyan);
}

.deck-signal { background: var(--deep-space); }

.signal-noise {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    var(--noise-tile),
    repeating-linear-gradient(90deg, rgba(74,234,220,0.06) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(0deg, rgba(232,236,244,0.03) 0 1px, transparent 1px 5px);
  background-size: 90px 90px, 17px 17px, 13px 13px;
  animation: signalStatic 1.1s steps(8) infinite;
}

.signal-inner { max-width: 1080px; }

.decoded-copy {
  margin-top: 4vh;
  max-width: 820px;
}

.reveal-line {
  margin: 0 0 1.3rem;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.7;
  color: var(--steel-body);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.is-visible .reveal-line { clip-path: inset(0 0 0 0); }
.reveal-line:nth-child(2) { transition-delay: 0.22s; }
.reveal-line:nth-child(3) { transition-delay: 0.44s; }

.accent-circuit { width: min(420px, 70vw); margin-top: 5vh; }

.manifest-field { opacity: 0.18; }
.manifest-inner { width: calc(100% - 12vw); }

.manifest-table {
  margin-top: 5vh;
  border-top: 1px solid rgba(74, 234, 220, 0.15);
}

.manifest-entry {
  display: grid;
  grid-template-columns: 0.36fr 1.25fr 0.32fr 1.05fr 0.36fr 0.65fr 0.45fr 0.95fr;
  gap: 1.2rem;
  align-items: center;
  min-height: 12vh;
  border-bottom: 1px solid rgba(74, 234, 220, 0.13);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease, background-position 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.manifest-entry:nth-child(2) { transition-delay: 0.08s; }
.manifest-entry:nth-child(3) { transition-delay: 0.16s; }
.manifest-entry:nth-child(4) { transition-delay: 0.24s; }
.manifest-entry:nth-child(5) { transition-delay: 0.32s; }
.is-visible .manifest-entry { opacity: 1; transform: translateY(0); }

.manifest-entry span {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  color: var(--data-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.manifest-entry strong {
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--signal-white);
  font-weight: 650;
}

.deck-log {
  align-items: flex-start;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.65), rgba(10, 14, 26, 1)),
    var(--deep-space);
}

.log-inner { padding-top: 12vh; }
.log-inner .headline { color: var(--warning-orange); }

.terminal {
  width: min(980px, 100%);
  margin-top: 6vh;
  padding-top: 2rem;
  border-top: 1px solid rgba(74, 234, 220, 0.22);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--telemetry-cyan);
}

.terminal p {
  min-height: 1.6em;
  margin: 0 0 0.65rem;
  text-shadow: 0 0 14px rgba(74, 234, 220, 0.24);
}

.cursor-line::after {
  content: "";
  display: inline-block;
  width: 0.62em;
  height: 1.1em;
  margin-left: 0.12em;
  background: var(--telemetry-cyan);
  vertical-align: -0.18em;
  animation: cursorBlink 0.8s steps(2) infinite;
}

@keyframes noiseShift {
  0%, 100% { background-position: 0 0; }
  25% { background-position: -100px 50px; }
  50% { background-position: 50px -75px; }
  75% { background-position: -50px 100px; }
}

@keyframes circuitRotate { to { transform: rotate(360deg); } }
@keyframes scanDrift { to { background-position: 0 24px; } }
@keyframes statusPulse { 0%,100% { transform: scale(0.72); opacity: 0.55; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes signalStatic { to { background-position: 90px -90px, -34px 17px, 13px -26px; } }
@keyframes cursorBlink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }

@media (max-width: 980px) {
  .corridor-inner { grid-template-columns: 1fr; }
  .route-board { min-height: auto; }
  .route-row { grid-template-columns: 1fr; gap: 1rem; }
  .manifest-entry { grid-template-columns: 0.45fr 1fr; gap: 0.35rem 1rem; padding: 1.3rem 0; }
  .briefing-copy { width: 88vw; }
}

@media (max-width: 620px) {
  .deck-inner { margin: 0 5vw; }
  .hero-headline { font-size: clamp(3.4rem, 20vw, 8rem); }
  .deck-kicker { font-size: 0.68rem; }
  .terminal { font-size: 12px; }
}
