/* ═══════════════════════════════════════════════════════════
   SINGULARIS — a descent in three acts
   mission telemetry × cinema · void black / accretion amber
   ═══════════════════════════════════════════════════════════ */

:root {
  --void: #050408;
  --void-2: #0a0810;
  --ash: #b9b3c4;
  --bone: #efeae0;
  --amber: #e8a04c;
  --amber-hot: #ffc989;
  --line: rgba(232, 160, 76, 0.28);
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  /* cockpit overscan: extra frame size beyond the viewport (parallax
     slack). Tune these two and every HUD position self-adjusts. */
  --over-x: 2vw;
  --over-y: 2svh;
  /* frame border as a fraction of the SVG art (inset ÷ art size) */
  --band-frac-x: 0.07;
  --band-frac-y: 0.1244;
  /* on-screen thickness of the frame's metal bands — the HUD lays
     out against the hull, not the raw viewport */
  --hull-x: calc(var(--band-frac-x) * (100vw + 2 * var(--over-x)) - var(--over-x));
  --hull-y: calc(var(--band-frac-y) * (100svh + 2 * var(--over-y)) - var(--over-y));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (orientation: portrait) {
  :root {
    --band-frac-x: 0.1667;
    --band-frac-y: 0.094;
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.18em;
}

::selection { background: var(--amber); color: var(--void); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────── JOURNEY (sticky scrub) ─────────────── */

.journey {
  position: relative;
  height: 780vh; /* scroll runway — longer = slower, more cinematic */
}

.journey__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.journey__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(14px) saturate(0.7);
  will-change: transform, opacity;
  /* transform is owned by JS (parallax + entrance push-in, one writer
     per frame) — transitioning it here would fight those updates */
  transition:
    opacity 1.6s var(--ease-out),
    filter 2s var(--ease-out);
}

.journey__sticky.is-video-entering .journey__video {
  opacity: 1;
  filter: blur(0) saturate(1);
}

/* ── cockpit window frame — nearest layer of the parallax stack ── */

.cockpit {
  position: absolute;
  top: calc(-1 * var(--over-y));
  bottom: calc(-1 * var(--over-y));
  left: calc(-1 * var(--over-x));
  right: calc(-1 * var(--over-x));
  z-index: 4; /* above the pre-launch glass */
  pointer-events: none;
  will-change: transform;
}

.cockpit img {
  width: 100%;
  height: 100%;
  object-fit: fill; /* the frame stretches to dress any viewport */
  display: block;
  user-select: none;
}

.journey__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(5, 4, 8, 0.55) 100%),
    linear-gradient(to bottom, rgba(5, 4, 8, 0.5), transparent 18%, transparent 82%, rgba(5, 4, 8, 0.6));
}

/* film grain */
.grain {
  position: absolute;
  inset: -50%;
  z-index: 4; /* rides above the frame and the pre-launch glass alike */
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.85s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ─────────────── TELEMETRY (left rail) ─────────────── */

.telemetry {
  position: absolute;
  /* centered instrument cluster, projected low on the glass */
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--hull-y) + clamp(1rem, 2.2svh, 2.2rem));
  z-index: 7; /* above the story panels so its button always receives clicks */
  display: flex;
  flex-direction: row;
  gap: clamp(1.6rem, 4.5vw, 4rem);
  font-size: 0.58rem;
  width: max-content;
}

.telemetry__row {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  align-items: center;
  text-align: center;
}

.telemetry__key {
  color: #f1f1f1;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.telemetry__val {
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

/* sound toggle — fourth instrument in the cluster */
.telemetry__sound {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ash);
  cursor: pointer;
  transition: color 0.3s;
}

.telemetry__sound:hover .telemetry__key { color: var(--bone); }
.telemetry__sound[aria-pressed="true"] { color: var(--amber-hot); }
.telemetry__sound[aria-pressed="true"] .telemetry__key { color: rgba(232, 160, 76, 0.7); }

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq i {
  width: 2px;
  height: 3px;
  background: currentColor;
  transition: height 0.3s;
}

