/* ============================================================
   ROCKET CAPITAL — Styles
   ============================================================ */

:root {
  --color-bg: #000;
  --color-text: #fff;
  --color-accent: #FF6B35;
  --color-green: #00FF88;
  --color-red: #FF4444;
  --accent-rgb: 255, 107, 53;
  --green-rgb: 0, 255, 136;
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-standard: cubic-bezier(.4,0,.2,1);
  --dur-fast: 0.25s;
  --dur-med: 0.4s;
  --font-body: 'Space Grotesk', sans-serif;
  --font-display: 'Orbitron', sans-serif;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { width: 100%; min-height: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }

::selection {
  background: rgba(var(--accent-rgb), 0.9);
  color: #000;
  text-shadow: none;
}

/* Page scrollbar — terminal keeps its own thinner styles below */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: #000; }
body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  border: 3px solid #000;
}
body::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.55); }

/* ---------- Keyboard Focus ---------- */
/* cursor:none hides the pointer, so keyboard users need a real ring */
:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.85);
  outline-offset: 3px;
}
/* the hero h1 receives programmatic focus after launch — it is not
   interactive, so it never needs a ring */
.hero-title:focus,
.hero-title:focus-visible {
  outline: none;
}
.nav-links a:focus-visible { color: var(--color-accent); }
#ignite-btn:focus-visible,
.contact-link:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35);
}

/* ---------- Scroll Progress ---------- */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 9999;
  background: rgba(255,255,255,0.03);
  opacity: 0;
  transition: opacity 0.4s;
}
#scroll-progress.visible { opacity: 1; }
#scroll-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--color-accent), #FF9A63, var(--color-accent));
  box-shadow: 0 0 12px rgba(255,107,53,0.5);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

/* ---------- Navigation ---------- */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.5s;
  opacity: 0;
}
#main-nav.nav-visible {
  transform: translateY(0);
  opacity: 1;
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}
.nav-logo-icon {
  font-size: 1.1rem;
  color: var(--color-accent);
  filter: drop-shadow(0 0 6px rgba(255,107,53,0.4));
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-standard);
  font-weight: 400;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav-links a:hover {
  color: var(--color-accent);
}
.nav-links a.active {
  color: rgba(255,255,255,0.9);
}
.nav-links a.active::after {
  transform: scaleX(1);
}
.nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.42);
  font-variant-numeric: tabular-nums;
}
.nav-clock { min-width: 5.4em; text-align: right; }
.nav-clock-label { color: rgba(255,255,255,0.22); }
@media (max-width: 900px) {
  .nav-meta { display: none; }
}

/* ---------- Custom Cursor ---------- */
@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}
body.native-cursor,
body.native-cursor a,
body.native-cursor button {
  cursor: auto !important;
}
/* Rocket cursor is reserved for the hero/starfield zone; interactive elements
   always restore the system cursor so links stay conventional. */
body.custom-cursor {
  cursor: none !important;
}
body.custom-cursor :is(a, button, input, textarea, select, summary, [role="button"]) {
  cursor: pointer !important;
}
body.cursor-suppressed #cursor {
  opacity: 0 !important;
}
body:not(.custom-cursor) #cursor,
body:not(.custom-cursor) #cursor-trail-canvas {
  opacity: 0;
  visibility: hidden;
}
body.custom-cursor #cursor,
body.custom-cursor #cursor-trail-canvas {
  opacity: 1;
  visibility: visible;
}
body.perf-low #cursor,
body.perf-low #cursor-trail-canvas {
  display: none !important;
}
#cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 52px;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
  mix-blend-mode: screen;
  --cursor-thrust: 0.35;
}
#cursor .cursor-shell {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 50% 30%;
  will-change: transform;
}
#cursor .cursor-rocket {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255, 126, 72, 0.24));
}
#cursor .cursor-flame {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 16px;
  height: calc(14px + 16px * var(--cursor-thrust));
  transform: translateX(-50%);
  transform-origin: 50% 0%;
  border-radius: 50% 50% 70% 70%;
  background:
    radial-gradient(circle at 50% 18%, rgba(255,255,255,0.96) 0 20%, rgba(255,232,171,0.88) 21% 42%, rgba(255,158,66,0.9) 43% 66%, rgba(255,92,28,0.78) 67% 100%);
  clip-path: polygon(50% 0%, 84% 18%, 94% 44%, 82% 74%, 60% 100%, 50% 92%, 40% 100%, 18% 74%, 6% 44%, 16% 18%);
  opacity: calc(0.22 + var(--cursor-thrust) * 0.42);
  filter: blur(0.4px) drop-shadow(0 0 9px rgba(255, 119, 54, 0.34));
  animation: cursorFlameFlicker 0.16s ease-in-out infinite alternate;
}
#cursor .cursor-flame::before,
#cursor .cursor-flame::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
#cursor .cursor-flame::before {
  top: 3px;
  width: 9px;
  height: calc(8px + 8px * var(--cursor-thrust));
  background: radial-gradient(circle at 50% 14%, rgba(255,255,255,0.96), rgba(255,244,196,0.9) 45%, rgba(255,171,84,0.2) 100%);
  clip-path: polygon(50% 0%, 88% 20%, 100% 46%, 76% 100%, 50% 84%, 24% 100%, 0% 46%, 12% 20%);
}
#cursor .cursor-flame::after {
  bottom: 1px;
  width: 22px;
  height: calc(7px + 10px * var(--cursor-thrust));
  background: radial-gradient(circle, rgba(255,122,52,0.42) 0 20%, rgba(255,122,52,0.1) 52%, rgba(255,122,52,0) 100%);
  filter: blur(4px);
}
#cursor .cursor-spark {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: calc(7px + 7px * var(--cursor-thrust));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,252,231,0.95), rgba(255,166,76,0));
  opacity: calc(0.08 + var(--cursor-thrust) * 0.22);
  filter: blur(0.25px);
}
#cursor .cursor-spark-a {
  left: 8px;
  transform: rotate(-14deg);
  animation: cursorSparkDriftA 0.22s linear infinite;
}
#cursor .cursor-spark-b {
  right: 8px;
  transform: rotate(14deg);
  animation: cursorSparkDriftB 0.26s linear infinite;
}
@keyframes cursorFlameFlicker {
  0% {
    transform: translateX(-50%) scaleY(0.88) scaleX(0.94);
    filter: blur(0.25px) drop-shadow(0 0 8px rgba(255, 119, 54, 0.34));
  }
  100% {
    transform: translateX(-50%) scaleY(1.08) scaleX(1.05);
    filter: blur(0.2px) drop-shadow(0 0 15px rgba(255, 119, 54, 0.58));
  }
}
@keyframes cursorSparkDriftA {
  0% { transform: translate(0, 0) rotate(-12deg); opacity: 0.22; }
  100% { transform: translate(-3px, 10px) rotate(-20deg); opacity: 0; }
}
@keyframes cursorSparkDriftB {
  0% { transform: translate(0, 0) rotate(12deg); opacity: 0.2; }
  100% { transform: translate(3px, 11px) rotate(20deg); opacity: 0; }
}

