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

:root {
  --bg-void: #04070e;
  --surface-navy: #070b14;
  --surface-raised: #0c1220;
  --text-primary: #f8fafc;
  --text-muted: #b3c0d1;        /* >9.8:1 on --bg-void (WCAG AAA for body text) */
  --accent-gold: #ffb830;
  --accent-cyan: #38bdf8;
  --cyan-bright: #7dd3fc;
  --line: rgba(248, 250, 252, 0.12);
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --wrap: 80rem;
  color-scheme: dark;
}

/* Root size grows on very wide / tall screens (e.g. 7680x2160) so text stays readable; never below 16px. */
html {
  font-size: clamp(16px, calc(0.45vw + 0.6vh), 28px);
  scroll-behavior: smooth;
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent-gold); color: #090d16; padding: 0.5rem 1rem; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Top bar (over the hero) ---------- */
.top-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem var(--gutter) 2.5rem;
  background: linear-gradient(to bottom, rgba(4, 7, 14, 0.84) 0%, rgba(4, 7, 14, 0.35) 60%, transparent 100%);
}
.brand-lockup img { display: block; height: 2.25rem; width: auto; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 1rem; letter-spacing: 0.04em;
  padding: 0.25rem 0; border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--accent-gold); border-bottom-color: var(--accent-gold); }

/* ---------- Hero ---------- */
.hero-stage {
  position: relative; width: 100%; height: 100vh; height: 100svh; min-height: 36rem;
  overflow: hidden; background: var(--bg-void); isolation: isolate;
  container-type: size; container-name: hero;
}
@media (min-width: 769px) {
  .hero-stage {
    height: min(100svh, calc(100vw * 768 / 1376));
    min-height: min(36rem, calc(100vw * 768 / 1376));
  }
}

/* Seamless atmospheric dissolve into the dark drydock world below */
.hero-stage::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(4, 7, 14, 0.62) 58%, var(--bg-void) 100%);
}

.plate {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: max(100cqw, calc(100cqh * 1376 / 768));
  aspect-ratio: 1376 / 768;
  transform: translate(-50%, -50%);
  container-type: size;
  perspective: 70cqw; perspective-origin: 50% 60%;
}

.hero-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 30% 55% at 50% 0%, rgba(255, 184, 48, 0.20), transparent 70%),
    radial-gradient(ellipse 60% 45% at 50% 100%, rgba(56, 189, 248, 0.10), transparent 70%),
    var(--bg-void);
}
.hero-backdrop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
.hero-backdrop.is-missing img { display: none; }

.beam-pulse {
  position: absolute; top: 0; left: 50%;
  width: 22cqw; height: 52cqh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 184, 48, 0.26) 0%, rgba(255, 184, 48, 0.05) 45%, transparent 72%);
  mix-blend-mode: screen; pointer-events: none;
  animation: beamBreathe 6s ease-in-out infinite;
}
@keyframes beamBreathe {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scaleY(0.96); }
  50% { opacity: 1; transform: translateX(-50%) scaleY(1.04); }
}

.code-plane {
  position: absolute; overflow: hidden; pointer-events: none;
  transform-style: preserve-3d;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: max(9px, 0.85cqw); line-height: 1.55; white-space: pre;
  color: rgba(125, 211, 252, 0.34);
  text-shadow: 0 0 8px rgba(56, 189, 248, 0.28);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 84%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 84%, transparent 100%);
}
.code-plane pre { animation: logScroll 26s linear infinite; will-change: transform; }
@keyframes logScroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.code-plane--left  { left: 1cqw;  top: 22cqh; width: 30cqw; height: 54cqh; padding-left: 3cqw; transform-origin: left center;  transform: rotateY(64deg); }
.code-plane--right { right: 1cqw; top: 22cqh; width: 30cqw; height: 54cqh; padding-left: 9cqw; transform-origin: right center; transform: rotateY(-64deg); opacity: 0.65; }
@media (min-aspect-ratio: 21/9) {
  .code-plane--left, .code-plane--right { top: 35cqh; height: 39cqh; }
}