.telemetry__sound[aria-pressed="true"] .eq i {
  animation: eq-dance 0.9s ease-in-out infinite;
}

.telemetry__sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: 0.15s; }
.telemetry__sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: 0.35s; }
.telemetry__sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: 0.55s; }

@keyframes eq-dance {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

/* ─────────────── ACT RAIL (right) ─────────────── */

.rail {
  position: absolute;
  right: calc(var(--hull-x) + clamp(1rem, 1.8vw, 2rem));
  top: 50%;
  transform: translateY(-50%);
  z-index: 7; /* above the story panels so every numeral receives clicks */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  height: clamp(260px, 42vh, 420px);
  font-size: 0.62rem;
  padding: 1.1rem 0.7rem;
  min-width: 82px;
  border: 1px solid rgba(113, 135, 166, 0.34);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(43, 52, 68, 0.88), rgba(15, 19, 28, 0.9) 62%, rgba(9, 12, 18, 0.94)),
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), transparent 32%);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 18px rgba(0, 0, 0, 0.45);
}

.rail::before,
.rail::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(232, 160, 76, 0.85), transparent);
  box-shadow: 0 0 12px rgba(232, 160, 76, 0.28);
}

.rail::before { top: 12px; }
.rail::after { bottom: 12px; }

.rail__act {
  position: relative;
  z-index: 2;
}

.rail__act {
  background: none;
  border: 1px solid rgba(115, 136, 165, 0.24);
  border-radius: 999px;
  min-width: 44px;
  padding: 0.45em 0.5em;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  color: rgba(185, 179, 196, 0.52);
  background: linear-gradient(180deg, rgba(30, 37, 49, 0.92), rgba(10, 13, 20, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -6px 10px rgba(0, 0, 0, 0.34);
  transition: color 0.4s, text-shadow 0.4s, border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}

.rail__act::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 3px;
  height: 62px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.18),
    rgba(130, 143, 166, 0.2) 38%,
    rgba(98, 111, 134, 0.18)
  );
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.04),
    inset 0 0 1px rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.rail__act--last::after {
  display: none;
}

.rail__act:hover {
  color: var(--bone);
  border-color: rgba(232, 160, 76, 0.34);
  text-shadow: 0 0 10px rgba(239, 234, 224, 0.5);
  transform: translateY(-1px);
}

.rail__act.is-active {
  color: var(--amber-hot);
  border-color: rgba(232, 160, 76, 0.62);
  background:
    linear-gradient(180deg, rgba(57, 35, 10, 0.96), rgba(15, 10, 5, 0.98)),
    linear-gradient(180deg, rgba(30, 37, 49, 0.92), rgba(10, 13, 20, 0.98));
  text-shadow: 0 0 12px rgba(232, 160, 76, 0.8);
  box-shadow:
    0 0 18px rgba(232, 160, 76, 0.22),
    inset 0 0 18px rgba(232, 160, 76, 0.18),
    inset 0 -6px 10px rgba(0, 0, 0, 0.34);
}

.rail__track {
  position: absolute;
  top: 48px;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 3px;
  overflow: hidden;
}

.rail__track::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.12),
    rgba(121, 134, 158, 0.16) 28%,
    rgba(96, 110, 132, 0.14) 74%,
    rgba(255, 255, 255, 0.08)
  );
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.03);
}

.rail__fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background:
    linear-gradient(to top, rgba(255, 201, 137, 0.98), rgba(232, 160, 76, 0.96) 35%, rgba(90, 40, 4, 0.92));
  box-shadow:
    0 0 12px rgba(232, 160, 76, 0.65),
    0 0 28px rgba(232, 160, 76, 0.22),
    inset 0 0 6px rgba(255, 255, 255, 0.18);
}

.rail__act:nth-of-type(2) {
  transform: scale(1.04);
}

.rail__act:nth-of-type(2):hover,
.rail__act:nth-of-type(2).is-active {
  transform: scale(1.04) translateY(-1px);
}

