:root {
  --void: #02050b;
  --space: #060b14;
  --panel: rgba(6, 12, 22, .66);
  --panel-solid: #09111e;
  --line: rgba(177, 217, 235, .2);
  --line-hot: rgba(94, 232, 255, .5);
  --paper: #eaf3f6;
  --muted: #91a4b2;
  --acid: #c9ff57;
  --cyan: #5ee8ff;
  --orange: #ff7443;
  --display-font: "Space Grotesk", var(--body-font), sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  background: var(--void);
  scrollbar-color: var(--cyan) var(--void);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--void);
  color: var(--paper);
}

body.is-loading { overflow: hidden; }

::selection { background: var(--acid); color: #07100a; }

a, button { -webkit-tap-highlight-color: transparent; }

.webgl-stage,
.webgl-vignette,
.grain,
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.webgl-stage { z-index: 0; background: #02050b; }

#world {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  filter: saturate(.9) contrast(1.08);
  transition: opacity 1.4s cubic-bezier(.2,.7,.2,1);
}

.is-ready #world { opacity: 1; }

.webgl-vignette {
  background:
    radial-gradient(circle at 52% 45%, transparent 18%, rgba(1, 4, 10, .12) 45%, rgba(1, 3, 8, .74) 100%),
    linear-gradient(90deg, rgba(2,5,11,.54), transparent 24%, transparent 76%, rgba(2,5,11,.5));
}

.grain {
  z-index: 50;
  opacity: .11;
  background-image: repeating-radial-gradient(circle at 27% 31%, rgba(255,255,255,.42) 0 1px, transparent 1px 3px);
  background-size: 9px 11px;
  animation: grain-shift .22s steps(2) infinite;
}

.scanline {
  z-index: 49;
  opacity: .14;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
}

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

.experience-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  background: var(--void);
  color: var(--paper);
}

.loader-mark {
  font-family: var(--display-font);
  font-size: clamp(52px, 8vw, 108px);
  font-weight: 300;
  letter-spacing: -.08em;
}

.loader-mark span { color: var(--acid); }

.loader-track {
  width: min(340px, 62vw);
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.14);
}

.loader-track i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--acid));
  box-shadow: 0 0 14px var(--cyan);
}

.experience-loader p {
  margin: 0;
  color: var(--muted);
  font: 10px/1.4 "DM Mono", monospace;
  letter-spacing: .22em;
}

.experience-loader p span { display: inline-block; width: 3ch; color: var(--cyan); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 76px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(195, 225, 238, .12);
  background: linear-gradient(180deg, rgba(2,5,11,.86), rgba(2,5,11,.18));
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--paper);
  font-family: var(--display-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
}

.brand span { color: var(--acid); }

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 42px);
}

.site-header nav a {
  position: relative;
  color: rgba(234,243,246,.72);
  font: 9px/1 "DM Mono", monospace;
  letter-spacing: .16em;
  text-decoration: none;
  transition: color .25s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--acid);
  transition: transform .3s ease;
}

.site-header nav a:hover { color: #fff; }
.site-header nav a:hover::after { transform: scaleX(1); }

.site-header nav a.locale {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(195,225,238,.18);
}

.menu-toggle { display: none; }

.scroll-progress {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,.08);
}

.scroll-progress i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.scene-hud {
  position: fixed;
  z-index: 45;
  right: 4vw;
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  color: var(--paper);
}

.scene-hud div { display: grid; gap: 5px; }
.scene-hud span { color: var(--muted); font: 8px/1 "DM Mono", monospace; letter-spacing: .18em; }
.scene-hud b { max-width: 220px; overflow: hidden; font: 9px/1.2 "DM Mono", monospace; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.scene-hud .online { color: var(--acid); }
.scene-hud .online::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

.cursor-reticle {
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(94,232,255,.72);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: width .22s ease, height .22s ease, margin .22s ease, border-color .22s ease, opacity .2s ease;
}

.has-pointer .cursor-reticle { opacity: 1; }
.cursor-reticle::before,
.cursor-reticle::after { content: ""; position: absolute; background: var(--cyan); }
.cursor-reticle::before { top: 50%; left: -5px; width: 10px; height: 1px; }
.cursor-reticle::after { top: -5px; left: 50%; width: 1px; height: 10px; }
.cursor-reticle i { position: absolute; inset: 50% auto auto 50%; width: 3px; height: 3px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.cursor-reticle.is-active { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--acid); }

@media (pointer: fine) {
  body, a, button { cursor: none !important; }
}

main, footer { position: relative; z-index: 2; }

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 128px 7vw 80px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2,5,11,.78) 0, rgba(2,5,11,.38) 44%, rgba(2,5,11,.03) 75%),
    linear-gradient(180deg, transparent 60%, rgba(2,5,11,.72));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 76px 4vw 32px;
  border: 1px solid rgba(190,226,238,.14);
  pointer-events: none;
}

