/* ============================================
   Mars High Speed v2 — Motion & Atmosphere
   New visual layer: deep-space hero, orbital
   journey scrub, 3D tilt cards, live telemetry.
   Loaded AFTER styles.css so it wins on order.
   ============================================ */

/* --- v2 tokens --- */
:root {
  --mhs-space-0: #04060c;
  --mhs-space-1: #080d1a;
  --mhs-space-2: #0e1628;
  --mhs-space-3: #16203a;
  --mhs-ember: #ff6b35;
  --mhs-ember-lt: #ffa657;
  --mhs-ember-dk: #b23f18;
  --mhs-plasma: #4dd9ff;
  --mhs-plasma-dk: #1a7fa3;
  --mhs-violet: #6b3fa0;
  --mhs-gold: #ffb703;
  --mhs-cosmos: #cfe4ff;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================
   1. HERO v2 — deep space
   ============================================ */
.hero-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(107, 63, 160, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 90% 60% at 85% 110%, rgba(255, 107, 53, 0.12) 0%, transparent 65%),
    linear-gradient(180deg, var(--mhs-space-0) 0%, var(--mhs-space-1) 55%, var(--mhs-space-0) 100%);
}

/* layered space backdrop */
.space-layers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform, opacity;
}

.nebula-a {
  width: 60vw;
  height: 60vw;
  left: -18vw;
  top: -22vw;
  background: radial-gradient(circle, rgba(107, 63, 160, 0.55) 0%, rgba(107, 63, 160, 0) 70%);
  animation: nebulaDrift 34s ease-in-out infinite alternate;
}

.nebula-b {
  width: 52vw;
  height: 52vw;
  right: -14vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.38) 0%, rgba(255, 107, 53, 0) 70%);
  animation: nebulaDrift 42s ease-in-out infinite alternate-reverse;
}

.nebula-c {
  width: 40vw;
  height: 40vw;
  left: 30vw;
  bottom: -20vw;
  background: radial-gradient(circle, rgba(77, 217, 255, 0.22) 0%, rgba(77, 217, 255, 0) 70%);
  animation: nebulaDrift 50s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.42; }
  50%  { opacity: 0.62; }
  100% { transform: translate3d(6vw, 4vh, 0) scale(1.18); opacity: 0.48; }
}

/* hero canvas sits above nebula, below globe */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 1;
  pointer-events: none;
}

/* --- Mars globe (bottom right, cropped by viewport) --- */
.globe-stage {
  position: absolute;
  right: -6vw;
  bottom: -22vh;
  z-index: 1;
  width: min(58vw, 640px);
  aspect-ratio: 1;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.mars-globe {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 26%, #e07a45 0%, #c1440e 34%, #8e3210 62%, #4d1a06 88%, #2a0d03 100%);
  box-shadow:
    inset -40px -30px 90px rgba(0, 0, 0, 0.75),
    inset 30px 20px 70px rgba(255, 170, 110, 0.22),
    0 0 120px 10px rgba(255, 107, 53, 0.16),
    0 0 320px 60px rgba(255, 107, 53, 0.07);
}

/* rotating surface: crater + maria sheet scrolling horizontally */
.globe-surface {
  position: absolute;
  inset: -6%;
  opacity: 0.9;
  background-image:
    radial-gradient(ellipse 12% 8% at 12% 24%, rgba(48, 16, 4, 0.85) 0%, rgba(48, 16, 4, 0) 70%),
    radial-gradient(ellipse 8% 5% at 26% 41%, rgba(58, 22, 6, 0.7) 0%, rgba(58, 22, 6, 0) 70%),
    radial-gradient(ellipse 16% 10% at 44% 18%, rgba(42, 14, 3, 0.8) 0%, rgba(42, 14, 3, 0) 70%),
    radial-gradient(ellipse 7% 4% at 58% 36%, rgba(64, 24, 7, 0.6) 0%, rgba(64, 24, 7, 0) 70%),
    radial-gradient(ellipse 14% 9% at 72% 27%, rgba(46, 15, 4, 0.78) 0%, rgba(46, 15, 4, 0) 70%),
    radial-gradient(ellipse 9% 6% at 88% 44%, rgba(52, 18, 5, 0.62) 0%, rgba(52, 18, 5, 0) 70%),
    radial-gradient(ellipse 11% 7% at 18% 62%, rgba(50, 17, 4, 0.66) 0%, rgba(50, 17, 4, 0) 70%),
    radial-gradient(ellipse 18% 7% at 40% 70%, rgba(38, 12, 3, 0.72) 0%, rgba(38, 12, 3, 0) 70%),
    radial-gradient(ellipse 10% 6% at 62% 58%, rgba(56, 20, 6, 0.58) 0%, rgba(56, 20, 6, 0) 70%),
    radial-gradient(ellipse 13% 8% at 80% 70%, rgba(44, 14, 4, 0.7) 0%, rgba(44, 14, 4, 0) 70%),
    radial-gradient(ellipse 9% 5% at 34% 88%, rgba(60, 22, 7, 0.5) 0%, rgba(60, 22, 7, 0) 70%),
    radial-gradient(ellipse 12% 7% at 66% 86%, rgba(46, 15, 4, 0.58) 0%, rgba(46, 15, 4, 0) 70%),
    radial-gradient(ellipse 26% 12% at 52% 44%, rgba(96, 36, 12, 0.28) 0%, rgba(96, 36, 12, 0) 72%),
    radial-gradient(ellipse 22% 9% at 30% 80%, rgba(104, 40, 14, 0.24) 0%, rgba(104, 40, 14, 0) 72%);
  background-size: 200% 100%;
  animation: globeSpin 140s linear infinite;
}

@keyframes globeSpin {
  from { background-position: 0% 0; }
  to   { background-position: -200% 0; }
}

/* terminator / night side */
.globe-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 68% 24%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.35) 62%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(115deg, rgba(0, 0, 0, 0) 45%, rgba(3, 1, 0, 0.55) 78%, rgba(2, 1, 0, 0.9) 100%);
}

