/* =========================================================================
   interplanetary.biz - Chrome-Metallic HUD Overlay
   Palette: deep cosmic blacks, brushed chromes, antique gold, phosphor green
   ========================================================================= */

:root {
    /* Chrome metallic palette */
    --deep-space: #0A0E17;
    --deep-space-edge: #0D1220;
    --graphite-hull: #1C1F26;
    --brushed-chrome: #6B7280;
    --bright-chrome: #D1D5DB;
    --soft-silver: #C8C8C8;
    --chrome-white: #E8E8E8;
    --chrome-mute: #B0B0B0;
    --antique-gold: #D4AF37;
    --deep-amber: #B8860B;
    --phosphor: #7EB77E;
    --signal-red: #C75050;
    --shadow-deep: #4A4A4A;
    --chrome-light: #8A8A8A;

    /* Typography */
    --font-display: 'Playfair Display', 'Lora', Georgia, serif;
    --font-display-sc: 'Playfair Display SC', 'Playfair Display', Georgia, serif;
    --font-body: 'Crimson Text', 'Lora', Georgia, serif;
    --font-mono: 'IBM Plex Mono', 'Space Mono', 'Courier New', monospace;
}

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

html, body {
    background: var(--deep-space);
    color: var(--soft-silver);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(ellipse at center, var(--deep-space) 0%, var(--deep-space-edge) 100%) fixed;
    min-height: 100vh;
}

/* =========================================================================
   Persistent HUD frame and overlays
   ========================================================================= */

.hud-frame {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
}

.frame-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1px solid var(--brushed-chrome);
    opacity: 0.8;
}
.frame-corner.top-left {
    top: 24px; left: 24px;
    border-right: none; border-bottom: none;
}
.frame-corner.top-right {
    top: 24px; right: 24px;
    border-left: none; border-bottom: none;
}
.frame-corner.bottom-left {
    bottom: 56px; left: 24px;
    border-right: none; border-top: none;
}
.frame-corner.bottom-right {
    bottom: 56px; right: 24px;
    border-left: none; border-top: none;
}

.frame-reticle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
}
.frame-reticle .reticle-h {
    position: absolute; top: 50%; left: 0; right: 0; height: 1px;
    background: var(--brushed-chrome);
}
.frame-reticle .reticle-v {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: var(--brushed-chrome);
}

.frame-coordinates {
    position: absolute;
    top: 28px;
    left: 80px;
    display: flex;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--phosphor);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.frame-coordinates .coord-block {
    padding: 2px 6px;
    border-left: 1px solid var(--shadow-deep);
}

.frame-mission-id {
    position: absolute;
    top: 28px;
    right: 80px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bright-chrome);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Atmospheric particles canvas */
.particle-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 4;
    opacity: 0.55;
}

/* Film grain overlay */
.film-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
    opacity: 0.08;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.91 0 0 0 0 0.91 0 0 0 0 0.91 0 0 0 0.32 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 220px 220px;
    animation: grain-shift 1.2s steps(4) infinite;
}

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

/* =========================================================================
   Persistent status bar
   ========================================================================= */

.status-bar-global {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 55;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 28px;
    background: rgba(13, 18, 32, 0.78);
    border-top: 1px solid var(--shadow-deep);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bright-chrome);
}

.status-bar-global::before {
    content: "";
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        var(--shadow-deep) 0%,
        var(--chrome-light) 50%,
        var(--shadow-deep) 100%);
    opacity: 0.6;
}

.status-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-right: 1px solid rgba(74, 74, 74, 0.5);
    height: 100%;
}
.status-cell:first-child { border-left: 1px solid rgba(74, 74, 74, 0.5); }

.status-cell .status-label {
    color: var(--brushed-chrome);
    font-weight: 500;
}
.status-cell .status-value {
    color: var(--phosphor);
    font-weight: 500;
}
.status-cell.pulse {
    margin-left: auto;
    border-right: none;
    color: var(--phosphor);
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--phosphor);
    box-shadow: 0 0 8px var(--phosphor);
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* Digit-cycle effect on readout updates */
.status-value.cycling {
    color: var(--antique-gold);
    animation: digit-flicker 0.4s ease-out;
}
@keyframes digit-flicker {
    0%   { filter: blur(0.6px); opacity: 0.5; }
    50%  { filter: blur(0); opacity: 1; }
    100% { filter: blur(0); opacity: 1; }
}

/* =========================================================================
   Viewport container & sections
   ========================================================================= */

