/* ==========================================================================
   The Yard: Escape from Prison: main stylesheet
   Tokens → fonts → base → components → sections → subpages → motion
   ========================================================================== */

/* ---------- Fonts (self-hosted, GDPR-safe) ---------- */
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("../fonts/silkscreen-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("../fonts/silkscreen-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "VT323"; src: url("../fonts/vt323-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- Tokens (palette sampled from the official logo) ---------- */
:root {
  --ink-900: #090a14;
  --ink-800: #151d28;
  --ink-700: #202e37;
  --steel-600: #394a50;
  --steel-500: #577277;
  --steel-400: #819796;
  --steel-300: #a8b5b2;
  --bone-100: #ebede9;
  --white: #ffffff;
  --rust-500: #884b2b;
  --rust-700: #602c2c;
  --rust-900: #341c27;
  --amber-500: #be772b;
  --amber-300: #e8c170;
  --blueprint: #1e3a5f;
  --paper: #d9cfb4;
  --paper-dark: #b9ab88;
  --alarm: #c4362f;

  --font-display: "Silkscreen", "Courier New", monospace;
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-term: "VT323", "Consolas", monospace;

  --step--1: clamp(0.86rem, 0.83rem + 0.15vw, 0.95rem);
  --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.2rem);
  --step-3: clamp(2.1rem, 1.7rem + 2vw, 3.4rem);
  --step-4: clamp(2.8rem, 2rem + 4vw, 5.2rem);
  --step-5: clamp(3.4rem, 2.2rem + 6vw, 6.9rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --section-y: clamp(56px, 7vw, 100px);
  --px: 4px;
  --header-h: 100px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--bone-100);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--amber-300); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase; margin: 0 0 0.5em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
::selection { background: var(--amber-500); color: var(--ink-900); }
:focus-visible { outline: 3px solid var(--amber-300); outline-offset: 3px; }

.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; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; background: var(--amber-500); color: var(--ink-900); padding: 12px 18px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 16px; color: var(--ink-900); }

.container { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.container--narrow { width: min(100% - var(--gutter) * 2, 880px); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-y); }

/* Texture layers */
.noise::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay;
}
.scanlines::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.28) 2px 3px);
  opacity: .5;
}
.concrete {
  background-color: var(--ink-800);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(87,114,119,.14), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(136,75,43,.12), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .55 0 0 0 0 .58 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
}
/* 4x4 Bayer-ish dither, used for transitions */
.dither-top::before, .dither-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 48px; pointer-events: none; z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Cg fill='%23090a14'%3E%3Crect width='2' height='2'/%3E%3Crect x='4' y='4' width='2' height='2'/%3E%3Crect x='4' width='2' height='2' opacity='.6'/%3E%3Crect y='4' width='2' height='2' opacity='.6'/%3E%3C/g%3E%3C/svg%3E");
  image-rendering: pixelated;
}
.dither-top::before { top: 0; -webkit-mask: linear-gradient(#000, transparent); mask: linear-gradient(#000, transparent); }
.dither-bottom::after { bottom: 0; -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); }

/* ---------- Pixel corners ---------- */
.px-corners {
  clip-path: polygon(0 var(--px), var(--px) var(--px), var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)));
}

