/* ==========================================================================
   Overcrook — the site.

   The palette is the game's own, Dead Mall 49 (src/art/palette.ts), and it is
   used under the game's own rules. The one that matters here: red0/red1 are
   reserved for the Balance meter and nothing else, so there is NO red on this
   site. Not in a button, not in an error, not in a hover. `assets.test.ts`
   fails the build if either hex turns up in a page or in this file, and if
   any colour in :root is not an entry of the palette. Everything below is a
   var() of :root, or a color-mix() of two of them — never a new hex.

   What the site uses, and why:
     gold1   the loud thing. It is the title menu's cursor in the game, so the
             one button that matters is the colour of "this one, press it".
     rose    the alive thing. It is the second can on the sprayed wordmark,
             so headings carry a rose0 "second can" drop, one bitmap pixel.
     aqua3   links. Pool paint, and readable on the ink ground at 7:1.
     ink     everything else — the game's own outlines are ink0, never black.

   THE PIXEL FACE. "Overcrook Pixel" is the game's own 5x7 bitmap font
   (src/art/generators/font.ts) turned into a webfont by tools/site-pixels.ts.
   Its em is the 8-row cell, so it is ONLY set at multiples of 8px: at 16px a
   bitmap pixel is 2 CSS pixels, at 32px it is 4. Any other size smears.
   Body copy stays in the system's sans: a 5x7 face at reading size is a
   legibility tax on the one page — the press kit — people read top to bottom.

   THE PIXEL PICTURES. The game draws at 480x270. A frame shown big (the hero,
   the last ask, the trailer poster) is `pixelated`; the 1920x1080 screenshots
   are 4x upscales being drawn SMALLER, so smoothing is correct for those.

   Motion is decoration only, and `prefers-reduced-motion` turns all of it off
   (the block at the bottom, and site.js, which never starts the parallax).
   ========================================================================== */

:root {
  --ink0: #141119;   /* the ground */
  --ink1: #241f2c;   /* panels, alternate bands */
  --ink2: #3a3446;   /* rules, borders */
  --ink3: #5a5266;   /* borders and disabled states only — not text */
  --ink4: #877e92;   /* secondary text */
  --ink5: #c0b8c2;   /* body */
  --ink6: #f4efe6;   /* headings, the paper white */

  --conc0: #2c2b33;
  --conc1: #4a4850;
  --sky0: #1d2039;
  --sky1: #3a3a5e;
  --sky2: #6b6383;
  --iris0: #413583;
  --iris1: #7d66cf;

  --rose0: #a3465f;
  --rose1: #e0869a;  /* the accent */
  --aqua2: #357f80;
  --aqua3: #6fb2a6;  /* links */
  --rust3: #e8a556;
  --gold0: #b98a2c;
  --gold1: #f0cf68;  /* the one loud thing */

  --wrap: 1180px;
  --pad: clamp(16px, 5vw, 48px);
  --bar: 64px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --pixel: "Overcrook Pixel", var(--mono);

  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

@font-face {
  font-family: "Overcrook Pixel";
  src: url("/assets/fonts/overcrook-pixel.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Overcrook Pixel";
  src: url("/assets/fonts/overcrook-pixel-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* ---------------------------------------------------------------- base --- */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--ink0);
  color: var(--ink5);
  font-family: var(--sans);
  font-size: clamp(17px, .5vw + 15px, 19px);
  line-height: 1.6;
  overflow-x: clip;
}

img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

a { color: var(--aqua3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold1); }

:focus-visible {
  outline: 3px solid var(--gold1);
  outline-offset: 3px;
}

::selection { background: var(--rose0); color: var(--ink6); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold1); color: var(--ink0);
  padding: 10px 16px; z-index: 100;
  font-family: var(--pixel); font-weight: 700; font-size: 16px;
}
.skip:focus { left: 8px; top: 8px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* Everything set in the game's face. Sizes are multiples of 8px, always. */
.pixel, h1, h2, h3, .eyebrow, .btn, .genre, .ticker, .stats b, .verbs b,
figcaption, .footer-links, .topbar, .lightbox button, .lightbox-caption,
.factsheet dt, .fb-label, .page-nav, .code {
  font-family: var(--pixel);
  font-synthesis: none;
  -webkit-font-smoothing: none;
  letter-spacing: 0;
}

/* The game's sky dither: a checker of two adjacent steps of the SAME ramp
   (rule 4: never dither between ramps), in 4px squares — the game's 1px
   checker at the site's 4x. */
.dither {
  background-color: var(--ink0);
  background-image: repeating-conic-gradient(var(--ink1) 0 25%, transparent 0 50%);
  background-size: 8px 8px;
}

/* ------------------------------------------------------------- buttons --- */

.btn {
  --shadow: var(--ink0);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 22px;
  border: 2px solid var(--ink6);
  background: var(--ink1);
  color: var(--ink6);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease), background-color .12s, color .12s;
  cursor: pointer;
}
.btn:hover {
  color: var(--ink0);
  background: var(--ink6);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--shadow);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--shadow); }

