/* ============================================================================
   SIX VIVID STUDIOS — site.css
   One stylesheet for the hub, game sites and tools.
   ========================================================================== */

:root {
  --bg: #08090b;
  --bg-elev: #0e1013;
  --surface: #14161a;
  --surface-2: #1a1c21;
  --surface-3: #212429;
  --text: #eef0ee;
  --muted: #9aa09f;
  --dim: #6b7280;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.17);
  --studio: #ede9e0;
  --studio-ink: #0a0b0d;
  --signal: #38e1ff;
  --signal-ink: #04141a;
  --ok: #6ee7a8;
  --wip: #ffb454;
  --plan: #7c8494;
  --radius: 3px;
  --radius-sm: 2px;
  --max: 1200px;
  --panel: rgba(17, 19, 22, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --grain-opacity: 0.05;
  --scan-opacity: 0.2;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --accent: var(--studio);
  --accent-2: var(--signal);
  --accent-ink: var(--studio-ink);
  --glow: rgba(56, 225, 255, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* Per-game palettes: full motif-derived tokens + one display face. No lime. */
body[data-game="palm"] {
  --accent: #ff7a45; --accent-2: #2dd4a7; --accent-ink: #1a0a05;
  --bg: #140a12; --bg-elev: #1d0f1c; --surface: #251224; --surface-2: #33182a;
  --glow: rgba(255, 122, 69, 0.2);
  --font-display: "Fraunces", "Space Grotesk", Georgia, serif;
}
body[data-game="axon"] {
  --accent: #ffb454; --accent-2: #7dd3fc; --accent-ink: #1a0f05;
  --bg: #080b0c; --bg-elev: #0d1214; --surface: #131b1e; --surface-2: #1b262a;
  --glow: rgba(255, 180, 84, 0.2);
  --font-display: "Oswald", "Space Grotesk", "Segoe UI", sans-serif;
}
body[data-game="chornobyl"] {
  --accent: #b6ff3b; --accent-2: #ffb454; --accent-ink: #101406;
  --bg: #070b06; --bg-elev: #0d120a; --surface: #131a0e; --surface-2: #1b2414;
  --glow: rgba(182, 255, 59, 0.18);
  --font-display: "Staatliches", "Space Grotesk", "Segoe UI", sans-serif;
}
body[data-game="inertia"] {
  --accent: #e08a3c; --accent-2: #8fbf7f; --accent-ink: #1a0f05;
  --bg: #120b05; --bg-elev: #1a1008; --surface: #24180d; --surface-2: #322312;
  --glow: rgba(224, 138, 60, 0.2);
  --font-display: "Black Ops One", "Staatliches", "Space Grotesk", sans-serif;
}
body[data-game="marrow"] {
  --accent: #d7263d; --accent-2: #8b5e3c; --accent-ink: #1a0508;
  --bg: #0b0507; --bg-elev: #120a0c; --surface: #1b0f12; --surface-2: #26151a;
  --glow: rgba(215, 38, 61, 0.2);
  --font-display: "Bitter", "Space Grotesk", Georgia, serif;
}
body[data-game="terraforge"] {
  --accent: #5fd0a0; --accent-2: #c98a4b; --accent-ink: #04150f;
  --bg: #06110d; --bg-elev: #0b1a14; --surface: #10241c; --surface-2: #163026;
  --glow: rgba(95, 208, 160, 0.18);
  --font-display: "Silkscreen", "Space Grotesk", monospace;
}
body[data-game="hollowmere"] {
  --accent: #ff9d5c; --accent-2: #7dd3fc; --accent-ink: #1a0d05;
  --bg: #0b0810; --bg-elev: #120d1a; --surface: #1a1324; --surface-2: #241a30;
  --glow: rgba(255, 157, 92, 0.2);
  --font-display: "Press Start 2P", "Silkscreen", monospace;
}
body[data-game="static"] {
  --accent: #e8e6e3; --accent-2: #ff3b3b; --accent-ink: #0a0a0a;
  --bg: #08080a; --bg-elev: #0e0e11; --surface: #16161a; --surface-2: #1f1f24;
  --glow: rgba(232, 230, 227, 0.14);
  --font-display: "VT323", "Space Grotesk", monospace;
}
body[data-game="vibe"] {
  --accent: #00f0ff; --accent-2: #9d4edd; --accent-ink: #04141a;
  --bg: #04141a; --bg-elev: #0a2a33; --surface: #0f2a33; --surface-2: #163a45;
  --glow: rgba(0, 240, 255, 0.2);
  --font-display: "Chakra Petch", "Space Grotesk", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 82% -12%, rgba(56, 225, 255, 0.08), transparent 62%),
    radial-gradient(900px 520px at -8% 12%, rgba(237, 233, 224, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(900px 700px at 50% 0%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(900px 700px at 50% 0%, #000 30%, transparent 85%);
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(56, 225, 255, 0.28); color: #fff; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--studio);
  color: var(--studio-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: top 160ms ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------------------------------------------------------------- shell --- */
.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}
.display {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}
.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
}
.dim { color: var(--dim); }
.accent { color: var(--accent); }
.rule { height: 1px; background: var(--border); border: 0; margin: 0; }
.grain {
  position: relative;
}
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

/* --------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 10, 0.76);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand svg { width: 26px; height: 26px; color: var(--studio); }
.brand:hover svg { color: var(--accent); }

/* 3D brand mark in the header (falls back to the SVG above). */
.logo-canvas {
  width: 26px;
  height: 26px;
  display: block;
  opacity: 0;
  transition: opacity 500ms ease;
  pointer-events: none;
}
.logo-canvas.is-live { opacity: 1; }
body.logo-3d .site-header .brand > svg { display: none; }

/* Header brand icon = the Six Vivid eye-prism mark (matches the launcher app icon). */
.logo-img {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: 0 0 auto;
}
.site-header .logo-img { width: 39px; height: 39px; }

/* 3D footer floor behind the footer content. */
.site-footer { position: relative; overflow: hidden; }
.footer-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
}
.footer-canvas.is-live { opacity: 0.85; }
.site-footer > .shell { position: relative; z-index: 1; }
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav a[aria-current="page"] { color: var(--accent); background: rgba(255, 255, 255, 0.04); }
.nav .nav-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.06); }
.btn--ghost { border-color: var(--border); color: var(--muted); }
.btn svg { width: 14px; height: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ----------------------------------------------------------------- hero --- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 72px; }
.hero--scene { padding-top: clamp(72px, 9vw, 120px); }
.hero--scene .hero-grid { position: relative; z-index: 2; }
.hero--scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.35) 0%, rgba(7, 8, 10, 0.55) 60%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-grid:has(> .hero-copy:only-child) { grid-template-columns: minmax(0, 1fr); }
.hero-copy { max-width: 720px; }
.hero-eyebrow { font-size: 14px; }
.hero-copy .display { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 30px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero-meta span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero-meta strong { color: var(--text); font-weight: 500; }

.hero-stack { position: relative; min-height: 430px; }
.mini-card {
  position: absolute;
  width: min(240px, 68vw);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  transition: transform 300ms ease;
}
.mini-card span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}
.mini-card strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.mini-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.32), transparent 34%);
  pointer-events: none;
}
.mc-1 { left: 2%; top: 16px; z-index: 3; transform: rotate(-7deg); background: linear-gradient(160deg, #ff7a45, #7a1f3d 62%, #1b0b12); }
.mc-2 { left: 28%; top: 0; z-index: 2; transform: rotate(4deg); background: linear-gradient(160deg, #b6ff3b, #23400d 58%, #071006); }
.mc-3 { left: 52%; top: 34px; z-index: 1; transform: rotate(11deg); background: linear-gradient(160deg, #e08a3c, #4a2a10 58%, #120a04); }
.hero-stack:hover .mc-1 { transform: rotate(-9deg) translateY(-6px); }
.hero-stack:hover .mc-2 { transform: rotate(2deg) translateY(-6px); }
.hero-stack:hover .mc-3 { transform: rotate(13deg) translateY(-6px); }

/* ---------------------------------------------------------------- cards --- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.94rem; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.game-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.game-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.game-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.game-card h3 { font-size: 1.2rem; }
.game-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.more svg { width: 12px; height: 12px; flex: 0 0 auto; transition: transform 180ms ease; }
.more:hover { color: var(--accent); }
.more:hover svg { transform: translateX(3px); }

.game-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.game-card .more svg { width: 12px; height: 12px; transition: transform 180ms ease; }
.game-card:hover .more svg { transform: translateX(3px); }

/* --------------------------------------------------------------- covers --- */
.cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-2);
}
.cover::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: var(--cover-glow, radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.4), transparent 30%));
  filter: blur(2px);
  opacity: 0.9;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent 20%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 100%);
  opacity: 0.5;
}
.cover-mark {
  position: absolute;
  right: 14px;
  bottom: -10px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.08em;
  color: rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
}
.cover-label {
  position: absolute;
  left: 18px;
  top: 16px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.cover-name {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Bespoke CSS cover art: layered per-game motif compositions. No lime. */
.cover[data-cover="palm"] {
  background:
    radial-gradient(circle at 74% 30%, #ffe4b0 0 6%, rgba(255, 200, 140, 0.5) 7%, transparent 20%),
    radial-gradient(120% 80% at 74% 30%, rgba(255, 122, 69, 0.5), transparent 55%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, #2a0f2e 0%, #7a1f4a 40%, #ff7a45 68%, #1a0b10 100%);
  --cover-glow: radial-gradient(circle at 74% 30%, rgba(255, 190, 120, 0.55), transparent 36%);
}
.cover[data-cover="palm"]::after {
  background-image:
    linear-gradient(90deg, transparent 0 46%, rgba(12, 8, 14, 0.9) 46% 48%, transparent 48% 52%, rgba(12, 8, 14, 0.9) 52% 54%, transparent 54%),
    linear-gradient(0deg, transparent 0 62%, rgba(12, 8, 14, 0.85) 62% 100%);
  background-size: 100% 100%, 100% 100%;
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.55;
}
.cover[data-cover="axon"] {
  background:
    radial-gradient(circle at 70% 26%, rgba(255, 211, 155, 0.9) 0 4%, transparent 14%),
    radial-gradient(90% 60% at 70% 26%, rgba(255, 180, 84, 0.35), transparent 60%),
    repeating-linear-gradient(0deg, rgba(125, 211, 252, 0.05) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #060a0b 0%, #0d1416 46%, #1b2a2e 70%, #1a0f05 100%);
  --cover-glow: radial-gradient(circle at 70% 26%, rgba(255, 180, 84, 0.5), transparent 44%);
}
.cover[data-cover="axon"]::after {
  background-image:
    linear-gradient(90deg, transparent 0 49%, rgba(255, 180, 84, 0.5) 49% 50%, transparent 50%),
    linear-gradient(0deg, transparent 0 49%, rgba(255, 180, 84, 0.5) 49% 50%, transparent 50%);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0 18%, transparent 60%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 18%, transparent 60%);
  opacity: 0.5;
}
.cover.has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.cover.has-image::before,
.cover.has-image::after { display: none; }
.cover.has-image .cover-mark { display: none; }
.cover[data-cover="chornobyl"] {
  background:
    radial-gradient(circle at 50% 40%, transparent 0 15%, rgba(182, 255, 59, 0.18) 16%, transparent 18%),
    radial-gradient(80% 60% at 50% 40%, rgba(182, 255, 59, 0.22), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 30px),
    linear-gradient(180deg, #071006 0%, #101b08 48%, #1c2c0e 72%, #050a04 100%);
  --cover-glow: radial-gradient(circle at 50% 40%, rgba(182, 255, 59, 0.4), transparent 44%);
}
.cover[data-cover="chornobyl"]::after {
  background-image:
    linear-gradient(0deg, transparent 0 70%, rgba(10, 16, 6, 0.9) 70% 100%),
    repeating-linear-gradient(90deg, rgba(182, 255, 59, 0.05) 0 2px, transparent 2px 40px);
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.6;
}
.cover[data-cover="inertia"] {
  background:
    radial-gradient(circle at 70% 24%, #ffe6b0 0 5%, transparent 16%),
    radial-gradient(90% 60% at 70% 24%, rgba(224, 138, 60, 0.4), transparent 58%),
    repeating-linear-gradient(0deg, rgba(143, 191, 127, 0.05) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #1a0f05 0%, #3a1f0c 42%, #8a4a1c 66%, #120a04 100%);
  --cover-glow: radial-gradient(circle at 70% 24%, rgba(255, 200, 130, 0.5), transparent 40%);
}
.cover[data-cover="inertia"]::after {
  background-image:
    linear-gradient(0deg, transparent 0 64%, rgba(18, 10, 4, 0.92) 64% 66%, transparent 66% 70%, rgba(18, 10, 4, 0.92) 70% 72%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(143, 191, 127, 0.04) 0 1px, transparent 1px 34px);
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.6;
}
.cover[data-cover="marrow"] {
  background:
    radial-gradient(circle at 50% 46%, rgba(215, 38, 61, 0.3), transparent 44%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.14) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #0b0507 0%, #1f070c 48%, #7a1220 74%, #080305 100%);
  --cover-glow: radial-gradient(circle at 50% 46%, rgba(215, 38, 61, 0.5), transparent 48%);
}
.cover[data-cover="marrow"]::after {
  background-image:
    linear-gradient(0deg, transparent 0 78%, rgba(8, 3, 5, 0.9) 78% 100%),
    repeating-linear-gradient(90deg, rgba(139, 94, 60, 0.08) 0 2px, transparent 2px 30px);
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.6;
}
.cover[data-cover="terraforge"] {
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 16px),
    radial-gradient(circle at 64% 28%, rgba(201, 138, 75, 0.5) 0 5%, transparent 16%),
    linear-gradient(180deg, #071410 0%, #143a2c 30%, #1f5a44 46%, #6b4a22 62%, #c98a4b 74%, #3a2410 100%);
  --cover-glow: radial-gradient(circle at 64% 28%, rgba(95, 208, 160, 0.4), transparent 40%);
}
.cover[data-cover="terraforge"]::after {
  background-image:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 22px),
    linear-gradient(90deg, transparent 0 46%, rgba(95, 208, 160, 0.25) 46% 48%, transparent 48%);
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.5;
}
.cover[data-cover="hollowmere"] {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 10px, transparent 10px 24px),
    radial-gradient(circle at 70% 28%, rgba(255, 157, 92, 0.6) 0 5%, transparent 18%),
    linear-gradient(180deg, #1b0d05 0%, #6b2a10 40%, #ff9d5c 68%, #0b0503 100%);
  --cover-glow: radial-gradient(circle at 70% 28%, rgba(255, 157, 92, 0.55), transparent 38%);
}
.cover[data-cover="hollowmere"]::after {
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.28) 0 1px, transparent 1px 3px),
    linear-gradient(0deg, transparent 0 70%, rgba(11, 5, 3, 0.92) 70% 100%);
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.7;
}
.cover[data-cover="vibe"] {
  background:
    linear-gradient(rgba(0, 240, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 78, 221, 0.14) 1px, transparent 1px),
    radial-gradient(80% 60% at 70% 30%, rgba(0, 240, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #04141a 0%, #0a2a33 48%, #9d4edd 100%);
  background-size: 26px 26px, 26px 26px, auto, auto;
  --cover-glow: radial-gradient(circle at 70% 30%, rgba(0, 240, 255, 0.4), transparent 42%);
}
.cover[data-cover="static"] {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 30%, rgba(232, 230, 227, 0.10), transparent 60%),
    linear-gradient(180deg, #0a0a0c 0%, #141418 55%, #1d1d22 100%);
  --cover-glow: radial-gradient(circle at 50% 34%, rgba(232, 230, 227, 0.18), transparent 46%);
}
.cover[data-cover="static"]::after {
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 59, 59, 0.05) 0 2px, transparent 2px 5px),
    linear-gradient(0deg, transparent 0 72%, rgba(0, 0, 0, 0.9) 72% 100%);
  mask-image: none;
  -webkit-mask-image: none;
  opacity: 0.6;
}

/* --------------------------------------------------------------- status --- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plan);
}
.status[data-status="done"] { color: var(--ok); border-color: rgba(110, 231, 168, 0.28); }
.status[data-status="done"]::before { background: var(--ok); }
.status[data-status="wip"] { color: var(--wip); border-color: rgba(255, 180, 84, 0.28); }
.status[data-status="wip"]::before { background: var(--wip); box-shadow: 0 0 10px rgba(255, 180, 84, 0.5); }
.status[data-status="planned"] { color: var(--plan); }
.status[data-status="live"] { color: var(--ok); border-color: rgba(110, 231, 168, 0.28); }
.status[data-status="live"]::before { background: var(--ok); box-shadow: 0 0 10px rgba(110, 231, 168, 0.5); }
.status[data-status="playtest"] { color: var(--signal); border-color: rgba(56, 225, 255, 0.28); }
.status[data-status="playtest"]::before { background: var(--signal); box-shadow: 0 0 10px rgba(56, 225, 255, 0.5); }

/* --------------------------------------------------------------- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

/* --------------------------------------------------------------- tools ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.tool-card { display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.tool-card .cover { aspect-ratio: 21 / 9; }
.tool-card-body { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.tool-card h3 { font-size: 1.3rem; }
.tool-card p { color: var(--muted); font-size: 0.94rem; }

/* --------------------------------------------------------------- about ---- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 48px;
  align-items: start;
}
.prose { max-width: 72ch; }
.prose p { color: var(--muted); margin-bottom: 18px; }
.prose p strong { color: var(--text); font-weight: 600; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin: 40px 0 16px; }
.prose ul { margin: 0 0 18px; display: grid; gap: 8px; }
.prose li { color: var(--muted); padding-left: 18px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.note {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.94rem;
}
.note strong { color: var(--text); }
.lore-card {
  position: relative;
  border-left: 2px solid var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--surface);
  overflow: hidden;
}
.lore-card h2 { color: var(--text); }
.lore-card .lead { color: var(--muted); max-width: 68ch; }
.lore-card::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
  pointer-events: none;
}
.sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
}
.sidebar .card { padding: 20px; }
.sidebar h3 { font-size: 0.95rem; margin-bottom: 8px; }
.sidebar p, .sidebar li { color: var(--muted); font-size: 0.9rem; }
.sidebar ul { display: grid; gap: 6px; }

/* ------------------------------------------------------------- contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 40px;
  align-items: start;
}
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--text);
  outline: none;
  transition: border-color 140ms ease, background 140ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface); }
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-note { color: var(--dim); font-size: 0.85rem; }
.success {
  border: 1px solid rgba(110, 231, 168, 0.35);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(110, 231, 168, 0.07);
  color: var(--ok);
}
.success h3 { color: var(--text); margin-bottom: 6px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ----------------------------------------------------------- game hero ---- */
.game-hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 140px) 0 72px; }
.scene-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
}
body.scene-ready .scene-canvas { opacity: 1; }
body.scene-off .scene-canvas { display: none; }
.game-hero .cover {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  z-index: 0;
  border-radius: 0;
}
.game-hero .cover::after { mask-image: linear-gradient(180deg, transparent 0%, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 70%); }
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-art + .cover,
.cover + .hero-art { z-index: 0; }
.game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 8, 10, 0.55) 0%, rgba(7, 8, 10, 0.35) 40%, var(--bg) 100%);
}
.game-hero .shell { position: relative; z-index: 2; }
.game-hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); letter-spacing: -0.06em; margin: 8px 0 14px; }
.game-hero--compact { padding: 64px 0 44px; }
.game-hero--compact h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.game-hero--compact .cover { opacity: 0.55; }
.game-hero .lead { color: rgba(255, 255, 255, 0.78); max-width: 60ch; }
.game-hero .hero-meta { border-top-color: rgba(255, 255, 255, 0.16); }
.game-hero .hero-meta span { color: rgba(255, 255, 255, 0.6); }
.game-hero .hero-meta strong { color: #fff; }
.game-hero .btn--ghost { border-color: rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.8); }