.viewport-container {
    position: relative;
    width: 100%;
}

.mission-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
}

.background-layer,
.mid-layer,
.foreground-layer {
    position: absolute;
    inset: 0;
}
.background-layer { z-index: 1; }
.mid-layer { z-index: 10; }
.foreground-layer { z-index: 20; pointer-events: none; }

/* Static interference overlay used per-section */
.static-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0 0.85 0 0 0 0.7 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 320px 320px;
    opacity: 0.85;
    transition: opacity 1.4s ease-out;
}
.mission-section.in-view .static-overlay {
    opacity: 0.16;
}

.space-radial {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, var(--deep-space) 0%, var(--deep-space-edge) 60%, #07090f 100%);
}
.space-radial.deep {
    background:
        radial-gradient(ellipse at 50% 60%, #0d1426 0%, var(--deep-space) 50%, #06080d 100%);
}

.nebula-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.nebula-svg.nebula-a { animation: nebula-drift-a 48s ease-in-out infinite; }
.nebula-svg.nebula-c { animation: nebula-drift-c 56s ease-in-out infinite; }

@keyframes nebula-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-2.5%, 2%) scale(1.04); }
}
@keyframes nebula-drift-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(2%, -1.5%) scale(1.05); }
}

/* Grid overlay on opening section foreground */
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(107, 114, 128, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(107, 114, 128, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

/* =========================================================================
   Section 1: Opening Transmission
   ========================================================================= */

.opening-transmission .mid-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 80px 120px;
}

.opening-stack {
    max-width: 920px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.typewriter-content {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    color: var(--phosphor);
    text-transform: uppercase;
    line-height: 1.9;
    min-height: 110px;
    text-align: center;
}
.mono-line {
    min-height: 22px;
}
.mono-line::after {
    content: "";
}
.mono-line.typing::after {
    content: "\258C";
    margin-left: 2px;
    animation: cursor-blink 1s steps(2) infinite;
    color: var(--phosphor);
}

.mission-designation {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--chrome-white);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: clamp(48px, 8vw, 80px);
    line-height: 1.05;
    text-shadow:
        0 1px 0 var(--shadow-deep),
        0 2px 12px rgba(212, 175, 55, 0.04);
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.4s ease-out, transform 1.4s ease-out;
}
.mission-designation.revealed {
    opacity: 1;
    transform: translateY(0);
}
.mission-designation .title-line {
    display: inline-block;
}
.mission-designation .title-divider {
    color: var(--antique-gold);
    font-weight: 400;
    opacity: 0.85;
}

.mission-subdesignation {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(18px, 1.6vw, 24px);
    color: var(--chrome-mute);
    letter-spacing: 0.02em;
    max-width: 640px;
    opacity: 0;
    transition: opacity 1.6s ease-out;
    transition-delay: 0.4s;
}
.mission-designation.revealed + .mission-subdesignation {
    opacity: 1;
}

.cursor-row {
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--phosphor);
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mono-prompt {
    color: var(--brushed-chrome);
}

.cursor {
    color: var(--phosphor);
    animation: cursor-blink 1s steps(2) infinite;
    display: inline-block;
}
@keyframes cursor-blink {
    50% { opacity: 0; }
}

/* Opening callouts */
.opening-callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bright-chrome);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.opening-callout .callout-line {
    width: 64px; height: 1px;
    background: var(--brushed-chrome);
    opacity: 0.7;
}
.opening-callout .callout-line.reverse { order: 2; }
.opening-callout.callout-tl {
    top: 22%; left: 8%;
    transform: rotate(-15deg);
}
.opening-callout.callout-br {
    bottom: 22%; right: 8%;
    transform: rotate(12deg);
}

/* Vintage radio dish frame */
.vintage-frame {
    position: absolute;
    pointer-events: none;
}
.radio-dish-frame {
    bottom: 0; left: 0; right: 0;
    height: 50%;
    opacity: 0;
    transition: opacity 2.6s ease-out;
}
.opening-transmission.in-view .radio-dish-frame {
    opacity: 0.55;
}
.radio-dish-frame svg {
    width: 100%; height: 100%;
    filter: grayscale(0.4) brightness(0.85) sepia(0.18);
}

/* =========================================================================
   Section 2: Mission Context
   ========================================================================= */

.mission-context .background-layer .vintage-photo {
    position: absolute; inset: 0;
    filter: grayscale(0.65) sepia(0.15) brightness(0.55) contrast(1.1);
}
.mission-context .vintage-photo svg {
    width: 100%; height: 100%;
    display: block;
}