.btn-primary {
  background: var(--gold1);
  border-color: var(--gold1);
  color: var(--ink0);
}
.btn-primary:hover { background: var(--ink6); border-color: var(--ink6); }

.btn-small { min-height: 40px; padding: 8px 14px; box-shadow: 3px 3px 0 var(--shadow); }

/* A stepped triangle, nine bitmap rows tall: the play mark, drawn the way the
   game would draw it rather than as a smooth vector. */
.btn-play::before, .play::before {
  content: "";
  flex: none;
  width: 10px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(0 0, 20% 0, 20% 11.11%, 40% 11.11%, 40% 22.22%, 60% 22.22%,
    60% 33.33%, 80% 33.33%, 80% 44.44%, 100% 44.44%, 100% 55.56%, 80% 55.56%,
    80% 66.67%, 60% 66.67%, 60% 77.78%, 40% 77.78%, 40% 88.89%, 20% 88.89%,
    20% 100%, 0 100%);
}

/*
 * The Steam button before there is a Steam page: it looks like the button it
 * stands in for, with a SOON tag on it, and it does nothing when pressed —
 * no hover lift, no pointer — because there is nowhere for it to go yet.
 * `steam-link.js` swaps it for a real <a> without the `is-soon` class.
 */
.is-soon { cursor: default; }
.btn.is-soon:hover { transform: none; box-shadow: 4px 4px 0 var(--shadow); background: var(--gold1); color: var(--ink0); }
.btn.btn-small.is-soon:hover { box-shadow: 3px 3px 0 var(--shadow); }
.btn.is-soon:not(.btn-primary):hover { background: var(--ink1); color: var(--ink6); }
.is-soon:active { transform: none; }
.is-soon i {
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  padding: 4px 6px 2px;
  background: var(--ink0);
  color: var(--rose1);
}
.btn-small.is-soon i { padding: 3px 5px 1px; }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
@media (max-width: 479px) {
  .cta { flex-direction: column; align-items: stretch; width: 100%; }
  .cta .btn { justify-content: center; }
}

/* -------------------------------------------------------------- topbar --- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: var(--pad);
  padding-top: env(safe-area-inset-top, 0);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink0) 80%, transparent), transparent);
  transition: background-color .25s, box-shadow .25s;
}
.topbar.is-solid {
  background: color-mix(in srgb, var(--ink0) 94%, transparent);
  box-shadow: 0 1px 0 var(--ink2);
}
.topbar-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink6);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
.topbar-home img { width: 32px; height: 32px; image-rendering: pixelated; }
.topbar-links {
  display: none;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
  gap: 28px;
  font-size: 16px;
  text-transform: uppercase;
}
.topbar-links a { color: var(--ink5); text-decoration: none; padding-block: 8px; }
.topbar-links a:hover { color: var(--gold1); }
.topbar .btn { margin-left: auto; }
@media (min-width: 760px) {
  .topbar-links { display: flex; }
  .topbar .btn { margin-left: 8px; }
}

/* ---------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  background: var(--sky1);
  overflow: hidden;
}

/* The frame starts a little above the hero, so the rider in it sits in the
   clear band between the wordmark and the words. */
.hero-scene {
  position: absolute;
  inset: -10% 0 0 0;
  z-index: -2;
}
.hero-frame {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 42%;
  image-rendering: pixelated;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.04);
  transform-origin: 50% 0;
}