/* ─────────────── STORY PANELS ─────────────── */

.panel {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--hull-y) + 3svh)
           calc(var(--hull-x) + clamp(1.4rem, 3.5vw, 4.5rem))
           calc(var(--hull-y) + 5svh);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.panel.is-visible { visibility: visible; }

/* panels span the whole viewport — they must never eat clicks meant
   for the rail or instruments; only their own controls are solid */
.panel { pointer-events: none; }
.panel.is-visible .cta,
.panel.is-visible a,
.panel.is-visible button {
  pointer-events: auto;
}

.panel--left { align-items: flex-start; text-align: left; }
.panel--right {
  align-items: flex-end;
  text-align: right;
  padding-right: calc(var(--hull-x) + clamp(7rem, 11vw, 10rem));
}
.panel--center,
.panel--hero { align-items: center; text-align: center; }

.panel__kicker {
  font-size: 0.62rem;
  color: var(--ash);
  margin-bottom: 1.6rem;
}

.panel__num { color: var(--amber); }

.panel__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0.002em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
}

.panel__title em {
  font-style: normal; /* Bebas has no italic — the accent word burns amber instead */
  color: var(--amber-hot);
}

.panel__body {
  max-width: 38ch;
  margin-top: 1.6rem;
  font-size: clamp(0.80rem, 1.0vw, 1.0rem);
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  color: #fafafa;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.9);
}

.panel__hint {
  margin-top: 1.4rem;
  font-size: 0.58rem;
  color: rgba(232, 160, 76, 0.88);
  text-shadow: 0 0 18px rgba(232, 160, 76, 0.4);
  animation: hint-pulse 1.9s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

/* ── the SINGULARIS logo — an event horizon, ringed in fire ── */

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.logo__mark {
  width: clamp(64px, 9vw, 104px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 3px var(--amber),
    0 0 44px 10px rgba(232, 160, 76, 0.5),
    0 0 130px 34px rgba(232, 160, 76, 0.16),
    inset 0 0 20px rgba(232, 160, 76, 0.4);
}

.logo__mark--loader {
  position: relative;
  border: 1px solid rgba(232, 160, 76, 0.3);
  overflow: hidden;
}

.logo__mark--loader::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  border: 1px solid rgba(232, 160, 76, 0.14);
  opacity: 0.72;
  box-shadow: inset 0 0 12px rgba(232, 160, 76, 0.08);
}

.logo__mark--loader::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 201, 137, 0) 0 18%,
      rgba(255, 201, 137, 0.92) 18% 30%,
      rgba(232, 160, 76, 0.16) 30% 100%
    );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  animation: loader-spin 1.05s linear infinite;
  filter: drop-shadow(0 0 14px rgba(232, 160, 76, 0.8));
  transform-origin: center;
}

/* launch countdown, burning inside the event horizon */
.logo__count {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--amber-hot);
  text-shadow: 0 0 24px rgba(232, 160, 76, 0.9);
}

.logo__count.is-pulse {
  animation: count-pop 0.36s var(--ease-out);
}

@keyframes loader-spin {
  to { transform: rotate(360deg); }
}

@keyframes count-pop {
  0% { transform: scale(0.88); opacity: 0.8; }
  55% { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.logo__word {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  letter-spacing: 0.08em;
  text-indent: 0.08em; /* optically recenter tracked caps */
  line-height: 1;
  color: var(--bone);
  text-shadow:
    0 8px 22px rgba(0, 0, 0, 0.62),
    0 2px 8px rgba(0, 0, 0, 0.48),
    0 0 24px rgba(232, 160, 76, 0.18);
}

.logo__tag {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--ash);
}

/* ── launch control ── */

/* an industrial ignition control: brushed plate, corner screws,
   hazard chevrons, recessed amber core with an armed LED */
.launch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, #2b3444, #141a25 55%, #0c1017);
  border: 1px solid #43506a;
  border-radius: 12px;
  cursor: pointer;
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -3px 8px rgba(0, 0, 0, 0.65);
  transition: transform 0.35s var(--ease-out), opacity 0.45s;
}