.mission-context .mid-layer {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
    grid-template-rows: 1fr auto;
    gap: 40px;
    padding: 110px 80px 90px;
    align-items: start;
}

#hud-panel-primary {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: center;
    max-width: 580px;
    justify-self: end;
}

#hud-panel-secondary {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    align-self: end;
    max-width: 460px;
    justify-self: start;
}

#rocket-launch-container {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-self: center;
    width: 360px;
    max-width: 100%;
    height: 540px;
    position: relative;
}

.image-container.rocket-launch {
    justify-self: center;
}

.image-mask {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.image-mask svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: grayscale(0.3) sepia(0.15) brightness(0.85);
}
.image-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.78 0 0 0 0 0.7 0 0 0 0 0.55 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
    opacity: 0.18;
    mix-blend-mode: overlay;
    pointer-events: none;
}
.image-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(232, 232, 232, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(232, 232, 232, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* Annotation callouts on rocket image */
.annotation-callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--bright-chrome);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}
.annotation-callout .callout-line {
    width: 52px; height: 1px;
    background: var(--brushed-chrome);
    opacity: 0.7;
}
.annotation-callout .callout-line.reverse { order: 2; }
.annotation-callout::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    border: 1px solid var(--antique-gold);
    background: rgba(212, 175, 55, 0.15);
}
.annotation-callout.callout-top {
    top: -10px; left: -110px;
    transform: rotate(-12deg);
}
.annotation-callout.callout-bottom {
    bottom: -10px; right: -120px;
    transform: rotate(8deg);
}

/* =========================================================================
   HUD Panels (shared)
   ========================================================================= */

.hud-panel {
    position: relative;
    background: rgba(28, 31, 38, 0.42);
    border: 1px solid var(--chrome-light);
    border-radius: 2px;
    padding: 32px 36px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 0 24px rgba(232, 232, 232, 0.04),
        0 0 0 1px rgba(74, 74, 74, 0.4),
        0 24px 60px rgba(0, 0, 0, 0.6);
}

.hud-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg,
        rgba(232, 232, 232, 0.06) 0%,
        rgba(232, 232, 232, 0) 30%,
        rgba(232, 232, 232, 0) 70%,
        rgba(232, 232, 232, 0.04) 100%);
    border-radius: inherit;
}

.hud-panel.primary {
    background: rgba(13, 18, 32, 0.55);
}

.hud-panel-bracket {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--antique-gold);
    opacity: 0.85;
}
.hud-panel-bracket.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hud-panel-bracket.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.hud-panel-bracket.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.hud-panel-bracket.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.hud-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brushed-chrome);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(107, 114, 128, 0.3);
}
.hud-meta .hud-id { color: var(--bright-chrome); }
.hud-meta .hud-status { color: var(--phosphor); }

.hud-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--phosphor);
    padding: 4px 10px;
    border: 1px solid rgba(126, 183, 126, 0.35);
    border-radius: 1px;
    margin-bottom: 18px;
}

/* Section headings */
.section-heading {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--chrome-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    margin-bottom: 22px;
    text-shadow: 0 1px 0 var(--shadow-deep);
}
.section-heading.final {
    font-size: clamp(28px, 3.4vw, 44px);
    text-align: center;
    margin-bottom: 20px;
}
.panel-heading {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--chrome-white);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* Body text */
.body-text {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--soft-silver);
    margin-bottom: 16px;
}
.body-text:last-child { margin-bottom: 0; }
.body-text.muted { color: var(--chrome-mute); }

.small-text {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--soft-silver);
}

.pull-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    color: var(--chrome-white);
    font-size: 28px;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}
.pull-quote-sc {
    font-family: var(--font-display-sc);
    font-weight: 400;
    color: var(--antique-gold);
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.06em;
    margin-top: 18px;
    text-transform: uppercase;
    font-variant: small-caps;
}

/* Data readouts */
.data-readout {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--bright-chrome);
}
.readout-line {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(107, 114, 128, 0.2);
}
.readout-line:last-child { border-bottom: none; }
.readout-label { color: var(--brushed-chrome); flex: 0 0 auto; }
.readout-dots {
    flex: 1 1 auto;
    border-bottom: 1px dotted rgba(107, 114, 128, 0.4);
    height: 10px;
}
.readout-value { color: var(--phosphor); flex: 0 0 auto; }