#cursor-trail-canvas {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: screen;
  will-change: opacity;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ---------- PRE-LAUNCH ---------- */
#prelaunch {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  background: #000;
}
#prelaunch.gone { display: none; }
/* post-flash: the layer turns transparent so the live scene shows through
   while the launch canvas finishes its speed-line settle on top */
#prelaunch.ascended {
  background: transparent;
  pointer-events: none;
}
#prelaunch.ascended #prelaunch-grid,
#prelaunch.ascended #prelaunch-motes,
#prelaunch.ascended .prelaunch-brand,
#prelaunch.ascended #preflight-panel,
#prelaunch.ascended #ignite-btn,
#prelaunch.ascended #skip-launch,
#prelaunch.ascended #rocket-wrapper {
  visibility: hidden;
}

#launch-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: none;
}

/* Engineering grid — translated downward by JS during ascent so the frame
   reads as the camera tracking the rocket upward. */
#prelaunch-grid {
  position: absolute;
  left: 0;
  right: 0;
  top: -24%;
  bottom: -24%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 72% 58% at 50% 46%, #000 18%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 58% at 50% 46%, #000 18%, transparent 76%);
  transform: translate3d(0, var(--grid-shift, 0px), 0);
  will-change: transform;
}

/* Skip is always available — the launch is an invitation, not a gate */
#skip-launch {
  position: absolute;
  top: 26px;
  right: 30px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  padding: 10px 16px 10px 20px;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 0.9s ease 0.35s forwards;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
#skip-launch:hover,
#skip-launch:focus-visible {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
}
#skip-launch span {
  transition: transform var(--dur-fast) var(--ease-out);
}
#skip-launch:hover span { transform: translateX(3px); }

/* ---------- Rocket SVG ---------- */
#rocket-wrapper {
  position: relative;
  z-index: 1;
  width: min(38vw, 38vh, calc((100vh - 250px) * 0.625));
  min-width: 220px;
  will-change: transform;
}
@media (max-height: 700px) {
  #rocket-wrapper { min-width: 120px; }
}
@media (max-height: 480px) {
  .prelaunch-brand, #preflight-panel { display: none; }
}
#rocket-wrapper::before {
  content: '';
  position: absolute;
  inset: -16%;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    rgba(255,107,53,0.055),
    rgba(255,143,90,0.02) 46%,
    transparent 74%
  );
  pointer-events: none;
}
#rocket-wrapper.idle {
  animation: rocketIdle 7s ease-in-out infinite;
}
@keyframes rocketIdle {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
#rocket-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* Line classes */
.rk-line  { stroke: #E4E4E4; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.rk-thin  { stroke-width: 0.9; stroke: #9A9A9A; }
.rk-accent { stroke: var(--color-accent); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.rk-dim   { stroke: #2E2E2E; stroke-width: 0.9; stroke-dasharray: 5 7; fill: none; }
.rk-orbit { stroke: #3B3B3B; stroke-width: 0.9; fill: none; }
.rk-joint { stroke: #6A6A6A; stroke-width: 1; fill: none; }

/* Draw-on animation */
.rk-line, .rk-accent, .rk-joint {
  stroke-dasharray: var(--len, 100);
  stroke-dashoffset: var(--len, 100);
  animation: drawLine var(--dur, 1.2s) var(--del, 0s) cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Backdrop elements fade in late, like a chart being annotated */
.rk-dim, .rk-orbit {
  opacity: 0;
  animation: dimFade 1.8s ease 2.1s forwards;
}
@keyframes dimFade { to { opacity: 1; } }

/* Porthole glow */
.porthole-glow {
  stroke: var(--color-accent);
  stroke-width: 3.5;
  fill: none;
  opacity: 0;
}
.porthole-glow.active {
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.65; }
}

/* ---------- Prelaunch chrome ---------- */
.prelaunch-brand {
  position: absolute;
  top: 5.5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  color: rgba(255,255,255,0.28);
  opacity: 0;
  transition: opacity 1.6s ease;
}
.prelaunch-brand.show { opacity: 1; }

#preflight-panel {
  position: absolute;
  bottom: calc(8% + 72px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  transition: opacity 0.5s ease;
}
/* pad HUD leaves the frame once the climb starts */
#preflight-panel.fade { opacity: 0; }
#preflight-checks {
  display: flex;
  gap: 30px;
  list-style: none;
}
.pf-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.24);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-out), color 0.4s ease;
}
.pf-check.on { opacity: 1; transform: translateY(0); }
.pf-check.ok { color: rgba(255,255,255,0.6); }
.pf-tick {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255,255,255,0.28);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.pf-check.ok .pf-tick {
  border-color: rgba(var(--accent-rgb), 0.9);
  background: rgba(var(--accent-rgb), 0.85);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.45);
}
#prelaunch-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  color: rgba(255,255,255,0.34);
  opacity: 0;
  transition: opacity 1.2s ease;
}
#prelaunch-status.show { opacity: 1; }
.status-caret {
  width: 7px;
  height: 12px;
  background: rgba(255,107,53,0.85);
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.12; }
}