/* corner screws */
.launch::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 11px 11px, #93a7c1 0 2px, #04060a 2.4px 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 11px) 11px, #93a7c1 0 2px, #04060a 2.4px 3px, transparent 3.6px),
    radial-gradient(circle at 11px calc(100% - 11px), #93a7c1 0 2px, #04060a 2.4px 3px, transparent 3.6px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #93a7c1 0 2px, #04060a 2.4px 3px, transparent 3.6px);
}

.launch__hazard {
  display: block;
  padding: 6px;
  border-radius: 7px;
  background: repeating-linear-gradient(
    45deg,
    rgba(232, 160, 76, 0.75) 0 9px,
    #0e1219 9px 18px
  );
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.85);
}

.launch__core {
  display: flex;
  align-items: center;
  gap: 0.9em;
  padding: 1.15em 2.4em;
  border-radius: 4px;
  border: 1px solid rgba(232, 160, 76, 0.55);
  background: linear-gradient(180deg, #241505, #0e0802);
  color: var(--amber-hot);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-shadow: 0 0 14px rgba(232, 160, 76, 0.75);
  box-shadow:
    inset 0 0 20px rgba(232, 160, 76, 0.22),
    inset 0 -8px 16px rgba(0, 0, 0, 0.65);
  transition: box-shadow 0.3s, background 0.3s;
}

.launch:hover .launch__core {
  background: linear-gradient(180deg, #3c2408, #1a0f04);
  box-shadow:
    inset 0 0 30px rgba(232, 160, 76, 0.45),
    0 0 34px rgba(232, 160, 76, 0.4);
}

.launch:active { transform: translateY(2px); }
.launch:active .launch__core {
  box-shadow:
    inset 0 0 34px rgba(232, 160, 76, 0.55),
    inset 0 4px 10px rgba(0, 0, 0, 0.7);
}

.launch__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-hot);
  box-shadow: 0 0 10px rgba(232, 160, 76, 0.95);
  animation: led-blink 1.1s steps(2, end) infinite;
}

@keyframes led-blink {
  50% { opacity: 0.2; }
}

.launch__sub {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: rgba(185, 179, 196, 0.5);
}

/* ── pre-launch: black glass, one control ──
   Sits above everything in the cockpit. Video, frame, and story
   stay dark until the engines fire. */

.prelaunch {
  position: absolute;
  inset: 0;
  z-index: 2; /* above the video, below the cockpit frame — the ship stays visible */
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 60% at 50% 55%, #0b0812, #000 85%);
  transition: opacity 1.5s var(--ease-out), visibility 1.5s;
  will-change: opacity;
}

.starbed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  transition: opacity 1.2s var(--ease-out), filter 1.2s var(--ease-out);
}

.prelaunch::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 52%, rgba(255, 227, 184, 0.16), transparent 0 16%),
    radial-gradient(circle at 50% 52%, rgba(138, 184, 255, 0.08), transparent 24%),
    radial-gradient(circle at 50% 52%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.48) 56%, rgba(0, 0, 0, 0.9) 100%);
}

/* while on the pad, the HUD stays dark — one button, one ship */
.is-prelaunch .panel,
.is-prelaunch .telemetry,
.is-prelaunch .rail {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 1.2s var(--ease-out);
}

.prelaunch .launch { margin-top: 0; }

.prelaunch.is-igniting .launch {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
}

.prelaunch.is-igniting .starbed {
  opacity: 1;
  filter: brightness(1.35) saturate(1.15);
}

.prelaunch.is-branding .starbed {
  opacity: 0.96;
}

.prelaunch.is-done .starbed {
  opacity: 0;
  filter: brightness(1.7) blur(1px);
}

.prelaunch__logo {
  position: absolute;
  z-index: 1;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 1.1s var(--ease-out), transform 1.8s var(--ease-out);
  pointer-events: none;
}

