/* Layout concept: the site reads like a comic you flip through. Inked panels with hard
   offset shadows sit in gutters on a night-black page; narration lives in yellow caption
   boxes, dialogue in speech bubbles. Colors come from the game's ComicStyle UI palette. */
@font-face {
  font-family: "Anime Ace";
  src: url("../fonts/animeace2_bld.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  size-adjust: 68%;
}

:root {
  color-scheme: dark;
  --night: #0c0b0d;        /* page */
  --ink: #141414;          /* outlines, panel fills */
  --cream: #fffae6;        /* paper, body text */
  --cream-dim: #d9d3bd;    /* secondary text on dark */
  --red: #ed2114;
  --yellow: #ffdb1a;       /* Tactical */
  --pink: #ff78bd;         /* Frantic */
  --orange: #ff7805;
  --cash: #66cc33;
  --line: #000;

  --display: "Anime Ace", "Impact", "Arial Narrow Bold", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.4vw, 4.8rem);

  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --shadow: 6px 6px 0 var(--line);
  --halftone: radial-gradient(circle at center, rgba(0, 0, 0, 0.28) 1.6px, transparent 1.9px);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--night);
  background-image: radial-gradient(circle at center, rgba(255, 250, 230, 0.035) 1.4px, transparent 1.7px);
  background-size: 9px 9px;
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ink);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 8px 14px; font-weight: 700;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 46rem; }
.section-head p { color: var(--cream-dim); font-size: var(--step-1); line-height: 1.5; max-width: 40rem; }