/* 3D HUD: perspective + pointer parallax on the per-game hero chrome. */
.game-hero { perspective: 1000px; }
.game-hero::before {
  transform: translate3d(calc(var(--hud-x, 0) * 6px), calc(var(--hud-y, 0) * 6px), 0);
  transition: transform 120ms linear;
}
body[data-game="axon"] .game-hero::before {
  transform: translate3d(calc(var(--hud-x, 0) * 9px), calc(var(--hud-y, 0) * 9px), 0)
    rotateX(calc(var(--hud-y, 0) * -1.4deg)) rotateY(calc(var(--hud-x, 0) * 1.4deg));
}
body[data-game="axon"] .game-hero .shell::before {
  transform: translate(-50%, -50%) translate3d(calc(var(--hud-x, 0) * 16px), calc(var(--hud-y, 0) * 16px), 46px);
  transition: transform 90ms linear;
}
body[data-game="axon"] .game-hero .shell::after {
  transform: translate3d(calc(var(--hud-x, 0) * 4px), calc(var(--hud-y, 0) * 4px), 0);
}
@media (prefers-reduced-motion: reduce) {
  .game-hero::before { transform: none !important; }
}

/* ----------------------------------------------- per-game hero chrome --- */
/* Axon: bodycam HUD — corner brackets, timestamp, free-aim reticle. */
body[data-game="axon"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 26px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 2px 26px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 26px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 2px 26px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 26px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 2px 26px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 26px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 2px 26px no-repeat;
  opacity: 0.55;
}
body[data-game="axon"] .game-hero .shell::after {
  content: "REC \25CF  AXON ENGINE \00B7 CAM 01 \00B7 00:00:00";
  position: absolute;
  top: 26px;
  right: 30px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  opacity: 0.8;
  text-transform: uppercase;
}
body[data-game="axon"] .game-hero .shell::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 22px;
  height: 22px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 1px 100% no-repeat;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
}
body[data-game="axon"] .game-hero h1 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.01em; }

