@font-face {
  font-family: Tektur;
  src: url("assets/tektur.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("assets/exo2.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #faf3df;
  --muted: #b9ccca;
  --accent: #ddfc72;
  --bio: #4ff4d8;
  --gold: #e6ca95;
  --brass: #b59a65;
  --serif: Georgia, "Times New Roman", serif;
  --glass: #0b2020;
  --surface: #0a1b1c;
  --surface-deep: #051213;
  --background: #071617;
  --line: #3e605d;
  --frame: #314f4c;
  --display: Tektur, "Arial Narrow", sans-serif;
  --gutter: clamp(20px, 5.2vw, 96px);
  --header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-color: #466a66 #051213; scrollbar-width: thin; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Exo 2", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.58;
  caret-color: var(--accent);
  overflow-x: clip;
}
::selection { background: #e4ca9236; color: #fff6dc; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #051213; }
::-webkit-scrollbar-thumb { background: #2c4c4a; border: 2px solid #051213; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #b59a65; }

img { display: block; max-width: 100%; height: auto; }
p, h1, h2, h3, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
section[id] { scroll-margin-top: 28px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(100% - var(--gutter) * 2, 1380px); margin-inline: auto; }
.skip { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 10px 16px; background: var(--accent); color: var(--background); font-weight: 700; clip-path: inset(50%); }
.skip:focus { clip-path: none; }

/* Header */
.top {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header);
  gap: 20px;
  padding: 10px clamp(20px, 3.5vw, 56px);
  background: linear-gradient(100deg, #061212 20%, #0a2929 74%, #091a1a);
  border-bottom: 1px solid #41656380;
}
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 11px; min-height: 44px; white-space: nowrap; color: var(--ink); font: 750 17px/1.2 var(--display); text-transform: uppercase; }
.brand img { border-radius: 50%; flex: none; }
.brand small { display: block; margin-top: 5px; color: var(--accent); font-family: "Exo 2", sans-serif; font-weight: 600; font-size: 11px; line-height: 1.2; letter-spacing: .24em; }
.top__nav { display: flex; gap: clamp(16px, 3.2vw, 44px); }
.top__nav a { display: inline-grid; place-items: center; min-height: 44px; font-weight: 500; font-size: 15px; transition: color .2s; }
.top__nav a:hover, .footer__link:hover { color: var(--accent); }
.top__play { justify-self: end; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 660;
  font-size: 17px;
  line-height: 1.15;
  white-space: nowrap;
  transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.button--primary {
  border-color: #ddc692;
  background: linear-gradient(168deg, #f7e5b8 0%, #e4ca92 59%, #c3a068 100%);
  box-shadow: inset 0 1px #fff0c7b8, inset 0 -2px #00000038, 0 4px 10px #00000059;
  color: #161812;
}
.button--primary:hover { background: linear-gradient(168deg, #fff0c8, #efd79b 68%, #d1ac71); }
.button--primary:active { box-shadow: inset 0 2px 4px #00000052; }
.button--line { background: #07161788; border-color: #c9d6c794; color: var(--ink); }
.button--line:hover { background: #163331; border-color: var(--gold); color: #fff6dc; }
.top .button { min-height: 44px; font-size: 15px; padding-inline: 18px; }

/* Hero */
.hero {
  min-height: max(660px, 100svh);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #041518;
}
.landing .top {
  position: absolute;
  inset: 14px 14px auto;
  min-height: 66px;
  padding-inline: clamp(18px, 3vw, 48px);
  border: 0;
  background: transparent;
}
.landing .top .button { border-color: #c6af7e85; color: #f4e6c9; }
.landing .top__nav a { color: #e6dfca; }
.landing .top__nav a:hover { color: #f8d394; }
.hero__art, .hero__art img, .hero::before, .hero__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art { z-index: -3; }
.hero__art img { object-fit: cover; object-position: 66% 46%; }
.hero__particles { z-index: -2; pointer-events: none; opacity: .7; }
.hero::before {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #020c0ed9 0%, #03111482 44%, transparent 68%),
              linear-gradient(0deg, #071617 0%, transparent 28%),
              linear-gradient(180deg, #020e10aa, transparent 22%);
}
.hero::after {
  position: absolute;
  inset: 13px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid #c1aa714d;
  border-radius: 5px;
  content: "";
}
.hero__body { padding-block: 112px 116px; }
.hero h1 { font-family: var(--display); font-weight: 760; font-size: clamp(48px, 6.8vw, 96px); line-height: .93; letter-spacing: -.02em; text-transform: uppercase; max-width: 11ch; }
.hero h1 span { display: block; margin-top: .38em; color: #edce93; font-size: clamp(15px, 2vw, 28px); font-weight: 550; letter-spacing: .38em; }
.hero__lead { margin-top: 26px; max-width: min(44ch, 50%); font: 400 clamp(18px, 1.48vw, 22px)/1.46 var(--serif); color: #eee6cc; text-shadow: 0 2px 16px #021112; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__actions .button--line { padding-inline: 20px 24px; border-color: #d6bb8194; color: #f6e6c6; }
.play-icon { font-size: 1.24em; }
.hero__note { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; color: var(--muted); font-size: 14px; }
.hero__note-link { color: var(--gold); text-decoration: underline; text-decoration-color: #e6ca9566; text-underline-offset: .25em; transition: color .2s; }
.hero__note-link:hover { color: var(--accent); }
.signal { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); outline: 1px solid #ddfc7266; outline-offset: 2px; }
.hero__rail {
  position: absolute;
  inset: auto 0 24px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(20px, 128px) auto minmax(20px, 128px);
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 3px 15px;
  min-height: 46px;
  width: min(90%, 440px);
  color: #e9d2a6;
  font: 400 15px/1.2 var(--serif);
  letter-spacing: .07em;
}
.hero__rail::before, .hero__rail::after { content: ""; width: 100%; height: 1px; }
.hero__rail::before { background: linear-gradient(90deg, transparent, #c4a779); }
.hero__rail::after { grid-row: 1; grid-column: 3; background: linear-gradient(90deg, #c4a779, transparent); }
.hero__rail .icon { grid-column: 2; grid-row: 2; }
.hero__rail:hover { color: #fff1d2; }

/* Sections & headings */
.section { padding-block: clamp(64px, 7.8vw, 124px); }
.section__head { margin-bottom: clamp(28px, 3.6vw, 48px); }
.section__head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section h2, .start h2 {
  font: 710 clamp(34px, 4.6vw, 68px)/1.03 var(--display);
  letter-spacing: -.036em;
  text-wrap: balance;
}
.section__lead { margin-top: 14px; max-width: 62ch; color: #c7dcd6; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.56; }

/* Matryoshka showcase */
.nesting {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .92fr);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #0d2223 0%, #071718 65%, #051112 100%);
  box-shadow: 0 4px 10px #00000055;
}
.nesting__stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}
.nesting__rings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ring-tab {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 82px;
  padding: 13px 15px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #061516;
  text-align: left;
  transition: background-color .2s, border-color .2s, color .2s;
}
.ring-tab:hover { background: #102a29; border-color: #6f948c; }
.ring-tab__tier { font: 600 12px/1.3 var(--display); color: #92b2aa; font-variant-numeric: tabular-nums; }
.ring-tab strong { font: 700 19px/1.25 var(--display); color: var(--ink); }
.ring-tab small { color: var(--muted); font-size: 12.5px; line-height: 1.38; }
.ring-tab[aria-selected="true"] {
  background: linear-gradient(180deg, #163935 0%, #0d2625 100%);
  border-color: var(--accent);
}
.ring-tab[aria-selected="true"] .ring-tab__tier { color: var(--gold); }
.ring-tab[aria-selected="true"] strong { color: var(--accent); }

.nesting__visual { position: relative; flex: 1; min-width: 0; display: grid; }
.specimen-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #051517;
  isolation: isolate;
}
.specimen-slide, .specimen-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.specimen-slide img { object-fit: cover; object-position: center 48%; }
.specimen-viewport::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid #d9c08a40;
  pointer-events: none;
}
.specimen-viewport::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #030e10e3);
  pointer-events: none;
}
.specimen-meter {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  pointer-events: none;
}
.specimen-orbit {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1px solid #9dc3b644;
  transition: border-color .25s, box-shadow .25s;
}
.specimen-orbit--outer { width: 56px; height: 56px; }
.specimen-orbit--mid { width: 38px; height: 38px; }
.specimen-orbit--core { width: 20px; height: 20px; }
[data-layer-view="animal"] .specimen-orbit--outer { border-color: var(--accent); border-width: 1.5px; }
[data-layer-view="microbe"] .specimen-orbit--mid { border-color: var(--bio); border-width: 1.5px; }
[data-layer-view="virus"] .specimen-orbit--core { border-color: #d7a6ff; border-width: 1.5px; background: #d7a6ff33; }

.specimen-bar {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  font-size: 13px;
  line-height: 1.35;
}
.specimen-bar__code { color: var(--gold); font: 650 12.5px/1.3 var(--display); font-variant-numeric: tabular-nums; }
.specimen-bar__place { color: #d3e5df; }

.nesting__detail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(24px, 3.2vw, 42px);
  gap: 24px;
}
.layer-panel__role { color: var(--gold); font: 600 13px/1.35 var(--display); letter-spacing: .02em; }
.layer-panel h3 { margin-top: 8px; font: 710 clamp(28px, 3.1vw, 44px)/1.05 var(--display); letter-spacing: -.02em; }
.layer-panel__desc { margin-top: 14px; color: #d5e4df; max-width: 52ch; font-size: 16px; line-height: 1.56; }
.layer-facts { margin-top: 22px; display: grid; gap: 14px; border-top: 1px solid var(--frame); padding-top: 18px; }
.layer-facts div { display: grid; gap: 4px; }
.layer-facts dt { color: var(--accent); font: 650 13.5px/1.3 var(--display); letter-spacing: .03em; }
.layer-facts dd { color: #cbe0d9; font-size: 15px; line-height: 1.5; }
.layer-facts strong { color: var(--ink); font-weight: 640; }

.combat-strip {
  padding: 16px 18px;
  border: 1px solid var(--frame);
  background: #061415;
  display: grid;
  gap: 10px;
}
.combat-strip__title { display: flex; align-items: center; gap: 8px; color: var(--gold); font: 650 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.combat-strip__chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.chain-node { padding: 5px 10px; border: 1px solid var(--line); border-radius: 3px; background: #0b2223; }
.chain-node--virus { border-color: #9e7cd899; color: #e8d2ff; }
.chain-node--microbe { border-color: #4ff4d877; color: #b7fff0; }
.chain-node--animal { border-color: #ddfc7277; color: #eefcb0; }
.chain-arrow { color: var(--brass); font-weight: 700; }
.combat-strip__note { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* Live Godot client gallery */
.showcase {
  padding-block: clamp(64px, 7.8vw, 118px);
  background: radial-gradient(ellipse at 25% 45%, #0f2c2c 0%, #061314 70%);
  border-block: 1px solid #304d4a77;
}
.cabinet {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, .72fr);
  gap: 20px;
  align-items: start;
}
.cabinet__screen {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  background: #061516;
  box-shadow: 0 4px 10px #00000055;
}
.screen-panel { display: grid; gap: 12px; }
.screen-panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #041011; }
.screen-panel figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 18px;
  padding: 8px 10px 6px;
  border-top: 1px solid var(--frame);
}
.screen-panel figcaption strong { font: 660 17px/1.35 var(--display); color: var(--ink); }
.screen-panel figcaption span { color: var(--muted); font-size: 14px; line-height: 1.4; }

.cabinet__menu { display: grid; gap: 10px; }
.screen-btn {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid var(--frame);
  border-radius: 3px;
  background: #081a1b;
  text-align: left;
  transition: border-color .2s, background-color .2s;
}
.screen-btn .icon { width: 22px; height: 22px; color: #8cb2a8; transition: color .2s; }
.screen-btn span { display: grid; gap: 3px; }
.screen-btn strong { font: 660 15px/1.3 var(--display); color: var(--ink); }
.screen-btn small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.screen-btn:hover { border-color: #7ea399; background: #0e2526; }
.screen-btn[aria-selected="true"] {
  border-color: var(--accent);
  background: linear-gradient(110deg, #13312f, #091d1d);
}
.screen-btn[aria-selected="true"] .icon { color: var(--accent); }
.screen-btn[aria-selected="true"] strong { color: var(--accent); }

/* World zones & progress */
.world {
  background: radial-gradient(ellipse at 80% 35%, #0f2f2e 0%, var(--background) 70%);
}
.zones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.zone-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #0c2122, #071617 75%);
}
.zone-card--land {
  border-color: #6b634b;
  background: linear-gradient(160deg, #1b1b15, #0a1515 75%);
}
.zone-card--submarine {
  border-color: #3b6d74;
  background: linear-gradient(160deg, #0b2029, #061318 75%);
}
.zone-card--submarine .zone-card__coords {
  border-color: #4ff4d866;
  color: #aefbf0;
}
.zone-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #06181a; }
.zone-card__media img { width: 100%; height: 100%; object-fit: cover; }
.zone-card__media::after {
  content: "";
  position: absolute;
  inset: 52% 0 0;
  background: linear-gradient(transparent, #041012d9);
  pointer-events: none;
}
.zone-card__coords {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 14px;
  padding: 6px 12px;
  border: 1px solid #cbb27c66;
  background: #061415db;
  color: var(--gold);
  font: 600 12.5px/1.3 var(--display);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.zone-card__body { padding: clamp(18px, 2vw, 26px); display: grid; gap: 13px; align-content: start; }
.zone-card__body h3 { font: 700 clamp(22px, 2vw, 29px)/1.14 var(--display); letter-spacing: -.02em; }
.zone-card__body > p { color: #d3e2dc; font-size: 15.5px; line-height: 1.54; }
.zone-card__list { display: grid; gap: 10px; border-top: 1px solid var(--frame); padding-top: 14px; }
.zone-card__list li { color: #bdd2cb; font-size: 14px; line-height: 1.48; }
.zone-card__list strong { color: var(--ink); font-weight: 640; }

.evolution-atlas {
  margin-top: 28px;
  border: 1px solid var(--frame);
  background: #061516;
  padding: 20px clamp(18px, 3vw, 32px);
}
.atlas-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.atlas-row > div { display: grid; gap: 5px; padding: 12px 16px; border: 1px solid #2b4845; border-radius: 3px; background: #07191a; }
.atlas-row strong { font: 700 clamp(18px, 1.7vw, 24px)/1.3 var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.atlas-row span { color: var(--muted); font-size: 14px; line-height: 1.42; }

/* Desktop client chamber */
.desktop-dl {
  background: radial-gradient(ellipse at 22% 48%, #0f2e2e 0%, #061415 68%);
  border-block: 1px solid #304d4a77;
}
.dl-chamber {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .98fr);
  border: 1px solid var(--line);
  background: linear-gradient(142deg, #0c2122 0%, #071617 62%, #051112 100%);
  box-shadow: inset 0 1px #e6ca9524, 0 22px 54px #00000066;
}
.dl-chamber__stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #061415;
}
.dl-viewport {
  position: relative;
  flex: 1;
  min-height: 280px;
  overflow: hidden;
  background: #041012;
  isolation: isolate;
}
.dl-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.dl-viewport::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 14px;
  border: 1px solid #d9c08a48;
  pointer-events: none;
}
.dl-viewport::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 48% 0 0;
  background: linear-gradient(transparent, #030d0fed);
  pointer-events: none;
}
.dl-reticle {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 24px;
  width: 44px;
  height: 44px;
  pointer-events: none;
}
.dl-reticle__outer, .dl-reticle__inner {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
}
.dl-reticle__outer { width: 44px; height: 44px; border: 1px solid #e6ca9566; }
.dl-reticle__inner { width: 22px; height: 22px; border: 1.5px solid var(--bio); background: #4ff4d81a; }
.dl-viewport__bar {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 18px 24px;
}
.dl-viewport__code {
  color: var(--gold);
  font: 650 12px/1.3 var(--display);
  letter-spacing: .07em;
}
.dl-ver {
  padding: 4px 10px;
  border: 1px solid #cbb27c66;
  border-radius: 3px;
  background: #051314e0;
  color: var(--ink);
  font: 650 12px/1.3 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.dl-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.dl-telemetry > div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #2b4845;
  border-radius: 3px;
  background: linear-gradient(160deg, #091d1e, #061415);
}
.dl-telemetry dt {
  color: var(--gold);
  font: 700 clamp(17px, 1.5vw, 22px)/1.15 var(--display);
  font-variant-numeric: tabular-nums;
}
.dl-telemetry dd { display: grid; gap: 3px; }
.dl-telemetry dd strong { color: var(--ink); font: 640 13.5px/1.3 var(--display); }
.dl-telemetry dd span { color: var(--muted); font-size: 12.5px; line-height: 1.38; }

.dl-chamber__dock {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
  padding: clamp(24px, 3vw, 40px);
}
.dl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--gold);
  font: 650 12px/1.3 var(--display);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.dl-dock__head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05;
}
.dl-lead {
  margin-top: 14px;
  max-width: 50ch;
  color: #e4ded0;
  font: 400 clamp(16px, 1.2vw, 18.5px)/1.5 var(--serif);
}

.dl-bays { display: grid; gap: 14px; }
.dl-bay {
  padding: 5px;
  border: 1px solid #355753;
  border-radius: 6px;
  background: #041011;
  transition: border-color .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1);
}
.dl-bay--recommended {
  border-color: #c9b07899;
  background: linear-gradient(150deg, #16251f 0%, #071617 100%);
  box-shadow: inset 0 1px #f3dba238, 0 10px 28px #0000005c;
}
.dl-bay__inner {
  display: grid;
  border: 1px solid #284542;
  border-radius: 4px;
  background: linear-gradient(155deg, #0d2223 0%, #071718 76%);
  box-shadow: inset 0 1px #ffffff0f;
  overflow: hidden;
}
.dl-bay--recommended .dl-bay__inner {
  border-color: #b79c6666;
  background: linear-gradient(155deg, #132c2b 0%, #081a1b 78%);
  box-shadow: inset 0 1px #f3dba233;
}
.dl-bay__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}
.dl-bay__id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dl-os-icon {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--frame);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #123333, #051314 75%);
  box-shadow: inset 0 1px #4ff4d826;
  color: var(--gold);
}
.dl-os-icon .icon { width: 22px; height: 22px; }
.dl-bay--recommended .dl-os-icon {
  border-color: #cbb27c88;
  color: var(--accent);
  background: radial-gradient(circle at 35% 30%, #1d3c34, #081b1b 76%);
}
.dl-bay__title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.dl-bay__title-row h3 { font: 700 20px/1.2 var(--display); letter-spacing: -.015em; color: var(--ink); }
.dl-os-badge {
  padding: 2px 8px;
  border: 1px solid #ddfc7266;
  border-radius: 3px;
  background: #ddfc7218;
  color: var(--accent);
  font: 650 10.5px/1.35 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.dl-bay__meta { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.38; font-variant-numeric: tabular-nums; }
.dl-btn {
  min-height: 46px;
  padding: 0 7px 0 18px;
  gap: 12px;
  font-size: 15px;
  flex: 0 0 auto;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .25s, border-color .25s, box-shadow .25s;
}
.dl-btn:active { transform: scale(.98); }
.dl-btn__orb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #07161724;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1), background-color .25s;
}
.button--line .dl-btn__orb { background: #ffffff12; }
.dl-btn:hover .dl-btn__orb { transform: translateY(2px) scale(1.04); }
.dl-btn__orb .icon { width: 16px; height: 16px; }

.dl-guide {
  border-top: 1px solid #26413e;
  padding: 0 20px;
  background: #04101188;
}
.dl-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  cursor: pointer;
  list-style: none;
  color: #a4c1ba;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.dl-guide summary::-webkit-details-marker { display: none; }
.dl-guide summary:focus { outline: none; }
.dl-guide summary:focus-visible { outline: 1px solid var(--gold); outline-offset: -3px; border-radius: 3px; }
.dl-guide summary::after { content: "+"; color: var(--gold); font: 600 17px/1 var(--display); flex: none; }
.dl-guide[open] > summary::after { content: "−"; color: var(--accent); }
.dl-guide summary:hover { color: var(--ink); }
.dl-guide p { padding: 2px 0 15px; color: #bed4cd; font-size: 13.5px; line-height: 1.56; }
.dl-guide strong { color: var(--ink); font-weight: 640; }
.dl-guide code {
  padding: 1px 5px;
  border: 1px solid #2e4b48;
  border-radius: 3px;
  background: #07191a;
  color: var(--gold);
  font: 500 12.5px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.dl-footnote { margin-top: auto; color: var(--muted); font-size: 13.8px; line-height: 1.5; border-top: 1px solid var(--frame); padding-top: 16px; }
.dl-footnote a { color: var(--gold); text-decoration: underline; text-decoration-color: #e6ca9566; text-underline-offset: .22em; }
.dl-footnote a:hover { color: var(--accent); }

/* Chronicle / Live changelog */
.chronicle__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.chronicle__vk { min-height: 46px; font-size: 15px; padding-inline: 18px; }
.chronicle__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.release {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--frame);
  background: linear-gradient(155deg, #0c1f20, #061415);
}
.release__head { display: grid; gap: 6px; border-bottom: 1px solid #2b4542; padding-bottom: 12px; }
.release__head time { color: var(--gold); font: 600 12px/1.3 var(--display); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.release__head h3 { font: 680 18px/1.32 var(--display); color: var(--ink); }
.release__items { display: grid; gap: 10px; }
.release__items li { color: #cce0da; font-size: 14.5px; line-height: 1.48; display: grid; gap: 5px; justify-items: start; }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  font: 650 11.5px/1.3 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tag--new { background: #ddfc7222; border: 1px solid #ddfc7266; color: var(--accent); }
.tag--balance { background: #e6ca9522; border: 1px solid #e6ca9566; color: var(--gold); }
.tag--fix { background: #4ff4d81f; border: 1px solid #4ff4d866; color: var(--bio); }
.chronicle__more { margin-top: 22px; display: flex; justify-content: center; }

/* Final CTA & Footer */
.start {
  position: relative;
  background: linear-gradient(90deg, #041616e0 0%, #05171688 52%, #041616eb 100%),
              linear-gradient(0deg, #051615cc, transparent 78%),
              url("assets/hero.webp") 62% 49% / cover;
  border-block: 1px solid var(--frame);
}
.start__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: clamp(56px, 7.5vw, 108px); }
.start h2 { margin-bottom: 14px; max-width: 15ch; }
.start__copy > p { max-width: 52ch; color: #d6e4dc; }
.start__caveat { margin-top: 10px; color: var(--muted); font-size: 14px; }
.start__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: 0 0 auto; }
.start .button--line { background: #071617d6; border-color: #c9d6c7a8; }

.footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px 28px; min-height: 102px; padding-block: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer__link, .teaser__fallback { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 14px; text-underline-offset: .25em; }

/* Teaser Modal */
.teaser { width: min(960px, 94vw); max-height: 92dvh; padding: 24px; background: var(--background); color: var(--ink); border: 1px solid var(--line); }
.teaser::backdrop { background: #020809eb; }
.teaser__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.teaser__head h2 { font: 650 clamp(18px, 3vw, 26px)/1.3 var(--display); }
.teaser__close { width: 44px; min-height: 44px; padding: 0; }
.teaser video { display: block; width: 100%; max-height: 64dvh; aspect-ratio: 16 / 9; background: #000; }
.teaser__fallback { margin-top: 8px; }
.teaser__fallback:hover { color: var(--accent); text-decoration: underline; }

/* Tablet / Laptop breakpoints */
@media (max-width: 1120px) {
  .nesting { grid-template-columns: 1fr; }
  .nesting__stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .specimen-viewport { height: auto; min-height: 0; }
  .cabinet { grid-template-columns: 1fr; }
  .cabinet__menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chronicle__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zones { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .zone-card--submarine { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-rows: auto; align-items: stretch; }
  .zone-card--submarine .zone-card__media { aspect-ratio: auto; width: 100%; height: 100%; min-width: 0; min-height: 240px; }
  .atlas-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-chamber { grid-template-columns: 1fr; }
  .dl-chamber__stage { border-right: 0; border-bottom: 1px solid var(--line); }
  .dl-viewport { min-height: 0; aspect-ratio: 21 / 9; max-height: 360px; }
}

/* Mobile */
@media (max-width: 690px) {
  :root { --header: 64px; }
  .landing .top {
    inset: 7px 7px auto;
    min-height: 58px;
    padding-inline: 14px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #020f11e0, #020f1100);
  }
  .top { grid-template-columns: 1fr auto; gap: 10px; }
  .top__nav { display: none; }
  .top .brand { font-size: 14px; gap: 8px; }
  .top .brand img { width: 34px; height: 34px; }
  .top .brand small { font-size: 11px; letter-spacing: .12em; }
  .top .button { font-size: 13px; padding-inline: 12px; }
  .hero { min-height: 0; align-items: end; }
  .hero::after { inset: 7px; }
  .hero__art { height: clamp(320px, 100vw, 480px); }
  .hero__art img { object-position: 50% 44%; }
  .hero::before {
    background: linear-gradient(0deg, #071617 0%, #071617 30%, #071617d0 48%, transparent 74%);
  }
  .hero__body { padding-block: clamp(238px, 72vw, 345px) 92px; }
  .hero h1 { font-size: clamp(36px, 10.6vw, 62px); }
  .hero h1 span { font-size: clamp(13px, 3.5vw, 20px); letter-spacing: .3em; }
  .hero__lead { margin-top: 18px; max-width: 36ch; font-size: 17px; line-height: 1.46; }
  .hero__actions { margin-top: 22px; gap: 10px; }
  .button { min-height: 48px; padding-inline: 16px; font-size: 15px; }
  .hero__rail { bottom: 16px; font-size: 14px; }

  .nesting__rings { grid-template-columns: 1fr; }
  .ring-tab { min-height: 60px; border-right: 0; border-bottom: 1px solid var(--frame); padding: 12px 14px; }
  .ring-tab:last-child { border-bottom: 0; }
  .specimen-viewport { height: auto; min-height: 0; width: 100%; }
  .specimen-bar { padding: 14px; flex-direction: column; align-items: flex-start; gap: 3px; }
  .nesting__detail { padding: 18px; }

  .cabinet__menu { grid-template-columns: 1fr; }
  .screen-btn { min-height: 58px; }
  .zones { grid-template-columns: 1fr; }
  .zone-card--submarine { grid-column: auto; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .zone-card--submarine .zone-card__media { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .atlas-row { grid-template-columns: 1fr; }
  .atlas-row > div { padding: 12px 14px; }
  .dl-chamber__dock { padding: 20px 18px; gap: 18px; }
  .dl-telemetry { grid-template-columns: 1fr; }
  .dl-bay__main { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .dl-btn { width: 100%; justify-content: space-between; }
  .dl-guide { padding: 0 16px; }
  .dl-reticle { display: none; }
  .dl-viewport { aspect-ratio: 16 / 10; }
  .dl-viewport__bar { padding: 12px 14px; gap: 6px 10px; }
  .dl-viewport__code { font-size: 11px; }
  .chronicle__grid { grid-template-columns: 1fr; }
  .start__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer { flex-direction: column; align-items: flex-start; padding-block: 24px; }
}

/* Legal pages */
.legal-page .top { background: #061415; }
.legal {
  width: min(100% - var(--gutter) * 2, 860px);
  margin-inline: auto;
  padding-block: clamp(44px, 6vw, 88px);
  display: grid;
  gap: 28px;
}
.legal__head {
  display: grid;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--frame);
}
.legal__tag {
  color: var(--gold);
  font: 600 13px/1.3 var(--display);
  letter-spacing: .04em;
}
.legal h1 {
  font-family: var(--display);
  font-weight: 730;
  font-size: clamp(32px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.legal__lead { color: #d5e4df; font-size: 17px; line-height: 1.56; max-width: 64ch; }
.legal__notice {
  padding: 16px 20px;
  border: 1px solid #8a754c;
  border-radius: 4px;
  background: linear-gradient(155deg, #171b16, #071617);
  color: #f3e8d0;
  font-size: 15.5px;
  line-height: 1.52;
}
.legal__notice strong { color: var(--gold); font-weight: 650; }
.legal__section {
  display: grid;
  gap: 12px;
  padding: 22px 24px;
  border: 1px solid var(--frame);
  border-radius: 4px;
  background: linear-gradient(155deg, #0b1e1f, #061415);
}
.legal__section h2 { font: 700 clamp(20px, 2.2vw, 26px)/1.2 var(--display); color: var(--ink); }
.legal__section p, .legal__section li { color: #cce0da; font-size: 15.5px; line-height: 1.58; max-width: 68ch; }
.legal__section ul { display: grid; gap: 8px; padding-left: 18px; list-style: disc; }
.legal__section a { color: var(--gold); text-decoration: underline; text-underline-offset: .2em; }
.legal__section a:hover { color: var(--accent); }
.legal__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .hero__particles { display: none; }
}
