:root {
  --bg: #0b0b0a;
  --bg-2: #121110;
  --ink: #ece6da;
  --ink-2: #c9c3b8;
  --muted: #8f8a82;
  --line: #2a2826;
  --red: #b8261a;
  --red-hi: #d33623;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gothic: "Jacquard 12", "Schibsted Grotesk", serif;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
[hidden] { display: none !important; }
.pixel { image-rendering: pixelated; }
.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: 8px; top: -60px; z-index: 50;
  padding: 10px 14px; background: var(--ink); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 8px; color: var(--bg); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 22px;
  font: 600 15px/1.2 var(--sans);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-light { background: var(--ink); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-red { background: var(--red); color: #fff6ee; }
.btn-red:hover { background: var(--red-hi); color: #fff; }
.btn-line { border-color: #5c5852; color: var(--ink); font-weight: 500; }
.btn-line:hover { border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Shared header and footer */
.topbar {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px var(--gutter);
}
.topbar a.mono { padding: 12px 0; display: inline-block; }
.games-nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 28px var(--gutter);
  color: var(--muted);
}
.footer a { color: var(--ink-2); }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Home ---------- */
.home { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.home-mark {
  position: absolute; left: 0; right: 0; top: 0;
  height: clamp(900px, 96vw, 1380px);
  opacity: 0.25;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.home-mark canvas { width: 100%; height: 100%; display: block; }
.home-brand {
  position: relative;
  display: flex; justify-content: center;
  padding: clamp(120px, 18vw, 260px) 16px clamp(140px, 20vw, 300px);
}
.home-brand h1 { margin: 0; line-height: 0; }
.home-brand img { width: clamp(220px, 24vw, 340px); height: auto; }
.home-game {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  padding: 0 var(--gutter) 96px;
}
.home-game .intro { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.home-game h2 { margin: 0; line-height: 0; }
.home-game h2 img { width: min(480px, 84vw); height: auto; }
.home-game p { margin: 0; max-width: 480px; color: var(--ink-2); }
.home-shots {
  width: 100%; max-width: 1240px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
}
.home-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home .footer { margin-top: auto; }

/* ---------- Dregmancer ---------- */
.dreg { --accent: var(--red); }
.dreg .topbar {
  position: absolute; left: 0; right: 0; top: 0;
  background: linear-gradient(180deg, rgba(11,11,10,0.8), rgba(11,11,10,0));
}
.brand-link { display: inline-flex; padding: 6px 0; }
.brand-link img { width: 64px; height: auto; }
.dreg-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); flex-wrap: wrap; }
.dreg-nav .btn { min-height: 40px; padding: 9px 16px; font-size: 14px; }
@media (max-width: 720px) { .dreg-nav .hide-sm { display: none; } }

.hero {
  position: relative;
  min-height: clamp(620px, 58vw, 860px);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 120px var(--gutter) clamp(48px, 7vw, 88px);
  text-align: center;
  overflow: hidden;
}
.hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 30%;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,10,0) 35%, rgba(11,11,10,0.55) 65%, var(--bg) 100%);
}
.hero-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero h1 { margin: 0; line-height: 0; }
.hero h1 img { width: min(680px, 88vw); height: auto; filter: drop-shadow(0 4px 0 rgba(0,0,0,0.6)); }
.hero .tagline { margin: 0; max-width: 560px; font-size: clamp(18px, 1.6vw, 21px); color: #f1e8dc; }
.hero .meta { color: #cfc4b6; }
.hero .btn-row { justify-content: center; }

.section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.wrap { max-width: 1200px; margin: 0 auto; }
.eyebrow { color: var(--red-hi); margin: 0 0 14px; }
.gothic {
  font-family: var(--gothic); font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px); line-height: 1;
  margin: 0;
}

.pitch { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pitch blockquote {
  margin: 0; font-family: var(--gothic);
  font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; color: var(--ink);
}
.pitch blockquote footer { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pitch .copy p { margin: 0 0 16px; color: var(--ink-2); font-size: 18px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

.verbs { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); }
.verb { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 56px); align-items: center; }
.verb:nth-child(even) { flex-direction: row-reverse; }
.verb figure { flex: 999 1 520px; min-width: 0; margin: 0; }
.verb figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }
.verb .text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 12px; }
.verb .num { color: var(--red-hi); }
.verb h3 { font-family: var(--gothic); font-weight: 400; font-size: clamp(44px, 4.6vw, 64px); line-height: 1; margin: 0; }
.verb p { margin: 0; color: var(--ink-2); max-width: 440px; }

.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); }
.more div { background: var(--bg); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.more h4 { margin: 0; font-family: var(--gothic); font-weight: 400; font-size: 32px; line-height: 1; }
.more p { margin: 0; color: var(--ink-2); font-size: 16px; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 32px; }
.shots a { display: block; position: relative; overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .3s; }
.shots a:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .shots img { transition: none; } .shots a:hover img { transform: none; } }

.viewer { padding: 0; border: 0; background: transparent; max-width: min(1400px, 96vw); width: 100%; color: var(--ink); }
.viewer::backdrop { background: rgba(5,5,5,0.92); }
.viewer img { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; }
.viewer .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.viewer .bar div { display: flex; gap: 8px; }
.viewer button { background: transparent; color: var(--ink); border: 1px solid #5c5852; min-width: 48px; min-height: 44px; cursor: pointer; font: 500 14px var(--sans); padding: 0 14px; }
.viewer button:hover { border-color: var(--ink); }

.demo-band { position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.demo-band .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.demo-band p { margin: 8px 0 0; color: var(--ink-2); max-width: 560px; }

.signup { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: end; }
.signup p { color: var(--ink-2); margin: 14px 0 0; max-width: 460px; }
.signup form { display: flex; flex-direction: column; gap: 12px; }
.signup label { font-size: 14px; color: var(--ink-2); }
.field { display: flex; flex-wrap: wrap; gap: 10px; }
.field input {
  flex: 1 1 240px; min-height: 52px; padding: 12px 16px;
  background: #121110; color: var(--ink); border: 1px solid #4a4741;
  font: 400 16px var(--sans);
}
.field input::placeholder { color: #7d786f; }
.field input:focus { border-color: var(--ink); outline: none; }
.field .btn { min-height: 52px; }
.status { min-height: 1.5em; margin: 0; font-size: 15px; color: var(--ink-2); }
.status[data-kind="ok"] { color: #9fd49a; }
.status[data-kind="error"] { color: #f08a7c; }
.status a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.dreg .footer { border-top: 1px solid var(--line); }
.dreg .footer .brand-link img { width: 72px; }