.hero::after {
  content: "MARIUS HILLS / LUNAR LAVA TUBE 14.4°N 303.3°E";
  position: absolute;
  top: 50%;
  right: calc(4vw - 6px);
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  color: rgba(199,225,235,.45);
  font: 8px/1 "DM Mono", monospace;
  letter-spacing: .22em;
}

.stars, .moon-disc, .hero-grid { display: none; }

.hero-copy {
  position: relative;
  z-index: 3;
  width: min(890px, 76vw);
  margin: 0;
}

.kicker,
.section-id {
  color: var(--acid);
  font: 10px/1.6 "DM Mono", monospace;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.hero-copy .kicker { margin: 0 0 22px; }

.hero h1 {
  margin: 0;
  color: var(--paper);
  font-family: var(--display-font);
  font-size: clamp(66px, 10.5vw, 172px);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -.075em;
  text-wrap: balance;
  text-shadow: 0 0 55px rgba(79, 221, 255, .14);
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(207,238,245,.76);
}

.hero-copy > p:last-of-type {
  width: min(490px, 100%);
  margin: 42px 0 0;
  color: #b8c6ce;
  font-size: 14px;
  line-height: 2;
}

.circle-link {
  position: relative;
  display: grid;
  width: 124px;
  height: 124px;
  margin-top: 34px;
  padding: 26px;
  place-items: center;
  border: 1px solid rgba(201,255,87,.58);
  border-radius: 50%;
  background: rgba(4,10,17,.4);
  color: var(--paper);
  font: 9px/1.5 "DM Mono", monospace;
  letter-spacing: .1em;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: color .35s ease, background .35s ease, transform .35s ease;
}

.circle-link::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(201,255,87,.28);
  border-radius: 50%;
  transition: transform .6s ease;
}

.circle-link:hover { transform: scale(1.06); background: var(--acid); color: #07110d; }
.circle-link:hover::before { transform: rotate(90deg); border-color: rgba(7,17,13,.4); }

.hero-data {
  position: absolute;
  bottom: 46px;
  left: 7vw;
  display: flex;
  gap: 24px;
  color: rgba(208,230,238,.55);
  font: 8px/1 "DM Mono", monospace;
  letter-spacing: .18em;
}

.resident-signal {
  position: absolute;
  right: 7vw;
  bottom: 72px;
  display: grid;
  gap: 5px;
  padding-left: 16px;
  border-left: 1px solid var(--acid);
  text-align: left;
}

.resident-signal span, .resident-signal small { color: var(--muted); font: 8px/1.3 "DM Mono", monospace; letter-spacing: .13em; }
.resident-signal strong { color: var(--paper); font: 300 clamp(24px, 3vw, 42px)/1 var(--display-font); letter-spacing: -.04em; }
.hero-side { display: none; }

.section, .architecture, .network, .closing {
  position: relative;
  min-height: 100svh;
  padding: clamp(110px, 12vw, 180px) 7vw;
  isolation: isolate;
}

.section::before, .architecture::before, .network::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,6,12,.88), rgba(3,8,15,.62) 43%, rgba(3,8,15,.12) 72%, transparent);
  opacity: .86;
  transition: opacity .8s ease;
}

.section:nth-of-type(even)::before, .network::before {
  background: linear-gradient(270deg, rgba(2,6,12,.9), rgba(3,8,15,.62) 43%, rgba(3,8,15,.12) 72%, transparent);
}

.is-scene-active::before { opacity: .64; }

.section-id { display: inline-flex; gap: 12px; align-items: center; }
.section-id::before { content: ""; width: 32px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }

.title-row,
.life-head,
.network-top,
.build-head,
.dossier-head,
.deep-dives-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  margin-top: 42px;
}

.title-row h2,
.life-head h2,
.arch-copy h2,
.network-top h2,
.build-head h2,
.dossier-head h2,
.deep-dives-head h2,
.closing h2 {
  margin: 0;
  color: var(--paper);
  font-family: var(--display-font);
  font-size: clamp(50px, 6.7vw, 112px);
  font-weight: 300;
  line-height: .94;
  letter-spacing: -.06em;
}

h2 em { color: var(--acid); font-style: normal; }