/* Palm: warm sunset wash + horizon rule. */
body[data-game="palm"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0 74%, rgba(255, 122, 69, 0.18) 74% 75%, transparent 75%);
}

/* Chornobyl: concrete slab lines + dosimeter ticks. */
body[data-game="chornobyl"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(182, 255, 59, 0.05) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 90px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}

/* Inertia: PDA scanline frame + amber reticle ticks. */
body[data-game="inertia"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(143, 191, 127, 0.05) 0 1px, transparent 1px 4px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}

/* Marrow: isometric grid wash. */
body[data-game="marrow"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(215, 38, 61, 0.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(-45deg, rgba(215, 38, 61, 0.05) 0 1px, transparent 1px 40px);
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 20%, transparent 80%);
}

/* TerraForge: earth strata band. */
body[data-game="terraforge"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 2px, transparent 2px 46px);
  mask-image: linear-gradient(180deg, transparent 0 30%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0 30%, #000 100%);
}

/* Hollowmere: CRT scanlines + ember horizon. */
body[data-game="hollowmere"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, transparent 0 78%, rgba(255, 157, 92, 0.16) 78% 80%, transparent 80%);
}

/* Static: CRT scanlines + REC timestamp. */
body[data-game="static"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 3px),
    radial-gradient(120% 90% at 50% 20%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}