/* Floating dust motes */
#prelaunch-motes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
#prelaunch-motes span {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: var(--c, rgba(255,255,255,0.8));
  opacity: 0;
  animation: moteFloat var(--d, 14s) linear var(--del, 0s) infinite;
  will-change: transform, opacity;
}
@keyframes moteFloat {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: var(--o, 0.4); }
  78%  { opacity: var(--o, 0.4); }
  100% { transform: translateY(-16vh); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  #prelaunch-motes { display: none; }
}

/* ---------- Cinematic letterbox ---------- */
.cine-bar {
  position: fixed;
  left: 0;
  right: 0;
  height: 9vh;
  background: #000;
  z-index: 150;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(.22,.9,.32,1);
}
.cine-top {
  top: 0;
  transform: translateY(-101%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cine-bottom {
  bottom: 0;
  transform: translateY(101%);
  border-top: 1px solid rgba(255,255,255,0.05);
}
body.cinema .cine-top,
body.cinema .cine-bottom {
  transform: translateY(0);
}

/* ---------- IGNITE Button ---------- */
#ignite-btn {
  position: absolute;
  bottom: 8%;
  z-index: 3;
  background: transparent;
  border: 1px solid rgba(255, 107, 53, 0.5);
  color: var(--color-accent);
  padding: 14px 56px;
  font-family: var(--font-display);
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, background var(--dur-fast), box-shadow var(--dur-fast), transform 0.12s var(--ease-standard);
}
/* HUD targeting brackets — button pseudos take TL/BR, span pseudos TR/BL */
#ignite-btn::before,
#ignite-btn::after,
#ignite-btn span::before,
#ignite-btn span::after {
  content: '';
  position: absolute;
  width: 13px;
  height: 13px;
  border: 0 solid rgba(var(--accent-rgb), 0.85);
  transition: transform 0.35s var(--ease-out);
  pointer-events: none;
}
#ignite-btn::before { top: -6px; left: -6px; border-top-width: 1px; border-left-width: 1px; }
#ignite-btn::after { bottom: -6px; right: -6px; border-bottom-width: 1px; border-right-width: 1px; }
#ignite-btn span::before { top: -6px; right: -6px; border-top-width: 1px; border-right-width: 1px; }
#ignite-btn span::after { bottom: -6px; left: -6px; border-bottom-width: 1px; border-left-width: 1px; }
#ignite-btn:hover::before { transform: translate(-4px, -4px); }
#ignite-btn:hover::after { transform: translate(4px, 4px); }
#ignite-btn:hover span::before { transform: translate(4px, -4px); }
#ignite-btn:hover span::after { transform: translate(-4px, 4px); }
#ignite-btn.show {
  opacity: 1;
  pointer-events: auto;
  animation: ignitePulse 2.5s ease-in-out infinite;
}
#ignite-btn:hover {
  background: rgba(255, 107, 53, 0.08);
}
#ignite-btn:active {
  transform: scale(0.965);
  background: rgba(var(--accent-rgb), 0.14);
}
/* 0–120ms ignition feedback: button settles to 0.98 and the targeting
   brackets pull 3px inward; the button is then inert for the sequence. */
#ignite-btn.pressed {
  transform: scale(0.98);
  background: rgba(var(--accent-rgb), 0.12);
  animation: none;
  pointer-events: none;
  transition: transform 0.1s var(--ease-standard), background 0.1s;
}
#ignite-btn.pressed::before { transform: translate(3px, 3px); }
#ignite-btn.pressed::after { transform: translate(-3px, -3px); }
#ignite-btn.pressed span::before { transform: translate(-3px, 3px); }
#ignite-btn.pressed span::after { transform: translate(3px, -3px); }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes ignitePulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255,107,53,0.15), 0 0 30px rgba(255,107,53,0.04);
    border-color: rgba(255,107,53,0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(255,107,53,0.45), 0 0 60px rgba(255,107,53,0.12);
    border-color: rgba(255,107,53,0.8);
  }
}

/* ---------- Shockwave (injected via JS) ---------- */
@keyframes shockwave {
  0%   { width: 0; height: 0; opacity: 0.8; }
  100% { width: 250vmax; height: 250vmax; opacity: 0; }
}

/* ---------- Exposure Flash ---------- */
/* warm-white, peaks at ~0.72 for ~110ms — an exposure spike, not a whiteout */
#white-flash {
  position: fixed;
  inset: 0;
  background: #FFF3E4;
  opacity: 0;
  z-index: 200;
  pointer-events: none;
}

/* ---------- SPACE BACKGROUND (body-level fixed layers) ---------- */
#space-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
  opacity: 0;
  transition: opacity 1.4s var(--ease-standard);
}
#space-canvas.space-live { opacity: 1; }
#space-canvas.hidden { display: none; }

#vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 70% at center,
    transparent 30%,
    rgba(0,0,0,0.35) 58%,
    rgba(0,0,0,0.8) 80%,
    #000 100%
  );
  transition: opacity 0.4s;
}
#vignette.hidden { display: none; }

/* ---------- Film Grain ---------- */
/* overlay-blended static noise dithers the dark gradients (kills banding);
   on pure black/white it resolves to identity, so true blacks stay clean */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: 0.05;
}

/* ---------- MAIN CONTENT ---------- */
#main-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: transparent;
}
#main-content.hidden { display: none; }

#content {
  position: relative;
  background: transparent;
}

.spacer { height: 85vh; }

/* ---------- MARKET TICKER ---------- */
.ticker-strip {
  position: relative;
  width: 100%;
  /* .spacer is 85vh — clear the hero fold before the tape shows up */
  margin-top: 17vh;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 46px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 52s linear infinite;
  will-change: transform;
}
.ticker-strip:hover .ticker-track { animation-play-state: paused; }
.ticker-group {
  display: flex;
  align-items: baseline;
  gap: 52px;
  padding-right: 52px;
}
.ticker-item {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  font-variant-numeric: tabular-nums;
}
.ticker-sym { color: rgba(255,255,255,0.72); }
.ticker-px { color: rgba(255,255,255,0.4); }
.ticker-delta.up { color: var(--color-green); }
.ticker-delta.down { color: var(--color-red); }
@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}
body.perf-low .ticker-track { animation-duration: 104s; }