.title-row > p, .life-head > p, .network-top > p, .build-head > p, .dossier-head > p, .deep-dives-head > p, .arch-copy > p {
  margin: 0;
  color: #aab9c3;
  font-size: 14px;
  line-height: 2;
}

.city-map,
.cutaway,
.route,
.build-sequence {
  border: 1px solid rgba(171,218,235,.18);
  background: rgba(4,11,20,.48);
  box-shadow: inset 0 0 80px rgba(18,80,101,.08), 0 30px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}

.city-map { margin-top: 72px; }

.city-stories, .system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 1px;
  background: rgba(166,215,231,.17);
  border: 1px solid rgba(166,215,231,.17);
}

.city-stories article,
.system-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 30px;
  background: rgba(5,12,21,.78);
  backdrop-filter: blur(14px);
  transition: background .35s ease, transform .35s ease;
}

.city-stories article:hover, .system-card:hover { z-index: 2; transform: translateY(-6px); background: rgba(10,26,38,.94); }
.city-stories article::after, .system-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 30px; height: 30px; border-right: 1px solid var(--cyan); border-bottom: 1px solid var(--cyan); opacity: .5; }
.city-stories article > span, .system-card > p { color: var(--cyan); font: 9px/1.4 "DM Mono", monospace; letter-spacing: .15em; }
.city-stories h3, .system-card h3 { margin: 32px 0 14px; color: var(--paper); font: 400 25px/1.25 var(--display-font); letter-spacing: -.03em; }
.city-stories p { color: var(--muted); font-size: 13px; line-height: 1.85; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(2,8,14,.65);
}

.stat-row > div { padding: 30px; border-right: 1px solid var(--line); }
.stat-row strong { display: block; color: var(--acid); font: 300 clamp(30px, 4vw, 62px)/1 var(--display-font); }
.stat-row span { color: var(--muted); font: 9px/1.5 "DM Mono", monospace; letter-spacing: .1em; }

.day-timeline { margin-top: 80px; border-top: 1px solid var(--line-hot); }
.day-timeline article { min-height: 320px; background: rgba(5,12,21,.7); backdrop-filter: blur(12px); transition: background .3s ease; }
.day-timeline article:hover { background: rgba(9,27,38,.9); }
.day-timeline time { color: var(--acid); }

.architecture {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 6vw;
  align-items: center;
}

.arch-copy {
  padding: 48px;
  border: 1px solid var(--line);
  background: rgba(4,11,20,.72);
  backdrop-filter: blur(15px);
}

.arch-copy h2 { margin: 38px 0; font-size: clamp(48px, 5.6vw, 92px); }
.arch-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.arch-tags span { padding: 9px 12px; border: 1px solid rgba(94,232,255,.25); color: var(--cyan); font: 8px/1 "DM Mono", monospace; letter-spacing: .1em; }
.cutaway { min-height: 600px; }

.system-grid { grid-template-columns: repeat(4, 1fr); margin-top: 72px; }
.system-card { min-height: 410px; }
.system-card small { color: var(--muted); font-family: "DM Mono", monospace; }

.network { min-height: 115svh; }
.network-top { position: relative; z-index: 2; }
.route { margin-top: 90px; }

.construction .build-sequence { margin-top: 76px; }
.build-stage { background: rgba(4,11,20,.74); }

.dossier-list {
  margin-top: 82px;
  border-top: 1px solid var(--line-hot);
  background: rgba(4,10,18,.66);
  backdrop-filter: blur(16px);
}

.dossier-list article { border-color: var(--line); }
.dossier-list article:hover { background: rgba(13,31,43,.72); }
.dossier-no { color: var(--cyan); }

.deep-dives {
  overflow: hidden;
  background: transparent;
  color: var(--paper);
}

.deep-dives::before {
  background:
    linear-gradient(90deg, rgba(2,6,12,.94), rgba(3,8,15,.72) 62%, rgba(3,8,15,.3)),
    linear-gradient(rgba(94,232,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,232,255,.035) 1px, transparent 1px);
  background-size: auto, 80px 80px, 80px 80px;
}