body[data-game="static"] .game-hero .shell::after {
  content: "REC \25CF  STATIC \00B7 CAM 01 \00B7 00:00:00";
  position: absolute;
  top: 26px;
  right: 30px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  opacity: 0.85;
  text-transform: uppercase;
}
body[data-game="static"] .game-hero h1 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.02em; }

/* Vibe: neon code-grid wash. */
body[data-game="vibe"] .game-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 240, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 78, 221, 0.06) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 82%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 20%, transparent 82%);
}

/* ----------------------------------------------------------------- tabs --- */
.tabs {
  position: sticky;
  top: 66px;
  z-index: 40;
  background: rgba(7, 8, 10, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.tabs-inner { display: flex; align-items: center; gap: 22px; min-height: 54px; }
.tabs .back { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.tabs .back:hover { color: var(--text); }
.tabs nav { display: flex; gap: 4px; margin-left: auto; }
.tabs nav a { padding: 7px 14px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tabs nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.tabs nav a[aria-current="page"] { color: var(--accent); background: rgba(255, 255, 255, 0.05); }

/* -------------------------------------------------------- about layout ---- */
.about-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.side-nav { position: sticky; top: 140px; display: grid; gap: 2px; max-height: calc(100vh - 160px); overflow-y: auto; padding-right: 4px; }
.side-nav a {
  padding: 7px 10px;
  border-left: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
}
.side-nav a:hover { color: var(--text); border-color: var(--accent); background: rgba(255, 255, 255, 0.03); }
.side-nav .sn-label { margin: 14px 0 6px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.system { scroll-margin-top: 150px; padding: 30px 0 34px; border-bottom: 1px solid var(--border); }
.system:last-child { border-bottom: 0; }
.system-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.system h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.system p.overview { max-width: 70ch; color: var(--muted); margin-bottom: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 16px; }
.feature-box {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
}
.feature-box h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 4px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.feature-box p { color: var(--muted); font-size: 0.84rem; line-height: 1.55; overflow-wrap: anywhere; }
.system-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.system-foot a { color: var(--muted); border-bottom: 1px solid var(--border); }
.system-foot a:hover { color: var(--accent); border-color: var(--accent); }

/* -------------------------------------------------------------- screenshots */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.shot { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.shot a { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms cubic-bezier(.2,.8,.2,1); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { padding: 9px 12px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

/* -------------------------------------------------------------- graph ----- */
.graph-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, 0.018); background-image: linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px); background-size: 28px 28px; }
.graph-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.graph-legend span { display: inline-flex; align-items: center; gap: 6px; }
.graph-legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.graph-scroll { overflow-x: auto; padding-bottom: 6px; }
.blueprint { width: 100%; min-width: 980px; height: auto; display: block; }
.blueprint .node rect { fill: #12151c; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.2; transition: fill 140ms ease, stroke 140ms ease; }
.blueprint .node .kicker { fill: #9aa3b2; font-family: var(--font-mono); font-size: 9px; letter-spacing: 1.4px; }
.blueprint .node .name { fill: #f3f5f9; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
.blueprint .node .role { fill: #7c8494; font-family: var(--font-body); font-size: 10.5px; }
.blueprint .node[data-status="done"] rect { stroke: rgba(110, 231, 168, 0.55); }
.blueprint .node[data-status="wip"] rect { stroke: rgba(255, 180, 84, 0.7); }
.blueprint .node[data-status="planned"] rect { stroke: rgba(124, 132, 148, 0.55); stroke-dasharray: 5 5; }
.blueprint .node:hover rect { fill: #171b24; stroke: var(--accent); }
.blueprint .edge { fill: none; stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.2; }
.blueprint .edge--save { stroke-dasharray: 4 7; stroke: rgba(255, 255, 255, 0.12); }
.blueprint .edge--future { stroke-dasharray: 3 6; stroke: rgba(124, 132, 148, 0.5); }
.blueprint .bar rect { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.14); stroke-dasharray: 5 5; }
.blueprint .bar text { fill: #9aa3b2; font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- system map */
.system-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 8px 0 26px; }
.system-map a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 140ms ease, background 140ms ease;
}
.system-map a:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.04); }
.system-map .n { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--dim); }
.system-map .t { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.system-map .s { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* -------------------------------------------------------------- roadmap --- */
.roadmap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.roadmap--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.roadmap-col { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, 0.018); padding: 16px; }
.roadmap-col > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.roadmap-col h3 { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.roadmap-col .count { font-family: var(--font-mono); font-size: 9px; color: var(--dim); }
.milestone { padding: 12px 12px 12px 14px; border-left: 2px solid var(--accent); background: rgba(255, 255, 255, 0.025); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 10px; }
.milestone:last-child { margin-bottom: 0; }
.milestone h4 { font-family: var(--font-display); font-size: 0.98rem; margin-bottom: 4px; }
.milestone p { color: var(--muted); font-size: 0.82rem; line-height: 1.5; }
.milestone .status { margin-top: 8px; }
details.underhood { margin-top: 30px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: rgba(255, 255, 255, 0.018); }
details.underhood summary { cursor: pointer; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
details.underhood summary:hover { color: var(--text); }
details.underhood[open] summary { margin-bottom: 14px; }
details.underhood ul { display: grid; gap: 8px; }
details.underhood li { color: var(--muted); font-size: 0.9rem; padding-left: 16px; position: relative; }
details.underhood li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
details.underhood strong { color: var(--text); }

/* ---------------------------------------------------------------- footer --- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 48px 0 34px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.6fr)); gap: 32px; }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 36ch; margin-top: 12px; overflow-wrap: anywhere; }
.footer-col h4 { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.footer-col a { display: block; padding: 3px 0; color: var(--muted); font-size: 0.88rem; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ 404 --- */
.lost { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.lost .display { font-size: clamp(4rem, 14vw, 10rem); color: transparent; -webkit-text-stroke: 1px var(--border-strong); }
.lost p { color: var(--muted); max-width: 46ch; margin: 14px auto 26px; }

/* ------------------------------------------------------- view transitions --- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.32s;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  ::view-transition-group(*) { animation-duration: 0.42s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  ::view-transition-old(root) { animation-name: vt-fade-out; }
  ::view-transition-new(root) { animation-name: vt-fade-in; }
}
@keyframes vt-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- reveal --- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .nav {
    display: flex;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 24px 20px;
    background: rgba(7, 8, 10, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(18px);
  }
  body.nav-open .nav a { padding: 10px 12px; font-size: 14px; }
  body.nav-open .nav .nav-sep { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-stack { min-height: 360px; max-width: 560px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { position: static; }
  .about-layout { grid-template-columns: 1fr; gap: 20px; }
  .side-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .side-nav a { border-left: 0; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; }
  .side-nav .sn-label { width: 100%; margin: 6px 0 0; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .shell { width: min(var(--max), calc(100% - 32px)); }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .form-row { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tabs-inner { gap: 10px; overflow-x: auto; }
  .tabs nav a { padding: 7px 10px; }
  .hero-stack { min-height: 300px; }
  .mini-card { width: min(180px, 50vw); }
  .mc-1 { left: 0; }
  .mc-2 { left: 24%; }
  .mc-3 { left: 48%; }
  .game-hero { padding-top: 64px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 8px 14px; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .mini-card { width: min(150px, 46vw); }
  .mc-1 { left: 0; }
  .mc-2 { left: 22%; }
  .mc-3 { left: 44%; }
}

/* ============================================================================
   GRIT LAYER — film grain, scanlines, vignette, sharp technical surfaces.
   Appended last so it overrides the base component styles above.
   ========================================================================== */

/* scanlines + vignette over the whole viewport; never interactive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: var(--scan-opacity);
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0 1px, transparent 1px 3px),
    radial-gradient(125% 95% at 50% 42%, transparent 52%, rgba(0, 0, 0, 0.55) 100%);
  background-size: auto, auto;
}

/* animated film grain, injected by fx.js as <div class="grain"> */
.grain {
  position: fixed;
  inset: -60px;
  z-index: 9989;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.6'/></svg>");
  background-size: 140px 140px;
  animation: grain-shift 900ms steps(2) infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
}
@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-14px, 9px, 0); }
  100% { transform: translate3d(11px, -12px, 0); }
}

/* type helpers ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  box-shadow: 0 0 8px currentColor;
}
.telemetry {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* header / footer ------------------------------------------------------------- */
.site-header {
  background: rgba(8, 9, 11, 0.82);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.brand { letter-spacing: 0.18em; }
.brand svg { color: var(--studio); }

.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 60%),
    var(--bg-elev);
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}

/* surfaces -------------------------------------------------------------------- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 50px rgba(0, 0, 0, 0.45);
}

/* buttons --------------------------------------------------------------------- */
.btn {
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn--primary:hover { background: var(--accent); color: var(--accent-ink); filter: brightness(1.08); }

/* chips / status -------------------------------------------------------------- */
.chip {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
}
.status {
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  padding: 5px 9px;
}

/* section heads --------------------------------------------------------------- */
.section-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.section-head h2 { letter-spacing: -0.035em; }

/* feature boxes + systems ----------------------------------------------------- */
.feature-box {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.feature-box:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.feature-box h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}
/* scannable lead line above the deeper explanation */
.feature-box .f-lead {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}
.feature-box p { color: var(--muted); font-size: 0.86rem; line-height: 1.62; }

.system { border-bottom: 1px solid var(--line); }
.system p.overview { max-width: 74ch; color: var(--muted); }
.system-map a {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.system-map a:hover { transform: translateY(-1px); }

/* side nav -------------------------------------------------------------------- */
.side-nav a {
  border-left: 2px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.side-nav a:hover { border-left-color: var(--accent); }

/* tabs ------------------------------------------------------------------------ */
.tabs { border-bottom: 1px solid var(--line); }
.tabs nav a { border-radius: var(--radius-sm); font-size: 9.5px; }
.tabs nav a[aria-current="page"] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent) inset;
}

/* roadmap --------------------------------------------------------------------- */
.roadmap-col {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.roadmap-col h3 { color: var(--accent); }

/* gallery --------------------------------------------------------------------- */
.shot {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}
.shot:hover img { transform: scale(1.035); }

/* prose ----------------------------------------------------------------------- */
.prose p { max-width: 74ch; color: var(--muted); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose strong { color: var(--text); }
.note {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.025);
}
.lore-card { border-radius: var(--radius); }

@media (max-width: 720px) {
  .section-head { border-bottom: 0; padding-bottom: 0; }
}

/* ============================================================================
   3D TV / MONITOR — CSS-3D hero slideshow (no WebGL textures; works on file://)
   ========================================================================== */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.hero-copy { min-width: 0; }

.tv {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.tv--compact { max-width: 400px; }
.tv__bezel {
  position: relative;
  padding: 12px 12px 30px;
  border-radius: 12px;
  background: linear-gradient(165deg, #33383e 0%, #1a1d21 44%, #0b0d0f 100%);
  box-shadow:
    0 50px 90px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.07) inset,
    0 0 0 2px rgba(0, 0, 0, 0.55);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 160ms ease-out;
}
.tv__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 5px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 0 34px rgba(0, 0, 0, 0.8) inset;
  transform: translateZ(12px);
  isolation: isolate;
}
.tv__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 620ms ease;
  z-index: 1;
}
.tv__slide.is-active { opacity: 1; z-index: 2; }
.tv__slide--art { position: absolute; inset: 0; aspect-ratio: auto; z-index: 1; }
.tv__glass,
.tv__scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.tv__glass {
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.03) 26%, transparent 46%);
  mix-blend-mode: screen;
}
.tv__scan {
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.26) 0 1px, transparent 1px 3px);
  opacity: 0.55;
}
.tv__brand {
  position: absolute;
  left: 14px;
  bottom: 10px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.tv__brand b { color: var(--accent); font-weight: 500; }
.tv__ch {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.32);
}
.tv__stand {
  width: 46%;
  height: 26px;
  margin: -2px auto 0;
  background: linear-gradient(180deg, #171a1e, #090b0c);
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.5);
}
.tv__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
}
.tv__nav--prev { left: 18px; }
.tv__nav--next { right: 18px; }
.tv__btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 9, 11, 0.55);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.tv__btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: scale(1.07);
}
.tv__dots {
  position: absolute;
  left: 50%;
  bottom: 11px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.tv__dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  cursor: pointer;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.tv__dot:hover { background: rgba(255, 255, 255, 0.5); }
.tv--single .tv__nav,
.tv--single .tv__dots { display: none; }
.tv__dot.is-active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  transform: scale(1.15);
}
.tv__slide--art::after { opacity: 0.6; }
.tv__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tv:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 14px;
}
@media (prefers-reduced-motion: reduce) {
  .tv__slide { transition: none; }
  .tv__bezel { transition: none; }
}