/* Anim targets */
.anim-target {
    opacity: 0;
    transition:
        opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.anim-target[data-anim-from="right"]      { transform: translateX(60px); }
.anim-target[data-anim-from="left"]       { transform: translateX(-60px); }
.anim-target[data-anim-from="top"]        { transform: translateY(-40px); }
.anim-target[data-anim-from="bottom"]     { transform: translateY(40px); }
.anim-target[data-anim-from="bottom-left"]{ transform: translate(-40px, 40px); }
.anim-target[data-anim-from="center"]     { transform: scale(0.96); }

.anim-target.entered {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.reveal-line {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal-line.shown { opacity: 1; transform: translateY(0); }

.reveal-heading.shown { /* used for typewriter heading */ }

/* =========================================================================
   Section 3: Discovery (constellation)
   ========================================================================= */

.discovery-phase .mid-layer {
    display: flex;
    flex-direction: column;
    padding: 110px 80px 90px;
    gap: 40px;
}

.discovery-phase .vintage-photo.starfield-bg {
    position: absolute; inset: 0;
    filter: grayscale(0.6) sepia(0.1) brightness(0.7) contrast(1.05);
}
.discovery-phase .vintage-photo.starfield-bg svg {
    width: 100%; height: 100%; display: block;
}

.starfield-stars circle {
    fill: #E8E8E8;
}

.orbit-paths {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: orbit-rotate 220s linear infinite;
    transform-origin: center;
}
@keyframes orbit-rotate {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.discovery-header {
    max-width: 720px;
}
.discovery-header .section-heading {
    margin-bottom: 12px;
}

.constellation {
    position: relative;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 60px 80px;
    margin-top: 20px;
    min-height: 480px;
}

.constellation-links {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.constellation-tl, .constellation-tr,
.constellation-bl, .constellation-br {
    position: relative;
    z-index: 1;
    max-width: 380px;
}
.constellation-tl { grid-column: 1; grid-row: 1; justify-self: start; align-self: end; }
.constellation-tr { grid-column: 2; grid-row: 1; justify-self: end; align-self: end; }
.constellation-bl { grid-column: 1; grid-row: 2; justify-self: start; align-self: start; }
.constellation-br { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }

.hud-panel.discovery-small {
    padding: 22px 24px;
    background: rgba(13, 18, 32, 0.55);
}

.panel-coord {
    display: inline-block;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--phosphor);
    padding-top: 10px;
    border-top: 1px dashed rgba(107, 114, 128, 0.3);
}

.constellation-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1;
}
.constellation-center svg {
    width: 100%; height: 100%;
    animation: relay-pulse 4s ease-in-out infinite;
}
@keyframes relay-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.8; }
}
.center-label {
    position: absolute;
    bottom: -22px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--antique-gold);
}

/* =========================================================================
   Section 4: Evidence
   ========================================================================= */

.evidence-phase .vintage-photo.evidence-bg {
    position: absolute; inset: 0;
    filter: grayscale(var(--evidence-desat, 0.45)) sepia(0.18) brightness(0.7) contrast(1.1);
    transition: filter 0.6s ease-out;
}
.evidence-phase .vintage-photo.evidence-bg svg {
    width: 100%; height: 100%; display: block;
}

.evidence-desat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.18);
    transition: background 0.6s ease-out;
    pointer-events: none;
}

.evidence-phase .mid-layer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    padding: 110px 80px 90px;
    gap: 60px 80px;
    align-items: start;
}

.evidence-caption-tl {
    grid-column: 1; grid-row: 1;
    max-width: 460px;
    align-self: start;
}
.evidence-caption-br {
    grid-column: 2; grid-row: 2;
    max-width: 460px;
    justify-self: end;
    align-self: end;
}

.caption-panel {
    background: rgba(13, 18, 32, 0.62);
    border: 1px solid var(--chrome-light);
    padding: 28px 32px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 2px;
}
.caption-text {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--soft-silver);
}

.evidence-orbit-line {
    position: absolute;
    width: 140%;
    height: 80%;
    top: 30%; left: -20%;
    border: 1px dashed rgba(212, 175, 55, 0.18);
    border-radius: 50%;
    transform: rotate(-12deg);
    pointer-events: none;
}

/* =========================================================================
   Section 5: Signal Close
   ========================================================================= */

.signal-close .mid-layer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 80px 100px;
}

.hud-panel.final-message {
    max-width: 720px;
    width: 100%;
    text-align: center;
    padding: 48px 56px;
    background: rgba(13, 18, 32, 0.7);
    transform: scale(0.96);
}