/* ---------- Buttons ---------- */
.btn {
  --px: 4px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  text-decoration: none; border: 0;
  transition: transform .18s var(--ease-out), background-color .18s, color .18s, box-shadow .18s, filter .18s;
  clip-path: polygon(0 var(--px), var(--px) var(--px), var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px)));
}
.btn:focus-visible { clip-path: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn--primary { background: var(--amber-500); color: var(--ink-900); box-shadow: inset 0 -4px 0 var(--rust-700), inset 0 4px 0 rgba(232,193,112,.55); }
.btn--primary:hover { background: var(--amber-300); color: var(--ink-900); transform: translateY(-2px); filter: drop-shadow(0 0 18px rgba(232,193,112,.45)); }
.btn--primary:active { transform: translateY(1px); box-shadow: inset 0 4px 0 var(--rust-700); }
.btn--ghost { background: rgba(9,10,20,.55); color: var(--bone-100); box-shadow: inset 0 0 0 2px var(--steel-300); }
.btn--ghost:hover { background: var(--bone-100); color: var(--ink-900); transform: translateY(-2px); }
.btn--rust { background: var(--rust-500); color: var(--bone-100); box-shadow: inset 0 -4px 0 var(--rust-900), inset 0 4px 0 rgba(190,119,43,.6); }
.btn--rust:hover { background: var(--amber-500); color: var(--ink-900); }
.btn--discord { background: #5865f2; color: #fff; box-shadow: inset 0 -4px 0 #3c45a5; }
.btn--discord:hover { background: #6f7bff; color: #fff; transform: translateY(-2px); }
.btn--lg { min-height: 64px; padding: 18px 34px; font-size: 1.35rem; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.text-link { font-family: var(--font-term); font-size: 1.35rem; letter-spacing: .04em; color: var(--steel-300); text-decoration: none; display: inline-flex; align-items: center; gap: .4em; min-height: 44px; }
.text-link:hover { color: var(--amber-300); }

/* ---------- Kicker / section heads ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber-300); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 10px; height: 10px; background: var(--amber-500); box-shadow: 4px 4px 0 var(--rust-700); }
.section-title { font-size: var(--step-4); margin-bottom: .35em; }
.section-title em { font-style: normal; color: var(--amber-500); }
.section-lead { font-size: var(--step-1); color: var(--steel-300); max-width: 60ch; }
.section-head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

/* Rust plate label, like the logo */
.plate {
  --px: 3px;
  display: inline-block; padding: 6px 14px 5px;
  background: var(--rust-500); color: var(--bone-100);
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: inset 0 0 0 2px var(--amber-500), inset 0 0 0 4px var(--rust-900);
}

/* Rubber stamp */
.stamp {
  display: inline-block; padding: 6px 12px 4px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--alarm); border: 3px solid currentColor; border-radius: 3px;
  transform: rotate(-8deg); opacity: .88; mix-blend-mode: multiply;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}
.stamp--green { color: #3f7a3a; }
.stamp--ink { color: var(--ink-800); }
.stamp--amber { color: var(--amber-500); mix-blend-mode: normal; }

/* Pixel icons */
.pxi { width: 32px; height: 32px; shape-rendering: crispEdges; image-rendering: pixelated; flex: none; }
.pxi--lg { width: 48px; height: 48px; }

/* ---------- Dividers: barbed wire ---------- */
.wire {
  position: relative; height: 28px; z-index: 4; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='28' shape-rendering='crispEdges'%3E%3Cg fill='%23577277'%3E%3Crect y='13' width='96' height='2'/%3E%3Crect y='11' width='96' height='1' fill='%23394a50'/%3E%3C/g%3E%3Cg fill='%23a8b5b2'%3E%3Crect x='20' y='8' width='2' height='12'/%3E%3Crect x='16' y='12' width='10' height='4'/%3E%3Crect x='14' y='9' width='2' height='2'/%3E%3Crect x='26' y='17' width='2' height='2'/%3E%3Crect x='14' y='17' width='2' height='2'/%3E%3Crect x='26' y='9' width='2' height='2'/%3E%3Crect x='68' y='8' width='2' height='12'/%3E%3Crect x='64' y='12' width='10' height='4'/%3E%3Crect x='62' y='9' width='2' height='2'/%3E%3Crect x='74' y='17' width='2' height='2'/%3E%3Crect x='62' y='17' width='2' height='2'/%3E%3Crect x='74' y='9' width='2' height='2'/%3E%3C/g%3E%3C/svg%3E") repeat-x center / auto 28px;
  image-rendering: pixelated;
}
.wire--coil {
  height: 40px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' shape-rendering='crispEdges' fill='none' stroke='%23819796' stroke-width='3'%3E%3Ccircle cx='20' cy='20' r='14'/%3E%3Cpath d='M6 20h28' stroke='%23577277' stroke-width='2'/%3E%3C/svg%3E") repeat-x center / auto 40px;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: rgba(9,10,20,.92); box-shadow: 0 1px 0 var(--ink-700), 0 10px 30px rgba(0,0,0,.4); }
@supports (backdrop-filter: blur(4px)) { .site-header.is-scrolled { background: rgba(9,10,20,.78); backdrop-filter: blur(10px); } }
.site-header__inner { display: flex; align-items: center; gap: 24px; width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.brand { display: flex; align-items: center; flex: none; }
/* Pixel-art logo: native 124×86 file, only ever scaled by whole numbers so no pixel is dropped */
.brand img { width: 124px; height: 86px; image-rendering: pixelated; }
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--steel-300); text-decoration: none; position: relative;
}
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--amber-500); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.nav__link:hover, .nav__link[aria-current="page"], .nav__link.is-active { color: var(--bone-100); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--steel-300); text-decoration: none; border-radius: 2px; }
.icon-btn:hover { color: var(--white); background: var(--ink-700); }
.icon-btn svg { width: 22px; height: 22px; }
.nav-toggle { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 12px; }
.nav-toggle span { display: block; height: 3px; background: var(--bone-100); margin: 5px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.mobile-only { display: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; order: 3; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { display: none; }
  .header-actions .icon-btn { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    background: var(--ink-900);
    display: flex; flex-direction: column; justify-content: center;
    padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
    visibility: hidden; opacity: 0; transition: opacity .3s, visibility 0s .3s;
    overflow-y: auto;
  }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity .3s; }
  .nav::before { /* clipboard / folder tab look */
    content: "INMATE DIRECTORY — FILE 4964620"; position: absolute; top: calc(var(--header-h) + 8px); left: var(--gutter);
    font-family: var(--font-term); font-size: 1.2rem; color: var(--steel-500); letter-spacing: .05em;
  }
  .nav__list { flex-direction: column; gap: 0; border-top: 2px dashed var(--steel-600); }
  .nav__list li { border-bottom: 2px dashed var(--steel-600); }
  .nav__link { min-height: 60px; font-size: 1.9rem; padding: 0; width: 100%; color: var(--bone-100); }
  .nav__link::after { display: none; }
  .nav__link::before { content: attr(data-num); font-family: var(--font-term); font-size: 1.1rem; color: var(--amber-500); width: 3.2em; }
  .mobile-only { display: flex; }
  .nav__extra { flex-direction: column; gap: 14px; margin-top: 28px; }
  .nav__social { display: flex; gap: 6px; }
}

/* ==========================================================================
   Intro (first visit, CSS-driven so it never blocks)
   ========================================================================== */
.intro { display: none; }
.show-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 999; background: var(--ink-900);
  animation: intro-out .5s steps(6) 1.75s forwards;
}
.intro__light {
  position: absolute; top: 0; left: 50%; width: 140vmax; height: 140vmax; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(232,193,112,.35), rgba(190,119,43,.12) 30%, transparent 55%);
  opacity: 0; animation: intro-flicker 1.2s steps(1) .1s forwards;
}
.intro__sweep { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--alarm); box-shadow: 0 0 20px var(--alarm); transform: scaleX(0); animation: intro-sweep .5s var(--ease-out) .55s forwards; }
.intro__logo { width: 248px; height: auto; image-rendering: pixelated; opacity: 0; animation: intro-logo .45s steps(5) .8s forwards; position: relative; }
.intro__skip { position: absolute; bottom: 24px; right: 24px; font-family: var(--font-term); font-size: 1.2rem; color: var(--steel-400); background: none; border: 0; min-height: 44px; padding: 0 12px; }
@keyframes intro-flicker { 0% { opacity: .9 } 8% { opacity: 0 } 14% { opacity: .7 } 20% { opacity: .1 } 28% { opacity: 1 } 100% { opacity: 1 } }
@keyframes intro-sweep { to { transform: scaleX(1); opacity: 0; } }
@keyframes intro-logo { 0% { opacity: 0; transform: scale(.9); filter: brightness(2.2); } 100% { opacity: 1; transform: none; filter: none; } }   /* whole logo powers on at once */
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 24px) 0 clamp(84px, 10vh, 120px);
  overflow: hidden; isolation: isolate; background: var(--ink-900);
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: kenburns 30s ease-in-out infinite alternate; }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.hero__media.has-video video { opacity: 1; }
.hero__media.has-video img { animation: none; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
/* darkness, cut by the searchlight */
.hero__dark {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  --lx: 70%; --ly: 40%; --lr: 220px;
  background:
    radial-gradient(circle var(--lr) at var(--lx) var(--ly), rgba(9,10,20,.05) 0%, rgba(9,10,20,.35) 45%, rgba(9,10,20,.86) 100%),
    linear-gradient(to top, var(--ink-900) 0%, rgba(9,10,20,.65) 30%, rgba(9,10,20,0) 60%),
    linear-gradient(to right, rgba(9,10,20,.85) 0%, rgba(9,10,20,.2) 55%);
}
.hero__beam { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: screen; width: 100%; height: 100%; filter: blur(18px); will-change: filter; }
.hero__tower {
  position: absolute; right: clamp(16px, 7vw, 120px); bottom: 52px; z-index: 0; width: 112px; height: auto;
  image-rendering: pixelated; filter: drop-shadow(0 0 30px rgba(9,10,20,.9)) brightness(.85);
}
.hero__wall {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; z-index: 1;
  background:
    linear-gradient(var(--ink-800), var(--ink-900));
  box-shadow: 0 -2px 0 var(--steel-600);
}
.hero__wall::before { /* coil on top of the wall */
  content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' shape-rendering='crispEdges' fill='none' stroke='%23394a50' stroke-width='3'%3E%3Ccircle cx='16' cy='18' r='11'/%3E%3C/svg%3E") repeat-x bottom / auto 32px;
}
.hero__wall::after { /* wall bricks */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 62px, rgba(57,74,80,.5) 62px 64px), repeating-linear-gradient(0deg, transparent 0 14px, rgba(57,74,80,.35) 14px 16px);
}
.hero__content { position: relative; z-index: 4; width: min(100% - var(--gutter) * 2, 1440px); margin-inline: auto; }
.hero__logo { width: 248px; height: auto; image-rendering: pixelated; margin: 0 0 18px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.65)); }
.hero__badge { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.hero__badge .plate { font-size: .85rem; }
.hero__h1 { font-family: var(--font-term); font-weight: 400; text-transform: uppercase; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); letter-spacing: .08em; color: var(--steel-300); margin: 0 0 10px; }
.hero__tagline { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(2.8rem, 1.6rem + 3.4vw, 5rem); line-height: .92; margin: 0 0 16px; max-width: 13ch; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.hero__tagline span { color: var(--amber-500); display: block; }
@media (min-width: 1100px) { .hero__tagline { max-width: none; } }
.hero__sub { font-size: var(--step-1); max-width: 46ch; color: var(--bone-100); margin-bottom: 30px; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.hero__strip { margin-top: 28px; font-family: var(--font-term); font-size: clamp(1.1rem, 1rem + .4vw, 1.45rem); letter-spacing: .1em; color: var(--steel-300); display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; list-style: none; }
.hero__strip li::before { content: "■ "; color: var(--amber-500); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5;
  font-family: var(--font-term); font-size: 1.15rem; letter-spacing: .14em; color: var(--steel-300); text-decoration: none;
}
.hero__scroll::after { content: "_"; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Hero logo: 3× on laptops, 4× on taller screens, 5× on big monitors (whole-number steps keep pixels crisp) */
@media (min-width: 600px) and (min-height: 640px) { .hero__logo { width: 372px; } }
@media (min-width: 1000px) and (min-height: 780px) { .hero__logo { width: 496px; } }
@media (min-width: 1600px) and (min-height: 1000px) { .hero__logo { width: 620px; } }
/* Wide but not very tall screens: big logo left, copy right, so the logo can grow and CTAs stay above the fold */
@media (min-width: 1280px) and (max-height: 1000px) {
  .hero__content { display: grid; grid-template-columns: auto minmax(0, 680px); column-gap: clamp(40px, 4vw, 80px); align-items: end; justify-content: start; }
  .hero__tower { width: 112px; right: 24px; }
  .hero__brand { width: min-content; }
  .hero__copy .hero__strip { max-width: 500px; }
  .hero__brand .hero__logo { margin-bottom: 20px; max-width: none; }
  .hero__brand .hero__badge { margin-bottom: 0; }
  .hero__tagline { max-width: none; }
}
@media (min-width: 1280px) and (min-height: 680px) and (max-height: 1000px) { .hero__logo { width: 496px; } }
@media (min-width: 1280px) and (max-width: 1439px) and (max-height: 1000px) { .hero__tower { opacity: .55; } }
/* Short laptop screens: tighten the text below the logo so the CTAs stay above the fold */
@media (min-width: 761px) and (max-height: 900px) {
  .hero__tagline { font-size: clamp(2.6rem, 1.4rem + 2.6vw, 4.2rem); margin-bottom: 12px; }
  .hero__sub { margin-bottom: 22px; }
  .hero__badge { margin-bottom: 10px; }
  .hero__strip { margin-top: 18px; }
}
@media (min-width: 1200px) { .hero__tower { width: 168px; } }
@media (min-width: 420px) { .intro__logo { width: 372px; } }
@media (min-width: 900px) and (min-height: 700px) { .intro__logo { width: 496px; } }

@media (max-width: 760px) {
  .hero { align-items: flex-end; padding-top: calc(var(--header-h) + 24px); }
  .hero__tower { width: 84px; right: 12px; opacity: .6; }
  .hero__logo { margin-bottom: 14px; }
  .hero__badge .plate { font-size: .68rem; }
  .hero__badge .stamp { font-size: .75rem; }
  .hero__sub { font-size: 1.08rem; margin-bottom: 22px; }
  .hero__tagline { font-size: clamp(2.6rem, 13vw, 3.6rem); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Pitch strip
   ========================================================================== */
.pitch { background-color: var(--rust-500); color: var(--bone-100); position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 96px) clamp(44px, 6vw, 72px); }
/* rust-painted cinder-block wall: mortar lines with staggered joints, plus uneven paint */
.pitch::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(232,193,112,.10), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(52,28,39,.35), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='112' shape-rendering='crispEdges'%3E%3Cg fill='%23341c27' fill-opacity='.3'%3E%3Crect y='54' width='160' height='2'/%3E%3Crect y='110' width='160' height='2'/%3E%3Crect x='158' width='2' height='54'/%3E%3Crect x='78' y='56' width='2' height='54'/%3E%3C/g%3E%3Cg fill='%23be772b' fill-opacity='.18'%3E%3Crect y='56' width='160' height='1'/%3E%3Crect y='0' width='160' height='1'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 160px 112px;
}
.pitch__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.pitch__statement { font-size: var(--step-4); margin: 0; line-height: .95; text-shadow: 4px 4px 0 var(--rust-900); }
.pitch__statement span { display: block; color: var(--amber-300); }
/* pixel-art chalkboard: flat board with chalk dust pixels, stepped wooden frame with nails, ledge with chalk + eraser */
.pitch__rules {
  position: relative; margin: 16px 16px 40px; padding: 22px clamp(18px, 3vw, 32px) 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='48' shape-rendering='crispEdges'%3E%3Cg fill='%23ebede9' fill-opacity='.045'%3E%3Crect x='16' y='8' width='120' height='8'/%3E%3Crect x='4' y='16' width='164' height='8'/%3E%3Crect x='24' y='24' width='148' height='8'/%3E%3Crect x='44' y='32' width='88' height='8'/%3E%3C/g%3E%3C/svg%3E") 62% 46% / 180px 48px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' shape-rendering='crispEdges'%3E%3Cg fill='%23ebede9' fill-opacity='.07'%3E%3Crect x='8' y='12' width='4' height='4'/%3E%3Crect x='52' y='4' width='4' height='4'/%3E%3Crect x='80' y='36' width='4' height='4'/%3E%3Crect x='24' y='60' width='4' height='4'/%3E%3Crect x='64' y='72' width='4' height='4'/%3E%3Crect x='40' y='88' width='4' height='4'/%3E%3C/g%3E%3Cg fill='%23000' fill-opacity='.12'%3E%3Crect x='32' y='28' width='4' height='4'/%3E%3Crect x='72' y='56' width='4' height='4'/%3E%3Crect x='12' y='80' width='4' height='4'/%3E%3Crect x='88' y='8' width='4' height='4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 96px 96px,
    #22313a;
  box-shadow: inset 0 0 0 4px #18232a, inset 0 8px 0 rgba(0,0,0,.25);
}
.pitch__rules::before { /* wooden frame, 16px, lit from the top-left, with a nail in each corner */
  content: ""; position: absolute; inset: -16px; z-index: -1; pointer-events: none;
  background:
    linear-gradient(#c9cec9, #c9cec9) 6px 6px / 4px 4px no-repeat,
    linear-gradient(#c9cec9, #c9cec9) calc(100% - 6px) 6px / 4px 4px no-repeat,
    linear-gradient(#c9cec9, #c9cec9) 6px calc(100% - 6px) / 4px 4px no-repeat,
    linear-gradient(#c9cec9, #c9cec9) calc(100% - 6px) calc(100% - 6px) / 4px 4px no-repeat,
    linear-gradient(#b07440, #b07440) 0 0 / 100% 4px no-repeat,
    linear-gradient(#a06438, #a06438) 0 0 / 4px 100% no-repeat,
    linear-gradient(#5a341f, #5a341f) 0 100% / 100% 4px no-repeat,
    linear-gradient(#64391f, #64391f) 100% 0 / 4px 100% no-repeat,
    #8a5530;
  box-shadow: 0 0 0 4px var(--rust-900), 16px 16px 0 4px rgba(52,28,39,.5);
}
.pitch__rules::after { /* ledge with an eraser and a stick of chalk */
  content: ""; position: absolute; left: -26px; right: -26px; bottom: -26px; height: 24px; pointer-events: none;
  background:
    linear-gradient(#a86a3c 0 4px, #4b5560 4px) 18% 0 / 40px 10px no-repeat,
    linear-gradient(#ebede9 0 3px, #b9c0bc 3px) 76% 4px / 24px 6px no-repeat,
    linear-gradient(transparent 0 10px, var(--rust-900) 10px 12px, #b07440 12px 16px, #8a5530 16px 20px, #5a341f 20px 22px, var(--rust-900) 22px 24px);
  filter: drop-shadow(8px 8px 0 rgba(52,28,39,.5));
}
.pitch__rules-head { margin: 0; padding-bottom: 12px; font-family: var(--font-display); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-300); border-bottom: 4px solid rgba(235,237,233,.3); }
.pitch__list { list-style: none; padding: 0; margin: 0; }
.pitch__item { display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: start; padding: 18px 0 18px; background: linear-gradient(90deg, rgba(235,237,233,.2) 0 8px, transparent 8px 16px) 0 100% / 16px 4px repeat-x; }
.pitch__item:last-child { background: none; }
.pitch__no { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--amber-300); text-shadow: 3px 3px 0 #111a1f; }
.pitch__item strong { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .03em; color: #f4f5f1; text-shadow: 2px 2px 0 #111a1f; }
.pitch__item strong .pxi { width: 28px; height: 28px; flex: none; filter: drop-shadow(2px 2px 0 #111a1f); }
.pitch__item small { display: block; margin-top: 4px; color: #cfd6d2; font-size: 1.02rem; }
@media (max-width: 860px) { .pitch__inner { grid-template-columns: 1fr; } }

/* ==========================================================================
   At a glance (AEO block)
   ========================================================================== */
/* riveted steel spec plate bolted to the pitch wall */
.glance {
  position: relative; z-index: 2; margin-top: clamp(40px, 6vw, 64px); padding: 14px 22px;
  background: linear-gradient(180deg, #4b5f65, #394a50 55%, #2f3e43);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -3px 0 rgba(0,0,0,.35), 8px 8px 0 rgba(52,28,39,.55);
}
.glance::before { /* pixel rivets in the corners */
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  background:
    linear-gradient(#b8c3c0, #6b7c80) left top / 6px 6px no-repeat,
    linear-gradient(#b8c3c0, #6b7c80) right top / 6px 6px no-repeat,
    linear-gradient(#b8c3c0, #6b7c80) left bottom / 6px 6px no-repeat,
    linear-gradient(#b8c3c0, #6b7c80) right bottom / 6px 6px no-repeat;
}
.glance__dl { display: grid; grid-template-columns: repeat(7, auto); justify-content: space-between; margin: 0; }
.glance__dl div { padding: 6px 14px; }
.glance__dl div + div { box-shadow: inset 2px 0 0 rgba(0,0,0,.32), inset 3px 0 0 rgba(255,255,255,.08); }   /* engraved groove */
.glance__dl dt { font-family: var(--font-display); font-size: .66rem; color: #ccd5d2; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.glance__dl dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.2; text-transform: uppercase; color: var(--bone-100); text-shadow: 0 -1px 0 rgba(0,0,0,.55); }
.glance__dl dd a { color: inherit; text-decoration: none; }
.glance__dl dd a:hover { color: var(--amber-300); }
@media (max-width: 1240px) {
  .glance__dl { grid-template-columns: repeat(4, 1fr); row-gap: 10px; }
  .glance__dl div:nth-child(4n+1) { box-shadow: none; }
}
@media (max-width: 560px) {
  .glance__dl { grid-template-columns: repeat(2, 1fr); }
  .glance__dl div { padding: 6px 10px; }
  .glance__dl div:nth-child(n) { box-shadow: none; }
  .glance__dl div:nth-child(even) { box-shadow: inset 2px 0 0 rgba(0,0,0,.32), inset 3px 0 0 rgba(255,255,255,.08); }
  .glance__dl div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ==========================================================================
   Trailer: CCTV
   ========================================================================== */
.trailer { background: var(--ink-900); overflow: hidden; }
.cctv { position: relative; max-width: 1180px; margin-inline: auto; }
.cctv__frame {
  position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden;
  box-shadow: 0 0 0 10px var(--ink-800), 0 0 0 12px var(--steel-600), 0 40px 80px rgba(0,0,0,.6);
}
.cctv__poster, .cctv__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cctv__poster img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.05) brightness(.62); }
.cctv__hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; font-family: var(--font-term); font-size: clamp(1rem, .8rem + .8vw, 1.6rem); color: var(--bone-100); text-shadow: 0 0 6px rgba(0,0,0,.9); }
.cctv__hud span { position: absolute; }
.cctv__cam { top: 4%; left: 3%; }
.cctv__rec { top: 4%; right: 3%; display: flex; align-items: center; gap: 8px; }
.cctv__rec::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--alarm); animation: blink 1.2s steps(1) infinite; }
.cctv__time { bottom: 4%; left: 3%; }
.cctv__corner { width: 28px; height: 28px; border: 3px solid rgba(235,237,233,.7); }
.cctv__corner--tl { top: 3%; left: 2%; border-right: 0; border-bottom: 0; display: none; }
.cctv__play {
  position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: transparent; border: 0; color: var(--bone-100); width: 100%;
}
.cctv__play-btn { --px: 6px; display: inline-flex; align-items: center; gap: 14px; padding: 18px 30px; background: var(--amber-500); color: var(--ink-900); font-family: var(--font-display); font-size: clamp(1rem, .8rem + .8vw, 1.5rem); text-transform: uppercase; transition: transform .2s, background .2s; }
.cctv__play:hover .cctv__play-btn, .cctv__play:focus-visible .cctv__play-btn { background: var(--amber-300); transform: scale(1.05); }
.cctv__note { font-size: .92rem; color: var(--steel-300); max-width: 42ch; text-align: center; text-shadow: 0 1px 6px #000; }
.cctv__frame.is-playing .cctv__hud, .cctv__frame.is-playing.scanlines::before { display: none; }
/* Cell bars that slide open */
.bars { position: absolute; inset: -2px; z-index: 6; display: none; pointer-events: none; }
.anim-ready .bars { display: flex; }
.bars__half { flex: 1; display: flex; justify-content: space-evenly; background: linear-gradient(to bottom, var(--ink-700) 0 14px, transparent 14px calc(100% - 14px), var(--ink-700) calc(100% - 14px)); }
.bars__half i { width: clamp(8px, 1.1vw, 16px); background: linear-gradient(90deg, #233038, #6b8287 40%, #2a383e 80%); box-shadow: 4px 0 10px rgba(0,0,0,.5); }
.no-motion .bars, .bars.is-open { display: none; }
.trailer__links { margin-top: 26px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; }

/* ==========================================================================
   A Day in The Yard: pinned horizontal timeline
   ========================================================================== */
.day { background: var(--ink-800); overflow: hidden; padding-bottom: 0; }
.day__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.day__tally { font-family: var(--font-term); color: var(--steel-400); font-size: 1.3rem; letter-spacing: .06em; }
.day__viewport { position: relative; }
.day__track {
  list-style: none; margin: 0 auto; padding: 10px var(--gutter) var(--section-y);
  max-width: calc(var(--max) + var(--gutter) * 2);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 1000px) { .day__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .day__track { grid-template-columns: 1fr; } }
.day__card {
  flex: none; position: relative;
  background: var(--ink-900); box-shadow: 0 0 0 2px var(--ink-700);
}
.day__img { aspect-ratio: 16 / 9; overflow: hidden; position: relative; }
.day__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform .6s var(--ease-out); }
.day__card:hover .day__img img { transform: scale(1.04); }
.day__clock {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  font-family: var(--font-term); font-size: 2.6rem; line-height: 1; color: var(--amber-300);
  background: rgba(9,10,20,.85); padding: 6px 12px 2px; box-shadow: inset 0 0 0 2px var(--rust-500);
  text-shadow: 0 0 10px rgba(232,193,112,.6);
}
.day__body { padding: 22px 26px 28px; }
.day__label { font-family: var(--font-display); font-size: .8rem; color: var(--amber-500); letter-spacing: .08em; margin-bottom: 6px; }
.day__title { font-size: var(--step-2); margin-bottom: .3em; }
.day__body p { color: var(--steel-300); margin: 0; }

/* ==========================================================================
   Features: inmate files
   ========================================================================== */
.features { background: var(--ink-900); overflow: hidden; }
.files { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px, 2vw, 28px); }
.file {
  position: relative; color: var(--ink-900); padding-top: 30px;
  transition: transform .3s var(--ease-out);
}
.file__tab {
  position: absolute; bottom: 100%; left: 18px; height: 30px; padding: 4px 16px 0;   /* inside .file__body, so it tilts with the card on hover */
  background: var(--paper-dark); font-family: var(--font-term); font-size: 1.1rem; letter-spacing: .06em; color: var(--rust-900);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}
.file__body {
  position: relative; height: 100%; padding: 24px 22px 26px;
  background: linear-gradient(170deg, #e2d8bc, var(--paper) 40%, #cbbf9f);
  box-shadow: 0 1px 0 #fff4 inset, 0 18px 36px rgba(0,0,0,.45);
  transform-origin: bottom center; transition: transform .35s var(--ease-out), box-shadow .35s;
}
.file__body::before { /* paper fibers */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .25 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}
.file:hover .file__body, .file:focus-within .file__body { transform: perspective(900px) rotateX(6deg) translateY(-6px); box-shadow: 0 30px 50px rgba(0,0,0,.55); }
.file__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; position: relative; }
.file__icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink-800); box-shadow: 4px 4px 0 var(--rust-500); }
.file__icon .pxi { width: 36px; height: 36px; }
.file__no { font-family: var(--font-term); font-size: 1.1rem; color: #5b4a36; }
.file__title { font-size: 1.7rem; color: var(--ink-900); margin-bottom: .35em; position: relative; }
.file__text { font-size: 1rem; line-height: 1.5; color: #2a2620; margin-bottom: 12px; position: relative; }
.file__quip { font-family: var(--font-term); font-size: 1.2rem; line-height: 1.2; color: var(--rust-700); position: relative; margin: 0; border-top: 2px dashed rgba(52,28,39,.35); padding-top: 10px; }
.file .stamp { position: absolute; right: 52px; top: 30px; opacity: 0; transform: rotate(-12deg) scale(1.8); transition: opacity .15s, transform .25s cubic-bezier(.3,1.6,.5,1); pointer-events: none; z-index: 2; }
.file:hover .stamp, .file:focus-within .stamp, .file.is-stamped .stamp { opacity: .85; transform: rotate(-12deg) scale(1); }
.file__clip { position: absolute; top: 14px; right: 26px; width: 14px; height: 40px; border: 3px solid var(--steel-300); border-radius: 8px; z-index: 3; }
@media (max-width: 1100px) { .files { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .files { grid-template-columns: 1fr; } }

/* ==========================================================================
   Blueprint
   ========================================================================== */
.blueprint { background: var(--blueprint); color: var(--bone-100); overflow: hidden; }
.blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(235,237,233,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235,237,233,.07) 1px, transparent 1px),
    linear-gradient(rgba(235,237,233,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235,237,233,.14) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
}
.blueprint .kicker { color: var(--bone-100); }
.blueprint .kicker::before { background: var(--bone-100); box-shadow: 4px 4px 0 rgba(235,237,233,.3); }
.blueprint .section-title em { color: var(--amber-300); }
.blueprint .section-lead { color: rgba(235,237,233,.8); }
.bp { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; }
.bp__map { position: relative; aspect-ratio: 16 / 10; }
.bp__map svg { width: 100%; height: 100%; overflow: visible; }
.bp__map .room { fill: rgba(235,237,233,.04); stroke: rgba(235,237,233,.55); stroke-width: 2; }
.bp__map .room--hot { stroke: var(--amber-300); }
.bp__map .lbl { font-family: "VT323", monospace; font-size: 20px; fill: rgba(235,237,233,.75); letter-spacing: 1px; }
.bp__map .wall-outer { fill: none; stroke: var(--bone-100); stroke-width: 5; }
.bp__map .route { fill: none; stroke: var(--amber-300); stroke-width: 4; stroke-dasharray: 12 8; stroke-linecap: square; }
.bp__map .route-solid { fill: none; stroke: var(--amber-300); stroke-width: 4; stroke-linecap: square; }
.bp__map .x { stroke: var(--alarm); stroke-width: 5; }
.bp__map .guard { fill: var(--alarm); }
.bp__map .cone { fill: rgba(196,54,47,.18); }
.bp__note {
  position: absolute; z-index: 2; max-width: 210px;
  font-family: var(--font-term); font-size: clamp(1rem, .8rem + .5vw, 1.3rem); line-height: 1.1;
  background: #f1e7b8; color: var(--ink-900); padding: 8px 12px 6px; box-shadow: 3px 4px 0 rgba(0,0,0,.35);
  transform: rotate(var(--r, -2deg));
}
.bp__note::before { content: ""; position: absolute; top: -8px; left: 50%; width: 40px; height: 14px; transform: translateX(-50%) rotate(3deg); background: rgba(232,193,112,.65); }
.bp__notes-list { display: none; }
@media (max-width: 960px) {
  .bp { grid-template-columns: 1fr; }
  .bp__note { display: none; }
  .bp__notes-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 24px 0 0; counter-reset: n; }
  .bp__notes-list li { font-family: var(--font-term); font-size: 1.3rem; display: flex; gap: 10px; }
  .bp__notes-list li::before { counter-increment: n; content: counter(n); background: var(--amber-300); color: var(--ink-900); width: 1.6em; text-align: center; flex: none; }
}

/* ==========================================================================
   Gallery: evidence locker
   ========================================================================== */
.gallery { background: var(--ink-900); }
.evidence { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(110px, 12vw, 170px); gap: 12px; grid-auto-flow: dense; }
.evidence__item {
  position: relative; grid-column: span 4; grid-row: span 2; overflow: hidden; padding: 0; border: 0; background: var(--ink-800);
  box-shadow: 0 0 0 2px var(--ink-700);
}
.evidence__item--wide { grid-column: span 8; grid-row: span 3; }
.evidence__item--tall { grid-column: span 4; grid-row: span 3; }
.evidence__item--sm { grid-column: span 4; grid-row: span 2; }
.evidence__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out), filter .3s; filter: saturate(.85) brightness(.9); }
.evidence__item:hover img, .evidence__item:focus-visible img { transform: scale(1.05); filter: none; }
.evidence__item.is-crunch img { image-rendering: pixelated; }
.evidence__tag {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  font-family: var(--font-term); font-size: 1.2rem; letter-spacing: .06em; line-height: 1;
  background: #f1e7b8; color: var(--ink-900); padding: 6px 10px 3px; transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(0,0,0,.4);
}
.evidence__tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-900); margin-right: 8px; vertical-align: middle; }
.evidence__item::after { /* plastic bag sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.08) 45%, transparent 55%);
}
.evidence__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--ink-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='%23202e37'/%3E%3C/svg%3E"); }
@media (max-width: 860px) {
  .evidence { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .evidence__item, .evidence__item--wide, .evidence__item--tall, .evidence__item--sm { grid-column: span 1; grid-row: auto; aspect-ratio: 16 / 10; }
  .evidence__item--wide { grid-column: span 2; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 500; display: none; background: rgba(9,10,20,.96); }
.lightbox.is-open { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); font-family: var(--font-term); font-size: 1.4rem; color: var(--steel-300); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 96px); min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 0 0 2px var(--ink-700), 0 30px 80px #000; }
.lightbox__caption { text-align: center; padding: 14px var(--gutter) 22px; color: var(--steel-300); font-size: 1rem; min-height: 3em; }
.lightbox__btn { background: var(--ink-800); border: 0; color: var(--bone-100); width: 52px; height: 52px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; }
.lightbox__btn:hover { background: var(--amber-500); color: var(--ink-900); }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ==========================================================================
   Lore: warden's letter
   ========================================================================== */
.lore { background: var(--ink-800); overflow: hidden; }
.lore__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.letter {
  position: relative; background: linear-gradient(175deg, #ece4cc, var(--paper)); color: #24201a;
  padding: clamp(28px, 4vw, 56px); transform: rotate(1.2deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.55);
  font-family: var(--font-term); font-size: clamp(1.25rem, 1.1rem + .4vw, 1.55rem); line-height: 1.3;
}
.letter::before { content: ""; position: absolute; inset: 0; opacity: .3; mix-blend-mode: multiply; pointer-events: none; background-image: inherit; }
.letter__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px double #24201a; padding-bottom: 14px; margin-bottom: 20px; }
.letter__org { font-family: var(--font-display); font-size: .9rem; letter-spacing: .06em; line-height: 1.4; }
.letter p { margin-bottom: .8em; }
.letter__sign { margin-top: 22px; }
.letter__sig { font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 2rem; text-transform: none; letter-spacing: 0; transform: rotate(-4deg); display: inline-block; color: #2b3a6b; }
.letter .stamp { position: absolute; right: 24px; bottom: 32px; font-size: 1.1rem; }
.lore__photo { position: relative; }
.lore__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.4) contrast(1.1) brightness(.85); box-shadow: 0 0 0 10px #ece4cc, 0 30px 60px rgba(0,0,0,.5); transform: rotate(-2.5deg); }
.lore__photo figcaption { font-family: var(--font-term); color: var(--steel-300); font-size: 1.15rem; margin-top: 26px; }
@media (max-width: 900px) { .lore__grid { grid-template-columns: 1fr; } .lore__photo { order: -1; } }

/* ==========================================================================
   Roadmap teaser (cell block strip)
   ========================================================================== */
.rm-strip { background: var(--ink-900); }
.cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 3px solid var(--steel-600); background: var(--ink-800); }
.cell { position: relative; padding: 28px 24px 30px; border-right: 3px solid var(--steel-600); min-height: 240px; display: flex; flex-direction: column; overflow: hidden; }
.cell:last-child { border-right: 0; }
.cell::after { /* bars overlay */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background: repeating-linear-gradient(90deg, transparent 0 34px, var(--steel-300) 34px 40px);
}
/* cell number painted on the wall in amber, sitting in front of the bars */
.cell__no { position: relative; z-index: 1; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--amber-300); text-shadow: 3px 3px 0 var(--rust-700); margin-bottom: 14px; }
.cell__no--inf { font-family: var(--font-head); font-weight: 800; font-size: 3.6rem; line-height: .72; }   /* the pixel font has no ∞ glyph */
.cell__title { font-size: 1.7rem; margin-bottom: .3em; }
.cell p { font-size: 1rem; color: var(--steel-300); margin: 0 0 16px; }
.status { margin-top: auto; align-self: flex-start; font-family: var(--font-term); font-size: 1.15rem; letter-spacing: .08em; padding: 4px 10px 1px; text-transform: uppercase; }
.status--upcoming { background: var(--amber-500); color: var(--ink-900); }
.status--planned { box-shadow: inset 0 0 0 2px var(--steel-400); color: var(--steel-300); }
.status--ongoing { background: #3f7a3a; color: var(--bone-100); }
.rm-strip__more { margin-top: 26px; text-align: right; }
@media (max-width: 960px) { .cells { grid-template-columns: repeat(2, 1fr); } .cell:nth-child(2) { border-right: 0; } .cell:nth-child(-n+2) { border-bottom: 3px solid var(--steel-600); } }
@media (max-width: 560px) { .cells { grid-template-columns: 1fr; } .cell { border-right: 0; border-bottom: 3px solid var(--steel-600); min-height: 0; } .cell:last-child { border-bottom: 0; } }

/* ==========================================================================
   Community
   ========================================================================== */
.community { overflow: hidden; }
.community__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

/* intercepted radio chatter: bare terminal text in the margin, no box */
.radio { margin-top: clamp(28px, 4vw, 44px); padding-left: 18px; border-left: 3px solid var(--rust-500); max-width: 44ch; font-family: var(--font-term); font-size: 1.3rem; line-height: 1.3; color: var(--steel-400); }
.radio p { margin: 0 0 .35em; }
.radio__meta { color: var(--amber-500); letter-spacing: .08em; text-transform: uppercase; }
.radio__you { color: var(--amber-300); }
.radio p:last-child::after { content: "_"; animation: blink 1s steps(1) infinite; }
.no-motion .radio p:last-child::after { animation: none; }

/* clipboard + visitor log sheet (social links) */
.clipboard { --ledger-pad: clamp(16px, 3vw, 32px); --no-col: 48px; position: relative; padding: 40px 14px 14px; background: #4a3220; transform: rotate(-1.2deg); box-shadow: inset 0 0 0 3px #2c1d12, inset 0 0 40px rgba(0,0,0,.45), 0 30px 60px rgba(0,0,0,.55); }
.clipboard__clip { position: absolute; z-index: 2; top: -12px; left: 50%; width: 140px; height: 44px; transform: translateX(-50%); background: linear-gradient(#c9d1ce, #7f8b89); box-shadow: inset 0 -5px 0 #59625f, inset 0 0 0 2px #394a50, 0 6px 10px rgba(0,0,0,.45); }
.clipboard__clip::after { content: ""; position: absolute; top: 10px; left: 50%; width: 36px; height: 10px; transform: translateX(-50%); background: #2c1d12; }
.ledger {
  position: relative; color: #24201a; padding: 28px var(--ledger-pad) 26px;
  background:
    linear-gradient(90deg, transparent calc(var(--ledger-pad) + var(--no-col) + 6px), rgba(196,54,47,.45) calc(var(--ledger-pad) + var(--no-col) + 6px) calc(var(--ledger-pad) + var(--no-col) + 8px), transparent calc(var(--ledger-pad) + var(--no-col) + 8px)),
    linear-gradient(175deg, #efe7cf, var(--paper));
}
.ledger__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-display); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px double #24201a; padding-bottom: 12px; }
.ledger__list { list-style: none; margin: 0; padding: 0; }
.ledger__row a {
  display: grid; grid-template-columns: var(--no-col) 1fr auto; grid-template-areas: "no name go" "no what go"; column-gap: 18px; align-items: center;
  padding: 14px 6px 12px 0; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(43,58,107,.3);
  transition: background-color .15s;
}
.ledger__row a:hover { background: rgba(232,193,112,.45); }
.ledger__no { grid-area: no; font-family: var(--font-term); font-size: 1.3rem; color: var(--rust-700); padding-left: 4px; }
.ledger__name { grid-area: name; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.55rem; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-900); }
.ledger__name svg { width: 22px; height: 22px; flex: none; color: var(--ink-800); }
.ledger__what { grid-area: what; font-family: var(--font-term); font-size: 1.2rem; line-height: 1.2; color: #4a4236; }
.ledger__go { grid-area: go; font-family: var(--font-term); font-size: 1.25rem; color: var(--rust-700); white-space: nowrap; transition: transform .15s; }
.ledger__row a:hover .ledger__go { transform: translateX(4px); }
.ledger__row--lead .ledger__name { font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); }
.ledger__row--lead .ledger__name svg { width: 32px; height: 32px; }
.ledger__row--lead .ledger__go { --px: 3px; padding: 11px 16px 9px; background: var(--amber-500); color: var(--ink-900); font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 -3px 0 var(--rust-700); clip-path: polygon(0 var(--px), var(--px) var(--px), var(--px) 0, calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px), 100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%, var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px))); }
.ledger__row--lead a:hover .ledger__go { background: var(--amber-300); transform: none; }
.ledger__foot { margin: 16px 0 0; max-width: calc(100% - 210px); font-family: var(--font-term); font-size: 1.15rem; color: #5b5142; }
.ledger .stamp { position: absolute; right: 24px; bottom: 22px; font-size: .9rem; pointer-events: none; }
@media (max-width: 860px) {
  .community__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .clipboard { transform: none; --no-col: 36px; }
  .ledger__row a { grid-template-columns: var(--no-col) 1fr; grid-template-areas: "no name" "no what" "no go"; row-gap: 4px; }
  .ledger__row--lead .ledger__go { justify-self: start; margin-top: 8px; }
  .ledger .stamp { display: none; }
  .ledger__foot { max-width: none; }
}
.community__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; background: rgba(9,10,20,.6); color: var(--bone-100); text-decoration: none; font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 2px var(--steel-600); }
.social-btn:hover { background: var(--bone-100); color: var(--ink-900); }
.social-btn svg { width: 20px; height: 20px; }

/* ==========================================================================
   FAQ: interrogation room
   ========================================================================== */
.faq { background: var(--ink-900); overflow: hidden; }
.faq::before { /* overhead lamp */
  content: ""; position: absolute; top: 0; left: 50%; width: min(1100px, 140vw); height: 900px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(232,193,112,.10), transparent 70%);
}
.faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: start; position: relative; }
.faq__col { display: grid; gap: 12px; align-content: start; }
@media (max-width: 900px) { .faq__list, .faq__col { grid-template-columns: 1fr; gap: 10px; } }
.faq__item { background: var(--ink-800); box-shadow: inset 0 0 0 2px var(--ink-700); }
.faq__item[open] { box-shadow: inset 4px 0 0 var(--amber-500), inset 0 0 0 2px var(--ink-700); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; min-height: 64px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); text-transform: uppercase; letter-spacing: .02em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before { content: "Q:"; font-family: var(--font-term); font-size: 1.4rem; color: var(--amber-500); flex: none; }
.faq__q::after { content: "+"; margin-left: auto; font-family: var(--font-display); color: var(--steel-400); font-size: 1.4rem; transition: transform .2s; }
.faq__item[open] .faq__q::after { transform: rotate(45deg); color: var(--amber-300); }
.faq__a { padding: 0 22px 22px 66px; color: var(--steel-300); }
.faq__a p:last-child { margin-bottom: 0; }
.specs { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-family: var(--font-term); font-size: 1.25rem; }
.specs b { color: var(--bone-100); font-weight: 400; display: inline-block; min-width: 8.5em; }
@media (max-width: 600px) { .faq__a { padding-left: 22px; } }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final { position: relative; overflow: hidden; text-align: center; background: var(--ink-900); padding-block: clamp(110px, 16vw, 200px); isolation: isolate; }
.final__bg { position: absolute; inset: 0; z-index: -2; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.35) saturate(.7); }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle 420px at 50% 55%, rgba(232,193,112,.18), rgba(9,10,20,.55) 60%, var(--ink-900) 100%); }
.final__title { font-size: var(--step-5); line-height: .92; }
.final__title span { color: var(--amber-500); display: block; }
.final__lead { font-size: var(--step-1); color: var(--bone-100); max-width: 40ch; margin: 0 auto 34px; }
.final .btn-row { justify-content: center; }
.widget-slot { margin: 48px auto 0; max-width: 646px; }
.widget-slot__ph { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: rgba(21,29,40,.92); box-shadow: inset 0 0 0 2px var(--steel-600); text-align: left; flex-wrap: wrap; }
.widget-slot__ph p { margin: 0; font-size: .95rem; color: var(--steel-300); max-width: 38ch; }
.widget-slot iframe { width: 100%; height: 190px; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #05060c; border-top: 2px solid var(--ink-700); padding: 64px 0 32px; position: relative; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 248px; height: auto; image-rendering: pixelated; margin-bottom: 16px; }
.footer__brand p { color: var(--steel-400); max-width: 34ch; }
.footer__h { font-family: var(--font-display); font-size: .75rem; letter-spacing: .08em; color: var(--steel-400); text-transform: uppercase; margin-bottom: 14px; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.footer__list a { color: var(--steel-300); text-decoration: none; display: inline-flex; min-height: 36px; align-items: center; }
.footer__list a:hover { color: var(--amber-300); }
.footer__legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--ink-700); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--steel-400); font-size: .85rem; align-items: center; }
.footer__legal p { margin: 0; max-width: 70ch; }
.footer__tower { position: relative; width: 56px; height: auto; image-rendering: pixelated; opacity: .8; }
.footer__tower-wrap { position: relative; }
.footer__tower-wrap::after { content: ""; position: absolute; top: 22px; left: 25px; width: 6px; height: 4px; background: var(--amber-300); box-shadow: 0 0 10px 3px rgba(232,193,112,.7); animation: blink 2.4s steps(1) infinite; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SUBPAGES
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(60px, 9vw, 120px)) 0 clamp(50px, 7vw, 90px); overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.28) saturate(.6); }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--ink-900), transparent 70%); }
.page-hero h1 { font-size: var(--step-5); line-height: .92; margin-bottom: .25em; }
.page-hero h1 span { color: var(--amber-500); }
.page-hero p { font-size: var(--step-1); color: var(--steel-300); max-width: 52ch; }
.breadcrumb { font-family: var(--font-term); font-size: 1.2rem; color: var(--steel-400); margin-bottom: 18px; }
.breadcrumb ol { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--steel-600); }
.breadcrumb a { color: var(--steel-300); text-decoration: none; }
.breadcrumb a:hover { color: var(--amber-300); }

/* Roadmap corridor */
.corridor { position: relative; display: grid; gap: clamp(28px, 4vw, 48px); }
.corridor::before { content: ""; position: absolute; left: 39px; top: 0; bottom: 0; width: 4px; background: repeating-linear-gradient(to bottom, var(--steel-600) 0 14px, transparent 14px 24px); }
.door { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: clamp(18px, 3vw, 36px); align-items: start; }
.door__lock { position: relative; width: 82px; height: 82px; display: grid; place-items: center; background: var(--ink-800); box-shadow: inset 0 0 0 3px var(--steel-600); z-index: 1; }
.door__lock svg { width: 44px; height: 44px; shape-rendering: crispEdges; overflow: visible; }
.door__shackle { transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.door.is-unlocked .door__shackle { transform: translateY(-4px); }   /* right leg pops out, the long left leg stays in the lock */
.door.is-unlocked .door__lock { box-shadow: inset 0 0 0 3px var(--amber-500); }
.door__panel { position: relative; overflow: hidden; background: var(--ink-800); box-shadow: inset 0 0 0 2px var(--ink-700); padding: clamp(24px, 3vw, 40px); }
.door__panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; background: repeating-linear-gradient(90deg, transparent 0 46px, var(--bone-100) 46px 52px); }
.door__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.door__phase { font-family: var(--font-display); font-size: .85rem; color: var(--amber-300); letter-spacing: .08em; }
.door__title { font-size: var(--step-3); margin: 0 0 .3em; }
.door__panel p { color: var(--steel-300); max-width: 62ch; }
.door__panel ul { color: var(--steel-300); margin: 0; }
/* warden's memo taped to the corridor wall, lined up with the door panels */
.memo-wrap { margin-top: clamp(48px, 7vw, 80px); padding-left: calc(82px + clamp(18px, 3vw, 36px)); }
.memo {
  position: relative; max-width: 560px; padding: 30px clamp(20px, 3vw, 34px) 24px;
  background: linear-gradient(175deg, #ece4cc, var(--paper)); color: #24201a;
  font-family: var(--font-term); font-size: clamp(1.2rem, 1.1rem + .3vw, 1.4rem); line-height: 1.3;
  transform: rotate(-1.2deg); box-shadow: 0 22px 40px rgba(0,0,0,.5);
}
.memo p { margin: 0 0 .6em; }
.memo a { color: var(--rust-700); text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
.memo a:hover { color: var(--ink-900); background: rgba(232,193,112,.5); }
.memo__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-display); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 3px double #24201a; padding-bottom: 10px; margin-bottom: 14px !important; }
.memo__sign { margin: 14px 0 0 !important; text-align: right; color: #5b5142; }
.memo__tape { position: absolute; top: -12px; left: 50%; width: 110px; height: 26px; transform: translateX(-50%) rotate(3deg); background: rgba(225,214,178,.55); box-shadow: 0 1px 2px rgba(0,0,0,.25); }
@media (max-width: 560px) { .memo-wrap { padding-left: 0; } }
@media (max-width: 560px) { .door { grid-template-columns: 56px 1fr; } .door__lock { width: 56px; height: 56px; } .door__lock svg { width: 30px; height: 30px; } .corridor::before { left: 26px; } }

/* CTA band (subpages) */
.cta-band { background: var(--rust-500); padding-block: clamp(48px, 7vw, 80px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(52,28,39,.18) 22px 44px); }
.cta-band__inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: var(--step-3); margin: 0; text-shadow: 3px 3px 0 var(--rust-900); }
.cta-band p { margin: 6px 0 0; color: var(--paper); }

/* Press kit */
.pk { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.pk__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.pk__toc { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 2px; }
.pk__toc a { display: block; padding: 10px 14px; color: var(--steel-300); text-decoration: none; font-family: var(--font-head); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 2px 0 0 var(--ink-700); }
.pk__toc a:hover { color: var(--bone-100); box-shadow: inset 4px 0 0 var(--amber-500); }
.pk__section { padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 2px solid var(--ink-700); }
.pk__section:last-child { border-bottom: 0; }
.pk__section h2 { font-size: var(--step-3); }
.factsheet { display: grid; grid-template-columns: 1fr; margin: 0; background: var(--ink-800); box-shadow: inset 0 0 0 2px var(--ink-700); }
.factsheet div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--ink-700); }
.factsheet div:last-child { border-bottom: 0; }
.factsheet dt { font-family: var(--font-display); font-size: .72rem; color: var(--steel-400); letter-spacing: .06em; text-transform: uppercase; padding-top: 4px; }
.factsheet dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.copy-block { position: relative; background: var(--ink-800); padding: 24px 24px 20px; box-shadow: inset 0 0 0 2px var(--ink-700); margin-bottom: 24px; }
.copy-block__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.copy-block__head h3 { font-size: 1.4rem; margin: 0; }
.copy-btn { background: var(--ink-700); color: var(--bone-100); border: 0; min-height: 40px; padding: 0 14px; font-family: var(--font-term); font-size: 1.2rem; letter-spacing: .06em; }
.copy-btn:hover { background: var(--amber-500); color: var(--ink-900); }
.copy-btn.is-done { background: #3f7a3a; }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pk-shot { background: var(--ink-800); box-shadow: inset 0 0 0 2px var(--ink-700); }
.pk-shot img { aspect-ratio: 16/9; width: 100%; object-fit: cover; }
.pk-shot a { display: flex; justify-content: space-between; padding: 10px 12px; font-family: var(--font-term); font-size: 1.15rem; text-decoration: none; color: var(--steel-300); min-height: 44px; align-items: center; }
.pk-shot a:hover { color: var(--amber-300); }
.pk-logos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.pk-logo { background: #c9cbc6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect width='8' height='8' fill='%23b4b7b1'/%3E%3Crect x='8' y='8' width='8' height='8' fill='%23b4b7b1'/%3E%3C/svg%3E"); padding: 28px; display: grid; place-items: center; }
.pk-logo--dark { background: var(--ink-900); box-shadow: inset 0 0 0 2px var(--ink-700); }
.pk-logo img { image-rendering: pixelated; width: 248px; max-width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }   /* not the 16:9 crop used for screenshots */
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose p, .prose li { color: #cfd5d2; }
.prose ul li { margin-bottom: .4em; }
.prose strong { color: var(--bone-100); }
@media (max-width: 960px) { .pk { grid-template-columns: 1fr; } .pk__aside { position: static; } .pk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pk-grid { grid-template-columns: 1fr; } .pk-logos { grid-template-columns: 1fr; } .factsheet div { grid-template-columns: 1fr; gap: 2px; } }

/* Devlog corkboard */
.cork { background: #3b2a1e; background-image: radial-gradient(rgba(0,0,0,.25) 1px, transparent 1.4px), radial-gradient(rgba(255,220,170,.08) 1px, transparent 1.4px); background-size: 7px 7px, 11px 11px; padding: clamp(28px, 4vw, 56px); box-shadow: inset 0 0 0 10px #241811, inset 0 0 60px rgba(0,0,0,.6); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(24px, 3vw, 40px); }
.post-card { position: relative; background: linear-gradient(175deg, #efe6cc, var(--paper)); color: #24201a; transform: rotate(var(--r, -1deg)); box-shadow: 0 16px 30px rgba(0,0,0,.5); transition: transform .3s var(--ease-out); }
.post-card:hover, .post-card:focus-within { transform: rotate(0) translateY(-4px); }
.post-card::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, var(--alarm) 60%, #6a1612); box-shadow: 2px 3px 4px rgba(0,0,0,.5); transform: translateX(-50%); z-index: 2; }
.post-card img { aspect-ratio: 16/9; width: 100%; object-fit: cover; filter: sepia(.25) contrast(1.05); }
.post-card__body { padding: 20px 22px 24px; }
.post-card time { font-family: var(--font-term); font-size: 1.15rem; color: var(--rust-700); }
.post-card h2 { font-size: 1.65rem; margin: 6px 0 10px; color: var(--ink-900); }
.post-card h2 a { color: inherit; text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; }
.post-card p { font-size: 1rem; color: #3a342b; margin-bottom: 12px; }
.post-card .more { font-family: var(--font-term); font-size: 1.2rem; color: var(--rust-700); }
.post-card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 2px; }
.post-card__src { font-family: var(--font-display); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; background: var(--ink-800); color: var(--amber-300); padding: 3px 7px 2px; }
/* Steam news articles (HTML comes sanitized from inc/steam-news.php) */
.prose img { width: 100%; height: auto; margin: 1.4em 0; box-shadow: 0 0 0 2px var(--ink-700); }
.prose h4 { font-size: 1.15rem; margin-top: 1.3em; color: var(--amber-300); }
.prose ul li p, .prose ol li p { margin: 0; }
.prose--steam > h2:first-child, .prose--steam > h3:first-child { margin-top: 0; }
.prose hr { border: 0; border-top: 2px dashed var(--steel-600); margin: 2em 0; }
.prose a { word-break: break-word; }
.article__source { margin-top: 28px; font-family: var(--font-term); font-size: 1.25rem; color: var(--steel-400); }

/* Article */
.article { padding-bottom: var(--section-y); }
.article__meta { font-family: var(--font-term); font-size: 1.25rem; color: var(--steel-400); display: flex; gap: 16px; flex-wrap: wrap; }
.article__hero { margin: 0 0 clamp(32px, 5vw, 56px); }
.article__hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; box-shadow: 0 0 0 2px var(--ink-700); }
.article .prose { margin-inline: auto; font-size: 1.15rem; }
.article .prose > p:first-of-type { font-size: var(--step-1); color: var(--bone-100); }
.share { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 2px solid var(--ink-700); }
.share span { font-family: var(--font-term); font-size: 1.25rem; color: var(--steel-400); margin-right: 6px; }
.article-cta { margin-top: 48px; padding: clamp(24px, 4vw, 40px); background: var(--ink-800); box-shadow: inset 4px 0 0 var(--amber-500); }
.article-cta h2 { margin-top: 0; font-size: var(--step-2); }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; position: relative; overflow: hidden; }
.nf .nf__code { margin: 0; font-family: var(--font-display); font-size: clamp(5rem, 22vw, 14rem); line-height: 1; color: var(--rust-500); text-shadow: 8px 8px 0 var(--rust-900); }
.nf h1 { font-size: var(--step-4); }
.nf p { color: var(--steel-300); max-width: 46ch; margin-inline: auto; }
.nf .btn-row { justify-content: center; }
.nf__light { position: absolute; top: -20%; left: 50%; width: 700px; height: 140%; transform-origin: top center; background: linear-gradient(to bottom, rgba(232,193,112,.22), transparent 80%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); animation: sweep 7s ease-in-out infinite alternate; pointer-events: none; z-index: -1; }
@keyframes sweep { from { transform: translateX(-50%) rotate(-28deg); } to { transform: translateX(-50%) rotate(28deg); } }

/* ==========================================================================
   Motion helpers
   ========================================================================== */
.glitch { position: relative; }
.glitch.is-glitching { animation: glitch .45s steps(2) 1; }
@keyframes glitch {
  0% { text-shadow: 3px 0 var(--alarm), -3px 0 #2fb5c4; transform: translateX(2px); }
  25% { text-shadow: -4px 0 var(--alarm), 4px 0 #2fb5c4; clip-path: inset(10% 0 40% 0); transform: translateX(-3px); }
  50% { text-shadow: 2px 0 var(--alarm), -2px 0 #2fb5c4; clip-path: inset(50% 0 5% 0); }
  75% { text-shadow: -1px 0 var(--alarm), 1px 0 #2fb5c4; clip-path: none; transform: none; }
  100% { text-shadow: none; }
}

/* Reveal: hidden only when JS motion is active */
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero__media img { animation: none; }
  .noise::after { display: none; }
  .js-motion [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .hero__beam, .hero__media, .bars, .lightbox, .intro { display: none !important; }
  body { background: #fff; color: #000; }
}