/* drifting specular highlight */
.globe-spec {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 30% 24%, rgba(255, 226, 198, 0.42) 0%, rgba(255, 200, 160, 0.08) 32%, rgba(255, 200, 160, 0) 52%);
  animation: specDrift 26s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

@keyframes specDrift {
  from { transform: translate3d(-3%, -2%, 0) scale(1); opacity: 0.85; }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); opacity: 1; }
}

/* atmospheric rim */
.globe-atmo {
  position: absolute;
  inset: -5%;
  border-radius: 50%;
  border: 1px solid rgba(255, 170, 110, 0.22);
  box-shadow:
    inset 0 0 40px rgba(255, 140, 90, 0.12),
    0 0 30px rgba(255, 140, 90, 0.16);
  animation: atmoPulse 7s ease-in-out infinite;
}

@keyframes atmoPulse {
  0%, 100% { opacity: 0.55; box-shadow: inset 0 0 40px rgba(255,140,90,.10), 0 0 26px rgba(255,140,90,.13); }
  50%      { opacity: 1;    box-shadow: inset 0 0 60px rgba(255,140,90,.18), 0 0 46px rgba(255,140,90,.26); }
}

/* orbital rings around the globe */
.orbit-tilt {
  position: absolute;
  inset: -14%;
  display: grid;
  place-items: center;
  transform: rotate(-17deg);
}

.orbit-ring {
  position: absolute;
  width: 82%;
  height: 34%;
  border: 1px solid rgba(255, 107, 53, 0.22);
  border-radius: 50%;
  animation: ringSpin 30s linear infinite;
}

.orbit-ring.ring-2 {
  width: 100%;
  height: 26%;
  border-color: rgba(77, 217, 255, 0.16);
  animation: ringSpin 44s linear infinite reverse;
}

.orbiter {
  position: absolute;
  top: -3px;
  left: calc(50% - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mhs-gold);
  box-shadow: 0 0 10px 2px rgba(255, 183, 3, 0.75);
}

.ring-2 .orbiter {
  background: var(--mhs-plasma);
  box-shadow: 0 0 10px 2px rgba(77, 217, 255, 0.7);
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --- hero copy --- */
.hero-v2 .hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0;
  max-width: 1000px;
}

.hero-v2 .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.38);
  backdrop-filter: blur(6px);
  animation: fadeDown 0.9s var(--ease-out) both;
}

.hero-v2 .hero-badge .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mhs-gold);
  box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.6);
  animation: livePulse 2.2s ease-out infinite;
}