@media (max-width: 1100px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .tv { order: -1; justify-self: start; max-width: 520px; }
  .tv--compact { max-width: 380px; }
}
@media (max-width: 520px) {
  .tv { max-width: 100%; }
  .tv__btn { width: 30px; height: 30px; }
  .tv__nav--prev { left: 12px; }
  .tv__nav--next { right: 12px; }
}

/* ============================================================================
   POINTER FX — click particles canvas + CSS-3D custom cursor
   ========================================================================== */
#fx {
  position: fixed;
  inset: 0;
  z-index: 9995;
  pointer-events: none;
  display: block;
  width: 100%;
  height: 100%;
}

/* hide the native cursor only once the custom one is live (fine pointers) */
@media (pointer: fine) {
  body.cursor-on,
  body.cursor-on a,
  body.cursor-on button,
  body.cursor-on input,
  body.cursor-on textarea,
  body.cursor-on select { cursor: none; }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  pointer-events: none;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  opacity: 0;
  transition: opacity 200ms ease;
  will-change: transform;
}
body.cursor-on .cursor { opacity: 1; }
.cursor__ring,
.cursor__ring2,
.cursor__dot { position: absolute; display: block; }

.cursor__ring {
  inset: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: rotateX(54deg);
  box-shadow: 0 0 14px var(--glow), inset 0 0 10px var(--glow);
  transition: transform 160ms ease, border-color 160ms ease;
}
.cursor__ring2 {
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transform: rotateX(54deg) translateZ(7px);
  opacity: 0.6;
}
.cursor__dot {
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transition: transform 140ms ease;
}
.cursor.is-down .cursor__ring { transform: rotateX(54deg) scale(0.78); }
.cursor.is-down .cursor__dot { transform: scale(1.9); }