#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* True 3D right-wall trapezoid train (single continuous smooth curve, 008062d9) */
.logo-stage {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
  perspective: 64cqw;
  perspective-origin: 50% 60%;
}
.logo-rail {
  position: absolute;
  left: 76cqw; top: 43cqh;
  width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateY(-90deg);
}
.logo-train {
  position: relative;
  width: 24cqw;
  margin-top: -3.14cqw;
  transform-origin: left center;
  backface-visibility: visible;
  will-change: transform, opacity;
  filter: drop-shadow(0 0 0.7cqw rgba(255, 184, 48, 0.32)) drop-shadow(0 0 1.4cqw rgba(56, 189, 248, 0.22));
  animation: logoTrainAway 10s linear infinite, logoTrainFade 10s linear infinite;
  animation-delay: -1.6s;
}
.logo-train img { display: block; width: 100%; height: auto; transform-origin: left center; transform: scaleX(1.26); }

@keyframes logoTrainAway {
  0%   { transform: translateX(18cqw); animation-timing-function: cubic-bezier(0.4, 0.1, 0.85, 0.15); }
  91%  { transform: translateX(-390cqw); }
  100% { transform: translateX(-390cqw); }
}
@keyframes logoTrainFade {
  0%   { opacity: 0; }
  7%   { opacity: 1; }
  36%  { opacity: 0.98; }
  56%  { opacity: 0.90; }
  74%  { opacity: 0.65; }
  86%  { opacity: 0.20; }
  91%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-copy {
  position: absolute; z-index: 10;
  left: var(--gutter); bottom: 9%;
  max-width: 36.5rem;
  background: linear-gradient(135deg, rgba(5, 10, 20, 0.86) 0%, rgba(5, 10, 20, 0.54) 100%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-left: 2px solid var(--accent-gold);
  border-top: 1px solid rgba(56, 189, 248, 0.18);
  padding: 1.45rem 1.8rem;
}
.eyebrow {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent-gold); font-weight: 600; margin-bottom: 0.6rem;
}
.hero-copy h1 {
  font-size: clamp(2rem, 2.8vw, 3.2rem); line-height: 1.12;
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.8rem;
}
.hero-copy h1 span { color: var(--accent-gold); }
.subcopy { font-size: 1.0625rem; line-height: 1.55; color: var(--text-muted); }
.subcopy em { color: var(--text-primary); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.875rem; margin-top: 1.25rem; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-block; padding: 0.72rem 1.3rem; border-radius: 2px;
  font-size: 0.94rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--accent-gold); color: var(--bg-void); box-shadow: 0 0 22px rgba(255, 184, 48, 0.24); }
.btn-primary:hover { background: #ffc95c; transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(56, 189, 248, 0.42); color: var(--text-primary); background: rgba(56, 189, 248, 0.07); }
.btn-ghost:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ==========================================================================
   MONUMENTAL DARK SHIPYARD WORLD BELOW THE HERO
   (Physical hero-grade 3D plates, zero vertical fake keel, zero thin HUD icons)
   ========================================================================== */
.drydock-world {
  position: relative;
  background:
    radial-gradient(ellipse 65% 420px at 50% 0%, rgba(255, 184, 48, 0.08), transparent 72%),
    radial-gradient(ellipse 85% 600px at 50% 45%, rgba(56, 189, 248, 0.05), transparent 72%),
    radial-gradient(ellipse 75% 560px at 50% 82%, rgba(255, 184, 48, 0.07), transparent 72%),
    var(--bg-void);
  overflow: hidden;
}

#corridorCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 180px, #000 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 180px, #000 100%);
}

.world-content { position: relative; z-index: 3; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Clean architectural sector markers */
.sector-marker {
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 3rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan-bright);
}
.sector-marker::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(56, 189, 248, 0.35), rgba(255, 184, 48, 0.14), transparent);
}
.sector-marker span {
  padding-left: 0.85rem;
  border-left: 2px solid var(--accent-gold);
}

/* ---------- Five-Stage Studio Cadence Rail ---------- */
.timeline-section { padding: 3.5rem 0 2.75rem; position: relative; }
.timeline-rail-box {
  position: relative;
  background: linear-gradient(180deg, rgba(8, 15, 29, 0.84) 0%, rgba(5, 10, 20, 0.72) 100%);
  border-top: 1px solid rgba(255, 184, 48, 0.32);
  border-bottom: 1px solid rgba(56, 189, 248, 0.20);
  padding: 2rem 2.25rem 2.15rem;
}
.timeline-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.65rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.timeline-header .lbl { color: var(--cyan-bright); font-size: 0.85rem; font-weight: 600; }
.timeline-header .sub { color: var(--accent-gold); }