/* Scanlines, and the dusk drawn down into the page's ground. */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero::before {
  background: repeating-linear-gradient(to bottom, transparent 0 3px,
    color-mix(in srgb, var(--ink0) 18%, transparent) 3px 4px);
}
.hero::after {
  background:
    linear-gradient(to bottom,
      color-mix(in srgb, var(--ink0) 55%, transparent) 0,
      transparent 20%,
      transparent 40%,
      color-mix(in srgb, var(--ink0) 72%, transparent) 62%,
      var(--ink0) 96%);
}

.hero-copy {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  padding: calc(var(--bar) + clamp(8px, 4vh, 40px)) var(--pad) clamp(40px, 8vh, 80px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-top { margin-bottom: auto; }
.hero-mark { margin: 0; }
.hero-mark img {
  width: 315px;
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 var(--ink0));
}
@media (min-width: 700px) { .hero-mark img { width: 630px; filter: drop-shadow(6px 6px 0 var(--ink0)); } }
@media (min-width: 1200px) and (min-height: 820px) { .hero-mark img { width: 945px; } }

.genre {
  margin: 20px 0 0;
  color: var(--gold1);
  font-size: 16px;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--ink0);
}

.shout {
  margin: 32px 0 0;
  color: var(--ink6);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: .125em .125em 0 var(--rose0);
  text-wrap: balance;
}
/* Each phrase ("Every spot", "has a line.", "Find it.") stays whole; the
   longest is 11 characters, so the narrowest phones get 3x instead of 4x. */
@media (min-width: 414px) { .shout { font-size: 32px; } }
@media (min-width: 600px) { .shout { font-size: 40px; } }
@media (min-width: 900px) { .shout { font-size: 48px; } }
.shout span, h2 span { display: inline-block; }
@media (min-width: 1280px) { .shout { font-size: 56px; } }

.hook {
  max-width: 36em;
  text-wrap: balance;
  margin: 16px auto 24px;
  color: var(--ink6);
  font-size: 1.05em;
  text-shadow: 0 1px 2px var(--ink0);
}

.release {
  margin: 16px 0 0;
  text-wrap: balance;
  font-size: .9rem;
  color: var(--ink5);
}

/* A phone is tall and narrow: the frame takes the top half, cropped to the
   gap and the rider, and the words sit on the ground below it. */
@media (max-width: 699px) {
  .hero-scene { inset: 0 0 auto 0; height: 58%; }
  .hero::after {
    background: linear-gradient(to bottom,
      color-mix(in srgb, var(--ink0) 50%, transparent) 0, transparent 18%,
      transparent 34%, color-mix(in srgb, var(--ink0) 70%, transparent) 46%, var(--ink0) 60%);
  }
  .hero-copy { padding-bottom: 104px; }
  .topbar-home span { display: none; }
}

/* ------------------------------------------------------------- ticker --- */

/*
 * The tricks, on a gold strip laid a degree off level like a curb, with the
 * player pushing along the top of it. The strip moves left; the rider stays
 * put and pushes — which reads as riding right.
 */
.ticker {
  position: relative;
  z-index: 3;
  margin: -28px -2vw 0;
  transform: rotate(-1.2deg);
  background: var(--gold1);
  color: var(--ink0);
  border-block: 4px solid var(--ink0);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker-list {
  display: flex;
  margin: 0;
  padding: 14px 0 12px;
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker-list li { padding-inline: 20px 0; }
.ticker-list li::after { content: "·"; padding-left: 20px; color: var(--rose0); }
@media (min-width: 800px) { .ticker-list { font-size: 24px; padding: 18px 0 14px; } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* The moving part is clipped; the rider standing on top of it is not. */
.ticker-clip { overflow: hidden; }

.ticker-rider {
  position: absolute;
  left: max(16px, 9vw);
  bottom: calc(100% - 6px);
  width: 72px;
  height: 84px;
  background: url("/assets/sprites/skater-push.png") 0 0 / 432px 84px no-repeat;
  image-rendering: pixelated;
  animation: push .58s steps(6) infinite;
}
@keyframes push { to { background-position: -432px 0; } }

/* ------------------------------------------------------------ sections --- */

.band {
  position: relative;
  padding-block: clamp(80px, 11vw, 150px);
}
.band-tight { padding-block: 32px clamp(80px, 10vw, 128px); }
.band-ink1 { background: var(--ink1); }
/* The edge between ink0 and ink1 is the game's dither, not a line. */
.band-ink1::before, .band-ink1::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 8px;
  background-image: repeating-conic-gradient(var(--ink1) 0 25%, var(--ink0) 0 50%);
  background-size: 8px 8px;
}
.band-ink1::before { top: -8px; }
.band-ink1::after { bottom: -8px; transform: scaleY(-1); }

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--gold1);
  font-size: 16px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--rose1);
  box-shadow: 2px 2px 0 var(--rose0);
}