/* studio — bone ring, cyan pulse */
body[data-cursor="studio"] .cursor__ring { border-color: #ede9e0; }
body[data-cursor="studio"] .cursor__dot { background: #38e1ff; box-shadow: 0 0 12px #38e1ff; }

/* axon — amber dashed free-aim reticle */
body[data-cursor="axon"] .cursor__ring { border-style: dashed; }
body[data-cursor="axon"] .cursor__ring2 { display: none; }

/* palm — coral lane diamond */
body[data-cursor="palm"] .cursor__ring { transform: rotateX(54deg) rotate(45deg); border-radius: 4px; }
body[data-cursor="palm"] .cursor__ring2 { transform: rotateX(54deg) rotate(45deg) translateZ(7px); border-radius: 3px; }

/* chornobyl — heavy lime dosimeter ring */
body[data-cursor="chornobyl"] .cursor__ring { border-width: 2px; }
body[data-cursor="chornobyl"] .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; }

/* inertia — amber stencil square */
body[data-cursor="inertia"] .cursor__ring { border-style: dashed; transform: rotateX(54deg) rotate(45deg); border-radius: 2px; }
body[data-cursor="inertia"] .cursor__ring2 { transform: rotateX(54deg) rotate(45deg) translateZ(7px); border-radius: 2px; }

/* marrow — blood iso tile */
body[data-cursor="marrow"] .cursor__ring { transform: rotateX(58deg) rotate(45deg); border-radius: 2px; background: rgba(215, 38, 61, 0.12); }
body[data-cursor="marrow"] .cursor__ring2 { display: none; }

/* terraforge — ore ring, copper outer */
body[data-cursor="terraforge"] .cursor__ring { border-color: #5fd0a0; }
body[data-cursor="terraforge"] .cursor__ring2 { border-color: #c98a4b; }

/* hollowmere — ember pixel square */
body[data-cursor="hollowmere"] .cursor__ring { border-radius: 0; }
body[data-cursor="hollowmere"] .cursor__ring2 { border-radius: 0; border-color: rgba(255, 157, 92, 0.5); }
body[data-cursor="hollowmere"] .cursor__dot { border-radius: 0; }

@media (pointer: coarse) {
  .cursor { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { transition: none; }
  .cursor__ring { transition: none; }
}

/* hub + tools cards, mini-cards and form fields — same grit language */
.game-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px) saturate(115%);
  -webkit-backdrop-filter: blur(6px) saturate(115%);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.game-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45); }
.game-card h3 { font-family: var(--font-display); letter-spacing: -0.02em; }
.game-card .more {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.game-card:hover .more { color: var(--accent); }

.tool-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.mini-card {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
.mini-card span {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.mini-card strong { font-family: var(--font-display); }

.field input,
.field select,
.field textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
}
.about-grid > .card,
.contact-grid > .card { border-radius: var(--radius); }

/* ============================================================================
   CONTENT / STATUS OVERHAUL — live beta, shelf groups, manifesto, signature
   ========================================================================== */
.status[data-status="livebeta"] { color: var(--ok); border-color: rgba(110, 231, 168, 0.28); }
.status[data-status="livebeta"]::before { background: var(--ok); box-shadow: 0 0 10px rgba(110, 231, 168, 0.5); }

.hero-role {
  margin: 18px 0 0;
  max-width: 46ch;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  line-height: 1.3;
  color: var(--text);
}
.signature {
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.manifesto {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%),
    var(--bg-elev);
}
.manifesto .eyebrow { margin-bottom: 12px; }
.manifesto__tagline {
  margin-bottom: 28px;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}
.manifesto__projects { display: grid; max-width: 760px; }
.manifesto__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 2px;
  border-top: 1px solid var(--line);
}
.manifesto__row:last-child { border-bottom: 1px solid var(--line); }
.manifesto__name {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
}
.manifesto__row:hover .manifesto__name { color: var(--accent); }

.shelf-group + .shelf-group { margin-top: 40px; }
.shelf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.shelf-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.about-grid { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 720px) {
  .manifesto { padding: 44px 0; }
  .manifesto__row { grid-template-columns: 1fr; gap: 8px; }
  .manifesto__row .status { justify-self: start; }
  .shelf-group + .shelf-group { margin-top: 32px; }
}

/* ============================================================================
   READABILITY PASS — larger header brand, hero meta + compact game title,
   lifted muted/dim contrast, and +1px on the tiny uppercase labels.
   Appended last so it wins over earlier duplicate rules.
   ========================================================================== */
:root { --muted: #a7adaa; --dim: #8b93a1; }

/* Header brand 1.5x (header only; footer brand deliberately unchanged). */
.site-header .brand { font-size: 22.5px; gap: 15px; }
.site-header .brand svg { width: 39px; height: 39px; }
.site-header .logo-canvas { width: 39px; height: 39px; }

/* Hero meta + compact game-page title. */
.hero-meta span { font-size: 12.5px; }
.game-hero--compact h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }

/* Tiny uppercase labels: +1px for legibility. */
.eyebrow { font-size: 11px; }
.status { font-size: 10px; }
.chip { font-size: 11px; }
.roadmap-col h3 { font-size: 11px; }
.roadmap-col .count { font-size: 10px; }
.milestone p { font-size: 0.88rem; }
.system-map .n { font-size: 10px; }
.system-map .s { font-size: 9.5px; }
.tabs .back, .tabs nav a { font-size: 11px; }
.side-nav .sn-label { font-size: 10px; }
.system-foot { font-size: 10px; }
.shot figcaption { font-size: 10px; }
.footer-grid h4, .footer-col h4 { font-size: 10px; }
.footer-col a { font-size: 0.92rem; }
.footer-bottom { font-size: 10px; }
.shelf-head { font-size: 11px; }
.shelf-count { font-size: 10px; }

/* Persistent cursor-tracking eye mark: left gutter on wide, bottom-left on narrow. */
.eyemark-canvas {
  position: fixed;
  z-index: 9980;            /* below grain(9989)/fx(9995)/cursor(10000) */
  pointer-events: none;
  opacity: 0;
  transition: opacity 620ms ease;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(300px, calc((100vw - 1200px) / 2 - 24px));
  height: min(300px, calc((100vw - 1200px) / 2 - 24px));
}
.eyemark-canvas.is-live { opacity: 1; }

@media (max-width: 1499px) {
  .eyemark-canvas {
    top: auto;
    bottom: 12px;
    left: 12px;
    transform: none;
    width: 120px;
    height: 120px;
  }
  .eyemark-canvas.is-live { opacity: 0.9; }
}

@media (max-width: 720px) {
  .eyemark-canvas { width: 88px; height: 88px; bottom: 10px; left: 10px; }
}

/* Eye laser: fast red beam from the eyemark to the click point (fired by scene3d.js). */
.sv-laser {
  position: fixed;
  height: 3px;
  margin-top: -1.5px;
  background: linear-gradient(90deg, rgba(255, 47, 58, 0.15), #ff2f3a);
  box-shadow: 0 0 12px #ff2f3a, 0 0 26px rgba(255, 47, 58, 0.6);
  transform-origin: 0 50%;
  pointer-events: none;
  z-index: 9998;
  animation: sv-laser 200ms ease-out forwards;
}
@keyframes sv-laser {
  0% { opacity: 0; transform: rotate(var(--ang)) scaleX(0.15); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--ang)) scaleX(1); }
}
.sv-laser-impact {
  position: fixed;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ff2f3a 0%, rgba(255, 47, 58, 0.4) 45%, rgba(255, 47, 58, 0) 70%);
  box-shadow: 0 0 18px #ff2f3a, 0 0 34px rgba(255, 47, 58, 0.6);
  pointer-events: none;
  z-index: 9998;
  animation: sv-laser-impact 260ms ease-out forwards;
}
@keyframes sv-laser-impact {
  0% { opacity: 1; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(2.8); }
}
@media (prefers-reduced-motion: reduce) {
  .sv-laser, .sv-laser-impact { display: none; }
}