.rail-steps {
  position: relative; list-style: none;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.4rem;
}
.rail-steps::before {
  content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, rgba(56, 189, 248, 0.25), rgba(255, 184, 48, 0.75) 68%, rgba(56, 189, 248, 0.45));
  z-index: 1;
}
.rail-step { position: relative; z-index: 2; padding-top: 1.75rem; }
.rail-step::before {
  content: ""; position: absolute; top: 3px; left: 0;
  width: 11px; height: 11px;
  background: var(--bg-void); border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}
.rail-step--gold::before { border-color: var(--accent-gold); background: rgba(255, 184, 48, 0.22); box-shadow: 0 0 14px rgba(255, 184, 48, 0.75); }
.rail-step .stage-stamp {
  display: block; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84rem; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--accent-gold); margin-bottom: 0.4rem;
}
.rail-step p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.48; }

/* ---------- Sector 01: Physical Shipyard Construction Stages ---------- */
.yard-section { padding: 3.5rem 0 4.5rem; position: relative; }
.stages-stack { display: flex; flex-direction: column; gap: 5.5rem; }

.stage-showcase {
  display: grid;
  align-items: center;
  gap: clamp(1.75rem, 3.6vw, 3.75rem);
  --p: 1;
}
.stage-showcase--media-right { grid-template-columns: minmax(17rem, 0.64fr) minmax(0, 1.36fr); }
.stage-showcase--media-left  { grid-template-columns: minmax(0, 1.36fr) minmax(17rem, 0.64fr); }

.stage-copy {
  position: relative;
  padding: 1.25rem 0 1.25rem 1.6rem;
  border-left: 2px solid rgba(255, 184, 48, 0.72);
  opacity: calc(0.22 + 0.78 * var(--p, 1));
  transform: translateY(calc((1 - var(--p, 1)) * 22px));
  will-change: transform, opacity;
}
.stage-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem; letter-spacing: 0.13em; text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.stage-index { color: var(--accent-gold); font-weight: 700; }
.stage-tag {
  color: var(--cyan-bright); font-weight: 600;
  padding: 0.14rem 0.55rem;
  border: 1px solid rgba(56, 189, 248, 0.32);
  background: rgba(56, 189, 248, 0.06);
}
.stage-copy h2 {
  font-size: clamp(1.65rem, 2.2vw, 2.25rem); line-height: 1.18; letter-spacing: -0.018em;
  margin-bottom: 1rem; color: var(--text-primary);
}
.stage-copy p { color: var(--text-muted); font-size: 1.03rem; line-height: 1.66; }

/* Huge physical 16:9 shipyard renders dissolving seamlessly into #04070E */
.stage-plate { position: relative; margin: 0; }
.plate-frame {
  position: relative;
  aspect-ratio: 1376 / 774;
  overflow: hidden;
  background: var(--bg-void);
  border-top: 1px solid rgba(255, 184, 48, 0.22);
  border-bottom: 1px solid rgba(56, 189, 248, 0.16);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}
.plate-frame picture,
.plate-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(calc(0.74 + 0.26 * var(--p, 1))) saturate(calc(0.84 + 0.16 * var(--p, 1)));
  transform: scale(calc(1.05 - 0.05 * var(--p, 1))) translateY(calc((1 - var(--p, 1)) * 14px));
  will-change: transform, filter;
}
/* Continuous holographic cyan ship-hull blueprint thread (fades smoothly as real steel replaces wireframe) */
.hull-blueprint {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
  will-change: opacity, transform;
}
.hull-blueprint--keel {
  opacity: calc(0.86 - 0.16 * var(--p, 1));
  transform: translateY(calc((1 - var(--p, 1)) * 10px));
}
.hull-blueprint--frames {
  opacity: calc(0.76 - 0.52 * var(--p, 1));
  transform: scale(calc(1.04 - 0.04 * var(--p, 1)));
}
.hull-blueprint--plated {
  opacity: calc(0.68 - 0.52 * var(--p, 1));
  transform: scale(calc(1.04 - 0.04 * var(--p, 1)));
}
.hull-blueprint--dock {
  opacity: calc(0.58 - 0.48 * var(--p, 1));
  transform: scale(calc(1.03 - 0.03 * var(--p, 1)));
}

/* Live animated weld sparks across all 4 shipyard plates (runs only while visible on screen) */
.weld-sparks-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 3;
}