/* ---------- SECTIONS ---------- */
.content-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  opacity: 0;
  transform: translateY(44px);
  content-visibility: auto;
  contain-intrinsic-size: 100vh;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered card entrance — grids reveal one card at a time */
.content-section.visible :is(.metrics-grid, .eco-grid, .projects-grid) > * {
  animation: cardRise 0.85s cubic-bezier(.16,1,.3,1) backwards;
  animation-delay: calc(0.1s + var(--stagger, 0) * 0.09s);
}
:is(.metrics-grid, .eco-grid, .projects-grid) > :nth-child(2) { --stagger: 1; }
:is(.metrics-grid, .eco-grid, .projects-grid) > :nth-child(3) { --stagger: 2; }
:is(.metrics-grid, .eco-grid, .projects-grid) > :nth-child(4) { --stagger: 3; }
:is(.metrics-grid, .eco-grid, .projects-grid) > :nth-child(5) { --stagger: 4; }
@keyframes cardRise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- HERO OVERLAY (absolute, scrolls with page) ---------- */
#hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 12vh;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ---------- HERO ---------- */
#hero { text-align: center; }
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.6));
}
.hero-eyebrow::after {
  background: linear-gradient(90deg, rgba(var(--accent-rgb),0.6), transparent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  background: linear-gradient(180deg, #FFFFFF 26%, #FFC9A4 72%, #FF8A57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  filter: blur(14px);
}
/* Split-letter mode: the h1 shell stays static, letters carry the motion.
   Each letter owns its background-clip — a clipped gradient on the parent
   does not paint through composited (animated) children in Chromium. */
.hero-title.hero-split {
  opacity: 1;
  transform: none;
  filter: none;
  background: none;
}
.hero-title .ht {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em) scale(0.98);
  background-image: linear-gradient(180deg, #FFFFFF 22%, #FFE3CD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-title .ht[data-line="1"] {
  background-image: linear-gradient(180deg, #FFCFAC 0%, #FF8A57 92%);
}
/* letters land on the 80ms beat, starting once the flash has decayed */
.main-entered .hero-title.hero-split .ht {
  animation: heroLetter 0.92s cubic-bezier(.16,1,.3,1) both;
  animation-delay: calc(0.15s + var(--li, 0) * 0.08s);
}
@keyframes heroLetter {
  from { opacity: 0; transform: translateY(0.42em) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.35em;
  margin-top: 28px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(10px);
}
.hero-scrollcue {
  position: absolute;
  bottom: 6vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}
.main-entered .hero-scrollcue {
  animation: fadeIn 1.2s ease 2s forwards;
}
.scrollcue-label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(255,255,255,0.3);
}
.scrollcue-line {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.scrollcue-line::after {
  content: '';
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent, var(--color-accent));
  animation: scrollcueDrop 2.2s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes scrollcueDrop {
  0%   { top: -40%; }
  65%, 100% { top: 105%; }
}

/* ---------- HERO CAPABILITIES ---------- */
/* Static capability copy — no un-sourced live numbers in the hero. */
.hero-caps {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: rgba(255,255,255,0.46);
  opacity: 0;
  transform: translateY(18px);
  filter: blur(10px);
}
.cap-sep {
  width: 4px;
  height: 4px;
  transform: rotate(45deg);
  background: rgba(var(--accent-rgb), 0.65);
  flex: none;
}
.main-entered .hero-eyebrow {
  animation: heroCopyReveal 0.9s cubic-bezier(.16,1,.3,1) 0.12s forwards;
}
.main-entered .hero-title:not(.hero-split) {
  animation: heroTitleReveal 1.15s cubic-bezier(.16,1,.3,1) 0.28s forwards;
}
.main-entered .hero-subtitle {
  animation: heroSubReveal 1.1s cubic-bezier(.16,1,.3,1) 1s forwards;
}
.main-entered .hero-caps {
  animation: heroCopyReveal 0.95s cubic-bezier(.16,1,.3,1) 1.3s forwards;
}
@keyframes heroSubReveal {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(10px);
    letter-spacing: 0.52em;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: 0.35em;
  }
}
@keyframes heroTitleReveal {
  0% {
    opacity: 0;
    transform: translateY(34px) scale(0.96);
    filter: blur(14px);
  }
  60% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes heroCopyReveal {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---------- GLASS CARD ---------- */
.glass-card {
  position: relative;
  background: linear-gradient(178deg, rgba(255,255,255,0.038), rgba(255,255,255,0.016) 42%, rgba(255,255,255,0.024));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 48px;
  max-width: 620px;
  width: 100%;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.85);
  transition: border-color var(--dur-med), box-shadow var(--dur-med),
              background-color var(--dur-med), transform var(--dur-med) var(--ease-out);
}
/* top-lit glass edge */
.glass-card::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--dur-med);
}
.glass-card:hover::after { opacity: 1; }
.glass-card:hover {
  border-color: rgba(var(--accent-rgb),0.25);
  box-shadow: 0 8px 50px rgba(var(--accent-rgb),0.07), 0 30px 70px -40px rgba(0,0,0,0.85);
  background-color: rgba(255,255,255,0.04);
  transform: translateY(-4px);
}
.contact-card { text-align: center; }
.contact-card .section-eyebrow { justify-content: center; margin-bottom: 18px; }
.glass-card h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.94);
}
.glass-card p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
}

/* ---------- STRATEGY TRAJECTORY ---------- */
/* Desktop: a 165vh scroll corridor with a sticky stage — the active strategy
   node lights along its orbit as the reader scrolls. Mobile: plain flow. */
.traj-section {
  display: block;
  min-height: auto;
  height: 165vh;
  padding: 0;
  /* sticky must track the viewport: keep this section transform-free
     (a non-none transform would become the sticky containing block) */
  transform: none;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}
