:root {
  --black:       #020408;
  --deep-space:  #06090f;
  --space-mid:   #0d1520;
  --mars-dark:   #5c1800;
  --mars-mid:    #a83412;
  --mars-red:    #c1440e;
  --mars-orange: #e8651a;
  --mars-bright: #ff8c42;
  --mars-glow:   #ff5c1e;
  --earth-blue:  #1a6fa0;
  --earth-dark:  #0a2845;
  --star-white:  #e8f4ff;
  --text-prim:   #f0e6d3;
  --text-dim:    #8a7f74;
  --text-mid:    #c5b8a8;
  --accent:      #ff5c1e;
  --accent-pale: #ff8c4220;
  --neon-blue:   #4e9de8;

  --font-display: 'Orbitron', monospace;
  --font-mono:    'Space Mono', monospace;
  --font-body:    'Rajdhani', sans-serif;

  --ease-snappy: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-back:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--mars-red) var(--deep-space);
}
html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: var(--deep-space); }
html::-webkit-scrollbar-thumb { background: var(--mars-red); border-radius: 3px; }

body {
  background: var(--black);
  color: var(--text-prim);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

button { cursor: none; }

#loader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loader-ring {
  position: relative;
  width: 140px;
  height: 140px;
}

.loader-svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}

.loader-svg .track {
  fill: none;
  stroke: #1a2a3a;
  stroke-width: 5;
}

.loader-svg .progress-ring {
  fill: none;
  stroke: var(--mars-red);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 339;
  stroke-dashoffset: 339;
  transition: stroke-dashoffset 0.1s linear;
  filter: drop-shadow(0 0 8px var(--mars-glow));
}

.loader-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.mini-rocket {
  width: 36px;
  height: 60px;
  animation: rocketBob 1.5s ease-in-out infinite;
}

@keyframes rocketBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.loader-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.loader-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-dim);
}

.loader-msg {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mars-orange);
  letter-spacing: 1px;
  min-height: 20px;
}

.loader-bar-wrap {
  width: 240px;
  height: 3px;
  background: #1a2a3a;
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mars-red), var(--mars-bright));
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--mars-glow);
}

#cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mars-bright);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: background 0.2s, transform 0.1s;
  mix-blend-mode: screen;
}

#cursor-trail {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--mars-red);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: left 0.12s var(--ease-snappy), top 0.12s var(--ease-snappy), width 0.2s, height 0.2s;
  opacity: 0.6;
}

body.cursor-hover #cursor { transform: translate(-50%, -50%) scale(2); background: #fff; }
body.cursor-hover #cursor-trail { width: 60px; height: 60px; border-color: var(--mars-bright); }

.mission-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: linear-gradient(to bottom, rgba(2,4,8,0.9) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  font-size: 20px;
  color: var(--mars-orange);
  line-height: 1;
}

.nav-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-prim);
}

.nav-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dot {
  position: relative;
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  background: transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}

.nav-dot.active::before {
  background: var(--mars-orange);
  border-color: var(--mars-orange);
  box-shadow: 0 0 10px var(--mars-glow);
}

.dot-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dim);
  transition: color 0.3s;
}

.nav-dot.active .dot-label { color: var(--mars-orange); }

.mission-progress-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 1001;
  background: transparent;
}

.mission-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mars-dark), var(--mars-red), var(--mars-bright));
  transition: width 0.05s linear;
  box-shadow: 0 0 12px var(--mars-glow);
}

.mission-progress-label {
  position: fixed;
  bottom: 20px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  z-index: 1000;
}

#stars-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.section {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
}

.sh-num {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--mars-orange);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--text-prim);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-body {
  font-size: 1.1rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 520px;
}

.section--launch {
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 70% 50%, #071522 0%, var(--black) 70%);
}

#earth-canvas {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s;
}

.launch-content {
  position: relative;
  z-index: 2;
  padding: 120px 8vw 80px;
  max-width: 660px;
}

.launch-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  border-left: 2px solid var(--mars-red);
  padding-left: 12px;
}

.badge-line {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.launch-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
  margin-bottom: 20px;
}

.title-sub {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  letter-spacing: 8px;
  color: var(--text-dim);
  font-weight: 400;
}