.plate-weld-sweep {
  position: absolute; inset: 0; z-index: 4; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(
    115deg,
    transparent 24%,
    rgba(255, 184, 48, 0.20) 48%,
    rgba(56, 189, 248, 0.12) 54%,
    transparent 76%
  );
  transform: translateX(calc(-100% + var(--p, 1) * 200%));
  opacity: calc(sin(var(--p, 1) * 3.14159) * 0.85);
}
.plate-vignette {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background:
    linear-gradient(to right, var(--bg-void) 0%, transparent 11%, transparent 89%, var(--bg-void) 100%),
    linear-gradient(to bottom, rgba(4, 7, 14, 0.65) 0%, transparent 14%, transparent 82%, var(--bg-void) 100%);
}

/* ---------- Sector 02: IN DRYDOCK // DOCK 01 — MONUMENTAL HULL 01 CENTERPIECE ---------- */
.slipway-section { padding: 3rem 0 5.5rem; position: relative; }

.drydock-hero-stage {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 184, 48, 0.36);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  background: var(--bg-void);
  box-shadow: 0 38px 100px rgba(0, 0, 0, 0.82);
  min-height: 36rem;
  display: flex;
  align-items: flex-end;
  --p: 1;
}

.drydock-backdrop {
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 774;
  min-height: 36rem;
  overflow: hidden;
}
.drydock-backdrop picture,
.drydock-backdrop img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%;
  filter: brightness(calc(0.76 + 0.24 * var(--p, 1))) contrast(1.04);
  transform: scale(calc(1.04 - 0.04 * var(--p, 1)));
  will-change: transform, filter;
}

.drydock-weld-glow {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 24% 34% at 24% 55%, rgba(255, 184, 48, 0.24), transparent 72%),
    radial-gradient(ellipse 22% 32% at 81% 55%, rgba(255, 184, 48, 0.22), transparent 72%),
    radial-gradient(ellipse 40% 28% at 54% 12%, rgba(56, 189, 248, 0.14), transparent 70%);
  animation: weldBreathe 4.8s ease-in-out infinite;
}
@keyframes weldBreathe {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 1; }
}

#dockSparksCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2;
}

/* Soft dark gradient strictly in the lower-left drydock floor — keeps ship bow, ribs, blocks, crane 100% unobstructed! */
.drydock-scrim {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(to top, rgba(4, 7, 14, 0.92) 0%, rgba(4, 7, 14, 0.48) 32%, transparent 62%),
    linear-gradient(100deg, rgba(4, 7, 14, 0.90) 0%, rgba(4, 7, 14, 0.56) 36%, transparent 64%),
    linear-gradient(to bottom, rgba(4, 7, 14, 0.65) 0%, transparent 14%);
}

.drydock-overlay-copy {
  position: absolute; left: clamp(1.5rem, 3.5vw, 3.25rem); bottom: clamp(1.5rem, 3.2vw, 2.8rem);
  z-index: 5; max-width: 31rem;
  border-left: 2px solid var(--accent-gold);
  padding: 0.25rem 0 0.25rem 1.4rem;
  opacity: calc(0.20 + 0.80 * var(--p, 1));
  transform: translateY(calc((1 - var(--p, 1)) * 20px));
}
.status-pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.84rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(4, 7, 14, 0.72);
  border: 1px solid rgba(255, 184, 48, 0.42);
  padding: 0.34rem 0.82rem; margin-bottom: 1rem;
}
.pulse-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 12px var(--accent-gold);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.42; transform: scale(0.8); }
}
.drydock-overlay-copy h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem); line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 0.85rem; color: var(--text-primary);
  text-shadow: 0 2px 18px rgba(4, 7, 14, 0.9);
}
.drydock-overlay-copy p {
  color: #cdd8e6; font-size: 1rem; line-height: 1.62;
  text-shadow: 0 1px 12px rgba(4, 7, 14, 0.95);
}
.whisper {
  margin-top: 0.9rem; font-style: italic; color: var(--cyan-bright);
  font-size: 0.92rem; opacity: 0.95;
}

/* ---------- Sector 03: Signal — Open Channel ---------- */
.signal-section { padding: 1.5rem 0 4.5rem; position: relative; }
.signal-bridge {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center;
  padding: 2.75rem 3rem;
  background: linear-gradient(125deg, rgba(9, 17, 32, 0.88) 0%, rgba(5, 10, 20, 0.94) 100%);
  border-top: 2px solid var(--accent-gold);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  border-left: 1px solid rgba(56, 189, 248, 0.14);
  border-right: 1px solid rgba(56, 189, 248, 0.14);
}
.signal-copy h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.22; margin-bottom: 0.85rem; max-width: 34rem; }
.signal-copy p { color: var(--text-muted); max-width: 44rem; font-size: 1.02rem; }
.signal-cta { text-align: right; white-space: nowrap; }
.mail-fallback {
  margin-top: 0.65rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.04em;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; background: rgba(4, 7, 14, 0.92); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 0.88rem; color: var(--text-muted);
}
.footer-inner img { height: 1.35rem; width: auto; opacity: 0.82; }
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--accent-gold); }

