/* Diabolic Ant Studios: one material language, taken from the logo:
   bolted rusty metal, worn wood, leather patches. */
:root {
  --bg: #120d0b;          /* near-black */
  --surface: #241812;     /* smoky brown */
  --surface-2: #2e1f17;
  --line: #4a3326;        /* worn edges */
  --ink: #e8dcc6;         /* sign off-white */
  --muted: #b5a48c;
  --rust: #d46a35;        /* accents and links: 5:1 on --bg */
  --blood: #8e1b12;       /* fills only, never text */
  --blood-hi: #a8231a;

  --display: "Alfa Slab One", Georgia, serif;
  --label: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1120px;
  --gutter: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* The intro frame: 80 % of the screen, at the video's 1264 × 720. */
  --frame-w: min(80vw, calc(80vh * 1264 / 720));
  --frame-h: calc(var(--frame-w) * 720 / 1264);
  --hero-h: 100vh;
}
@supports (height: 100dvh) {
  :root {
    --frame-w: min(80vw, calc(80dvh * 1264 / 720));
    --hero-h: 100dvh;
  }
}
/* Phones and tall screens: 80 % of the width is a postage stamp, so use more of it. */
@media (max-aspect-ratio: 1 / 1) {
  :root { --frame-w: calc(100vw - 2 * var(--gutter)); }
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

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

/* `hidden` always wins: rules like `img { display: block }` must never un-hide an element. */
[hidden] { display: none !important; }

html {
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  overflow-x: hidden;
}

/* One static grain over everything. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
  font: 700 15px var(--label); text-transform: uppercase; letter-spacing: 0.08em;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Intro lock ---------- */

/* Nothing scrolls or gets selected while the intro runs. */
body.is-intro {
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
body.is-intro .skip { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: var(--hero-h);
  min-height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* A faint warm glow behind the sign, as if lit from the crate. */
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(142, 27, 18, 0.16), transparent 70%),
    var(--bg);
}

.frame {
  position: relative;
  width: var(--frame-w);
  height: var(--frame-h);
  background: #050303;
  border: 1px solid rgba(232, 220, 198, 0.12);
  box-shadow:
    0 0 0 6px #1b120e,
    0 0 0 7px rgba(232, 220, 198, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.7);
}
.frame__video,
.frame__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* no clicking, no native controls, no context menu */
}

/* The frame is bolted to the wall. */
.rivet {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c9b9a0, #6b5546 45%, #2a1c15 75%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.rivet--tl { top: -9px; left: -9px; }
.rivet--tr { top: -9px; right: -9px; }
.rivet--bl { bottom: -9px; left: -9px; }
.rivet--br { bottom: -9px; right: -9px; }

/* The nav and tagline sit in the matte around the frame and arrive when the intro ends. */
.nav,
.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  height: calc((var(--hero-h) - var(--frame-h)) / 2);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  opacity: 0;
  transition: opacity 400ms var(--ease);
}
.nav { top: 0; justify-content: space-between; gap: 16px; }
.hero__foot { bottom: 0; flex-direction: column; justify-content: center; gap: 6px; }
body.is-hero .nav,
body.is-hero .hero__foot { opacity: 1; }
body.is-intro .nav,
body.is-intro .hero__foot { visibility: hidden; }

.nav__mark {
  color: var(--ink);
  text-decoration: none;
  font: 700 17px/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.nav__mark span { color: var(--muted); }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font: 600 15px/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  transition: color 180ms var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links .nav__join {
  color: var(--ink);
  padding: 9px 14px 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.nav__links .nav__join:hover { border-color: var(--rust); }
@media (max-width: 760px) {
  .nav__links li:not(:last-child) { display: none; }
  .nav__mark span { display: none; }
}

.tagline {
  margin: 0;
  font: 400 clamp(18px, 3.1vh, 34px)/1.1 var(--display);
  letter-spacing: 0.02em;
  text-align: center;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}
.hero__down {
  width: 22px;
  height: 22px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) scale(0.6);
  opacity: 0.8;
}
.hero__down:hover { border-color: var(--ink); }
/* Short screens: the matte is too thin for both lines. */
@media (max-height: 640px) and (min-aspect-ratio: 1 / 1) {
  .hero__down { display: none; }
}

/* Only shown when the browser refuses all autoplay. */
.play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: rgba(18, 13, 11, 0.45);
  color: var(--ink);
  font: 700 16px/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
}
.play span {
  width: 72px;
  height: 72px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: rgba(142, 27, 18, 0.85);
  /* A play triangle. */
  position: relative;
}
.play span::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  border-left: 22px solid var(--ink);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.play:hover span { background: var(--blood-hi); }

/* Only shown when the browser refuses to autoplay with sound. */
.sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 14px 7px;
  border: 1px solid rgba(232, 220, 198, 0.35);
  border-radius: 999px;
  background: rgba(18, 13, 11, 0.7);
  color: var(--ink);
  font: 600 14px/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.sound:hover { border-color: var(--ink); }