.traj-section.visible { transform: none; }
.traj-pin {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 88px 40px 36px;
}
.traj-pin .section-head { margin-bottom: 30px; }
.traj-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1180px;
}
.traj-orbits {
  width: 100%;
  height: auto;
  max-height: 60vh;
  overflow: visible;
}
.traj-planet {
  fill: #0A1C30;
  stroke: rgba(150,192,235,0.5);
  stroke-width: 1;
}
.traj-planet-glow {
  fill: rgba(94,158,255,0.09);
  filter: blur(10px);
}
.traj-orbit {
  stroke: rgba(255,255,255,0.1);
  stroke-width: 1;
  stroke-dasharray: 3 7;
  transition: stroke 0.5s ease;
}
.traj-olabel {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  fill: rgba(255,255,255,0.22);
  transition: fill 0.5s ease;
}
.traj-node { opacity: 0.45; transition: opacity 0.45s ease; }
.traj-node .node-ring {
  fill: none;
  stroke: rgba(255,255,255,0.25);
  stroke-width: 1;
  transition: stroke 0.45s ease;
}
.traj-node .node-core {
  fill: rgba(255,255,255,0.4);
  transition: fill 0.45s ease;
}
.traj-node .node-halo {
  fill: none;
  stroke: rgba(var(--accent-rgb), 0.55);
  stroke-width: 1;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
/* active orbit / node / label / card / tick — one rule group per index */
.traj-section[data-active="0"] :is(.traj-orbit[data-orbit="0"], .traj-olabel[data-orbit="0"]),
.traj-section[data-active="1"] :is(.traj-orbit[data-orbit="1"], .traj-olabel[data-orbit="1"]),
.traj-section[data-active="2"] :is(.traj-orbit[data-orbit="2"], .traj-olabel[data-orbit="2"]),
.traj-section[data-active="3"] :is(.traj-orbit[data-orbit="3"], .traj-olabel[data-orbit="3"]) {
  stroke: rgba(var(--accent-rgb), 0.55);
  fill: rgba(255,255,255,0.78);
}
.traj-section[data-active="0"] .traj-orbit[data-orbit="0"],
.traj-section[data-active="1"] .traj-orbit[data-orbit="1"],
.traj-section[data-active="2"] .traj-orbit[data-orbit="2"],
.traj-section[data-active="3"] .traj-orbit[data-orbit="3"] {
  fill: none;
  stroke-dasharray: none;
}
.traj-olabel { stroke: none !important; }
.traj-section[data-active="0"] .traj-node[data-node="0"],
.traj-section[data-active="1"] .traj-node[data-node="1"],
.traj-section[data-active="2"] .traj-node[data-node="2"],
.traj-section[data-active="3"] .traj-node[data-node="3"] {
  opacity: 1;
}
.traj-section[data-active="0"] .traj-node[data-node="0"] .node-core,
.traj-section[data-active="1"] .traj-node[data-node="1"] .node-core,
.traj-section[data-active="2"] .traj-node[data-node="2"] .node-core,
.traj-section[data-active="3"] .traj-node[data-node="3"] .node-core {
  fill: var(--color-accent);
}
.traj-section[data-active="0"] .traj-node[data-node="0"] .node-ring,
.traj-section[data-active="1"] .traj-node[data-node="1"] .node-ring,
.traj-section[data-active="2"] .traj-node[data-node="2"] .node-ring,
.traj-section[data-active="3"] .traj-node[data-node="3"] .node-ring {
  stroke: rgba(var(--accent-rgb), 0.85);
}
.traj-section[data-active="0"] .traj-node[data-node="0"] .node-halo,
.traj-section[data-active="1"] .traj-node[data-node="1"] .node-halo,
.traj-section[data-active="2"] .traj-node[data-node="2"] .node-halo,
.traj-section[data-active="3"] .traj-node[data-node="3"] .node-halo {
  animation: nodeHalo 2.6s ease-out infinite;
}
@keyframes nodeHalo {
  0%   { transform: scale(0.4); opacity: 0.6; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* cards stack in one grid cell; only the active one is present */
.traj-cards {
  position: relative;
  display: grid;
  min-height: 380px;
  align-items: center;
}
.traj-card {
  grid-area: 1 / 1;
  max-width: none;
  padding: 40px 42px;
  text-align: left;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  pointer-events: none;
}
.traj-section:not([data-active]) .traj-card[data-card="0"],
.traj-section[data-active="0"] .traj-card[data-card="0"],
.traj-section[data-active="1"] .traj-card[data-card="1"],
.traj-section[data-active="2"] .traj-card[data-card="2"],
.traj-section[data-active="3"] .traj-card[data-card="3"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.traj-ticks {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}
.traj-tick {
  width: 34px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  transition: background 0.4s ease;
}
.traj-section[data-active="0"] .traj-tick[data-tick="0"],
.traj-section[data-active="1"] .traj-tick[data-tick="1"],
.traj-section[data-active="2"] .traj-tick[data-tick="2"],
.traj-section[data-active="3"] .traj-tick[data-tick="3"] {
  background: var(--color-accent);
}

.card-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255,107,53,0.15);
  margin-bottom: 12px;
  line-height: 1;
}
.traj-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.94);
}
.card-sub {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: rgba(var(--accent-rgb), 0.9);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.traj-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.09);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
}
.card-meta span { display: inline-flex; align-items: baseline; gap: 8px; }
.card-meta b {
  font-weight: 400;
  color: rgba(255,255,255,0.26);
}