/* ---------------------------------------------------------------- armory --- */

.armory-toolbar {
  position: sticky;
  top: 120px;
  z-index: 35;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 11, 12, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.armory-toolbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  padding: 14px 0;
}

.armory-toolbar__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.armory-toolbar__search { flex: 1 1 260px; }
.armory-toolbar__actions { flex-direction: row; align-items: center; gap: 12px; margin-left: auto; }

.armory-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.armory-search,
.armory-select {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 38px;
}

.armory-search:focus,
.armory-select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 180, 84, 0.12);
}

.armory-select { cursor: pointer; }

.armory-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.armory-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.armory-chip span { color: var(--dim); font-size: 9px; }
.armory-chip:hover { color: var(--text); border-color: rgba(255, 180, 84, 0.35); }

.armory-chip[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(255, 180, 84, 0.45);
  background: rgba(255, 180, 84, 0.08);
}

.armory-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--dim);
  white-space: nowrap;
}

.armory-empty {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.armory-empty p { margin-bottom: 10px; }

.armory-section { scroll-margin-top: 180px; }
.armory-section-count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.armory-group + .armory-group { margin-top: 26px; }

.armory-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.armory-group__title span { color: var(--dim); }

.armory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.armory-grid[data-armory-grid="weapons"],
.armory-grid[data-armory-grid="ammo"],
.armory-grid[data-armory-grid="attachments"],
.armory-grid[data-armory-grid="items"] { display: block; }

.armory-grid--operator { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.armory-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.armory-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.55;
}

.armory-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 180, 84, 0.28);
  background: linear-gradient(180deg, rgba(255, 180, 84, 0.055), rgba(255, 255, 255, 0.018));
}

.armory-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.armory-card__meta {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.armory-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
}

.armory-card__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.armory-card__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.armory-stat { min-width: 0; }

