/* Mars Village — rugged Mars presentation site. Frames, buttons and icons are cut from the game's UI atlas. */
:root {
  color-scheme: dark;
  --bg: #150b07;
  --bg-deep: #0e0705;
  --surface: #1d1310;
  --text: #f3e5d3;
  --muted: #c0a08a;
  --dim: #8a6c59;
  --orange: #ff7b2e;
  --amber: #ffb44d;
  --rust: #b0461e;
  --line: #4b2b1c;
  --hazard: repeating-linear-gradient(-45deg, #ffad1f 0 14px, #1a110c 14px 28px);
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, "Roboto Mono", "Courier New", monospace;
  --display: Bahnschrift, "DIN Condensed", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, Impact, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --rock: linear-gradient(#1a0d07e0, #140a06ed), url("assets/rock.jpg") 0 0 / 320px;
  --ridge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 64' preserveAspectRatio='none'%3E%3Cpath d='M0 64V34L22 26 40 32 66 18 86 26 116 10 132 20 156 16 186 28 208 12 236 20 254 12 280 26 310 16 332 22 358 8 376 20 406 14 430 26 458 14 478 22 504 8 534 24 558 16 580 26 600 34V64Z'/%3E%3C/svg%3E") 0 0 / 600px 100% repeat-x;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(ellipse at 50% 0, #2b130a 0, transparent 70%);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: var(--grain);
  opacity: .11;
  mix-blend-mode: overlay;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; border: 0; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
summary { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--orange); color: #160b06; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
p + p { margin-top: 16px; }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}
h1, h2 {
  padding-top: .12em;
  background: linear-gradient(180deg, #fff6e8 0%, #ead2b6 46%, #8f5f42 50%, #d7b08c 62%, #f6dcc0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 0 #000a) drop-shadow(0 0 22px #ff5a1430);
}
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(180deg, #ffe0b0 0%, #ff9b45 45%, #c8401a 52%, #ff8a3a 70%, #ffc27a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { font-size: clamp(38px, 5vw, 68px); }
h3 { font-size: 24px; color: #f7e3cc; }

.page-width { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 104px; position: relative; }
.lead { font-size: 20px; line-height: 1.55; color: #f6e2c9; }

.eyebrow, .section-label, .feature-number, .journey-step, .scene-toolbar, .scene-footer, .building-category,
.production-flow span, .transmission-head, .transmission-foot span, .mission-stats span,
.telemetry, .ticker, .stamp, .lang-switch, .motion-toggle {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: .14em;
}
.eyebrow { font-size: 11px; color: var(--amber); display: flex; align-items: center; gap: 12px; }
.section-label { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 11px; color: var(--muted); }
.section-label b { font-weight: 500; }
.section-label > span {
  color: #1a0d07;
  background: var(--orange);
  font-weight: 700;
  padding: 4px 9px;
  letter-spacing: 0;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: 0 0 16px #ff7b2e88;
}

.status-dot {
  width: 7px; height: 7px; flex: none;
  display: inline-block;
  position: relative;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
}
.status-dot::after {
  content: "";
  position: absolute; inset: -5px;
  border: 1px solid #ff7b2e88;
  border-radius: 50%;
  animation: signal 2.6s ease-out infinite;
}

.skip-link {
  position: fixed; top: 8px; left: 16px; z-index: 1000;
  padding: 10px 18px;
  background: var(--orange); color: #140a06;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* Game UI frames */
.panel {
  border: 26px solid transparent;
  border-image: url("assets/ui/panel.png") 26 fill / 26px stretch;
  filter: drop-shadow(0 18px 24px #0009);
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 76px;
  display: flex; align-items: center; gap: 28px;
  padding-inline: 40px;
  transition: background .3s, box-shadow .3s;
}
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--hazard);
  opacity: 0;
  transition: opacity .3s;
}
.site-header.scrolled {
  background: linear-gradient(#24160fef, #170d08f2), url("assets/rock.jpg") center / 320px;
  box-shadow: 0 10px 30px #000a;
}
.site-header.scrolled::after { opacity: .85; }
.brand { width: 104px; flex: none; align-self: flex-start; margin-top: 6px; position: relative; z-index: 101; transition: width .3s; }
.brand img { filter: drop-shadow(0 6px 10px #000c); }
.scrolled .brand { width: 76px; }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 10px 14px;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ead6c0;
  text-shadow: 0 1px 2px #000;
}
.main-nav a::before {
  content: "";
  position: absolute; inset: 4px 0;
  border: 1px solid transparent;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background .2s, border-color .2s;
  z-index: -1;
}
.main-nav a:hover::before, .main-nav a.is-active::before { background: #ff7b2e22; border-color: #ff7b2e88; }
.main-nav a.is-active { color: var(--amber); }

.lang-switch { display: flex; gap: 2px; font-size: 12px; }
.lang-switch a {
  min-width: 46px; height: 36px;
  display: grid; place-items: center;
  line-height: 1;
  border: 10px solid transparent;
  border-image: url("assets/ui/tab.png") 22 fill / 10px stretch;
  color: #d9c3ad;
  letter-spacing: .08em;
}
.lang-switch a[aria-current="true"] { border-image-source: url("assets/ui/tab-active.png"); color: #fff6ea; text-shadow: 0 1px 0 #6e1a04; font-weight: 700; }
.lang-switch a:hover { filter: brightness(1.25); }

.menu-toggle {
  display: none;
  width: 48px; height: 44px;
  background: none;
  border: 12px solid transparent;
  border-image: url("assets/ui/tab.png") 22 fill / 12px stretch;
  position: relative;
}
.menu-toggle span { position: absolute; left: 2px; right: 2px; height: 2px; background: var(--amber); transition: transform .25s, opacity .25s; }
.menu-toggle span:nth-child(1) { top: 3px; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 15px; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding-block: 150px 170px;
}
.hero-art {
  position: absolute; inset: -2%;
  z-index: -4;
  background:
    linear-gradient(90deg, #120704f2 0%, #1a0904c4 34%, #1a090433 62%, transparent 80%),
    linear-gradient(0deg, #150b07 0%, #150b0700 28%),
    linear-gradient(180deg, #0c0503cc 0%, transparent 22%),
    url("assets/hero.jpg") 62% 50% / cover;
  filter: saturate(1.15) contrast(1.05) sepia(.12);
  animation: landscape-drift 40s ease-in-out infinite alternate;
}
.hero-haze {
  position: absolute; inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 60% 30% at 20% 70%, #c8602a40, transparent 70%),
    radial-gradient(ellipse 50% 25% at 80% 55%, #e0804033, transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, #b04a1a55, transparent 70%);
  background-size: 200% 100%;
  animation: haze 26s linear infinite;
  mix-blend-mode: screen;
}
#mars-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.hero-scan {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(0deg, #0000 0 3px, #00000018 3px 4px);
}
.hero-content { position: relative; }
.hero h1 {
  margin-block: 26px 26px;
  font-size: clamp(54px, 8.4vw, 124px);
  line-height: .9;
  max-width: 14ch;
}
.hero-copy { max-width: 540px; font-size: 19px; color: #f1dcc6; text-shadow: 0 2px 8px #000c; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-stores { margin-top: 34px; }
.store-badge { display: block; transition: transform .2s, filter .2s; filter: drop-shadow(0 6px 14px #000c); }
.store-badge img { height: 56px; width: auto; }
.store-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 6px 14px #000c) drop-shadow(0 0 10px #ff7b2e88); }
.hero-platform { margin-top: 30px; display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.stamp {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid #ff7b2ecc;
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  transform: rotate(-3deg);
  box-shadow: inset 0 0 8px #ff7b2e55, 0 0 8px #ff7b2e44;
  -webkit-mask-image: var(--grain);
  mask-image: var(--grain);
  -webkit-mask-size: 120px;
  mask-size: 120px;
}

.telemetry {
  position: absolute; top: 120px; right: 40px;
  width: 250px;
  padding: 2px 4px;
  font-size: 11px;
  color: #ffd6aa;
  border: 22px solid transparent;
  border-image: url("assets/ui/panel.png") 26 fill / 22px stretch;
  filter: drop-shadow(0 10px 20px #000b);
}
.telemetry-head { display: flex; align-items: center; gap: 8px; margin: -6px 0 10px; color: var(--amber); }
.telemetry dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.telemetry dl div { border-bottom: 1px dashed #ff7b2e33; padding-bottom: 3px; }
.telemetry dt { color: var(--dim); font-size: 9px; }
.telemetry dd { margin: 0; font-size: 14px; color: #fff1df; text-shadow: 0 0 8px #ff8a3c77; font-variant-numeric: tabular-nums; }
.telemetry-warn { margin: 10px 0 -6px; color: #ffcf6a; font-size: 10px; animation: blink 1.6s steps(2, start) infinite; }

.ticker {
  position: absolute; left: 0; right: 0; bottom: 60px;
  overflow: hidden;
  padding: 9px 0;
  font-size: 11px;
  color: #ffcf9a;
  background: #0f0704d9;
  border-top: 4px solid transparent;
  border-image: var(--hazard) 4;
  white-space: nowrap;
}
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker 70s linear infinite; }

/* Rock ridges between sections: the mask tile is exactly 600px wide and starts and ends at the same height,
   and the rock texture ends on a tile edge so it continues seamlessly into the following section. */
.ridge {
  height: 64px;
  margin-top: -63px;
  position: relative; z-index: 2;
  background: linear-gradient(#5a2a14aa, #1a0d07e0 70%), url("assets/rock.jpg") 0 100% / 320px;
  -webkit-mask: var(--ridge);
  mask: var(--ridge);
}
.rock-bg, .resource-bar, .journey-section, .faq-section { background: var(--rock); }

/* Resource bar */
.resource-bar { position: relative; z-index: 3; padding: 4px 0 30px; }
.resource-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.resource {
  display: flex; align-items: center; gap: 12px;
  min-height: 70px;
  padding: 0 4px;
  border: 16px solid transparent;
  border-image: url("assets/ui/panel.png") 26 fill / 16px stretch;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 15px;
  line-height: 1.15;
  color: #f2dcc4;
}
.resource img { width: 36px; height: 36px; margin-block: -12px; flex: none; filter: drop-shadow(0 0 6px #ff9a4a55); }

/* Intro */
.intro-section::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(#150b07f2, #150b07f7), url("assets/regolith.jpg") center / 320px;
}
.intro-section { isolation: isolate; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: end; }
.intro-copy { color: var(--muted); border-left: 3px solid var(--rust); padding-left: 28px; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 72px; }
.feature-item { position: relative; padding: 18px 10px 16px; color: var(--muted); }
.feature-icon { width: 92px; height: 92px; margin: -60px 0 10px -6px; filter: drop-shadow(0 8px 10px #000c); transition: transform .3s; }
.feature-item:hover .feature-icon { transform: rotate(-6deg) scale(1.06); }
.feature-number { display: block; font-size: 10px; color: var(--orange); margin-bottom: 10px; }
.feature-item h3 { margin-bottom: 12px; }

/* Colony explorer */
.colony-section { background: linear-gradient(#150b07, #1b0e08); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 44px; }
.section-heading > p { max-width: 360px; color: var(--muted); }
.colony-explorer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: stretch; }
.colony-visual {
  position: relative;
  background: #0d0705;
  border: 2px solid #3a2216;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  box-shadow: inset 0 0 0 1px #ff7b2e22;
}
.scene-toolbar, .scene-footer {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 18px 10px 30px;
  font-size: 10px;
  color: var(--muted);
  background: linear-gradient(#2a1a12, #1a0f0a);
  border-bottom: 1px solid #ff7b2e33;
}
.scene-toolbar > span { display: flex; align-items: center; gap: 10px; }
.scene-footer { border-top: 1px solid #ff7b2e33; border-bottom: 0; padding: 8px 30px 8px 18px; }
.scene-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: #ff7b2e1c;
  border: 1px solid #ff7b2e77;
  color: var(--amber);
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
}
.scene-toggle svg { width: 14px; height: 14px; }
.scene-toggle:hover { background: #ff7b2e33; }

.colony-scene { aspect-ratio: 800 / 540; position: relative; isolation: isolate; overflow: hidden; }
.scene-ground {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 35%, #0d0705 85%),
    url("assets/regolith.jpg") center / 200px;
  transition: filter 1.2s;
}
.scene-stars {
  position: absolute; inset: 0; z-index: -2;
  opacity: 0;
  background:
    linear-gradient(#0a1420cc, #0a142099),
    radial-gradient(circle at 12% 13%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 9%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 45% 5%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 92% 30%, #fff 0 1px, transparent 1.5px);
  mix-blend-mode: multiply;
  transition: opacity 1.2s;
}
.colony-connections { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.tunnel-shadow path { stroke: #0b0604aa; stroke-width: 22; }
.tunnel-lines path { stroke: #c9b49a88; stroke-width: 10; }
.transport-light { stroke: var(--amber); stroke-width: 3; stroke-dasharray: 4 190; animation: transport 10s linear infinite; }

.building-hotspot { position: absolute; padding: 0; background: none; }
.building-hotspot img { position: relative; width: 100%; pointer-events: none; filter: drop-shadow(6px 14px 6px #0b050399); transition: transform .4s, filter .6s; }
.building-hotspot:hover img, .building-hotspot:focus-visible img { transform: translateY(-7px); filter: brightness(1.15) drop-shadow(6px 14px 6px #0b050399); }
.building-base { width: 42%; left: 28%; top: 16%; }
.building-energy { width: 29%; left: 18%; top: 6%; }
.building-water { width: 15%; left: 12%; top: 43%; }
.building-food { width: 30%; left: 54%; top: 57%; }
.building-home { width: 27%; left: 65%; top: 28%; }
.building-energy img { z-index: 1; }
.building-water img, .building-home img { z-index: 2; }
.building-base img { z-index: 3; }
.building-food img { z-index: 5; }
.scene-rover { position: absolute; width: 8%; left: 27%; top: 74%; z-index: 6; filter: drop-shadow(4px 7px 3px #0b0503aa); animation: rover-idle 8s ease-in-out infinite; }
.building-marker {
  position: absolute; bottom: 1%; left: 50%; z-index: 20;
  transform: translate(-50%, 50%);
  display: flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  white-space: nowrap;
  font: 700 10px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f0dcc6;
  background: #150b07e6;
  border: 1px solid #ff7b2e66;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background .2s, color .2s;
}
.building-marker i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.building-hotspot.is-active .building-marker { background: var(--orange); color: #1a0b05; }
.building-hotspot.is-active .building-marker i { background: #1a0b05; }
.is-night .scene-ground { filter: brightness(.32) saturate(.5) hue-rotate(-12deg); }
.is-night .scene-stars { opacity: 1; }
.is-night .building-hotspot img { filter: brightness(.6) saturate(.9) drop-shadow(0 0 12px #ff7b2e66); }
.is-night .building-hotspot:hover img { filter: brightness(.85) drop-shadow(0 0 12px #ff7b2e88); }
.is-night .tunnel-lines path { stroke: #6a7f8a77; }
.is-night .transport-light { stroke-width: 4; filter: drop-shadow(0 0 5px #ff8a42); }
.is-night .scene-rover { filter: brightness(.7) drop-shadow(0 0 8px #ffb44d66); }

.building-panel { display: flex; flex-direction: column; padding: 8px 6px; color: var(--muted); }
.building-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 24px; }
.building-tab {
  height: 40px;
  background: none;
  border: 10px solid transparent;
  border-image: url("assets/ui/tab.png") 22 fill / 10px stretch;
  font: 700 12px var(--mono);
  color: #cdb7a2;
  display: grid; place-items: center;
  padding: 0;
}
.building-tab.is-active { border-image-source: url("assets/ui/tab-active.png"); color: #fff6ea; }
.building-tab:hover { filter: brightness(1.25); }
.building-category { display: flex; justify-content: space-between; font-size: 10px; color: var(--orange); margin-bottom: 10px; }
.building-panel h3 { font-size: 34px; margin-bottom: 14px; }
.production-flow {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  margin-top: 22px;
  padding: 14px;
  background: #0c0604aa;
  border: 1px solid #ff7b2e33;
}
.production-flow span { display: block; font-size: 9px; color: var(--dim); }
.production-flow strong { color: #f8e4cc; font-family: var(--display); font-stretch: condensed; font-size: 18px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.flow-arrow { color: var(--orange); font-size: 20px !important; }
.day-night-note { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--amber); }

/* Journey */
.journey-track {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  position: relative;
  counter-reset: stage;
}
.journey-track::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 10px;
  background: linear-gradient(90deg, #ff7b2e 0%, #ffb44d 35%, #5a2a14 36%, #2a160d 100%);
  box-shadow: 0 0 14px #ff7b2e66;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 8px 100%);
}
.journey-track li {
  position: relative;
  margin-top: 26px;
  padding: 20px 18px 22px;
  background: linear-gradient(#2a1912, #190f0a);
  border: 1px solid #ff7b2e33;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  color: var(--muted);
  font-size: 14px;
}
.journey-track li::before {
  content: "";
  position: absolute; left: 18px; top: -26px;
  width: 2px; height: 26px;
  background: #ff7b2e88;
}
.journey-track li:nth-child(-n+2) { background: linear-gradient(#3a1d10, #1f110a); border-color: #ff7b2e88; }
.journey-step { display: block; font-size: 10px; color: var(--orange); margin-bottom: 10px; }
.journey-track h3 { font-size: 22px; margin-bottom: 8px; }

/* Mission */
.mission-section { background: radial-gradient(ellipse at 20% 40%, #3a1a0c 0, transparent 60%), var(--bg-deep); border-top: 6px solid transparent; border-image: var(--hazard) 6; }
.mission-layout { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: center; }
.transmission {
  padding: 14px;
  background: linear-gradient(145deg, #3a302b, #1d1714 40%, #2a221e);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  box-shadow: inset 0 0 0 1px #ffffff14;
  position: relative;
}
.transmission::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid #ff7b2e55;
  clip-path: inherit;
  pointer-events: none;
}
.transmission-head { display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--amber); padding: 4px 6px 12px; }
.freq { margin-left: auto; color: var(--dim); }
.rec { width: 9px; height: 9px; border-radius: 50%; background: #ff3a20; box-shadow: 0 0 10px #ff3a20; animation: blink 1.2s steps(2, start) infinite; }
.transmission-screen { position: relative; overflow: hidden; background: #000; border: 2px solid #0a0605; }
.transmission-screen img { width: 100%; filter: sepia(.35) saturate(1.2) contrast(1.08); animation: flicker 6s infinite; }
.crt {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, #0000 0 2px, #0006 2px 3px),
    radial-gradient(ellipse at center, transparent 55%, #000a 100%),
    linear-gradient(#ff8a3c14, #ff8a3c14);
}
.crt::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(transparent, #ffb07a1c, transparent);
  animation: scan 5s linear infinite;
}
.transmission-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 6px 4px; }
.transmission-foot strong { display: block; font-family: var(--display); font-stretch: condensed; font-size: 20px; letter-spacing: .06em; }
.transmission-foot span { font-size: 9px; color: var(--dim); }
.wave { width: 96px; color: var(--orange); filter: drop-shadow(0 0 4px #ff7b2e); animation: wave 1.8s ease-in-out infinite; }
.transmission-quote {
  margin: 10px 6px 4px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #ffd9b0;
  background: #0c0604;
  border-left: 3px solid var(--orange);
}
.mission-copy { color: var(--muted); }
.mission-copy h2 { margin-bottom: 26px; }
.mission-copy .lead { margin-bottom: 16px; }
.mission-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 34px 26px; }
.mission-stats div {
  padding: 4px;
  text-align: center;
  border: 16px solid transparent;
  border-image: url("assets/ui/panel.png") 26 fill / 16px stretch;
}
.mission-stats strong { display: block; margin-top: -6px; font-family: var(--display); font-stretch: condensed; font-size: 46px; line-height: 1; color: var(--amber); text-shadow: 0 0 18px #ff7b2e88; }
.mission-stats span { font-size: 9px; color: var(--muted); }
.mission-after { font-size: 15px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.faq-heading { position: sticky; top: 110px; color: var(--muted); }
.faq-heading h2 { margin-bottom: 20px; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  border: 20px solid transparent;
  border-image: url("assets/ui/panel.png") 26 fill / 20px stretch;
  color: var(--muted);
}
.faq-list summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  cursor: pointer;
  margin: -6px 0;
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #f4dfc8;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  font-family: var(--mono);
  color: var(--amber);
  border: 1px solid #ff7b2e77;
  transition: transform .25s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 18px; padding-bottom: 4px; }
.faq-list a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* Closing */
.closing-section {
  position: relative;
  overflow: hidden;
  padding-block: 150px 130px;
  text-align: center;
  isolation: isolate;
  background:
    linear-gradient(180deg, #150b07 0%, #150b0733 30%, #150b0799 75%, #0e0705 100%),
    url("assets/hero.jpg") 50% 22% / cover;
}
.closing-section::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 60%, #150b07dd 0, #150b0788 45%, transparent 75%);
}
.closing-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.closing-inner .eyebrow { justify-content: center; }
.closing-inner h2 { font-size: clamp(42px, 6vw, 84px); }
.closing-inner > p { max-width: 520px; color: #ead2b8; font-size: 18px; text-shadow: 0 2px 6px #000; }

/* Footer */
.site-footer { background: linear-gradient(#1c120d, #0d0705); border-top: 6px solid transparent; border-image: var(--hazard) 6; padding-block: 34px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 32px; }
.footer-brand { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 26px; letter-spacing: .08em; color: var(--text); }
.footer-brand span { color: var(--orange); }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--muted); border-bottom: 1px solid #ff7b2e55; }
.footer-links a:hover { color: var(--amber); }
.motion-toggle { display: flex; align-items: center; gap: 8px; background: none; font-size: 10px; color: var(--muted); padding: 8px 0; }
.motion-icon { color: var(--orange); }
.footer-note { grid-column: 1 / -1; font-size: 12px; color: var(--dim); }

/* Privacy page */
.legal-page .site-header { position: sticky; top: 0; }
.legal-lang { margin-left: auto; }
.legal { padding-block: 70px 100px; max-width: 860px; }
html:not(.js) .legal-doc + .legal-doc { margin-top: 90px; padding-top: 60px; border-top: 6px solid transparent; border-image: var(--hazard) 6; }
.legal-doc[hidden] { display: none; }
.legal-doc h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1; margin-bottom: 14px; overflow-wrap: break-word; hyphens: auto; }
.legal-doc h2 { font-size: clamp(24px, 3vw, 32px); margin: 44px 0 14px; filter: drop-shadow(0 2px 0 #000a); }
.legal-doc h3 { font-size: 19px; margin: 26px 0 8px; color: var(--amber); }
.legal-doc p, .legal-doc address { color: #e2cdb8; font-style: normal; }
.legal-doc a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal-doc code { font-family: var(--mono); font-size: .9em; color: #ffd6aa; background: #0c0604; padding: 1px 6px; }
.legal-doc strong { color: #fff1df; }
.legal-date { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 26px; }
.legal-note { font-size: 14px; padding: 10px 14px; border-left: 3px solid var(--amber); background: #0c0604aa; margin-bottom: 18px; }
.legal-summary { margin-top: 30px; padding: 10px 8px; border: 26px solid transparent; border-image: url("assets/ui/panel.png") 26 fill / 26px stretch; }
.legal-summary h2 { margin: -6px 0 12px; }
.legal-page .site-footer .footer-inner { grid-template-columns: auto 1fr; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Animations */
@keyframes signal { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes landscape-drift { from { transform: scale(1.02) translateX(.5%); } to { transform: scale(1.08) translateX(-1%); } }
@keyframes haze { from { background-position: 0 0; } to { background-position: -200% 0; } }
@keyframes ticker { to { transform: translateX(-100%); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes transport { to { stroke-dashoffset: -388; } }
@keyframes rover-idle { 0%, 25%, 100% { transform: translate(0, 0); } 50%, 70% { transform: translate(14%, 7%); } }
@keyframes wave { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
@keyframes flicker { 0%, 96%, 100% { opacity: 1; } 97% { opacity: .82; } 98% { opacity: 1; } 99% { opacity: .9; } }

html.motion-paused *, html.motion-paused *::before, html.motion-paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.motion-enabled) { scroll-behavior: auto; }
  html:not(.motion-enabled) *, html:not(.motion-enabled) *::before, html:not(.motion-enabled) *::after { animation-play-state: paused !important; }
  .js .reveal { transition: none; }
}

/* Responsive */
@media (max-width: 1200px) {
  .telemetry { display: none; }
  .colony-explorer { grid-template-columns: 1fr; }
  .building-panel { max-width: none; }
  .mission-layout { grid-template-columns: 360px 1fr; gap: 48px; }
}
@media (max-width: 900px) {
  .page-width { width: calc(100% - 48px); }
  .section-space { padding-block: 80px; }
  .site-header { padding-inline: 20px; gap: 12px; height: 66px; }
  .brand { width: 80px; }
  .scrolled .brand { width: 64px; }
  .lang-switch { margin-left: auto; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 12px; right: 12px;
    flex-direction: column; gap: 0;
    padding: 8px;
    background: linear-gradient(#24160ff7, #170d08fa), url("assets/rock.jpg") center / 320px;
    border: 1px solid #ff7b2e55;
    box-shadow: 0 20px 40px #000c;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav a { padding: 14px; font-size: 18px; }
  .resource-inner { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-list { grid-template-columns: 1fr; gap: 50px; margin-top: 76px; }
  .section-heading { flex-direction: column; align-items: start; gap: 18px; }
  .journey-track { grid-template-columns: 1fr; gap: 10px; padding-left: 22px; }
  .journey-track::before { top: 0; bottom: 0; left: 0; right: auto; width: 8px; height: auto; background: linear-gradient(180deg, #ff7b2e 0%, #ffb44d 35%, #5a2a14 36%, #2a160d 100%); clip-path: none; }
  .journey-track li { margin-top: 0; }
  .journey-track li::before { left: -14px; top: 26px; width: 14px; height: 2px; }
  .mission-layout, .faq-layout { grid-template-columns: 1fr; gap: 48px; }
  .transmission { max-width: 440px; }
  .faq-heading { position: static; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { padding-inline: 12px; }
  .brand { width: 66px; }
  .lang-switch a { min-width: 38px; height: 32px; }
  .hero { padding-block: 120px 160px; min-height: 640px; }
  .hero-copy { font-size: 17px; }
  .store-badge img { height: 48px; }
  .store-badges { gap: 10px; }
  .resource-inner { grid-template-columns: 1fr; gap: 6px; }
  .resource { min-height: 60px; }
  .building-marker { font-size: 7px; padding: 3px 5px; gap: 4px; }
  .building-panel h3 { font-size: 28px; }
  .scene-toolbar, .scene-footer { padding-inline: 14px; font-size: 8px; }
  .mission-stats strong { font-size: 34px; }
}
@media (max-width: 380px) {
  .lang-switch a { min-width: 32px; font-size: 11px; }
  .menu-toggle { width: 42px; }
}