@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0.55); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 183, 3, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 183, 3, 0); }
}

.hero-v2 h1 {
  font-size: clamp(2.4rem, 7.2vw, 5.2rem);
  line-height: 1.02;
  margin: 1.4rem 0 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(100deg, #ffffff 12%, #ffd9c4 38%, var(--mhs-ember) 62%, #ffb37a 88%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleSweep 9s ease-in-out infinite;
}

@keyframes titleSweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* scramble-text span */
.scramble {
  display: inline-block;
}

.hero-v2 .hero-subtitle {
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  color: var(--mhs-cosmos);
  opacity: 0.82;
  max-width: 640px;
  margin: 0 auto 2.2rem;
  animation: fadeUp 1s var(--ease-out) 0.25s both;
}

.hero-v2 .hero-actions {
  animation: fadeUp 1s var(--ease-out) 0.45s both;
}

/* hero telemetry strip */
.hero-telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 3.2rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  animation: fadeUp 1s var(--ease-out) 0.65s both;
}

.tele-cell {
  padding: 0.95rem 0.6rem;
  background: rgba(8, 13, 26, 0.55);
  text-align: center;
}

.tele-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: var(--mhs-ember-lt);
  line-height: 1;
  letter-spacing: 0.02em;
}

.tele-label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(207, 228, 255, 0.5);
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(207, 228, 255, 0.45);
  text-decoration: none;
  pointer-events: none;
}

.scroll-cue .cue-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 107, 53, 0) 0%, var(--mhs-ember) 100%);
  position: relative;
  overflow: hidden;
}

.scroll-cue .cue-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 1px;
  height: 14px;
  background: #fff;
  animation: cueRun 2.1s var(--ease-io) infinite;
}

@keyframes cueRun {
  0%   { top: -14px; opacity: 0; }
  35%  { opacity: 1; }
  100% { top: 42px; opacity: 0; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   2. SCROLL REVEAL v2 (data-reveal)
   ============================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="up"]    { transform: translateY(38px); }
[data-reveal="down"]  { transform: translateY(-30px); }
[data-reveal="left"]  { transform: translateX(-42px); }
[data-reveal="right"] { transform: translateX(42px); }
[data-reveal="scale"] { transform: scale(0.9); }
[data-reveal="blur"]  { transform: translateY(22px); filter: blur(9px); }
[data-reveal="clip"]  { clip-path: inset(0 100% 0 0); transform: none; }
[data-reveal="line"]  { transform: scaleX(0); transform-origin: left center; }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
  filter: none;
  clip-path: inset(0 0 0 0);
}

/* ============================================
   3. TILT CARDS + CURSOR SPOTLIGHT
   ============================================ */
.tilt {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.tilt.hovering {
  transition: transform 0.12s linear, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tilt-spot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 160, 100, 0.16),
    rgba(255, 107, 53, 0.05) 45%,
    transparent 70%
  );
  z-index: 3;
}

.tilt.hovering .tilt-spot { opacity: 1; }

.tilt-content {
  transform: translateZ(28px);
  transition: transform 0.4s var(--ease-out);
}

/* ============================================
   4. COUNTERS
   ============================================ */