.title-main {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--mars-red);
  text-shadow:
    0 0 40px rgba(193, 68, 14, 0.4),
    0 0 80px rgba(193, 68, 14, 0.2);
  letter-spacing: -2px;
  line-height: 0.9;
}

.launch-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 32px;
}

.countdown-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,92,30,0.05);
  border: 1px solid rgba(255,92,30,0.2);
  border-radius: 6px;
  padding: 12px 16px;
  min-width: 64px;
}

.cd-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mars-bright);
  line-height: 1;
  text-shadow: 0 0 16px var(--mars-glow);
}

.cd-lbl {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--text-dim);
  margin-top: 4px;
}

.cd-sep {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--mars-red);
  margin-bottom: 20px;
  animation: sepBlink 1s step-end infinite;
}

@keyframes sepBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.launch-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-launch {
  position: relative;
  background: none;
  border: 2px solid var(--mars-red);
  color: var(--text-prim);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 4px;
  padding: 16px 36px;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s;
}

.btn-launch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--mars-red);
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease-snappy);
  z-index: 0;
}

.btn-launch:hover::before { transform: translateX(0); }
.btn-launch:hover { color: white; box-shadow: 0 0 30px rgba(193,68,14,0.5); }

.btn-text { position: relative; z-index: 1; }

.launch-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  animation: hintFade 2s ease-in-out infinite;
}

@keyframes hintFade { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.launch-data {
  position: absolute;
  bottom: 48px;
  left: 8vw;
  z-index: 2;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.data-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.data-key {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.data-val {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-prim);
}

.blink-green {
  color: #4ade80;
  animation: greenPulse 2s ease-in-out infinite;
}

@keyframes greenPulse { 0%, 100% { text-shadow: 0 0 4px #4ade80; } 50% { text-shadow: 0 0 12px #4ade80; } }

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  right: 5%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--mars-red));
  animation: scrollDrop 1.5s ease-in-out infinite;
}

@keyframes scrollDrop {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.section--ascent {
  display: flex;
  align-items: stretch;
  background: linear-gradient(
    180deg,
    rgba(6,9,15,1) 0%,
    rgba(10,30,60,0.3) 50%,
    rgba(6,9,15,1) 100%
  );
}

.ascent-bg-strip {
  position: absolute;
  top: 0; bottom: 0;
  right: 0;
  width: 50%;
  background: linear-gradient(to right, transparent, rgba(10,25,50,0.3));
  pointer-events: none;
}

.ascent-left {
  position: relative;
  z-index: 2;
  padding: 120px 6vw 80px 8vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 55%;
}

.ascent-clock {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.clock-label {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--text-dim);
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--mars-orange);
  text-shadow: 0 0 20px var(--mars-glow);
}

.ascent-stats {
  display: flex;
  gap: 24px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.astat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.astat-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mars-bright);
  line-height: 1;
}

.astat-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mars-red);
  letter-spacing: 1px;
}

.astat-lbl {
  font-size: 13px;
  color: var(--text-dim);
}

.phase-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phase-tag {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 6px 12px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
}

.phase-tag.done {
  border-color: #4ade8050;
  color: #4ade80;
  background: rgba(74,222,128,0.05);
}

.phase-tag.active {
  border-color: var(--mars-orange);
  color: var(--mars-bright);
  background: rgba(232,101,26,0.1);
  box-shadow: 0 0 10px rgba(232,101,26,0.2);
  animation: phasePulse 1.5s ease-in-out infinite;
}

@keyframes phasePulse { 0%, 100% { box-shadow: 0 0 10px rgba(232,101,26,0.2); } 50% { box-shadow: 0 0 20px rgba(232,101,26,0.5); } }

.ascent-right {
  position: relative;
  z-index: 2;
  width: 45%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.rocket-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 500px;
}

#rocket-svg {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255,140,66,0.4));
  position: relative;
  z-index: 2;
}

.flame-outer {
  animation: flameFlicker 0.1s ease-in-out infinite alternate;
}

@keyframes flameFlicker {
  0% { rx: 22; ry: 30; opacity: 0.9; }
  100% { rx: 20; ry: 34; opacity: 1; }
}

.exhaust-particles {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 200px;
  pointer-events: none;
  z-index: 1;
}

.altitude-bar {
  position: absolute;
  right: -24px;
  top: 0; bottom: 0;
  width: 6px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}