/* ---------- Shared pieces ---------- */

.section { padding: clamp(72px, 11vw, 136px) 0; }
.section + .section { border-top: 1px solid rgba(74, 51, 38, 0.5); }

.section__head { margin-bottom: clamp(32px, 5vw, 56px); }

/* A biker vest's top rocker: arched, stitched, embroidered lettering. */
.patch {
  position: relative;
  display: inline-block;
  margin-bottom: 18px;
  padding: 12px 30px 8px;
  background: var(--surface-2);
  color: var(--ink);
  font: 700 14px/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border: 2px solid var(--line);
  border-radius: 50% 50% 6px 6px / 22px 22px 6px 6px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
.patch::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(212, 106, 53, 0.55);
  border-radius: inherit;
  pointer-events: none;
}

.display {
  margin: 0;
  font: 400 clamp(40px, 7vw, 80px)/1 var(--display);
  letter-spacing: 0.01em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.55);
}
.title {
  margin: 0;
  max-width: 22ch;
  font: 400 clamp(28px, 4.2vw, 46px)/1.1 var(--display);
}
.lede {
  margin: 14px 0 0;
  font: 600 clamp(20px, 2.4vw, 26px)/1.3 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.fineprint { margin: 18px 0 0; color: var(--muted); font-size: 14px; }

/* A metal plate: inner shadow, worn edge, two rivets. */
.plate {
  position: relative;
  margin: 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(232, 220, 198, 0.06), inset 0 -12px 24px rgba(0, 0, 0, 0.25), 0 10px 30px rgba(0, 0, 0, 0.35);
}
.plate::before,
.plate::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #a8977f, #4f3d31 55%, #1f150f 80%);
  z-index: 1;
}
.plate::before { left: 10px; }
.plate::after { right: 10px; }