h2 {
  margin: 0 0 20px;
  color: var(--ink6);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: .125em .125em 0 var(--rose0);
  text-wrap: balance;
}
@media (min-width: 700px) { h2 { font-size: 32px; } }
@media (min-width: 1100px) { h2 { font-size: 40px; } }

h3 {
  margin: 0 0 10px;
  color: var(--ink6);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
@media (min-width: 700px) { h3 { font-size: 24px; } }

.body { margin: 0 0 1em; max-width: 58ch; }
.body:last-child { margin-bottom: 0; }
.body strong { color: var(--ink6); }
.lead { font-size: 1.12em; color: var(--ink5); }

/* ------------------------------------------------------------- trailer --- */

.trailer-card {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--ink6);
  text-decoration: none;
  border: 4px solid var(--ink0);
  box-shadow: 0 0 0 2px var(--ink2), 12px 12px 0 2px var(--rose0);
  background: var(--ink0);
}
.trailer-card img {
  width: 100%;
  image-rendering: pixelated;
  transition: transform .6s var(--ease), filter .4s;
}
.trailer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(to bottom, transparent 0 3px, color-mix(in srgb, var(--ink0) 16%, transparent) 3px 4px),
    linear-gradient(to top, color-mix(in srgb, var(--ink0) 80%, transparent), transparent 45%);
  pointer-events: none;
}
.play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  background: var(--gold1);
  color: var(--ink0);
  box-shadow: 6px 6px 0 var(--ink0);
  transition: transform .2s var(--ease), background-color .2s;
}
.play::before { width: 30px; height: 54px; margin-left: 6px; }
.trailer-label {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-family: var(--pixel);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--ink0);
}
.trailer-label small { font-size: 16px; font-weight: 400; color: var(--ink5); }
.trailer-card:hover img { transform: scale(1.03); }
.trailer-card:hover .play { transform: scale(1.08); background: var(--ink6); }
@media (max-width: 560px) {
  .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .play::before { width: 20px; height: 36px; margin-left: 4px; }
  .trailer-label { left: 14px; bottom: 10px; }
}

/* ------------------------------------------------------- how it skates --- */

.split {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 960px) { .split { grid-template-columns: 5fr 6fr; } }

.verbs {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.verbs li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 2px dashed var(--ink2);
}
.verbs li:last-child { border-bottom: none; }
.verbs b {
  flex: none;
  width: 6.5em;
  color: var(--gold1);
  font-size: 16px;
  text-transform: uppercase;
}
.flick {
  font-family: var(--pixel);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink6);
  background: var(--ink0);
  padding: 2px 6px 0;
}

.shot {
  border: 4px solid var(--ink0);
  box-shadow: 0 0 0 2px var(--ink2), 12px 12px 0 2px var(--aqua2);
  background: var(--ink0);
}
.shot a { display: block; overflow: hidden; }
.shot img { width: 100%; transition: transform .6s var(--ease); }
.shot a:hover img { transform: scale(1.04); }
.tilt { transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.tilt:hover { transform: rotate(0); }

.pull {
  margin: clamp(72px, 10vw, 120px) auto 0;
  text-align: center;
}
.pull p {
  margin: 0;
  font-family: var(--pixel);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink6);
  text-shadow: .125em .125em 0 var(--ink0);
}
.pull em { font-style: normal; color: var(--gold1); text-shadow: .125em .125em 0 var(--rose0); }
@media (min-width: 700px) { .pull p { font-size: 40px; } }
@media (min-width: 1100px) { .pull p { font-size: 48px; } }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: .9rem;
  color: var(--ink5);
}
.stats b {
  display: block;
  margin-bottom: 8px;
  color: var(--gold1);
  font-size: 48px;
  line-height: 1;
  text-shadow: .125em .125em 0 var(--ink0);
}
@media (min-width: 700px) { .stats b { font-size: 64px; } }