.deep-dives-head { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); }
.deep-dives-head h2 { font-size: clamp(50px, 6.7vw, 112px); font-weight: 300; line-height: .94; }
.deep-dive-list { margin-top: 82px; border-color: var(--line-hot); }
.deep-dive-topic { grid-template-columns: 72px minmax(230px,.8fr) minmax(360px,1.25fr) minmax(190px,.55fr); border-color: var(--line); transition: background .35s ease; }
.deep-dive-topic:hover { background: rgba(8,25,35,.6); }
.deep-dive-number { color: var(--acid); }
.deep-dive-topic h3 { color: var(--paper); font-family: var(--display-font); font-weight: 400; }
.deep-dive-copy p { color: #aebdc7; }
.deep-dive-facts { background: rgba(94,232,255,.18); }
.deep-dive-facts div { background: rgba(6,17,28,.9); }
.deep-dive-facts dd { color: var(--cyan); }

.closing {
  display: grid;
  min-height: 92svh;
  place-content: center;
  justify-items: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(22,88,104,.18), rgba(2,5,11,.78) 54%, #02050b 86%);
}

.closing h2 { max-width: 1100px; margin: 28px auto 0; font-size: clamp(56px, 9vw, 142px); }
.closing .circle-link { margin-top: 52px; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 32px 4vw;
  border-top: 1px solid var(--line);
  background: #02050b;
  color: var(--muted);
  font: 8px/1 "DM Mono", monospace;
  letter-spacing: .15em;
}

footer a { color: var(--acid); text-decoration: none; }
footer .footer-contact { color: #aebac3; letter-spacing: .06em; text-transform: none; }
footer .footer-contact:hover, footer .footer-contact:focus-visible { color: #ffffff; text-decoration: underline; text-underline-offset: 4px; }

.webgl-unavailable .webgl-stage {
  background:
    radial-gradient(circle at 60% 35%, rgba(24,94,111,.35), transparent 28%),
    linear-gradient(145deg, #02050b, #061522 55%, #02050b);
}

@media (max-width: 1100px) {
  .scene-hud { gap: 18px; }
  .scene-hud div:nth-child(2) { display: none; }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .architecture { grid-template-columns: 1fr; }
  .arch-copy { width: min(680px, 100%); }
  .cutaway { width: 100%; min-height: 520px; }
  .deep-dive-topic { grid-template-columns: 54px minmax(220px,.75fr) minmax(340px,1.25fr); }
  .deep-dive-facts { grid-column: 2 / -1; grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 800px) {
  .site-header { min-height: 66px; padding: 0 6vw; }
  .menu-toggle { display: grid; width: 40px; height: 40px; padding: 12px 8px; place-content: center; gap: 7px; border: 1px solid var(--line); background: rgba(3,9,16,.75); }
  .menu-toggle i { display: block; width: 20px; height: 1px; background: var(--paper); }
  .site-header nav { position: absolute; top: 66px; right: 6vw; display: none; width: min(280px, 88vw); padding: 24px; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--line); background: rgba(2,7,13,.96); backdrop-filter: blur(18px); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .site-header nav a.locale { display: inline-grid; width: 100%; height: auto; place-items: start; border: 0; }
  .scene-hud { right: 6vw; bottom: 18px; grid-template-columns: 1fr; }
  .scene-hud div:nth-child(3) { display: none; }
  .hero { min-height: 100svh; padding: 116px 7vw 72px; }
  .hero::before { inset: 66px 4vw 18px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(58px, 18vw, 100px); line-height: .84; }
  .hero-copy > p:last-of-type { margin-top: 30px; font-size: 13px; }
  .circle-link { width: 104px; height: 104px; padding: 20px; }
  .hero-data { display: none; }
  .resident-signal { right: 7vw; bottom: 48px; }
  .section, .architecture, .network, .closing { min-height: auto; padding: 108px 7vw; }
  .section::before, .architecture::before, .network::before, .section:nth-of-type(even)::before { background: linear-gradient(180deg, rgba(2,6,12,.91), rgba(3,8,15,.62) 74%, rgba(3,8,15,.22)); }
  .title-row, .life-head, .network-top, .build-head, .dossier-head, .deep-dives-head { grid-template-columns: 1fr; gap: 28px; }
  .title-row h2, .life-head h2, .arch-copy h2, .network-top h2, .build-head h2, .dossier-head h2, .deep-dives-head h2 { font-size: clamp(44px, 13vw, 76px); }
  .city-stories, .system-grid { grid-template-columns: 1fr; }
  .city-stories article, .system-card { min-height: 250px; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .stat-row > div { padding: 22px 16px; }
  .arch-copy { padding: 32px 24px; }
  .cutaway { min-height: 420px; }
  .deep-dive-topic { grid-template-columns: 42px 1fr; gap: 22px; padding: 42px 0; }
  .deep-dive-copy, .deep-dive-facts { grid-column: 2; }
  .deep-dive-facts { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .grain { animation: none; }
}