.plate--art { padding: 6px; }
.plate--art img { width: 100%; background: #0b0807; }
.plate--art::before,
.plate--art::after { display: none; }
.plate--art figcaption {
  padding: 10px 6px 4px;
  color: var(--muted);
  font: 500 13px/1.4 var(--mono);
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 13px;
  border: 1px solid var(--rust);
  background: transparent;
  color: var(--ink);
  font: 700 16px/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:hover { background: rgba(212, 106, 53, 0.12); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--blood); border-color: var(--blood-hi); }
.btn--red:hover { background: var(--blood-hi); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.stamp {
  display: inline-block;
  padding: 4px 9px 3px;
  border: 2px solid var(--rust);
  color: var(--rust);
  font: 700 14px/1 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  transform: rotate(-2deg);
}

/* ---------- Dawn to Dominion ---------- */

.game__body {
  display: grid;
  gap: 32px;
  margin: clamp(32px, 5vw, 56px) 0;
}
@media (min-width: 880px) {
  .game__body { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
}
.game__copy p { margin: 0 0 18px; max-width: 60ch; color: var(--muted); }
.game__copy .game__pitch { color: var(--ink); font-size: clamp(19px, 2vw, 22px); line-height: 1.5; }
.game__copy .btn { margin-top: 8px; }

.specs { padding: 28px 24px 12px; }
.specs div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 51, 38, 0.7);
}
.specs div:last-child { border-bottom: 0; }
.specs dt {
  color: var(--muted);
  font: 600 14px/1.6 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.specs dd { margin: 0; }

.shots {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 720px) { .shots { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Also in the Works ---------- */

.works__grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .works__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
.work { display: flex; flex-direction: column; }
.work::before, .work::after { top: 16px; }
.work__art { margin: 0; padding: 6px 6px 0; }
.work__art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0b0807; }
.work__art figcaption {
  padding: 10px 6px 0;
  color: var(--muted);
  font: 500 13px/1.4 var(--mono);
}
.work__body { padding: 20px 26px 28px; }
.work__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.work__genre {
  color: var(--muted);
  font: 600 14px/1.3 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.work__title { margin: 16px 0 10px; font: 400 clamp(30px, 3.6vw, 40px)/1.05 var(--display); }
.work__body p { margin: 0 0 14px; color: var(--muted); }
.work__body .work__pitch { color: var(--ink); font-size: 18px; line-height: 1.5; }
.work__body p:last-child { margin-bottom: 0; }

/* ---------- On the Bench ---------- */

.log {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .log { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
.log__entry { padding: 30px 26px 24px; }
.log__entry time {
  display: block;
  color: var(--rust);
  font: 500 13px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.log__entry h3 {
  margin: 10px 0 8px;
  font: 700 clamp(22px, 2.4vw, 26px)/1.15 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.log__entry p { margin: 0; color: var(--muted); }

/* ---------- About ---------- */

.about__grid { display: grid; gap: 32px; }
@media (min-width: 760px) {
  .about__grid { grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
}
.about__badge img {
  width: 160px;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line), 0 16px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
}
@media (min-width: 760px) { .about__badge img { width: 200px; margin-top: 56px; } }
.quote {
  margin: 24px 0 0;
  padding: 0 0 0 22px;
  border-left: 3px solid var(--blood);
  font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.55;
}
.quote p { margin: 0 0 12px; max-width: 58ch; }
.quote footer {
  margin-top: 4px;
  color: var(--rust);
  font: 700 15px var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.about__plain { margin: 28px 0 0; max-width: 60ch; color: var(--muted); }
.group {
  margin-top: 32px;
  padding: 20px 0 0;
  max-width: 60ch;
  border-top: 1px solid rgba(74, 51, 38, 0.7);
}
.group__kicker {
  margin: 0 0 6px;
  color: var(--ink);
  font: 700 15px/1.3 var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.group p:last-child { margin: 0; color: var(--muted); }
.footer small a { color: var(--muted); }
.footer small a:hover { color: var(--ink); }

/* ---------- Join the Club ---------- */

.join__plate {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.join__plate > p { margin: 14px auto 0; max-width: 46ch; color: var(--muted); }
.join__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px auto 0;
  max-width: 520px;
}
.join__form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #0d0907;
  color: var(--ink);
  font: 400 17px var(--body);
}
.join__form input[type="email"]::placeholder { color: #7d6d5a; }
.join__form input[type="email"]:focus { border-color: var(--rust); outline: none; }
.join__form .btn { flex: 0 0 auto; }
@media (max-width: 480px) { .join__form .btn { flex: 1 1 100%; justify-content: center; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join__status { min-height: 1.6em; margin: 14px 0 0; font-weight: 500; }
.join__status.is-ok { color: var(--ink); }
.join__status.is-err { color: var(--rust); }

/* ---------- Footer ---------- */

.footer { padding: 40px 0 48px; border-top: 1px solid rgba(74, 51, 38, 0.5); }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  color: var(--muted);
}
.footer__mark {
  color: var(--ink);
  font: 700 15px var(--label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.footer__links { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer small { font-size: 14px; }

/* ---------- The ant's heckles ---------- */

.heckle {
  position: fixed;
  left: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 10px 40px 10px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(calc(100% + 32px));
  transition: transform 240ms var(--ease);
}
.heckle.is-up { transform: none; }
.heckle img { flex: 0 0 auto; width: 56px; height: 56px; border: 1px solid var(--line); }
.heckle__line { margin: 0; font-size: 15px; line-height: 1.4; }
.heckle__close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.heckle__close:hover { color: var(--ink); }

/* ---------- Reveal on scroll (once) ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 200ms linear; }
  .heckle { transition: none; }
  .btn, .nav__links a { transition: none; }
}

/* ---------- Plain pages (privacy, 404) ---------- */

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__top { padding: 24px 0; border-bottom: 1px solid rgba(74, 51, 38, 0.5); }
.page__main { flex: 1; padding: clamp(48px, 8vw, 96px) 0; }
.prose { max-width: 68ch; }
.prose h1 { margin: 0 0 24px; font: 400 clamp(34px, 5vw, 52px)/1.05 var(--display); }
.prose h2 { margin: 40px 0 10px; font: 700 22px/1.2 var(--label); text-transform: uppercase; letter-spacing: 0.08em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 500; }
.lost { text-align: center; }
.lost img { margin: 0 auto 28px; width: 160px; border: 2px solid var(--line); transform: rotate(-3deg); }
.lost h1 { margin: 0; font: 400 clamp(64px, 12vw, 120px)/1 var(--display); }
.lost p { margin: 16px auto 32px; max-width: 40ch; color: var(--muted); font-size: 19px; }

/* Tall screens: the matte is deep, so the nav sits at the top and the tagline just under the frame. */
@media (max-aspect-ratio: 1 / 1) {
  .nav { height: 72px; }
  .hero__foot {
    top: calc(50% + var(--frame-h) / 2 + 28px);
    bottom: auto;
    height: auto;
    gap: 18px;
  }
}

/* CheckFury: front and centre under the games (Donny, 2026-10-27). */
.section__head--center { text-align: center; }
.section__head--center .title, .section__head--center .lede { margin-left: auto; margin-right: auto; }
.checkfury__art a { display: block; }
.checkfury__art a:hover img { filter: brightness(1.08); }
.checkfury__cta { max-width: 64ch; margin: clamp(28px, 4vw, 44px) auto 0; text-align: center; }
.checkfury__cta p { margin: 0 0 18px; color: var(--muted); }
.checkfury__cta .game__pitch { color: var(--ink); font-size: clamp(19px, 2vw, 22px); line-height: 1.5; }
.btn--big { padding: 18px 32px 17px; font-size: 18px; }
.checkfury .shots { margin-top: clamp(28px, 4vw, 44px); }
@media (min-width: 720px) { .checkfury .shots { grid-template-columns: repeat(2, 1fr); } }
.checkfury__cta .fineprint { margin-top: 16px; }
.checkfury__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