/* ---------- EXECUTION CORRIDOR ---------- */
#execution {
  flex-direction: column;
  min-height: auto;
  padding: 60px 40px;
}
.exec-chain {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 800px;
  margin-bottom: 42px;
}
.chain-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  flex: none;
}
.chain-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.8);
}
.chain-dot::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.85);
}
.chain-name {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: rgba(255,255,255,0.82);
}
.chain-sub {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.3);
}
.chain-link {
  position: relative;
  flex: 1 1 40px;
  height: 1px;
  margin-top: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.16), rgba(255,255,255,0.05));
  overflow: hidden;
}
/* one pulse relays down the chain: link delays 0 / 1.2s / 2.4s of a 3.6s cycle */
.content-section.visible .chain-link::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -30px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(110,224,255,0.9));
  animation: chainPulse 3.6s linear infinite;
}
.content-section.visible .chain-link:nth-child(4)::after { animation-delay: 1.2s; }
.content-section.visible .chain-link:nth-child(6)::after { animation-delay: 2.4s; }
@keyframes chainPulse {
  0%   { left: -30px; opacity: 0; }
  4%   { opacity: 1; }
  30%  { left: 100%; opacity: 1; }
  33%  { left: 100%; opacity: 0; }
  100% { left: 100%; opacity: 0; }
}
.exec-disclaimer {
  margin-top: 22px;
  max-width: 560px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.26);
  text-align: center;
}
/* doubled class beats the later-defined base rules */
.terminal-status.terminal-status-sim { color: #FFC96B; }
.status-dot.status-dot-sim {
  background: #FFB84D;
  box-shadow: 0 0 8px rgba(255,184,77,0.5);
}
.terminal-wrapper {
  position: relative;
  max-width: 800px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 34px 80px -44px rgba(0,0,0,0.9);
}
/* faint CRT scanlines */
.terminal-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.016) 0 1px,
    transparent 1px 3px
  );
  pointer-events: none;
}
/* prompt caret waiting after the last log line */
.terminal-body::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: rgba(var(--green-rgb), 0.65);
  animation: caretBlink 1.1s steps(1) infinite;
}
.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 14px;
}
.terminal-dots {
  display: flex;
  gap: 7px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  flex: 1;
}
.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--color-green);
  letter-spacing: 0.08em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-green);
  animation: statusBlink 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(0,255,136,0.5);
}
@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.terminal-body {
  padding: 18px;
  height: 320px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.55);
}
.terminal-body::-webkit-scrollbar {
  width: 4px;
}
.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}
.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}
.terminal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.22);
}
.terminal-line {
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  animation: termFadeIn 0.3s forwards;
}
.terminal-line.terminal-init {
  opacity: 1;
  animation: none;
  color: rgba(255,255,255,0.3);
}
@keyframes termFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.terminal-line .t-time {
  color: rgba(255,255,255,0.2);
}
.terminal-line .t-type {
  font-weight: 500;
}
.terminal-line .t-buy {
  color: var(--color-green);
}
.terminal-line .t-sell {
  color: var(--color-red);
}
.terminal-line .t-signal {
  color: #FFD700;
}
.terminal-line .t-arb {
  color: #6EE0FF;
}
.terminal-line .t-pair {
  color: var(--color-accent);
}
.terminal-line .t-latency {
  color: rgba(255,255,255,0.3);
}
.terminal-line .t-pnl-pos {
  color: var(--color-green);
}
.terminal-line .t-pnl-neg {
  color: var(--color-red);
}

/* ---------- METRICS ---------- */
#metrics {
  flex-direction: column;
  min-height: auto;
  padding: 80px 40px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1000px;
  width: 100%;
}
.metric-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(178deg, rgba(255,255,255,0.03), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: border-color var(--dur-med), box-shadow var(--dur-med),
              background-color var(--dur-med), transform var(--dur-med) var(--ease-out);
}
.metric-card:hover {
  border-color: rgba(var(--accent-rgb),0.2);
  box-shadow: 0 6px 40px rgba(var(--accent-rgb),0.06);
  background-color: rgba(255,255,255,0.035);
  transform: translateY(-3px);
}
.metric-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}
.metric-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.metric-suffix {
  font-family: var(--font-display);
  font-size: 1rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
  text-transform: uppercase;
}
/* measurement caliber — every number states how it was measured */
.metric-caliber {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.22);
  margin-top: 6px;
}
.metrics-note {
  margin-top: 28px;
  max-width: 620px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.7;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.24);
  text-align: center;
}
.metric-bar {
  margin-top: 16px;
  height: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 1px;
  overflow: hidden;
}
.metric-bar-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent), #FF9A63 60%, rgba(var(--accent-rgb),0.55));
  border-radius: 1px;
  transition: width 1.2s var(--ease-standard);
  transition-delay: calc(var(--stagger, 0) * 0.12s);
}
.metric-card.counted .metric-bar-fill {
  width: var(--bar-width);
}
/* single-pass sheen, timed to sweep as each staggered fill lands */
.metric-card.counted .metric-bar-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: translateX(-100%);
  animation: barSheen 1.6s var(--ease-standard) calc(0.9s + var(--stagger, 0) * 0.12s) 1 forwards;
}
@keyframes barSheen {
  to { transform: translateX(100%); }
}

/* ---------- Card Spotlight ---------- */
/* --spot-x/--spot-y written by initCardSpotlight (high tier + fine pointer only);
   without JS the glow just sits centered on hover */
.traj-card::before,
.metric-card::before,
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--spot-x, 50%) var(--spot-y, 50%),
              rgba(var(--accent-rgb), 0.07), transparent 65%);
  opacity: 0;
  transition: opacity var(--dur-med);
  pointer-events: none;
}
.traj-card:hover::before,
.metric-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

/* ---------- SECTION HEAD ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 52px;
  text-align: center;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.9);
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.55));
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.9s var(--ease-out) 0.25s;
}
.section-eyebrow::after {
  background: linear-gradient(90deg, rgba(var(--accent-rgb),0.55), transparent);
  transform-origin: left center;
}
.content-section.visible .section-eyebrow::before,
.content-section.visible .section-eyebrow::after,
.contact-card .section-eyebrow::before,
.contact-card .section-eyebrow::after {
  transform: scaleX(1);
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.94);
  margin: 0;
  text-align: center;
}

/* ---------- MISSION ---------- */
.mission-inner {
  max-width: 880px;
  width: 100%;
  text-align: center;
}
.mission-inner .section-head { margin-bottom: 40px; }
.mission-statement {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.45rem, 3.2vw, 2.45rem);
  line-height: 1.42;
  letter-spacing: 0.005em;
  color: rgba(255,255,255,0.92);
  text-wrap: balance;
}
.mission-statement em {
  font-style: normal;
  color: var(--color-accent);
  text-shadow: 0 0 26px rgba(var(--accent-rgb), 0.35);
}
.mission-support {
  margin-top: 34px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}