.armory-stat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.armory-stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.armory-bar {
  display: block;
  height: 3px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.armory-bar__fill {
  display: block;
  height: 100%;
  width: var(--bar, 0%);
  background: linear-gradient(90deg, var(--accent), var(--signal));
}

.armory-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.armory-card__more {
  appearance: none;
  border: 1px solid rgba(255, 180, 84, 0.3);
  background: rgba(255, 180, 84, 0.06);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.armory-card__more:hover { background: rgba(255, 180, 84, 0.12); }

.armory-card__source {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.armory-tag {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.armory-table-wrap {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
}

.armory-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 11px;
}

.armory-table caption {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.armory-table th,
.armory-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.armory-table th {
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.armory-table td { color: var(--text); }
.armory-table tr:last-child td { border-bottom: 0; }
.armory-table tbody tr:hover { background: rgba(255, 180, 84, 0.04); }

.armory-swatches { display: flex; flex-wrap: wrap; gap: 7px; }

.armory-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--swatch, #59636e);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
}

.armory-subcards { display: grid; gap: 8px; }

.armory-subcard {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.armory-subcard h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

.armory-subcard p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.armory-card--operator { gap: 10px; }

.armory-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(82vh, 900px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.armory-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.armory-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.armory-dialog__head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

.armory-dialog__close {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.armory-dialog__close:hover { color: var(--text); border-color: var(--accent); }

.armory-dialog__body {
  padding: 18px 20px 26px;
  overflow-y: auto;
  max-height: calc(82vh - 84px);
}

.armory-dialog__group + .armory-dialog__group { margin-top: 22px; }

.armory-dialog__group h3 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.armory-dialog__group dl { margin: 0; display: grid; gap: 0; }

.armory-dialog__row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}

.armory-dialog__row dt {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.armory-dialog__row dd {
  margin: 0;
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body.armory-dialog-open { overflow: hidden; }

@media (max-width: 1100px) {
  .armory-toolbar { position: static; }
  .armory-toolbar__actions { width: 100%; justify-content: space-between; margin-left: 0; }
}

@media (max-width: 720px) {
  .armory-grid { grid-template-columns: 1fr; }
  .armory-dialog__row { grid-template-columns: 1fr; gap: 2px; }
  .armory-toolbar__search { flex-basis: 100%; }
}

@media (max-width: 420px) {
  .armory-card__stats { grid-template-columns: 1fr; }
}

/* ============================================================================
   3D PARALLAX — header/footer tilt + section/card depth
   ========================================================================== */
body.logo-3d .brand > svg { display: none; }   /* 3D logo replaces the flat SVG everywhere */

.header-inner {
  transform: perspective(1200px) rotateX(var(--hrx, 0deg)) rotateY(var(--hry, 0deg));
  transition: transform 160ms ease-out;
  will-change: transform;
}
.footer-grid {
  transform: perspective(1200px) rotateX(var(--frx, 0deg)) rotateY(var(--fry, 0deg));
  transition: transform 200ms ease-out;
  will-change: transform;
}
.feature-box, .milestone {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 160ms ease-out, border-color 160ms ease, background-color 160ms ease;
}
.card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease-out, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.card:hover {
  transform: perspective(900px) translateY(-2px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.game-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 200ms ease-out, border-color 200ms ease, box-shadow 200ms ease;
}
.game-card:hover {
  transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.section-head {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

@media (max-width: 1100px) {
  .header-inner { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .header-inner, .footer-grid, .feature-box, .milestone, .card, .game-card, .section-head {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* ============================================================================
   SITE-WIDE 3D — every element
   Extends the 3D PARALLAX pass above to all remaining UI: nav links, buttons,
   chips, headings, eyebrow, covers, mini-cards, manifesto rows, footer columns,
   gallery shots, armory/tool cards. Pure CSS + existing site.js var drivers
   (--rx/--ry per card, --hrx/--hry header, --frx/--fry footer, --bry/--brx brand,
   --cry/--crx footer columns). No WebGL. No layout shift. Reduced-motion freezes all.
   ========================================================================== */
:root {
  --tilt-card: 7deg;
  --tilt-surface: 2.5deg;
  --tilt-control: 4deg;
  --depth-step: 14px;
}

/* Containers that hold layered children need preserve-3d for translateZ depth. */
.cover,
.mini-card,
.game-card,
.tool-card,
.armory-card,
.manifesto__row,
.card {
  transform-style: preserve-3d;
}

/* --- navigation links: depth + lift on hover ------------------------------- */
.nav a {
  transition: transform 160ms ease, color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  will-change: transform;
}
.nav a:hover {
  transform: translateZ(var(--depth-step)) translateY(-1px);
  box-shadow: 0 8px 22px rgba(56, 225, 255, 0.14);
}

/* --- buttons: tilt toward cursor + depth ----------------------------------- */
.btn {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 160ms ease-out, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  will-change: transform;
}
.btn:hover {
  transform: perspective(900px) translateY(-1px) translateZ(var(--depth-step)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

/* --- eyebrow: depth + accent line settle ----------------------------------- */
.eyebrow {
  transform: translateZ(calc(var(--depth-step) * 0.5));
  transition: letter-spacing 400ms ease, transform 200ms ease-out;
}
.eyebrow::before { transition: transform 400ms ease; }
.reveal.is-in .eyebrow::before { transform: scaleX(1); }

/* --- headings: depth + slight pointer tilt --------------------------------- */
.display,
.section-head h2,
.manifesto__tagline {
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(calc(var(--depth-step) * 0.6));
  transition: transform 200ms ease-out;
  will-change: transform;
}

/* --- lead paragraph + hero meta: subtle depth ------------------------------ */
.lead { transform: translateZ(calc(var(--depth-step) * 0.35)); }
.hero-meta span {
  display: inline-block;
  transform: translateZ(calc(var(--depth-step) * 0.3));
  transition: transform 200ms ease-out;
}

/* --- covers: layered depth (label / mark / name at different Z) ------------ */
.cover > * { transition: transform 220ms ease-out; }
.game-card:hover .cover-label,
.game-card:hover .cover-mark,
.game-card:hover .cover-name {
  transform: translateZ(calc(var(--depth-step) * 0.8));
}

/* --- status + chips: depth + lift on hover --------------------------------- */
.status,
.chip {
  transform: translateZ(calc(var(--depth-step) * 0.4));
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.status:hover,
.chip:hover {
  transform: translateZ(var(--depth-step)) translateY(-1px);
}

/* --- manifesto rows: tilt + accent depth ----------------------------------- */
.manifesto__row {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease-out, background-color 160ms ease;
  will-change: transform;
}
.manifesto__row:hover { background: rgba(255, 255, 255, 0.025); }

/* --- shelf head + section head depth --------------------------------------- */
.shelf-head { transform: translateZ(calc(var(--depth-step) * 0.3)); }

/* --- system map / side nav / tabs links: depth + lift ---------------------- */
.system-map a,
.side-nav a,
.tabs nav a {
  transform: translateZ(calc(var(--depth-step) * 0.4));
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.system-map a:hover,
.side-nav a:hover,
.tabs nav a:hover {
  transform: translateZ(var(--depth-step)) translateY(-1px);
}

/* --- gallery shots: tilt + depth ------------------------------------------- */
.shot {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease-out, border-color 180ms ease;
  will-change: transform;
}
.shot:hover { transform: perspective(900px) translateY(-2px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* --- footer: grid tilts, per-column depth ---------------------------------- */
.footer-col,
.footer-brand {
  transform: perspective(1000px) rotateX(var(--crx, 0deg)) rotateY(var(--cry, 0deg));
  transition: transform 200ms ease-out;
  will-change: transform;
}

/* --- brand lockup (header): subtle pointer tilt ---------------------------- */
.brand {
  transform: perspective(800px) rotateX(var(--brx, 0deg)) rotateY(var(--bry, 0deg));
  transition: transform 160ms ease-out;
  will-change: transform;
}

/* --- tool + armory cards: match game-card tilt/depth ----------------------- */
.tool-card,
.armory-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 200ms ease-out, border-color 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}
.tool-card:hover,
.armory-card:hover {
  transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

/* --- mini-cards: pointer tilt + depth -------------------------------------- */
.mini-card {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 180ms ease-out;
  will-change: transform;
}

/* --- reveal: add translateZ depth settle ----------------------------------- */
.reveal {
  transform: translate3d(0, 18px, calc(var(--depth-step) * -1));
  transition: opacity 800ms cubic-bezier(.2,.65,.2,1), transform 800ms cubic-bezier(.2,.65,.2,1);
}
.reveal.is-in { transform: translate3d(0, 0, 0); }

/* --- disable tilt on coarse pointers (touch) ------------------------------- */
@media (pointer: coarse) {
  .btn, .display, .section-head h2, .manifesto__tagline, .manifesto__row, .shot,
  .tool-card, .armory-card, .mini-card, .game-card, .card, .feature-box, .milestone,
  .brand, .footer-col, .footer-brand {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

/* --- reduced-motion: freeze everything ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .nav a, .btn, .eyebrow, .display, .section-head h2, .manifesto__tagline, .lead,
  .hero-meta span, .status, .chip, .manifesto__row, .shelf-head, .system-map a,
  .side-nav a, .tabs nav a, .shot, .footer-col, .footer-brand, .brand, .tool-card,
  .armory-card, .mini-card, .game-card, .card, .feature-box, .milestone, .cover > * {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
  .reveal { transform: none !important; transition: none !important; }
}

/* ============================================================================
   BACKGROUND-ONLY MODE  (scene-only body class, toggled by #scene-toggle)
   Hides all site content so you can just watch the 3D scene.
   ========================================================================== */
.scene-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10001;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 9, 11, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: color 160ms ease, border-color 160ms ease;
}
.scene-toggle:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}
body.scene-only .site-header,
body.scene-only main,
body.scene-only .site-footer {
  display: none !important;
}
body.scene-only .eyemark-canvas {
  opacity: 0.35 !important;
}

/* ============================================================================
   RED CROSSHAIR CURSOR  (overrides all per-theme cursor variants)
   ========================================================================== */
.cursor {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
}
.cursor__ring {
  inset: 0;
  border: 1.5px solid #ff2f3a !important;
  border-radius: 50% !important;
  transform: none !important;
  box-shadow: 0 0 12px rgba(255, 47, 58, 0.7), inset 0 0 8px rgba(255, 47, 58, 0.35) !important;
  transition: transform 160ms ease, border-color 160ms ease;
}
.cursor__ring::before,
.cursor__ring::after {
  content: "";
  position: absolute;
  background: #ff2f3a;
  box-shadow: 0 0 6px rgba(255, 47, 58, 0.9);
}
.cursor__ring::before {
  left: -7px;
  right: -7px;
  top: 50%;
  height: 2px;
  margin-top: -1px;
}
.cursor__ring::after {
  top: -7px;
  bottom: -7px;
  left: 50%;
  width: 2px;
  margin-left: -1px;
}
.cursor__ring2 {
  inset: 8px;
  border: 1px solid rgba(255, 47, 58, 0.45) !important;
  border-radius: 50% !important;
  transform: none !important;
  opacity: 0.7;
}
.cursor__dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #ff2f3a !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px #ff2f3a !important;
}
.cursor.is-down .cursor__ring { transform: scale(0.8) !important; }
.cursor.is-down .cursor__dot { transform: scale(1.8); }

/* Neutralize every per-theme cursor variant to the red crosshair. */
body[data-cursor] .cursor__ring {
  border-color: #ff2f3a !important;
  border-style: solid !important;
  border-radius: 50% !important;
  transform: none !important;
  background: transparent !important;
}
body[data-cursor] .cursor__ring2 {
  border-color: rgba(255, 47, 58, 0.45) !important;
  border-radius: 50% !important;
  display: block !important;
  transform: none !important;
}
body[data-cursor] .cursor__dot {
  background: #ff2f3a !important;
  border-radius: 50% !important;
}