/* Labels: the Field Kit / case-file voice */
.label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand span { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.04em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; padding: 10px 12px; color: var(--cream-dim);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--cream); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none; font: 700 0.8rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  background: none; color: var(--cream); border: 2px solid var(--cream); padding: 8px 12px; cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 3px solid var(--line);
    padding: 8px var(--gutter-r) 16px var(--gutter);
  }
  .site-nav[data-open="false"] { display: none; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #2a2826; }
  .site-nav .btn { margin: 14px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.06em; line-height: 1;
  text-decoration: none; color: var(--ink); background: var(--yellow);
  border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line);
  padding: 12px 22px 11px; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-cream { background: var(--cream); }
.btn-small { font-size: 1.1rem; padding: 8px 14px 7px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Comic devices ---------- */
.panel {
  background: var(--ink);
  border: 3px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-paper { background: var(--cream); color: var(--ink); }

.caption {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--line);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 3px 3px 0 var(--line);
}

.bubble {
  position: relative;
  display: inline-block;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--line);
  border-radius: 50% / 46%;
  padding: 22px 30px;
  font-family: var(--display);
  font-size: var(--step-2);
  letter-spacing: 0.03em;
  line-height: 1;
  text-align: center;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 22%;
  bottom: -26px;
  width: 30px; height: 30px;
  background: #fff;
  border-right: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  transform: skewX(32deg) rotate(18deg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.sticker { position: absolute; pointer-events: none; z-index: 3; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); border-bottom: 3px solid var(--line); }
.hero-art { width: 100%; height: auto; aspect-ratio: 2400 / 775; object-fit: cover; }
.hero-box {
  position: absolute; top: clamp(10px, 2vw, 22px); left: max(16px, env(safe-area-inset-left, 0px));
  display: grid; justify-items: center; gap: 2px;
  background: #fff; color: var(--ink); border: 3px solid var(--line);
  padding: 6px 8px; width: 92px; text-align: center;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
}
.hero-box img { width: 54px; height: 54px; }
.hero-box strong { display: block; background: var(--red); color: #fff; width: 100%; padding: 3px 0; font-size: 0.66rem; }
.hero-band { position: relative; background: #000; }
.hero-band .price-box { z-index: 2; }
.hero-band::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); z-index: 1; pointer-events: none;
  height: clamp(72px, 13svh, 124px);
  background: url("../img/halftone-fade.svg") repeat-x bottom left / auto 100%;
}
.hero-band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 48px); align-items: end; padding-block: clamp(28px, 5vw, 52px); }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-copy .label { color: var(--ink); background: var(--yellow); justify-self: start; padding: 4px 10px; border: 2px solid var(--line); }
.hero-copy h1 { font-size: var(--step-4); color: #fff; text-shadow: 3px 3px 0 var(--red); max-width: 16ch; }
.hero-copy p { font-size: var(--step-1); line-height: 1.5; color: #fff; max-width: 44rem; font-weight: 500; }
.hero-meta { font-family: var(--mono); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-dim); }
.price-box {
  display: grid; place-items: center; text-align: center;
  width: 150px; aspect-ratio: 1; background: var(--yellow); color: var(--ink);
  border: 3px solid var(--line); box-shadow: var(--shadow);
  clip-path: polygon(50% 0, 61% 12%, 77% 5%, 80% 21%, 96% 23%, 89% 38%, 100% 50%, 89% 62%, 96% 77%, 80% 79%, 77% 95%, 61% 88%, 50% 100%, 39% 88%, 23% 95%, 20% 79%, 4% 77%, 11% 62%, 0 50%, 11% 38%, 4% 23%, 20% 21%, 23% 5%, 39% 12%);
  font-family: var(--display); font-size: 1.9rem; line-height: 0.9; transform: rotate(-8deg);
}
.price-box small { display: block; font-size: 1rem; }

@media (max-width: 640px) {
  .hero-art { aspect-ratio: 600 / 900; }
  .hero-box { display: none; }
  .hero-band .wrap { grid-template-columns: minmax(0, 1fr); }
  .price-box { position: absolute; right: 12px; top: -96px; width: 112px; font-size: 1.45rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy h1 { animation: stamp 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both 0.15s; }
  .price-box { animation: pop 0.45s cubic-bezier(0.2, 1.8, 0.4, 1) both 0.55s; }
}
@keyframes stamp { from { transform: scale(1.18) rotate(-2deg); } to { transform: none; } }
@keyframes pop { from { transform: scale(0.4) rotate(-30deg); } to { transform: rotate(-8deg); } }

/* ---------- Gameplay video ---------- */
.trailer-embed { background: #000; }
.trailer-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* ---------- Setup ---------- */
.setup { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.handler-panel { position: relative; background: #fff; transform: rotate(-1.5deg); }
.handler-panel img { width: 100%; height: auto; }
.handler-panel .bubble { position: absolute; right: -8px; top: 18px; max-width: 70%; transform: rotate(3deg); }
.handler-name { position: absolute; left: 12px; bottom: 12px; }
.setup-copy { display: grid; gap: 18px; justify-items: start; min-width: 0; }
.setup-copy .caption:nth-of-type(2) { margin-left: clamp(0px, 4vw, 40px); }
.setup-copy .caption:nth-of-type(3) { margin-left: clamp(0px, 8vw, 80px); }
.setup-copy .lede { font-size: var(--step-1); line-height: 1.55; max-width: 38rem; }
@media (max-width: 820px) {
  .setup { grid-template-columns: minmax(0, 1fr); }
  .handler-panel { max-width: 420px; }
}

/* ---------- Operatives ---------- */
.operatives-band { background: var(--ink); border-block: 3px solid var(--line); }
.operatives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.op { --accent: var(--yellow); display: grid; grid-template-rows: auto 1fr; background: var(--night); }
.op-frantic { --accent: var(--pink); }
.op-top {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: end;
  padding: 18px; background-color: var(--accent); background-image: var(--halftone); background-size: 7px 7px;
  border-bottom: 3px solid var(--line); color: var(--ink);
}
.op-top img { width: 132px; height: 132px; background: var(--cream); border: 3px solid var(--line); object-fit: cover; }
.op-top .label { color: var(--ink); }
.op-top h3 { font-size: var(--step-3); }
.op-top .tagline { font-family: var(--display); font-size: 1.35rem; letter-spacing: 0.04em; }
.op-body { display: grid; gap: 18px; padding: 20px 20px 24px; align-content: start; }
.op-body > p { color: var(--cream-dim); }
.stat { display: grid; gap: 6px; }
.stat-row { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.stat-row span:last-child { font-variant-numeric: tabular-nums; color: var(--accent); }
.meter { height: 14px; border: 2px solid var(--cream); background: transparent; }
.meter i { display: block; height: 100%; background: var(--accent); }
.op dl { display: grid; gap: 12px; margin: 0; }
.op dt { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.op dd { margin: 2px 0 0; }
.switch-note { margin-top: 26px; text-align: center; color: var(--cream-dim); font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .operatives { grid-template-columns: minmax(0, 1fr); }
  .op-top { grid-template-columns: 96px minmax(0, 1fr); }
  .op-top img { width: 96px; height: 96px; }
}

/* ---------- Job loop ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { display: grid; grid-template-rows: auto 1fr; counter-increment: step; }
.step:nth-child(even) { transform: translateY(18px); }
.step-media { position: relative; aspect-ratio: 16 / 10; border-bottom: 3px solid var(--line); overflow: hidden; background: var(--ink); }
.step-media img { width: 100%; height: 100%; object-fit: cover; }
.step-media::before {
  content: counter(step);
  position: absolute; left: 10px; top: 10px; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--yellow); color: var(--ink); border: 3px solid var(--line); border-radius: 50%;
  font-family: var(--display); font-size: 1.5rem;
}
.step-body { display: grid; gap: 8px; padding: 16px 16px 20px; align-content: start; }
.step-body h3 { font-size: 1.7rem; }
.step-body p { font-size: 0.95rem; line-height: 1.55; }
.grades { display: flex; height: 100%; align-items: center; justify-content: center; gap: 6px; background: #20201d; padding: 12px; }
.grades span {
  display: grid; place-items: center; width: 17%; aspect-ratio: 1; max-width: 52px;
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 2rem); border: 3px solid var(--line);
  background: var(--cream); color: var(--ink); transform: rotate(-6deg);
}
.grades span:first-child { background: var(--yellow); transform: rotate(-10deg) scale(1.15); }
.grades span:last-child { background: #8b8577; }
.tax { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: var(--cash); letter-spacing: 0.04em; }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(even) { transform: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.feature { display: grid; grid-template-rows: auto 1fr; }
.feature-media { aspect-ratio: 16 / 9; border-bottom: 3px solid var(--line); overflow: hidden; }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-body { display: grid; gap: 10px; padding: 18px 18px 22px; align-content: start; }
.feature-body h3 { font-size: 1.9rem; }
.feature-body p { color: var(--cream-dim); }
.feature.wide { grid-column: span 3; }
.feature.third { grid-column: span 2; }
.feature.paper .feature-body p { color: #3a3833; }
.feature.paper .label { color: var(--red); }
.feature-icon { display: flex; align-items: center; gap: 14px; }
.feature-icon img { width: 56px; height: 56px; object-fit: contain; flex: none; }
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature.wide { grid-column: span 2; }
  .feature.third { grid-column: span 1; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature.wide, .feature.third { grid-column: auto; }
}

/* ---------- Jobs ---------- */
.jobs-band { background-color: #1b1916; border-block: 3px solid var(--line); }
.jobs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.job { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 22px; align-items: start; }
.job .panel { transform: rotate(-2deg); }
.job:nth-child(2) .panel { transform: rotate(2deg); }
.job img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; }
.job-copy { display: grid; gap: 12px; min-width: 0; }
.job-copy h3 { font-size: var(--step-2); }
.objective { border-left: 4px solid var(--red); padding-left: 12px; }
.objective .label { color: var(--red); }
.objective p { font-family: var(--mono); font-size: 0.88rem; font-weight: 700; }
@media (max-width: 960px) { .jobs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .job { grid-template-columns: minmax(0, 1fr); } .job .panel { max-width: 300px; } }

/* ---------- Arsenal ---------- */
.arsenal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.item { display: grid; grid-template-rows: 120px auto 1fr auto; gap: 8px; padding: 16px; background: var(--cream); color: var(--ink); }
.item-img { display: grid; place-items: center; background: #fff; border: 2px solid var(--line); background-image: radial-gradient(circle, rgba(0,0,0,.09) 1.3px, transparent 1.6px); background-size: 7px 7px; }
.item-img img { max-width: 82%; max-height: 92px; width: auto; height: auto; object-fit: contain; }
.item h3 { font-size: 1.55rem; }
.item p { font-size: 0.92rem; line-height: 1.45; color: #3a3833; }
.tag {
  justify-self: start; font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border: 2px solid var(--line); background: var(--ink); color: var(--cream);
}
.tag-cash { background: var(--cash); color: var(--ink); }
.tag-start { background: var(--yellow); color: var(--ink); }
@media (max-width: 1000px) { .arsenal { grid-template-columns: repeat(3, minmax(0, 1fr)); } .arsenal .item:nth-child(10) { grid-column: span 2; } }
@media (max-width: 620px) { .arsenal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .arsenal .item:nth-child(10) { grid-column: auto; } .item { padding: 12px; grid-template-rows: 96px auto 1fr auto; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery button {
  display: block; padding: 0; border: 3px solid var(--line); background: var(--ink); cursor: zoom-in;
  box-shadow: 4px 4px 0 var(--line); overflow: hidden; aspect-ratio: 16 / 9;
}
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery button:hover img { transform: scale(1.04); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery button:first-child { grid-row: auto; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(8, 8, 8, 0.94);
  padding: calc(env(safe-area-inset-top, 0px) + 56px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 56px) var(--gutter);
}
.lightbox figure { margin: 0; display: grid; gap: 12px; max-width: 1400px; width: 100%; }
.lightbox img { width: 100%; max-height: 78vh; object-fit: contain; border: 3px solid var(--line); background: #000; }
.lightbox figcaption { font-family: var(--mono); font-size: 0.85rem; color: var(--cream-dim); text-align: center; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: var(--yellow); color: var(--ink); border: 3px solid var(--line);
  font-family: var(--display); font-size: 1.3rem; cursor: pointer; padding: 6px 14px 4px;
}
.lightbox-close { top: calc(env(safe-area-inset-top, 0px) + 12px); right: var(--gutter-r); }
.lightbox-nav { bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
.lightbox-prev { left: var(--gutter); }
.lightbox-next { right: var(--gutter-r); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background-color: var(--yellow); background-image: var(--halftone); background-size: 7px 7px;
  color: var(--ink); border-block: 3px solid var(--line);
}
.cta { display: grid; gap: 18px; justify-items: start; padding-block: clamp(56px, 8vw, 96px); position: relative; z-index: 2; }
.cta h2 { font-size: var(--step-4); max-width: 14ch; }
.cta p { font-size: var(--step-1); max-width: 34rem; font-weight: 500; line-height: 1.5; }
.cta-band .op-art { position: absolute; right: max(-60px, calc((100vw - 1200px) / 2 - 40px)); bottom: -40px; width: min(42vw, 460px); z-index: 1; }
@media (max-width: 760px) {
  .cta-band .op-art { opacity: 0.25; }
}

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 3px solid var(--line); padding-block: 48px calc(32px + env(safe-area-inset-bottom, 0px)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; }
.footer-grid img.studio-logo { width: 200px; height: auto; }
.footer-grid p { color: var(--cream-dim); font-size: 0.92rem; margin-top: 14px; max-width: 30rem; }
.site-footer .footer-grid h2 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-grid ul a { text-decoration: none; color: var(--cream-dim); }
.footer-grid ul a:hover { color: var(--cream); text-decoration: underline; }
.legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid #2a2826; font-family: var(--mono); font-size: 0.75rem; color: #8f8a7a; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* Email with copy */
.email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.email code { font-family: var(--mono); font-size: 0.9rem; color: var(--cream); user-select: all; overflow-wrap: anywhere; }
.copy-btn {
  font: 700 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  background: transparent; color: var(--cream); border: 2px solid currentColor; padding: 4px 8px;
}
.copy-btn[data-done] { background: var(--cash); color: var(--ink); border-color: var(--cash); }

/* ======================================================================
   Press page: case-file layout
   ====================================================================== */
.press-hero { padding-block: clamp(48px, 7vw, 88px) 32px; }
.press-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.press-hero h1 { font-size: var(--step-4); }
.press-hero p { color: var(--cream-dim); font-size: var(--step-1); margin-top: 12px; max-width: 40rem; }
.press-hero .logo { width: min(320px, 70vw); height: auto; }
@media (max-width: 760px) { .press-hero .wrap { grid-template-columns: minmax(0, 1fr); } }

.press-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .press-layout { grid-template-columns: minmax(0, 1fr); } }

.factsheet { padding: 22px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); }
@media (max-width: 900px) { .factsheet { position: static; } }
.factsheet h2 { font-size: 2rem; margin-bottom: 14px; }
.factsheet dl { margin: 0; display: grid; gap: 0; }
.factsheet dl > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px dashed #b9b29a; }
.factsheet dt { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.factsheet dd { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.factsheet a { color: var(--ink); }

.press-main { display: grid; gap: clamp(40px, 5vw, 64px); min-width: 0; }
.press-block { display: grid; gap: 16px; }
.press-block h2 { font-size: var(--step-2); }
.press-block p, .press-block li { color: var(--cream-dim); max-width: 44rem; }
.press-block ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.release { padding: clamp(18px, 3vw, 30px); display: grid; gap: 14px; }
.release p { color: #3a3833; }
.release .dateline { font-family: var(--mono); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.release h3 { font-size: var(--step-2); color: var(--ink); }
.release blockquote { margin: 0; border-left: 4px solid var(--red); padding-left: 14px; font-weight: 600; color: var(--ink); }

.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dl-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; background: var(--ink); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line); }
.dl-card .thumb { aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-bottom: 3px solid var(--line); background: #2a2826; }
.dl-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-card .thumb.contain img { object-fit: contain; padding: 14px; }
.dl-card .meta { display: grid; gap: 2px; padding: 10px 12px 12px; }
.dl-card strong { font-size: 0.92rem; }
.dl-card span { font-family: var(--mono); font-size: 0.7rem; color: var(--cream-dim); letter-spacing: 0.06em; text-transform: uppercase; }
.dl-card:hover strong { text-decoration: underline; }
@media (max-width: 620px) { .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ======================================================================
   Neurospike pages: brand book colors in flat blocks, Cascadia Code throughout.
   The game keeps its comic style only inside .game-feature.
   ====================================================================== */
.studio {
  --night: #22120f;
  --ink: #272626;
  --cream: #fff9f0;
  --cream-dim: #e2e0cc;
  --sand: #e2e0cc;
  --red: #ee3424;
  --yellow: #ee3424;
  --grey: #6d636c;
  --shadow: none;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  --body: "Cascadia Code", "JetBrains Mono", Consolas, monospace;
  background-color: var(--night);
  background-image: none;
}
.studio [id] { scroll-margin-top: 76px; }
.studio h1, .studio h2, .studio h3 { font-family: var(--mono); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }
.studio h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.8rem); }
.studio .label { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.studio .label::before { content: ""; width: 10px; height: 10px; flex: none; background: var(--red); }

.studio .site-header { background: var(--night); border-bottom: 1px solid var(--grey); }
@media (max-width: 760px) { .studio .site-nav { background: var(--night); border-bottom: 1px solid var(--grey); } }
.studio .brand img { width: 112px; height: auto; }
.site-nav a.nav-game:not(.btn) { padding-block: 2px; }
.nav-game img { width: 50px; height: 50px; }
.studio .btn {
  font-family: var(--mono); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--night); background: var(--red); border: 2px solid var(--red); box-shadow: none; padding: 13px 20px;
}
.studio .btn:hover { transform: none; box-shadow: none; background: var(--cream); border-color: var(--cream); }
.studio .btn:active { transform: none; box-shadow: none; }
.studio .btn-small { padding: 8px 14px; font-size: 0.8rem; }
.studio .btn-line { background: transparent; border-color: var(--cream); color: var(--cream); }
.studio .btn-line:hover { color: var(--night); }
.studio .btn-dark { background: var(--night); border-color: var(--night); color: var(--cream); justify-self: start; }
.studio .btn-dark:hover { background: var(--cream); border-color: var(--cream); color: var(--night); }

.band-sand, .band-cream { color: var(--night); --cream-dim: #4a3a35; }
.band-sand { background: var(--sand); }
.band-cream { background: var(--cream); }
.band-red {
  --cream-dim: var(--night);
  background: var(--red) url("../img/pattern-red.webp") center / cover;
  color: var(--night);
}
.band-red .label::before { background: var(--night); }

/* Intro */
.ns-hero { background: linear-gradient(rgba(34, 18, 15, 0.6), rgba(34, 18, 15, 0.6)), var(--night) url("../img/pattern-dark.webp") center / cover; }
.ns-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 104px) clamp(36px, 5vw, 64px); }
.ns-hero-copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.ns-hero h1 { font-size: clamp(2rem, 1.1rem + 3.8vw, 4.2rem); line-height: 1.04; max-width: 19ch; }
.ns-hero h1 em { font-style: normal; color: var(--red); }
.ns-hero p { font-size: var(--step-1); line-height: 1.55; color: var(--sand); max-width: 42rem; }
.ns-hero-mark { width: clamp(140px, 19vw, 250px); height: auto; }
.ns-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--grey); }
.ns-stats > div { padding: 20px 16px 28px 0; display: grid; gap: 4px; }
.ns-stats dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sand); }
.ns-stats dd { margin: 0; font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem); font-weight: 700; }
@media (max-width: 760px) {
  .ns-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ns-hero-mark { order: -1; width: 72px; }
  .ns-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* About */
.ns-about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ns-about > div { display: grid; gap: 20px; min-width: 0; }
.ns-about-lede { border-left: 6px solid var(--red); padding: 4px 0 4px clamp(16px, 2.5vw, 28px); font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.4rem); line-height: 1.45; }
.ns-skills { list-style: none; margin: 0; padding: 0; counter-reset: skill; border-top: 1px solid var(--night); }
.ns-skills li { counter-increment: skill; display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--night); font-weight: 600; }
.ns-skills li::before { content: counter(skill); color: #b3200f; font-weight: 700; }
@media (max-width: 820px) { .ns-about { grid-template-columns: minmax(0, 1fr); } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.member { display: grid; grid-template-rows: auto 1fr; background: var(--sand); color: var(--night); }
.member-img { aspect-ratio: 1; overflow: hidden; background: #fff; }
.member-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.member-body { display: grid; gap: 6px; padding: 16px 18px 20px; align-content: start; }
.member-body h3 { font-size: 1.15rem; }
.member-body .role { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #b3200f; }
.member-body p { font-size: 0.92rem; color: #4a3a35; }
.crew-note { margin-top: 22px; color: #4a3a35; }
@media (max-width: 820px) { .team { grid-template-columns: minmax(0, 1fr); max-width: 440px; } }

/* Contact */
.ns-contact { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ns-contact > div { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.ns-contact p { font-weight: 600; }
.ns-contact .email code { color: var(--night); font-size: clamp(0.95rem, 0.8rem + 0.8vw, 1.3rem); font-weight: 700; }
.ns-contact .copy-btn { color: var(--night); }
@media (max-width: 760px) { .ns-contact { grid-template-columns: minmax(0, 1fr); } }

/* Press page on the brand palette */
.studio .panel { border: 0; }
.studio .factsheet dt, .studio .release .dateline { color: #b3200f; }
.studio .factsheet a { color: var(--night); }
.studio .release h3, .studio .release blockquote { color: var(--night); }
.studio .press-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); }
.studio .press-block h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
.studio .dl-card { background: var(--ink); border: 1px solid var(--grey); box-shadow: none; }
.studio .dl-card .thumb { border-bottom: 1px solid var(--grey); }
.studio .dl-card span { font-family: var(--mono); }
.studio .site-footer { background: #170c0a; border-top: 1px solid var(--grey); }
.studio .footer-grid h2 { color: var(--sand); }
.studio .legal { border-top-color: var(--grey); color: #b5aaa7; }

/* The game section: the comic style, restored in one place */
.game-feature {
  --night: #0c0b0d;
  --ink: #141414;
  --cream: #fffae6;
  --cream-dim: #d9d3bd;
  --red: #ed2114;
  --yellow: #ffdb1a;
  --shadow: 6px 6px 0 var(--line);
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--night);
  background-image: radial-gradient(circle at center, rgba(255, 250, 230, 0.035) 1.4px, transparent 1.7px);
  background-size: 9px 9px;
  color: var(--cream);
  font-family: var(--body);
}
.game-feature h2, .game-feature h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.02em; line-height: 0.98; }
.game-feature .label { display: inline; color: var(--yellow); }
.game-feature .label::before { content: none; }
.game-feature .op-top .label { color: var(--ink); }
.game-feature .panel { border: 3px solid var(--line); }
.game-feature .btn {
  font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: none;
  color: var(--ink); background: var(--yellow); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line); padding: 12px 22px 11px;
}
.game-feature .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); background: var(--yellow); border-color: var(--line); }
.game-feature .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.game-feature .btn-cream, .game-feature .btn-cream:hover { background: var(--cream); }
.game-feature .hero-copy .label { color: var(--ink); }
.game-feature .hero-copy h2 { font-size: var(--step-4); color: #fff; text-shadow: 3px 3px 0 var(--red); max-width: 16ch; }
.game-feature-body { display: grid; gap: clamp(24px, 3vw, 36px); padding-block: clamp(32px, 5vw, 56px); }
.game-feature-body .gallery button:first-child { grid-column: auto; grid-row: auto; }
.game-feature-more { justify-self: center; }
.game-feature .objective .label { color: #ff5a4d; }

/* ======================================================================
   Homepage: every section fills exactly one screen below the sticky header.
   Sizes follow the window height (svh) so each one still fits on short laptops.
   ====================================================================== */
.home { --screen: calc(100svh - 65px); }
html.snap { scroll-padding-top: 65px; }
@media (pointer: coarse) { html.snap { scroll-snap-type: y proximity; } }
.home main > section, .home .ns-final { scroll-snap-align: start; scroll-snap-stop: always; min-height: var(--screen); }
.home [id] { scroll-margin-top: 0; }
.home main > .section { display: flex; align-items: center; padding-block: clamp(20px, 4svh, 56px); }
.home .section-head { margin-bottom: clamp(14px, 3svh, 36px); gap: clamp(6px, 1.2svh, 14px); }

/* Intro */
.home .ns-hero { display: flex; flex-direction: column; }
.home .ns-hero > .ns-hero-grid { flex: 1; padding-block: clamp(16px, 4svh, 56px); }
.home .ns-hero-copy { gap: clamp(12px, 2.6svh, 24px); }
.home .ns-hero h1 { font-size: clamp(1.9rem, min(1.1rem + 3.8vw, 8svh), 4.6rem); }
.home .ns-hero p { font-size: clamp(0.95rem, 2.3svh, 1.25rem); }
.home .ns-hero-mark { width: auto; height: min(64svh, 600px); }
.home .ns-stats > div { padding-block: clamp(10px, 2svh, 20px) clamp(12px, 2.4svh, 28px); }

/* Game title screen: the whole banner, never cropped, with the copy on black below it */
.game-title { background: #000; }
.game-title .hero { --copy-room: 348px; display: flex; flex-direction: column; min-height: var(--screen); border-bottom: 0; background: #000; }
.hero-art-wrap { position: relative; flex: none; width: min(100%, calc((100svh - 65px - var(--copy-room)) * 2400 / 775)); margin-inline: auto; }
.hero-art-wrap picture { display: block; }
.game-title .hero-art { width: 100%; height: auto; aspect-ratio: 2400 / 775; }
.game-title .hero-box { left: 12px; top: 12px; z-index: 2; }
.game-title .hero-band { flex: 1; display: flex; align-items: center; }
.game-title .hero-band .wrap { padding-block: clamp(14px, 3svh, 40px); }
.game-title .hero-copy { gap: clamp(8px, 1.6svh, 18px); }
.game-title .hero-copy h2 { font-size: clamp(1.5rem, min(1.2rem + 2.4vw, 5.6svh), 3.4rem); max-width: none; }
.game-title .hero-copy p { font-size: clamp(0.92rem, 2svh, 1.15rem); line-height: 1.4; }
.game-title .price-box { width: clamp(96px, 17svh, 150px); font-size: clamp(1.2rem, 3svh, 1.9rem); }
@media (max-height: 820px) {
  .game-title .hero { --copy-room: 288px; }
  .game-title .hero-meta { display: none; }
}
@media (min-height: 1100px) { .game-title .hero { --copy-room: 430px; } }
/* Wide, short windows: copy in two columns so the banner can keep nearly its full width */
@media (min-aspect-ratio: 19 / 10) and (min-width: 1000px) {
  .game-title .hero { --copy-room: 186px; }
  .game-title .hero-band .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 10px; }
  .game-title .price-box, .game-title .hero-meta { display: none; }
  .game-title .hero-copy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); align-items: center; }
  .game-title .hero-copy .label { grid-column: 1; grid-row: 1; }
  .game-title .hero-copy h2 { grid-column: 1; grid-row: 2; font-size: clamp(1.4rem, 5svh, 2.6rem); }
  .game-title .hero-copy p { grid-column: 2; grid-row: 1 / span 2; align-self: start; font-size: clamp(0.85rem, 1.9svh, 1.05rem); }
  .game-title .hero-copy .btn-row { grid-column: 2; grid-row: 2; align-self: end; flex-wrap: nowrap; gap: 10px; }
  .game-title .hero-copy .btn { font-size: clamp(0.95rem, 2.2svh, 1.2rem); padding: 9px 14px 8px; white-space: nowrap; }
}

/* Gameplay video: as large as the window allows at 16:9 */
.game-video { display: flex; align-items: center; }
.game-video .trailer-embed { width: min(100%, calc((100svh - 65px - 48px) * 16 / 9)); margin-inline: auto; }
.video-facade { position: relative; display: block; aspect-ratio: 16 / 9; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade span {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: clamp(64px, 12svh, 112px); aspect-ratio: 1;
  background: var(--yellow); border: 3px solid var(--line); border-radius: 50%; box-shadow: 4px 4px 0 var(--line);
  transition: scale 0.12s ease;
}
.video-facade span::before { content: ""; margin-left: 12%; border-style: solid; border-width: clamp(12px, 2.4svh, 22px) 0 clamp(12px, 2.4svh, 22px) clamp(20px, 3.8svh, 36px); border-color: transparent transparent transparent var(--ink); }
.video-facade:hover span { scale: 1.1; }

/* Operatives and screenshots */
.game-detail { display: flex; align-items: center; }
.game-detail .game-feature-body { padding-block: clamp(16px, 3svh, 40px); gap: clamp(14px, 3svh, 32px); }
.game-detail .op-top { grid-template-columns: clamp(64px, 13svh, 132px) minmax(0, 1fr); gap: 14px; padding: clamp(8px, 1.6svh, 18px); }
.game-detail .op-top img { width: clamp(64px, 13svh, 132px); height: clamp(64px, 13svh, 132px); }
.game-detail .op-top h3 { font-size: clamp(1.5rem, 4.8svh, 3rem); }
.game-detail .op-top .tagline { font-size: clamp(0.85rem, 2svh, 1.35rem); }
.game-detail .op-body { padding: clamp(8px, 1.6svh, 20px) clamp(12px, 1.8svh, 20px); }
.game-detail .op-body p { font-size: clamp(0.88rem, 2svh, 1rem); line-height: 1.45; }
.game-detail .gallery { gap: clamp(8px, 1.4svh, 14px); }
.game-detail .gallery button { width: min(100%, calc(30svh * 16 / 9)); justify-self: center; }

/* Team: portraits shrink with the window */
.home .member-img { aspect-ratio: auto; height: clamp(120px, calc(100svh - 540px), 400px); }
.home .member-img img { object-fit: contain; object-position: center; }
.home .member-body { padding: clamp(8px, 1.5svh, 16px) 18px clamp(10px, 1.8svh, 20px); }
.home .crew-note { margin-top: clamp(10px, 2svh, 22px); }

/* Contact and footer share the last screen */
.ns-final { display: flex; flex-direction: column; }
.home .ns-final > .section { flex: 1; display: flex; align-items: center; min-height: 0; padding-block: clamp(20px, 4svh, 56px); }
.home .site-footer { padding-block: clamp(16px, 3.4svh, 48px) calc(clamp(10px, 2svh, 32px) + env(safe-area-inset-bottom, 0px)); }
.home .legal { margin-top: clamp(10px, 2.6svh, 36px); padding-top: clamp(8px, 1.6svh, 18px); }

@media (max-width: 760px) {
  .home .ns-hero-mark { display: none; }
  .game-title .hero-meta { display: none; }
  .game-title .hero-copy p { font-size: 0.95rem; line-height: 1.4; }
  .hero-art-wrap { width: 100%; }
  .game-title .hero-art { aspect-ratio: 920 / 430; }
  .game-title .price-box { display: none; }
  .game-video .trailer-embed { width: 100%; }
  .game-detail .operatives { gap: 12px; }
  .game-detail .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-detail .gallery button:first-child { grid-column: auto; }
  .home .team { grid-template-columns: minmax(0, 1fr); max-width: none; gap: 10px; }
  .home .member { grid-template-columns: clamp(84px, 13svh, 120px) minmax(0, 1fr); grid-template-rows: auto; }
  .home .member-img { position: relative; height: auto; aspect-ratio: auto; min-height: 96px; }
  .home .member-img img { position: absolute; inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
  .home .member-body { align-content: center; padding: 8px 12px; }
  .home .section-head p { font-size: 0.95rem; }
  .home .footer-grid { gap: 12px; }
  .home .footer-grid > :last-child { display: none; }
  .home .footer-grid > :first-child p { display: none; }
  .home .game-feature-more { font-size: 1.1rem; }
  .home .footer-grid img.studio-logo { width: 120px; }
  .home .footer-grid p { margin-top: 6px; }
  .home .footer-grid ul { grid-auto-flow: column; grid-template-rows: repeat(3, auto); }
}
@media (min-width: 761px) and (max-height: 760px) {
  .home #team .section-head p { display: none; }
  .home .member-img { height: clamp(120px, calc(100svh - 440px), 400px); }
}
.home .member-img { padding-block: clamp(6px, 1.2svh, 14px); }