/* ---------- ECOSYSTEM ---------- */
#ecosystem {
  flex-direction: column;
  min-height: auto;
  padding: 80px 40px;
}
.eco-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 800px;
}
.eco-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 110px;
  padding: 24px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
  transition: border-color 0.4s, background 0.4s, transform 0.4s;
}
/* hover: one connector line drops to the shared bus, a single pulse rides it */
.eco-item::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 0;
  background: linear-gradient(180deg, rgba(110,224,255,0.65), rgba(110,224,255,0.05));
  transition: height 0.35s var(--ease-out);
  pointer-events: none;
}
.eco-item:hover::after { height: 33px; }
.eco-item:hover::before {
  content: '';
  position: absolute;
  left: calc(50% - 2px);
  top: 100%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(110,224,255,0.95);
  box-shadow: 0 0 8px rgba(110,224,255,0.8);
  animation: ecoPulse 1s ease-in infinite;
  pointer-events: none;
}
@keyframes ecoPulse {
  0%   { transform: translateY(0); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translateY(29px); opacity: 0; }
}
.eco-bus {
  position: relative;
  width: min(680px, 88%);
  height: 1px;
  margin-top: 33px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14) 16%, rgba(255,255,255,0.14) 84%, transparent);
}
.eco-bus-pulse {
  position: absolute;
  top: -1px;
  left: 0;
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(110,224,255,0.55));
  opacity: 0;
}
.content-section.visible .eco-bus-pulse {
  animation: busPulse 7s linear infinite;
}
@keyframes busPulse {
  0%   { left: 4%; opacity: 0; }
  6%   { opacity: 0.9; }
  46%  { left: calc(96% - 42px); opacity: 0.9; }
  52%  { opacity: 0; }
  100% { left: 4%; opacity: 0; }
}
.eco-item:hover {
  border-color: rgba(255,107,53,0.2);
  background: rgba(255,107,53,0.03);
  transform: translateY(-4px);
}
.eco-icon {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.eco-logo {
  height: 36px;
  max-width: 68px;
  object-fit: contain;
  border-radius: 6px;
  opacity: 0.8;
  filter: grayscale(0.35);
  transition: opacity 0.4s, filter 0.4s;
}
.eco-item:hover .eco-logo {
  opacity: 1;
  filter: none;
}
.eco-disclaimer {
  margin-top: 28px;
  max-width: 560px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.22);
  text-align: center;
}
.eco-item span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ---------- PROJECTS ---------- */
#projects {
  flex-direction: column;
  min-height: auto;
  padding: 80px 40px;
}
.projects-intro {
  margin: -28px 0 44px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.34);
  text-align: center;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 980px;
  width: 100%;
}
.project-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  text-decoration: none;
  color: inherit;
  max-width: none;
}
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
}
.project-code { color: rgba(var(--accent-rgb), 0.85); }
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-green);
}
.project-icon {
  width: 96px;
  height: 96px;
  margin-bottom: 20px;
}
.project-icon svg { width: 100%; height: 100%; overflow: visible; }
/* blueprint strokes — same vocabulary as the prelaunch rocket */
.pj-line  { stroke: #E4E4E4; stroke-width: 1.7; fill: none; stroke-linecap: round; }
.pj-thin  { stroke: #9A9A9A; stroke-width: 0.8; fill: none; stroke-linecap: round; }
.pj-accent { stroke: var(--color-accent); stroke-width: 1.3; fill: none; stroke-linecap: round; }
.pj-dim   { stroke: #3B3B3B; stroke-width: 0.8; stroke-dasharray: 4 6; fill: none; }
.pj-joint { fill: var(--color-accent); stroke: none; }
.pj-pkt {
  fill: rgba(110,224,255,0.9);
  stroke: none;
  animation: pktPulse 2.4s ease-in-out infinite;
}
.pj-pkt + .pj-pkt { animation-delay: 1.2s; }
@keyframes pktPulse {
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}
.project-card h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.94);
}
/* .glass-card p outweighs .card-sub/.project-desc — restate at higher specificity */
.project-card p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}
.project-card .card-sub {
  font-size: 0.66rem;
  color: rgba(var(--accent-rgb), 0.9);
}
.project-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.55);
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}
.project-tags li {
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.project-card:hover .project-tags li {
  border-color: rgba(var(--accent-rgb), 0.3);
  color: rgba(255,255,255,0.65);
}
.project-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.09);
}
.project-visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: rgba(var(--accent-rgb), 0.9);
}
.project-arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.project-card:hover .project-arrow { transform: translate(3px, -3px); }
/* Empty bay — dashed placeholder for the next launch */
.project-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 16px;
  background: rgba(255,255,255,0.008);
  min-height: 320px;
}
.slot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.slot-glyph {
  width: 48px;
  height: 48px;
  animation: slotSpin 14s linear infinite;
}
@keyframes slotSpin { to { transform: rotate(360deg); } }
.slot-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: rgba(255,255,255,0.35);
}
.slot-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.18);
}
body.perf-low .pj-pkt,
body.perf-low .slot-glyph {
  animation: none;
}

/* ---------- CONTACT / TRANSMISSION ---------- */
/* trajectories converge on the CTA; a faint terminator glow rises below */
#contact {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
}
.transmission-tails {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.transmission-tails::before,
.transmission-tails::after {
  content: '';
  position: absolute;
  top: 6%;
  width: 1px;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), 0.3));
}
.transmission-tails::before {
  left: 22%;
  transform: rotate(22deg);
  transform-origin: bottom center;
}
.transmission-tails::after {
  right: 22%;
  transform: rotate(-22deg);
  transform-origin: bottom center;
}
#contact::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 130px;
  background: radial-gradient(ellipse 62% 100% at 50% 100%, rgba(94,158,255,0.1), transparent 72%);
  pointer-events: none;
}
.contact-card { position: relative; z-index: 1; }
.contact-link {
  position: relative;
  overflow: hidden;
  display: inline-block;
  color: var(--color-accent);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.5vw, 1.05rem);
  letter-spacing: 0.08em;
  margin-top: 20px;
  padding: 12px 36px;
  border: 1px solid rgba(255,107,53,0.35);
  border-radius: 8px;
  transition: background var(--dur-fast), border-color var(--dur-fast),
              box-shadow var(--dur-fast), transform 0.12s var(--ease-standard);
}
.contact-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.14) 50%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}
.contact-link:hover::before { transform: translateX(130%); }
.contact-link:hover {
  background: rgba(255,107,53,0.1);
  border-color: var(--color-accent);
  box-shadow: 0 0 25px rgba(255,107,53,0.15);
}
.contact-link:active {
  transform: translateY(1px) scale(0.985);
}