/* ------------------------------------------------------------- weather --- */

.weather {
  display: grid;
  gap: 20px;
}
@media (min-width: 760px) { .weather { grid-template-columns: repeat(3, 1fr); } }
.weather figure {
  position: relative;
  border: 4px solid var(--ink0);
  box-shadow: 0 0 0 2px var(--ink2);
  overflow: hidden;
}
.weather a { display: block; }
.weather img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
@media (min-width: 760px) { .weather img { aspect-ratio: 4 / 5; } }
.weather figure:hover img { transform: scale(1.06); }
.weather figcaption {
  position: absolute;
  left: 0;
  bottom: 16px;
  padding: 8px 14px 6px;
  background: var(--ink0);
  color: var(--ink6);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  pointer-events: none;
}
.weather figure:nth-child(1) figcaption { box-shadow: 4px 0 0 var(--rust3); }
.weather figure:nth-child(2) figcaption { box-shadow: 4px 0 0 var(--aqua3); }
.weather figure:nth-child(3) figcaption { box-shadow: 4px 0 0 var(--ink6); }

/* ------------------------------------------------------------- gallery --- */

.gallery {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 680px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery .wide { grid-column: span 2; } }
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery .wide { grid-column: span 2; grid-row: span 2; }
}
.gallery figure { height: 100%; display: flex; flex-direction: column; }
.gallery a {
  display: block;
  flex: 1;
  overflow: hidden;
  border: 4px solid var(--ink0);
  box-shadow: 0 0 0 2px var(--ink2);
  background: var(--ink0);
  transition: box-shadow .2s;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform .6s var(--ease);
}
.gallery a:hover, .gallery a:focus-visible { box-shadow: 0 0 0 2px var(--gold1); }
.gallery a:hover img { transform: scale(1.04); }
figcaption {
  margin-top: 12px;
  color: var(--ink5);
  font-size: 16px;
  line-height: 1.25;
}
.gallery figure:hover figcaption { color: var(--gold1); }

/* --------------------------------------------------------------- modes --- */

.modes {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mode;
}
@media (min-width: 820px) { .modes { grid-template-columns: repeat(3, 1fr); } }
.modes li {
  counter-increment: mode;
  position: relative;
  padding: 28px 24px 26px;
  background: var(--ink1);
  border: 2px solid var(--ink2);
  border-top: 8px solid var(--rose1);
  box-shadow: 6px 6px 0 var(--ink0);
}
.modes li:nth-child(2) { border-top-color: var(--gold1); }
.modes li:nth-child(3) { border-top-color: var(--aqua3); }
.modes li::before {
  content: "0" counter(mode);
  display: block;
  margin-bottom: 16px;
  font-family: var(--pixel);
  font-size: 16px;
  color: var(--ink5);
}
.modes p { margin: 0; }

.platforms {
  margin: 40px 0 0;
  text-align: center;
  font-family: var(--pixel);
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink4);
}

/* ----------------------------------------------------------------- ask --- */

.ask {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(110px, 16vw, 200px);
  text-align: center;
}
.ask-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, var(--ink0), color-mix(in srgb, var(--ink0) 55%, transparent) 30%,
      color-mix(in srgb, var(--ink0) 55%, transparent) 70%, var(--ink0)),
    url("/assets/frames/downtown-dusk.png") center 60% / cover no-repeat;
  image-rendering: pixelated;
}
.ask .body { margin: 0 auto 32px; color: var(--ink6); text-shadow: 0 1px 2px var(--ink0); }
.ask h2 { font-size: 32px; }
@media (min-width: 700px) { .ask h2 { font-size: 40px; } }
@media (min-width: 1100px) { .ask h2 { font-size: 56px; } }

/* -------------------------------------------------------------- footer --- */