.alt-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 0%;
  background: linear-gradient(to top, var(--mars-red), var(--mars-bright));
  border-radius: 3px;
  transition: height 0.5s;
}

.alt-label {
  position: absolute;
  top: -24px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mars-orange);
  white-space: nowrap;
}

.section--traverse {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 5vw;
  background: radial-gradient(ellipse at 50% 0%, #0d1a2e 0%, var(--black) 70%);
  gap: 80px;
}

.traverse-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(193,68,14,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.traverse-header {
  text-align: center;
  max-width: 700px;
}

.traverse-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-prim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.traverse-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--mars-orange);
}

.traverse-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-dim);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1100px;
}

.stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mars-red), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.stat-card:hover {
  background: rgba(255,92,30,0.05);
  border-color: rgba(255,92,30,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(193,68,14,0.15);
}

.stat-card:hover::before { transform: translateX(100%); }

.stat-icon {
  font-size: 1.5rem;
  color: var(--mars-orange);
  opacity: 0.8;
}

.stat-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.counter {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--mars-bright);
  text-shadow: 0 0 20px rgba(255,140,66,0.4);
}

.stat-unit {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--mars-red);
}

.stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-mid);
}

.stat-detail {
  font-size: 12px;
  color: var(--text-dim);
}

.mission-timeline {
  width: 100%;
  max-width: 1100px;
}

.timeline-heading {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 6px;
  color: var(--text-dim);
  margin-bottom: 40px;
  text-align: center;
}

.timeline-track {
  position: relative;
  height: 100px;
  width: 100%;
}

.tl-line {
  position: absolute;
  top: 20px;
  left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.tl-progress {
  position: absolute;
  top: 20px;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--mars-red), var(--mars-bright));
  box-shadow: 0 0 8px var(--mars-glow);
  transition: width 0.05s;
}

.tl-node {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: var(--black);
  margin-top: 15px;
  transition: all 0.3s;
}

.tl-node.active .tl-dot {
  border-color: var(--mars-orange);
  background: var(--mars-red);
  box-shadow: 0 0 12px var(--mars-glow);
}

.tl-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 4px;
}

.tl-day {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mars-orange);
  letter-spacing: 1px;
}

.tl-event {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  white-space: nowrap;
}

.traverse-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  width: 100%;
}

.tfact {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
}

.tfact-icon {
  font-size: 2rem;
  filter: grayscale(0.3);
}

.tfact p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.section--arrival {
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 30% 50%, #2a0c00 0%, var(--black) 65%);
  overflow: hidden;
  min-height: 100vh;
}

#mars-canvas {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

.arrival-content {
  position: relative;
  z-index: 3;
  padding: 120px 8vw;
  max-width: 580px;
}

.arrival-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--mars-orange);
  border: 1px solid rgba(232,101,26,0.3);
  padding: 6px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse { 0%, 100% { box-shadow: 0 0 0px rgba(232,101,26,0); } 50% { box-shadow: 0 0 16px rgba(232,101,26,0.3); } }

.arrival-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.95;
  color: var(--text-prim);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.arrival-body {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 32px;
}

.mars-specs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.spec-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spec-key {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dim);
  min-width: 90px;
}

.spec-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.spec-bar {
  display: block;
  height: 100%;
  width: 0%;
  max-width: var(--pct);
  background: linear-gradient(90deg, var(--mars-dark), var(--mars-bright));
  border-radius: 2px;
  transition: width 1.2s var(--ease-snappy);
  box-shadow: 2px 0 8px var(--mars-glow);
}

.spec-val {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-prim);
  min-width: 100px;
  text-align: right;
}

.arrival-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.atag {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 2px;
  padding: 6px 12px;
  border: 1px solid rgba(193,68,14,0.4);
  border-radius: 2px;
  color: var(--mars-orange);
  background: rgba(193,68,14,0.05);
}

.orbit-overlay {
  position: absolute;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 2;
}

.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(193,68,14,0.15);
}

.ring-1 {
  width: 420px;
  height: 160px;
  animation: orbitSpin 12s linear infinite;
}

.ring-2 {
  width: 540px;
  height: 200px;
  animation: orbitSpin 20s linear infinite reverse;
}

@keyframes orbitSpin { from { transform: translate(-50%,-50%) rotateX(75deg) rotate(0deg); } to { transform: translate(-50%,-50%) rotateX(75deg) rotate(360deg); } }