.prelaunch.is-branding .prelaunch__logo {
  opacity: 1;
  transform: scale(1);
}

.prelaunch.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.prelaunch .launch {
  position: relative;
  z-index: 1;
}

/* engine rumble — the whole cockpit shakes, the nav (chrome) stays still */
@keyframes rumble {
  0% { transform: translate(0, 0); }
  25% { transform: translate(1.6px, -1.1px); }
  50% { transform: translate(-1.2px, 1.4px); }
  75% { transform: translate(1.1px, 1px); }
  100% { transform: translate(-1.5px, -0.7px); }
}

@keyframes rumble-hard {
  0% { transform: translate(0, 0); }
  20% { transform: translate(3.4px, -2.4px); }
  40% { transform: translate(-2.8px, 2.8px); }
  60% { transform: translate(2.4px, 2px); }
  80% { transform: translate(-3.2px, -1.6px); }
  100% { transform: translate(1.8px, -2.6px); }
}

.journey__sticky.is-rumbling { animation: rumble 90ms linear infinite; }
.journey__sticky.is-rumbling--hard { animation: rumble-hard 70ms linear infinite; }
.journey__sticky.is-autopilot { will-change: transform; }

/* scroll cue */
.scrollcue {
  position: absolute;
  /* stacked above the centered telemetry cluster */
  bottom: calc(var(--hull-y) + clamp(4.5rem, 10svh, 7rem));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.58rem;
  color: var(--ash);
}

.scrollcue__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--amber), transparent);
  animation: cue-drop 1.8s var(--ease-out) infinite;
  transform-origin: top;
}

@keyframes cue-drop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* ─────────────── CTA BUTTONS ─────────────── */

.cta {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--bone);
  background: rgba(5, 4, 8, 0.35);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1em 2em;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.35s, box-shadow 0.35s, color 0.35s;
}

.cta:hover {
  border-color: var(--amber);
  color: var(--amber-hot);
  box-shadow: 0 0 32px rgba(232, 160, 76, 0.28), inset 0 0 18px rgba(232, 160, 76, 0.08);
}

.cta__arrow { transition: transform 0.35s var(--ease-out); }
.cta:hover .cta__arrow { transform: translateX(5px); }

.cta--solid {
  background: var(--amber);
  color: var(--void);
  border-color: var(--amber);
}

.cta--solid:hover {
  color: var(--void);
  background: var(--amber-hot);
  box-shadow: 0 0 44px rgba(232, 160, 76, 0.55);
}

/* ─────────────── EPILOGUE ─────────────── */

.epilogue {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20vh clamp(1.4rem, 6vw, 5rem) 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 118%, rgba(232, 160, 76, 0.16), transparent 60%),
    radial-gradient(ellipse 90% 60% at 50% -20%, rgba(20, 14, 30, 0.9), transparent),
    var(--void);
  overflow: hidden;
}

.epilogue__kicker {
  font-size: 0.62rem;
  color: var(--ash);
  margin-bottom: 2rem;
}

.epilogue__title {
  font-family: var(--display);
  font-size: clamp(3.2rem, 9.5vw, 8.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.002em;
}

.epilogue__title em { font-style: normal; color: var(--amber-hot); }

.epilogue__body {
  max-width: 52ch;
  margin-top: 1.8rem;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 300;
  line-height: 1.75;
  color: #fafafa;
}

.epilogue__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  margin-top: 1rem;
}

.epilogue__actions .cta { margin-top: 1.4rem; }

/* ─────────────── FOOTER ─────────────── */

.footer {
  width: 100%;
  margin-top: auto;
  padding: 6rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.55rem;
  color: rgba(185, 179, 196, 0.45);
}

/* ─────────────── TARGETING RETICLE (custom cursor) ─────────────── */

/* only when JS confirms a fine pointer + full motion */
html.has-cursor,
html.has-cursor * { cursor: none !important; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
}

html.has-cursor .cursor-dot.is-active,
html.has-cursor .cursor-ring.is-active { opacity: 1; }