.site-footer {
  position: relative;
  padding: 56px 0 32px;
  background: var(--ink1);
  font-size: .95rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -8px;
  height: 8px;
  background-image: repeating-conic-gradient(var(--ink1) 0 25%, var(--ink0) 0 50%);
  background-size: 8px 8px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-mark { width: 48px; height: 48px; flex: none; image-rendering: pixelated; }
.footer-title { margin: 0 0 6px; color: var(--ink6); font-weight: 600; }
.footer-sub { margin: 0; color: var(--ink5); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  text-transform: uppercase;
}
.footer-links a { color: var(--ink5); text-decoration: none; }
.footer-links a:hover { color: var(--gold1); }
.link-soon { color: var(--ink5); }
.link-soon i { font-size: 16px; padding: 2px 4px 0; margin-left: 4px; }
a.link-soon { color: var(--ink5); }
.legal {
  max-width: var(--wrap);
  margin: 40px auto 0;
  padding: 24px var(--pad) 0;
  border-top: 1px solid var(--ink2);
  color: var(--ink5);
  font-size: .85rem;
}

/* ------------------------------------------------------------ lightbox --- */

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(56px, 8vh, 80px) clamp(8px, 4vw, 80px) clamp(64px, 10vh, 96px);
  border: 0;
  background: transparent;
  color: var(--ink6);
  overflow: hidden;
}
.lightbox::backdrop { background: color-mix(in srgb, var(--ink0) 96%, transparent); }
.lightbox[open] { display: grid; place-items: center; animation: fade-in .2s var(--ease); }
.lightbox-stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.lightbox-stage img, .lightbox-stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border: 4px solid var(--ink0);
  box-shadow: 0 0 0 2px var(--ink2);
  background: var(--ink0);
  animation: pop-in .28s var(--ease);
}
.lightbox-stage video { width: min(100%, calc((100dvh - 180px) * 16 / 9)); }
.lightbox-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(16px, 4vh, 36px);
  margin: 0;
  padding-inline: 72px;
  text-align: center;
  font-size: 16px;
  color: var(--ink5);
}
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink3);
  background: var(--ink1);
  color: var(--ink6);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.lightbox button:hover { background: var(--gold1); border-color: var(--gold1); color: var(--ink0); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-prev { left: 12px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 12px; top: 50%; margin-top: -24px; }
.lightbox.is-video .lightbox-prev, .lightbox.is-video .lightbox-next { display: none; }
@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; margin-top: 0; }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.97); } }

/* -------------------------------------------------------------- reveal --- */

/* Only once site.js has said it is running, so a page without it is whole. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.js .reveal.tilt { transform: translateY(28px) rotate(1.2deg); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.tilt.is-in { transform: rotate(1.2deg); }
.js .reveal.tilt.is-in:hover { transform: rotate(0); }

/* The wordmark, sprayed on left to right in the can's own steps. Pure CSS,
   so it needs no script and starts with the first paint. */
.spray { animation: spray .9s steps(12) .15s both; }
@keyframes spray {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* ========================================================== other pages === */

.page-nav {
  position: relative;
  z-index: 2;
  border-bottom: 2px solid var(--ink2);
  background: var(--ink0);
}
.page-nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--bar);
}
.page-nav .topbar-home { margin-right: auto; }
.page-nav .here { color: var(--ink4); font-size: 16px; text-transform: uppercase; }

.page-head {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(40px, 5vw, 64px);
  background:
    linear-gradient(to bottom, transparent, var(--ink0)),
    repeating-conic-gradient(var(--ink1) 0 25%, transparent 0 50%) 0 0 / 8px 8px;
}
.page-head h1 {
  margin: 0 0 20px;
  color: var(--ink6);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  text-shadow: .125em .125em 0 var(--rose0);
  text-wrap: balance;
}
@media (min-width: 800px) { .page-head h1 { font-size: 48px; } }
.page-head .lead { max-width: 52ch; margin: 0; }
.stamp { margin: 20px 0 0; font-size: .85rem; color: var(--ink4); max-width: 60ch; }

.prose > * { max-width: 64ch; }
.prose > .downloads, .prose > .trailer-card, .prose > .shot, .prose > form { max-width: none; }
.prose h2 { margin: 2.2em 0 .6em; font-size: 24px; }
@media (min-width: 700px) { .prose h2 { font-size: 32px; } }
.prose h2:first-child { margin-top: 0; }
.trailer-meta { margin-top: 16px; font-size: .9rem; color: var(--ink4); }
.prose h3 { margin: 1.6em 0 .5em; font-size: 16px; color: var(--gold1); }
ul.body { margin: 0 0 1em; padding-left: 1.2em; }
ul.body li { margin-bottom: .45em; }
ul.body li::marker { color: var(--rose1); }