.moon {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
}

.phobos {
  width: 12px; height: 12px;
  background: #b0a090;
  box-shadow: 0 0 8px #b0a090;
  animation: moonOrbit1 8s linear infinite;
  margin: -6px;
}

.deimos {
  width: 8px; height: 8px;
  background: #c0b090;
  box-shadow: 0 0 6px #c0b090;
  animation: moonOrbit2 18s linear infinite;
  margin: -4px;
}

@keyframes moonOrbit1 {
  from { transform: rotate(0deg) translateX(160px); }
  to { transform: rotate(360deg) translateX(160px); }
}

@keyframes moonOrbit2 {
  from { transform: rotate(0deg) translateX(220px); }
  to { transform: rotate(360deg) translateX(220px); }
}

.section--exploration {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 5vw 60px;
  background: radial-gradient(ellipse at 50% 100%, #1a0800 0%, var(--black) 60%);
}

.exploration-bg {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 300px;
  background: linear-gradient(to top, rgba(92,24,0,0.15), transparent);
  pointer-events: none;
}

.exploration-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
}

.exploration-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text-prim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.exploration-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--mars-orange);
}

.exploration-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 80px;
  perspective: 1200px;
}

.explore-card {
  height: 320px;
  cursor: none;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.explore-card:hover .card-inner { transform: rotateY(180deg); }

.card-front, .card-back {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  padding: 28px 24px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
}

.card-front {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  gap: 16px;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}

.card-front::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: linear-gradient(to top, rgba(2,4,8,0.9), transparent);
  z-index: 0;
}

.card-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-prim);
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.card-teaser {
  font-size: 0.9rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

.card-back {
  background: linear-gradient(135deg, rgba(92,24,0,0.9), rgba(193,68,14,0.7));
  border: 1px solid rgba(255,92,30,0.4);
  transform: rotateY(180deg);
  gap: 12px;
  justify-content: center;
}

.card-back-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.card-facts li {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  padding-left: 12px;
  position: relative;
}

.card-facts li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--mars-bright);
}

.card-facts strong { color: white; }

.card-cta {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--mars-bright);
  margin-top: 12px;
}

.mission-end {
  text-align: center;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.end-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mars-red), transparent);
  margin-bottom: 8px;
}

.end-quote {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-mid);
  font-style: italic;
  line-height: 1.7;
}

.end-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mars-orange);
  letter-spacing: 2px;
}

.btn-restart {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 3px;
  padding: 14px 28px;
  border-radius: 4px;
  margin-top: 20px;
  transition: all 0.3s;
}

.btn-restart:hover {
  border-color: var(--mars-red);
  color: var(--mars-orange);
}

.site-footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-align: center;
}

.launch-content,
.ascent-left,
.arrival-content {
  opacity: 0;
}

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .traverse-facts { grid-template-columns: repeat(2, 1fr); }
  .explore-grid { grid-template-columns: repeat(2, 1fr); }
  .explore-card { height: 280px; }
  #earth-canvas { right: -120px; width: 500px !important; height: 500px !important; }
  #mars-canvas { right: -160px; }
}

@media (max-width: 900px) {
  .section--ascent { flex-direction: column; }
  .ascent-left { width: 100%; padding: 100px 6vw 40px; }
  .ascent-right { width: 100%; padding: 0 0 60px; height: 400px; }
  .rocket-wrap { height: 350px; }
  #earth-canvas { right: -200px; opacity: 0.4 !important; }
  .orbit-overlay { right: -100px; width: 400px; height: 400px; }
  .nav-dots { display: none; }
}

@media (max-width: 680px) {
  .mission-nav { padding: 16px 20px; }
  .launch-content { padding: 100px 5vw 60px; }
  .launch-data { left: 5vw; gap: 8px; }
  .countdown-block { gap: 6px; }
  .countdown-item { min-width: 52px; padding: 10px 12px; }
  .cd-num { font-size: 1.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .traverse-facts { grid-template-columns: 1fr; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .tl-node { display: none; }
  .tl-node:first-child,
  .tl-node:last-child { display: flex; }
  .section--explore { padding: 80px 5vw 40px; }
  #earth-canvas { display: none; }
  #mars-canvas { opacity: 0.3 !important; right: -250px; }
}