.counter {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   5. MARS MAP v2
   ============================================ */
.mars-map {
  position: relative;
}

.mars-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-route {
  fill: none;
  stroke-linecap: round;
}

.map-route.planned {
  stroke: rgba(255, 107, 53, 0.55);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  animation: dashFlow 2.4s linear infinite;
}

.map-route.active {
  stroke: url(#routeGrad);
  stroke-width: 3;
  stroke-dasharray: 16 10;
  animation: dashFlow 1.5s linear infinite;
  filter: drop-shadow(0 0 5px rgba(255, 183, 3, 0.6));
}

@keyframes dashFlow {
  to { stroke-dashoffset: -44; }
}

/* radar pulse rings on city nodes */
.radar-pulse {
  fill: none;
  stroke: rgba(255, 107, 53, 0.55);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: radarPing 3.4s var(--ease-out) infinite;
}

.radar-pulse.p2 { animation-delay: 1.1s; }
.radar-pulse.p3 { animation-delay: 2.2s; }

@keyframes radarPing {
  0%   { transform: scale(0.35); opacity: 0.85; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

.city-node {
  cursor: pointer;
  transition: transform 0.3s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}

.city-node:hover { transform: scale(1.16); }

.city-node .node-halo {
  fill: rgba(255, 107, 53, 0.22);
  transition: fill 0.3s ease;
}

.city-node:hover .node-halo { fill: rgba(255, 183, 3, 0.35); }

.city-node .node-core {
  transition: fill 0.3s ease;
}

.city-node:hover .node-core { fill: var(--mhs-gold); }

/* traffic markers travelling along routes */
.traffic {
  transition: transform 0.2s linear;
}

.traffic-body {
  fill: var(--mhs-gold);
  filter: drop-shadow(0 0 6px rgba(255, 183, 3, 0.9));
}

.traffic-body.plasma { fill: var(--mhs-plasma); filter: drop-shadow(0 0 6px rgba(77, 217, 255, 0.9)); }

.traffic-trail {
  stroke: rgba(255, 183, 3, 0.4);
  stroke-width: 2;
  stroke-linecap: round;
}

/* city detail panel */
.map-panel {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, rgba(22, 32, 58, 0.9), rgba(8, 13, 26, 0.9));
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: var(--radius-md);
  min-height: 92px;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.map-panel.swap {
  opacity: 0;
  transform: translateY(8px);
}

.map-panel .panel-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mhs-ember-lt);
  margin-bottom: 0.3rem;
}

.map-panel .panel-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.map-panel .panel-stats {
  display: flex;
  gap: 1.6rem;
  text-align: right;
}

.map-panel .pstat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mhs-plasma);
  line-height: 1;
}

.map-panel .pstat-label {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   6. JOURNEY (Earth → Mars scrub)
   ============================================ */
.journey-section {
  position: relative;
  height: 320vh;
  background: linear-gradient(180deg, var(--mhs-space-0), var(--mhs-space-1) 40%, var(--mhs-space-0));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0;
}

.journey-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: stretch;
  padding: 4.5rem 0 1.5rem;
  overflow: hidden;
}

.journey-wrap {
  width: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

/* The diagram takes whatever vertical space is left after the header
   and HUD, and letterboxes itself so nothing is ever clipped. */
.journey-svg {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 52vh;
  overflow: visible;
}

.journey-section .section-header {
  margin-bottom: 0.5rem;
}

.journey-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 2;
  stroke-dasharray: 4 8;
}

.journey-path-fill {
  fill: none;
  stroke: url(#journeyGrad);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.55));
  transition: stroke-dashoffset 0.1s linear;
}

.journey-craft {
  filter: drop-shadow(0 0 12px rgba(255, 183, 3, 0.75));
  transition: transform 0.1s linear;
}

.journey-craft .craft-body { fill: var(--mhs-gold); }
.journey-craft .craft-flame { fill: var(--mhs-plasma); }

.journey-node {
  cursor: pointer;
}

.journey-node .jn-dot {
  fill: rgba(10, 14, 26, 0.95);
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.6;
  transition: fill 0.3s ease, stroke 0.3s ease, r 0.3s var(--ease-out);
}

.journey-node.active .jn-dot {
  fill: var(--mhs-ember);
  stroke: #fff;
}

.journey-node.active .jn-label { fill: #fff; }

.journey-node .jn-label {
  fill: rgba(207, 228, 255, 0.55);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: fill 0.3s ease;
}

.journey-node .jn-sub {
  fill: rgba(207, 228, 255, 0.3);
  font-family: 'Roboto', sans-serif;
  font-size: 10px;
}

.journey-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 2.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hud-cell {
  background: rgba(8, 13, 26, 0.72);
  padding: 1rem 0.7rem;
  text-align: center;
  backdrop-filter: blur(6px);
}

.hud-value {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 700;
  color: var(--mhs-ember-lt);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hud-label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(207, 228, 255, 0.45);
}

/* ============================================
   7. DEPARTURES TICKER
   ============================================ */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 107, 53, 0.22);
  border-bottom: 1px solid rgba(255, 107, 53, 0.22);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.02));
  padding: 0.85rem 0;
}

.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: tickerRun 42s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(207, 228, 255, 0.72);
  white-space: nowrap;
}

.ticker-item .tk-id { color: var(--mhs-gold); }