body.perf-low #main-nav,
body.perf-low .terminal-wrapper {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.perf-low .glass-card,
body.perf-low .metric-card,
body.perf-low .eco-item,
body.perf-low .contact-link {
  box-shadow: none !important;
  transition-duration: 0.2s;
}
body.perf-low .terminal-line {
  animation: none;
  opacity: 1;
}
body.perf-low::after {
  display: none;
}
body.perf-low .content-section.visible :is(.metrics-grid, .eco-grid, .projects-grid) > * {
  animation: none;
}
body.perf-low .metric-bar-fill::after,
body.perf-low .traj-card::before,
body.perf-low .metric-card::before,
body.perf-low .terminal-wrapper::after,
body.perf-low .contact-link::before,
body.perf-low .chain-link::after,
body.perf-low .node-halo {
  display: none;
}
body.perf-low .status-dot,
body.perf-low #ignite-btn.show {
  animation-duration: 3.2s;
}
body.perf-medium #main-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.input-coarse #main-nav,
body.input-coarse .terminal-wrapper {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.input-coarse #main-nav {
  background: rgba(0,0,0,0.82);
}
body.input-coarse .terminal-wrapper {
  background: rgba(0,0,0,0.82);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  #cursor,
  #cursor-trail-canvas {
    display: none !important;
  }
  .hero-title,
  .hero-title .ht,
  .hero-eyebrow,
  .hero-subtitle,
  .hero-caps {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-scrollcue { display: none; }
  .ticker-track { animation: none !important; }
  .section-eyebrow::before,
  .section-eyebrow::after {
    transform: scaleX(1) !important;
  }
  .porthole-glow.active {
    animation: none !important;
    opacity: 0.4;
  }
  #prelaunch-grid { display: none; }
  .pf-check { opacity: 1; transform: none; }
  .chain-link::after,
  .eco-bus-pulse,
  .node-halo {
    display: none !important;
  }
}

/* ---------- FOOTER ---------- */
footer {
  padding: 64px 40px 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012));
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 40px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-right { align-items: flex-end; text-align: right; }
.footer-status { align-items: center; text-align: center; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.55);
}
.footer-brand-icon {
  color: var(--color-accent);
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb),0.4));
}
.footer-tag {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.06em;
}
.footer-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
}
.footer-mail {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--dur-fast);
}
.footer-mail:hover { color: var(--color-accent); }
.footer-copy {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.16);
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; justify-items: center; gap: 26px; }
  .footer-col, .footer-right { align-items: center; text-align: center; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  /* trajectory falls back to plain vertical flow — no sticky on mobile */
  .traj-section { height: auto; }
  .traj-pin { position: static; min-height: 0; padding: 80px 24px 40px; }
  .traj-stage {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 560px;
  }
  .traj-orbits { max-height: 44vh; }
  .traj-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
  }
  .traj-card {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    padding: 32px 26px;
  }
  .traj-ticks { display: none; }
  .traj-node { opacity: 1; }
  .traj-node .node-core { fill: rgba(var(--accent-rgb), 0.85); }
  .traj-node .node-halo { animation: none; }
  .projects-grid { grid-template-columns: 1fr; max-width: 500px; }
  .project-slot { min-height: 220px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.65rem; }
  .chain-sub { display: none; }
}
@media (max-width: 600px) {
  .glass-card { padding: 28px 22px; }
  .content-section { padding: 50px 18px; }
  .spacer { height: 60vh; }
  .section-head { margin-bottom: 36px; gap: 12px; }
  .hero-eyebrow { font-size: 0.52rem; letter-spacing: 0.32em; text-indent: 0.32em; gap: 10px; }
  .hero-eyebrow::before, .hero-eyebrow::after { width: 26px; }
  .mission-support { font-size: 0.58rem; letter-spacing: 0.22em; }
  .card-meta { flex-direction: column; gap: 8px; }
  .ticker-item { font-size: 0.6rem; }
  /* mobile .spacer is 60vh — keep the tape below the fold there too */
  .ticker-strip { margin-top: 42vh; }
  #cursor { display: none !important; }
  #cursor-trail-canvas { display: none !important; }
  body { cursor: auto !important; }
  a, button { cursor: pointer !important; }
  .metrics-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .metric-card { padding: 22px 16px; }
  .metric-num { font-size: 1.6rem; }
  .nav-links { display: none; }
  #main-nav { padding: 0 20px; }
  #prelaunch-status { font-size: 0.58rem; letter-spacing: 0.18em; }
  #preflight-checks { gap: 16px; }
  .pf-check { font-size: 0.52rem; letter-spacing: 0.16em; }
  #skip-launch { top: 16px; right: 14px; padding: 8px 12px 8px 15px; }
  .prelaunch-brand { white-space: nowrap; font-size: 0.6rem; }
  .hero-caps { flex-direction: column; gap: 10px; }
  .cap-sep { display: none; }
  .exec-chain { flex-wrap: wrap; row-gap: 16px; }
  .chain-link { flex-basis: 18px; }
  .terminal-body { height: 240px; font-size: 0.68rem; }
  .eco-grid { gap: 12px; }
  .eco-item { width: 90px; padding: 18px 10px; }
  .projects-intro { font-size: 0.56rem; letter-spacing: 0.2em; text-indent: 0.2em; }
  .project-icon { width: 80px; height: 80px; }
}