/* Press kit */
.kit {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) { .kit { grid-template-columns: minmax(0, 1fr) 21rem; align-items: start; } }

.factsheet {
  padding: 8px 24px 16px;
  background: var(--ink1);
  border: 2px solid var(--ink2);
  border-top: 8px solid var(--gold1);
  box-shadow: 6px 6px 0 var(--ink0);
}
@media (min-width: 960px) { .factsheet { position: sticky; top: 24px; } }
@media (max-width: 959px) { .factsheet { order: -1; } }
.factsheet .eyebrow { margin: 16px 0 4px; }
.factsheet dl { margin: 0; }
.factsheet div { padding: 12px 0; border-bottom: 1px solid var(--ink2); }
.factsheet div:last-child { border-bottom: none; }
.factsheet dt { font-size: 16px; text-transform: uppercase; color: var(--ink5); }
.factsheet dd { margin: 4px 0 0; font-size: .95rem; color: var(--ink6); overflow-wrap: anywhere; }

.downloads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}
.downloads li {
  display: flex;
  flex-direction: column;
  background: var(--ink1);
  border: 2px solid var(--ink2);
  transition: border-color .2s, transform .2s var(--ease);
}
.downloads li:hover { border-color: var(--gold1); transform: translateY(-2px); }
.downloads .thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink0);
}
.downloads .thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 16px;
  image-rendering: pixelated;
  object-fit: contain;
}
.downloads.shots { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.downloads .thumb.photo img { width: 100%; height: 100%; padding: 0; object-fit: cover; image-rendering: auto; }
.downloads .thumb.light { background: var(--ink6); }
.downloads a.get {
  display: block;
  padding: 12px 14px 4px;
  color: var(--ink6);
  font-family: var(--pixel);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}
.downloads a.get::after { content: " ↓"; color: var(--gold1); }
.downloads a.get:hover { color: var(--gold1); }
.downloads small { display: block; padding: 0 14px 12px; color: var(--ink5); font-size: .8rem; }

/* Report form */
.fb-label {
  display: block;
  margin: 1.6em 0 .6em;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--ink6);
}
.fb-label:first-child { margin-top: 0; }
.fb-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--ink3);
  background: var(--ink1);
  color: var(--ink6);
  font: inherit;
  font-size: 1rem;
}
.fb-input:focus-visible { outline: 3px solid var(--gold1); outline-offset: 0; border-color: var(--gold1); }
.fb-input::placeholder { color: var(--ink4); }
textarea.fb-input { resize: vertical; min-height: 9em; line-height: 1.6; }
.fb-note { margin: 1.2em 0 0; font-size: .9rem; color: var(--ink4); }
.fb-actions { display: flex; align-items: center; gap: 18px; margin: 1.6em 0 0; flex-wrap: wrap; }
.fb-said { font-size: .92rem; color: var(--ink5); }
.fb-done { color: var(--aqua3); }
.fb-fallback { margin-top: 2.4em; }
.crash-note {
  max-width: 64ch;
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 2px solid var(--gold1);
  border-left-width: 8px;
  background: var(--ink1);
  color: var(--ink6);
}
.crash-note p { margin: 0; }
.crash-note b { color: var(--gold1); }

/* 404 */
.lost {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 48px var(--pad);
  text-align: center;
}
.lost .code {
  margin: 0;
  color: var(--ink6);
  font-size: 96px;
  font-weight: 400;
  line-height: 1;
  text-shadow: .125em .125em 0 var(--rose0);
}
@media (min-width: 700px) { .lost .code { font-size: 160px; } }
.lost-rider {
  width: 108px;
  height: 126px;
  margin: 24px 0 -16px;
  background: url("/assets/sprites/skater-push.png") 0 0 / 648px 126px no-repeat;
  image-rendering: pixelated;
  animation: push-big .58s steps(6) infinite;
}
@keyframes push-big { to { background-position: -648px 0; } }
.lost .body { margin: 8px auto 24px; color: var(--ink5); }
.lost .cta { margin: 0; }

/* ===================================================== reduced motion ==== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal.tilt, .tilt { transform: rotate(1.2deg); }
  .hero-frame { transform: scale(1.08); }
  .ticker-track { transform: none; }
}