.ticker-item .tk-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mhs-ember);
  box-shadow: 0 0 8px var(--mhs-ember);
}

.ticker-item .tk-status {
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-size: 0.6rem;
  border: 1px solid currentColor;
}

.tk-status.cruise  { color: var(--mhs-plasma); }
.tk-status.departed { color: var(--mhs-gold); }
.tk-status.docked  { color: #7ddc7d; }
.tk-status.hold    { color: #ff6b6b; }

@keyframes tickerRun {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   8. SCROLL PROGRESS + CUSTOM CURSOR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 2000;
  background: linear-gradient(90deg, var(--mhs-ember), var(--mhs-gold), var(--mhs-plasma));
  box-shadow: 0 0 10px rgba(255, 107, 53, 0.7);
  transition: width 0.08s linear;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2500;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot.live,
.cursor-ring.live { opacity: 1; }

.cursor-dot {
  width: 5px;
  height: 5px;
  background: var(--mhs-ember);
  box-shadow: 0 0 10px 2px rgba(255, 107, 53, 0.9);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 107, 53, 0.55);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), border-color 0.25s ease, opacity 0.25s ease;
}

.cursor-ring.grow {
  width: 54px;
  height: 54px;
  border-color: rgba(255, 183, 3, 0.85);
  opacity: 0.75;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   8.5 MOBILE NAV — compact panel + scrim
   ============================================ */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(4, 6, 12, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.nav-open .nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 769px) {
  .nav-scrim { display: none; }
}

/* ============================================
   9. VISION PILLARS v2
   ============================================ */
.vision-pillar {
  position: relative;
  overflow: hidden;
}

.vision-pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 160, 100, 0.13), transparent);
  transition: left 0.75s var(--ease-out);
}

.vision-pillar:hover::before { left: 130%; }

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.28);
  font-size: 1.5rem;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s ease;
}

.vision-pillar:hover .pillar-icon {
  transform: translateY(-4px) scale(1.08) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
}

/* ============================================
   10. SERVICE CARD IMAGE OVERLAY
   ============================================ */
.service-card { position: relative; overflow: hidden; }

.service-card .card-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 13, 26, 0.95) 0%, rgba(8, 13, 26, 0) 55%);
  pointer-events: none;
}

.card-speed-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--mhs-ember), var(--mhs-gold), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover .card-speed-line { transform: translateX(100%); }

/* ============================================
   11. BUTTON SHINE
   ============================================ */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -140%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transition: left 0.7s var(--ease-out);
}

.btn-shine:hover::after { left: 140%; }

/* ============================================
   12. BOOT LOADER (mission control boot)
   ============================================ */
.page-loader {
  background: var(--mhs-space-0);
}

.boot-lines {
  font-family: 'Roboto', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(77, 217, 255, 0.75);
  text-align: left;
  min-height: 84px;
  width: min(90vw, 320px);
}

.boot-lines div { opacity: 0; animation: bootIn 0.25s ease forwards; }
.boot-lines div span { color: #7ddc7d; }

@keyframes bootIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================
   13. RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .globe-stage {
    right: -16vw;
    bottom: -26vh;
    width: min(72vw, 560px);
    opacity: 0.85;
  }
}

@media (max-width: 768px) {
  .hero-v2 { min-height: 92vh; padding: 5.5rem 1rem 4rem; }
  .hero-telemetry { grid-template-columns: repeat(2, 1fr); }
  .journey-section { height: auto; }
  .journey-sticky { position: static; height: auto; padding: 4rem 0; overflow: visible; }
  .journey-wrap { display: block; }
  .journey-svg { height: auto; max-height: 46vh; }
  .journey-hud { grid-template-columns: repeat(2, 1fr); }
  .globe-stage { right: -30vw; bottom: -14vh; width: 96vw; opacity: 0.55; }
  .map-panel { grid-template-columns: 1fr; }
  .map-panel .panel-stats { text-align: left; gap: 1.4rem; }
}

@media (max-width: 480px) {
  .hero-telemetry { grid-template-columns: 1fr 1fr; }
  .tele-cell { padding: 0.75rem 0.4rem; }
  .journey-hud { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   14. REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .globe-surface { animation: none !important; }
  .ticker-track { animation: none !important; }
}