/* the dot rides the pointer with zero lag */
.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-hot);
  box-shadow: 0 0 8px rgba(232, 160, 76, 0.9);
}

/* the reticle trails behind on the same easing as the parallax */
.cursor-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(232, 160, 76, 0.55);
  color: rgba(232, 160, 76, 0.75); /* tick color */
  will-change: transform;
  transition: opacity 0.35s, border-color 0.3s, box-shadow 0.3s;
}

/* N/S and E/W crosshair ticks */
.cursor-ring::before,
.cursor-ring::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.cursor-ring::before {
  left: 50%;
  top: -8px;
  width: 1px;
  height: 6px;
  box-shadow: 0 40px currentColor;
}

.cursor-ring::after {
  top: 50%;
  left: -8px;
  width: 6px;
  height: 1px;
  box-shadow: 40px 0 currentColor;
}

/* locked on target */
.cursor-ring.is-hot {
  border-color: var(--amber-hot);
  color: var(--amber-hot);
  box-shadow: 0 0 22px rgba(232, 160, 76, 0.4), inset 0 0 12px rgba(232, 160, 76, 0.15);
}

/* ─────────────── RESPONSIVE ─────────────── */

@media (max-width: 860px) {
  .journey { height: 620vh; }

  .panel {
    justify-content: flex-end;
    padding-right: calc(var(--hull-x) + 5.6rem);
    padding-bottom: calc(var(--hull-y) + 11svh);
  }

  .panel--left,
  .panel--right {
    align-items: flex-start;
    text-align: left;
    padding-right: calc(var(--hull-x) + 5.2rem);
  }

  .panel__body { max-width: 30ch; font-size: 1rem; }
  .panel--hero { justify-content: center; }

  .telemetry {
    gap: 1.2rem;
    bottom: calc(var(--hull-y) + 0.9rem);
  }

  .telemetry__key { font-size: 0.48rem; }
  .telemetry__val { font-size: 0.55rem; }

  .rail {
    right: calc(var(--hull-x) + 0.35rem);
    min-width: 64px;
    height: clamp(210px, 32vh, 270px);
    padding: 0.8rem 0.45rem;
  }

  .rail::before,
  .rail::after {
    width: 24px;
  }

  .rail__act {
    min-width: 34px;
    padding: 0.35em 0.4em;
    font-size: 0.56rem;
  }

  .rail__act::after {
    top: calc(100% + 5px);
    width: 2px;
    height: 48px;
  }

  .rail__track {
    top: 36px;
    bottom: 36px;
    width: 2px;
  }

  .footer { flex-direction: column; align-items: center; gap: 0.6rem; text-align: center; }
}

@media (max-width: 480px) {
  .panel {
    padding-right: calc(var(--hull-x) + 4.5rem);
  }

  .panel--left,
  .panel--right {
    padding-right: calc(var(--hull-x) + 4.2rem);
  }

  .telemetry__row:nth-child(2) { display: none; } /* keep the tightest fit */

  .rail {
    right: calc(var(--hull-x) + 0.15rem);
    min-width: 56px;
    height: clamp(190px, 28vh, 230px);
    padding: 0.7rem 0.35rem;
  }

  .rail__act {
    min-width: 30px;
    font-size: 0.5rem;
  }

  .rail__act::after {
    height: 42px;
  }

  .rail__track {
    top: 33px;
    bottom: 33px;
    width: 2px;
  }
}

/* ─────────────── REDUCED MOTION ─────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .scrollcue__line, .logo__mark--loader, .eq i,
  .launch__led, .journey__sticky.is-rumbling, .journey__sticky.is-rumbling--hard,
  .panel__hint { animation: none; }

  .logo__mark--loader::after,
  .logo__count.is-pulse {
    animation: none;
  }

  .journey__video {
    opacity: 1;
    filter: none;
    transform: scale(1.12);
    transition: opacity 0.3s linear, transform 0.3s linear, filter 0.3s linear;
  }
}