/* ---------- Responsive (Tablet & Mobile) ---------- */
@media (max-width: 980px) {
  .rail-steps { grid-template-columns: repeat(2, 1fr); }
  .rail-steps::before { display: none; }
  .stage-showcase--media-right,
  .stage-showcase--media-left { grid-template-columns: 1fr; gap: 1.75rem; }
  .stage-showcase--media-left .stage-plate { order: 2; }
  .stage-showcase--media-left .stage-copy  { order: 1; }
  .drydock-hero-stage { flex-direction: column; align-items: stretch; min-height: auto; }
  .drydock-backdrop { min-height: 20rem; }
  .drydock-overlay-copy {
    position: relative; left: auto; bottom: auto; max-width: none;
    padding: 1.75rem 1.5rem 2rem; border-left: none; border-top: 2px solid var(--accent-gold);
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.96), var(--bg-void));
  }
  .signal-bridge { grid-template-columns: 1fr; padding: 2rem 1.75rem; }
  .signal-cta { text-align: left; }
}

@media (max-width: 768px) {
  .top-bar { padding: 1.15rem var(--gutter); }
  .brand-lockup img { height: 1.75rem; }
  .nav-links { gap: 1.1rem; }
  .nav-links a { font-size: 0.88rem; }

  .hero-stage { height: 100svh; min-height: 40rem; }
  .plate { inset: 0; left: 0; top: 0; width: 100%; height: 100%; aspect-ratio: auto; transform: none; }
  .logo-stage { display: none; }
  .code-plane { font-size: 9px; opacity: 0.52; }
  .code-plane--left { width: 42%; top: 14%; height: 34%; padding-left: 4px; }
  .code-plane--right { width: 42%; top: 14%; height: 34%; padding-left: 10px; opacity: 0.42; }

  .hero-copy {
    left: var(--gutter); right: var(--gutter); bottom: 5%;
    padding: 1.15rem 1.25rem;
  }
  .hero-copy h1 { font-size: 2rem; }
  .subcopy { font-size: 0.94rem; }
  .rail-steps { grid-template-columns: 1fr; }
  .timeline-rail-box { padding: 1.5rem 1.25rem; }
  .stages-stack { gap: 3.5rem; }
  .stage-copy { padding-left: 1.1rem; }
  .signal-bridge { padding: 1.75rem 1.25rem; }
}

/* ---------- Reduced motion: static finished hero + crisp finished shipyard plates ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam-pulse, .code-plane pre, .logo-train, .pulse-dot, .drydock-weld-glow { animation: none !important; }
  .logo-train { transform: translateX(-8cqw) !important; opacity: 0.92 !important; }
  #particleCanvas, .weld-sparks-canvas { display: none; }
  .stage-showcase, .drydock-hero-stage { --p: 1 !important; }
  .hull-blueprint--keel { opacity: 0.62 !important; transform: none !important; }
  .hull-blueprint--frames { opacity: 0.20 !important; transform: none !important; }
  .hull-blueprint--plated { opacity: 0.14 !important; transform: none !important; }
  .hull-blueprint--dock { opacity: 0.08 !important; transform: none !important; }
  .plate-weld-sweep { display: none; }
}

/* ---------- Text pages (privacy, 404): clear the fixed top bar, readable measure ---------- */
.page { padding: 9rem 0 5rem; min-height: 70vh; }
.page h1 { font-size: clamp(2rem, 2.6vw, 3rem); line-height: 1.15; margin-bottom: 0.5rem; color: var(--text-primary); }
.page .updated { color: var(--text-muted); margin-bottom: 2rem; }
.page h2 { font-size: 1.375rem; margin: 2rem 0 0.5rem; color: var(--text-primary); }
.page p { color: var(--text-muted); max-width: 44rem; margin-bottom: 1rem; font-size: 1rem; line-height: 1.65; }
.page p a:not(.btn-primary) { color: var(--accent-gold); }
.page .eyebrow { margin-bottom: 0.75rem; }