.hud-panel.final-message .hud-meta {
    justify-content: space-between;
}

.final-typewriter {
    text-align: left;
    margin: 24px auto 30px;
    max-width: 460px;
    min-height: 110px;
}

.final-typewriter .mono-line {
    text-align: left;
    color: var(--bright-chrome);
}

.cursor-line {
    color: var(--phosphor);
}

.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 18px auto 24px;
    max-width: 480px;
    text-align: left;
}
.data-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-bottom: 1px dashed rgba(107, 114, 128, 0.25);
}
.field-label { color: var(--brushed-chrome); flex: 0 0 90px; }
.field-dots {
    flex: 1 1 auto;
    height: 10px;
    border-bottom: 1px dotted rgba(107, 114, 128, 0.4);
}
.field-value {
    color: var(--phosphor);
    font-weight: 500;
}
.field-link {
    color: var(--antique-gold);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.field-link:hover {
    color: var(--chrome-white);
    border-color: var(--antique-gold);
}
.pulse-text {
    color: var(--phosphor);
    animation: phosphor-pulse 2.4s ease-in-out infinite;
}
@keyframes phosphor-pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 4px rgba(126, 183, 126, 0.5); }
    50%      { opacity: 0.7; text-shadow: 0 0 0 rgba(126, 183, 126, 0); }
}

.final-quote {
    margin-top: 26px;
    text-align: center;
    color: var(--antique-gold);
    font-size: 18px;
}

.closing-reticle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.05;
}
.closing-reticle .reticle-h {
    position: absolute; top: 50%; left: 0; right: 0; height: 1px;
    background: var(--brushed-chrome);
}
.closing-reticle .reticle-v {
    position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    background: var(--brushed-chrome);
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1100px) {
    .mission-context .mid-layer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        padding: 100px 40px 80px;
        gap: 28px;
    }
    #hud-panel-primary { grid-column: 1; grid-row: 1; max-width: none; justify-self: stretch; }
    #rocket-launch-container { grid-column: 1; grid-row: 2; width: 100%; height: 420px; justify-self: stretch; }
    #hud-panel-secondary { grid-column: 1; grid-row: 3; max-width: none; justify-self: stretch; }

    .annotation-callout.callout-top, .annotation-callout.callout-bottom {
        display: none;
    }

    .constellation {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 22px;
    }
    .constellation-tl, .constellation-tr,
    .constellation-bl, .constellation-br {
        grid-column: 1;
        justify-self: stretch;
        align-self: stretch;
        max-width: none;
    }
    .constellation-tl { grid-row: 1; }
    .constellation-tr { grid-row: 2; }
    .constellation-bl { grid-row: 3; }
    .constellation-br { grid-row: 4; }
    .constellation-center, .constellation-links { display: none; }

    .evidence-phase .mid-layer {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        padding: 100px 40px 80px;
    }
    .evidence-caption-tl, .evidence-caption-br {
        grid-column: 1;
        max-width: none;
        justify-self: stretch;
    }
    .evidence-caption-tl { grid-row: 1; }
    .evidence-caption-br { grid-row: 2; }

    .frame-coordinates { display: none; }
    .frame-mission-id { right: 70px; font-size: 10px; }
    .opening-callout { display: none; }
}

@media (max-width: 720px) {
    .opening-transmission .mid-layer { padding: 100px 24px 100px; }
    .signal-close .mid-layer { padding: 100px 24px 100px; }

    .mission-designation {
        font-size: clamp(36px, 11vw, 56px);
        gap: 14px;
    }
    .section-heading { font-size: clamp(26px, 6vw, 38px); }
    .hud-panel { padding: 22px 22px; }
    .hud-panel.final-message { padding: 30px 24px; }

    .status-bar-global {
        height: auto;
        padding: 10px 18px;
        flex-wrap: wrap;
        font-size: 10px;
        gap: 6px;
    }
    .status-cell {
        padding: 4px 10px;
        border-right: none;
        border-left: 1px solid rgba(74, 74, 74, 0.5);
        height: auto;
    }
    .status-cell.pulse { margin-left: 0; }

    .frame-corner { width: 22px; height: 22px; }
    .frame-corner.bottom-left, .frame-corner.bottom-right { bottom: 100px; }

    .data-field { flex-wrap: wrap; }
    .field-label { flex: 0 0 70px; font-size: 11px; }
    .field-value { font-size: 11px; }
    .field-dots { display: none; }
}
