/* voidstartactics.com
 * Night at the Astral Academy: the key art's indigo and uniform gold, the game's
 * own Crimson Pro, one parchment spread for the deck. Art first, like the game's
 * title screen; gameplay loops before claims.
 */

@font-face { font-family: "Crimson Pro"; src: url("/media/fonts/crimson-pro-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("/media/fonts/crimson-pro-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("/media/fonts/crimson-pro-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Colour */
  --night-0: oklch(14.5% 0.045 282);
  --night-1: oklch(18.5% 0.055 284);
  --night-2: oklch(23% 0.065 286);
  --night-3: oklch(30% 0.075 288);
  --ink: oklch(94% 0.012 290);
  --ink-dim: oklch(81% 0.03 290);
  --gold: oklch(83% 0.11 85);
  --gold-deep: oklch(66% 0.12 72);
  --gold-line: oklch(72% 0.09 80 / 0.7);
  --gold-faint: oklch(72% 0.09 80 / 0.26);
  --void: oklch(67% 0.2 303);
  --void-glow: oklch(62% 0.22 303 / 0.4);
  --parchment: oklch(92% 0.03 85);
  --parchment-deep: oklch(85% 0.045 80);
  --parchment-ink: oklch(27% 0.035 55);
  --parchment-ink-dim: oklch(40% 0.04 60);
  --shade: oklch(10% 0.04 282 / 0.72);
  --focus: oklch(88% 0.14 92);

  /* Type */
  --font-body: "Crimson Pro", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text-sm: 1.05rem;
  --text-body: clamp(1.15rem, 0.35vw + 1.05rem, 1.32rem);
  --text-lede: clamp(1.35rem, 0.9vw + 1.05rem, 1.8rem);
  --text-label: 0.92rem;
  --text-display-s: clamp(1.9rem, 2.2vw + 1.1rem, 3.1rem);
  --text-display: clamp(2.35rem, 3.6vw + 1.2rem, 4.6rem);

  /* Space (4 pt) */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --gutter: clamp(1rem, 4vw, 4rem);
  --measure: 34rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  --radius: 3px;
}

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

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: var(--gold); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--gold-deep); color: var(--night-0); }

.skip {
  position: absolute; left: var(--space-sm); top: var(--space-sm); z-index: 50;
  padding: var(--space-2xs) var(--space-sm); background: var(--gold); color: var(--night-0);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.display {
  font-size: var(--text-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.012em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
.display--s { font-size: var(--text-display-s); line-height: 1.08; }

/* The Academy frame: a gold hairline, a faint second line, gems on two corners. */
.frame {
  position: relative;
  border: 1px solid var(--gold-line);
  outline: 1px solid var(--gold-faint);
  outline-offset: 5px;
  background: var(--night-2);
  box-shadow: 0 1.5rem 3rem -1rem oklch(5% 0.04 282 / 0.7);
}
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 2;
}
.frame::before { top: -11px; left: -11px; }
.frame::after { bottom: -11px; right: -11px; }
.frame > video, .frame > img { width: 100%; }

/* Calls to action. "Coming soon" is a badge, not a fake button. */
.cta {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  min-height: 3rem; padding: 0 var(--space-md);
  font-size: var(--text-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--night-0); background: var(--gold);
  border: 1px solid var(--gold); border-radius: var(--radius);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
a.cta:hover { background: var(--ink); border-color: var(--ink); color: var(--night-0); }
a.cta:active { transform: translateY(1px); }
.cta--soon { color: var(--gold); background: transparent; border-color: var(--gold-line); }
.cta--soon::before { content: "✦"; font-size: 0.8em; }

/* --- masthead ------------------------------------------------------------- */

.masthead {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: var(--space-sm) var(--gutter) 0;
  display: flex; align-items: flex-start; gap: var(--space-md);
}
.bar {
  position: relative;
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  padding: var(--space-2xs) var(--space-sm);
  background: oklch(14% 0.05 284 / 0.86);
  border: 1px solid var(--gold-line);
  outline: 1px solid var(--gold-faint); outline-offset: 4px;
  backdrop-filter: blur(6px);
}
.bar__home img { width: clamp(6.5rem, 12vw, 9rem); }
.bar__menu {
  min-height: 2.75rem; padding: 0 var(--space-sm);
  background: none; border: 1px solid var(--gold-line); border-radius: var(--radius);
  font-size: var(--text-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  cursor: pointer;
}
.bar__menu:hover { color: var(--ink); border-color: var(--ink); }
.bar__links {
  position: absolute; top: calc(100% + 10px); right: 0; left: 0;
  display: none; flex-direction: column;
  background: var(--night-1); border: 1px solid var(--gold-line);
}
.bar__links.is-open { display: flex; }
.bar__links a {
  display: block; padding: var(--space-xs) var(--space-md);
  font-size: var(--text-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.bar__links a:hover { color: var(--gold); }
.pennant { display: none; }

@media (min-width: 52rem) {
  .bar { padding: var(--space-2xs) var(--space-md); }
  .bar__menu { display: none; }
  .bar__links { position: static; display: flex; flex-direction: row; align-items: center; background: none; border: 0; }
  .bar__links li { display: flex; align-items: center; }
  .bar__links li + li::before { content: "✦"; color: var(--gold-deep); font-size: 0.7rem; }
  .bar__links a { padding: var(--space-xs) clamp(0.6rem, 1.4vw, 1.4rem); }

  /* The banner that hangs from the top right, like a house flag. */
  .pennant {
    display: block; flex: 0 0 auto;
    margin-top: calc(var(--space-sm) * -1);
    filter: drop-shadow(0 0.75rem 1rem oklch(5% 0.04 282 / 0.6));
  }
  .pennant .cta {
    flex-direction: column; justify-content: flex-start; gap: var(--space-3xs);
    width: 8.5rem; min-height: 0;
    padding: var(--space-lg) var(--space-xs) var(--space-xl);
    border: 0; border-radius: 0;
    background: linear-gradient(var(--night-3), var(--night-1));
    color: var(--gold);
    white-space: normal; text-align: center; line-height: 1.25;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 1.4rem), 0 100%);
    box-shadow: inset 0 0 0 1px var(--gold-line);
  }
  .pennant .cta::before { font-size: 1.4rem; color: var(--gold); margin-bottom: var(--space-2xs); }
  .pennant a.cta { background: var(--gold); color: var(--night-0); }
}

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

.hero {
  position: relative;
  height: min(100svh, 150vw);
  min-height: 34rem;
  overflow: clip;
  background: var(--night-0);
}
.hero__art img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 56% 30%;
  transform: translate3d(0, var(--drift, 0px), 0) scale(1.04);
  will-change: transform;
}
.hero__art {
  position: absolute; inset: 0;
  /* A 32 px copy of the art, blurred, while the real one loads. */
  background: var(--hero-tiny) 56% 30% / cover no-repeat;
}
.hero__sky {
  position: absolute; inset: 0 0 35% 0;
  width: 100%; height: 65%;
  pointer-events: none;
  mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(black 55%, transparent);
  mask-image: linear-gradient(black 55%, transparent);
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(transparent, oklch(14.5% 0.045 282 / 0.85) 62%, var(--night-0));
  pointer-events: none;
}
.hero__title {
  position: absolute; inset: auto 0 clamp(1.5rem, 5vh, 3.5rem) 0; z-index: 2;
  display: grid; justify-items: center; gap: var(--space-xs);
  padding-inline: var(--gutter);
  opacity: var(--lift, 1);
}
.hero__title h1 img {
  width: clamp(17rem, 46vw, 40rem);
  filter: drop-shadow(0 0.5rem 1.5rem oklch(5% 0.04 282 / 0.9));
}
.ribbon {
  position: relative;
  padding: var(--space-3xs) var(--space-lg);
  font-size: clamp(0.78rem, 0.5vw + 0.7rem, 1.15rem); font-weight: 700;
  letter-spacing: clamp(0.14em, 0.6vw, 0.26em); text-transform: uppercase; white-space: nowrap;
  color: var(--night-0);
  background: linear-gradient(90deg, transparent, var(--gold) 14%, var(--gold) 86%, transparent);
}
.ribbon span { color: var(--night-3); }

@media (min-aspect-ratio: 4/5) {
  .hero { height: min(100svh, 72vw); }
}
@media (max-aspect-ratio: 4/5) {
  .hero__art { background-image: var(--hero-tiny-tall); background-position: 50% 30%; }
  .hero__art img { object-position: 50% 30%; }
}
/* On the wide art the cast stands centre right; the title takes the lake and the Academy on the left. */
@media (min-aspect-ratio: 5/4) and (min-width: 48rem) {
  .hero__title { justify-items: start; right: auto; bottom: clamp(2rem, 9vh, 6rem); }
  .hero__title h1 img { width: clamp(18rem, 33vw, 34rem); }
  .ribbon { margin-left: clamp(1rem, 3vw, 3rem); }
  .hero::before {
    content: "";
    position: absolute; inset: 0 auto 0 0; width: 55%; z-index: 1;
    background: radial-gradient(80% 60% at 20% 78%, oklch(10% 0.04 282 / 0.6), transparent 70%);
    pointer-events: none;
  }
}

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

main > section { padding: var(--space-3xl) var(--gutter); }

.intro {
  display: grid; gap: var(--space-xl);
  padding-top: var(--space-2xl);
}
.intro__copy { max-width: 46rem; }
.lede { margin-top: var(--space-md); font-size: var(--text-lede); font-style: italic; color: var(--ink-dim); max-width: var(--measure); }
.trailer { max-width: 72rem; width: 100%; justify-self: center; aspect-ratio: 16 / 9; }
.trailer__video { width: 100%; height: 100%; object-fit: cover; background: var(--night-0); }
.trailer__play {
  position: absolute; inset: 0; z-index: 1;
  display: grid; place-content: center; justify-items: center; gap: var(--space-sm);
  border: 0; cursor: pointer;
  background: radial-gradient(closest-side, oklch(10% 0.04 282 / 0.15), oklch(10% 0.04 282 / 0.55));
  font-size: var(--text-label); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  transition: background-color var(--dur) var(--ease-out);
}
.trailer__icon {
  width: clamp(4rem, 9vw, 6.5rem); aspect-ratio: 1;
  border: 1px solid var(--gold); outline: 1px solid var(--gold-faint); outline-offset: 6px;
  transform: rotate(45deg);
  display: grid; place-items: center;
  background: oklch(14% 0.05 284 / 0.7);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.trailer__icon::after {
  content: "";
  width: 0; height: 0;
  border-style: solid; border-width: 0.75rem 0 0.75rem 1.25rem;
  border-color: transparent transparent transparent var(--gold);
  transform: rotate(-45deg) translateX(0.15rem);
}
.trailer__play:hover .trailer__icon { background: var(--night-3); transform: rotate(45deg) scale(1.06); }
.trailer.is-playing .trailer__play { display: none; }
.intro__foot { display: grid; gap: var(--space-md); justify-items: start; max-width: 72rem; width: 100%; justify-self: center; }
.pitch { font-size: var(--text-lede); max-width: 40rem; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.platforms__list { font-size: var(--text-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.platforms__list span { color: var(--gold-deep); padding-inline: 0.35em; }

@media (min-width: 60rem) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .intro__foot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; }
  .platforms { justify-content: flex-end; justify-self: end; }
}

/* --- the hand ------------------------------------------------------------- */

.hand {
  position: relative;
  display: grid; gap: var(--space-xl);
  background:
    radial-gradient(60% 50% at 70% 55%, var(--void-glow), transparent 70%),
    var(--night-1);
  border-block: 1px solid var(--gold-faint);
}
.hand__copy { max-width: var(--measure); }
.hand__copy p { margin-top: var(--space-md); color: var(--ink-dim); }
.hand__table { position: relative; display: grid; gap: var(--space-lg); }
.hand__stage { position: relative; }
/* The picked card stands large beside its battle, so its words read. */
.play { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-items: center; }
.play[hidden] { display: none; }
.play__card {
  width: min(70%, 17rem); justify-self: center;
  filter: drop-shadow(0 0 1.4rem var(--void-glow)) drop-shadow(0 0.8rem 1rem oklch(5% 0.04 282 / 0.7));
  animation: deal var(--dur-slow) var(--ease-out);
}
.play__video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border: 1px solid var(--gold-line); outline: 1px solid var(--gold-faint); outline-offset: 5px;
  background: var(--night-0);
}
@keyframes deal { from { opacity: 0; transform: translateY(1.5rem) rotate(-3deg); } to { opacity: 1; transform: none; } }

.hand__fan { display: flex; justify-content: center; padding-top: var(--space-xs); }
.hand__fan li {
  --spread: calc(var(--i) - 2);
  flex: 0 1 auto;
  margin-inline: -0.6rem;
  transform: rotate(calc(var(--spread) * 5deg)) translateY(calc(var(--spread) * var(--spread) * 0.3rem));
  transform-origin: 50% 120%;
}
.hand__card {
  display: block; padding: 0; border: 0; background: none; cursor: pointer;
  width: clamp(3.9rem, 15vw, 6.5rem);
  transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
  filter: drop-shadow(0 0.5rem 0.6rem oklch(5% 0.04 282 / 0.7)) brightness(0.72) saturate(0.8);
}
.hand__card img { width: 100%; }
.hand__card[aria-pressed="true"] {
  transform: translateY(-0.9rem);
  filter: drop-shadow(0 0 0.9rem var(--void-glow)) drop-shadow(0 0.6rem 0.8rem oklch(5% 0.04 282 / 0.7)) brightness(1);
  position: relative; z-index: 3;
}
.hand__card:active { transform: translateY(-0.6rem); }
@media (hover: hover) and (pointer: fine) {
  .hand__card:not([aria-pressed="true"]):hover { transform: translateY(-0.6rem); filter: drop-shadow(0 0.6rem 0.8rem oklch(5% 0.04 282 / 0.7)) brightness(1); }
}

@media (min-width: 40rem) {
  .play { grid-template-columns: minmax(0, 0.4275fr) minmax(0, 1fr); }
  .play__card { width: 100%; }
}
@media (min-width: 60rem) {
  .hand { grid-template-columns: minmax(0, 1fr); padding-block: var(--space-4xl) var(--space-3xl); }
  .hand__copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--space-2xl); max-width: none; align-items: end; }
  .hand__copy p { margin-top: 0; max-width: var(--measure); }
  .play { gap: var(--space-xl); }
  .hand__card { width: clamp(5.5rem, 7vw, 7.5rem); }
}

/* --- features ------------------------------------------------------------- */

.feature { display: grid; gap: var(--space-xl); align-items: center; }
.feature__copy { max-width: var(--measure); }
.feature__copy p { margin-top: var(--space-md); color: var(--ink-dim); }
.feature__copy p + p { margin-top: var(--space-sm); }
.feature__media video { aspect-ratio: 16 / 9; object-fit: cover; }
.points { margin-top: var(--space-md); display: grid; gap: var(--space-sm); }
.points li { padding-left: var(--space-md); position: relative; color: var(--ink-dim); }
.points li::before { content: "✦"; position: absolute; left: 0; top: 0.1em; font-size: 0.75em; color: var(--gold); }
.points b { color: var(--ink); }
.feature__media--pair { position: relative; display: grid; gap: var(--space-lg); }

@media (min-width: 60rem) {
  .feature { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-2xl); }
  .feature--story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
  .feature__media--pair { padding-bottom: var(--space-3xl); }
  .feature__media--pair .frame--inset { position: absolute; width: 42%; right: -1rem; bottom: 0; }
  .feature__media--pair .frame:first-child { width: 88%; }
}

/* --- the cadets ----------------------------------------------------------- */

.roster {
  display: grid; gap: var(--space-xl);
  background:
    radial-gradient(50% 60% at 18% 40%, oklch(30% 0.09 290 / 0.55), transparent 70%),
    var(--night-0);
}
.roster__head { max-width: 44rem; }
.roster__head p { margin-top: var(--space-md); color: var(--ink-dim); max-width: var(--measure); }
.roster__body { display: grid; gap: var(--space-lg); }
.roster__picks {
  display: flex; gap: var(--space-2xs);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--space-2xs) var(--space-3xs) var(--space-sm);
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.roster__pick {
  scroll-snap-align: start;
  display: grid; justify-items: center; gap: var(--space-3xs);
  padding: var(--space-3xs) var(--space-3xs) var(--space-2xs);
  min-width: 5.25rem;
  background: none; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; color: var(--ink-dim);
  font-size: var(--text-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.roster__pick img {
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--night-3); border: 1px solid var(--gold-faint);
  filter: saturate(0.6);
  transition: filter var(--dur-fast) var(--ease-out);
}
.roster__pick[aria-pressed="true"] { color: var(--gold); border-color: var(--gold-line); background: var(--night-2); }
.roster__pick[aria-pressed="true"] img { filter: none; border-color: var(--gold); }
.roster__pick:hover { color: var(--ink); }
.roster__pick:hover img { filter: none; }
.roster__stage { position: relative; }
.cadet { display: grid; gap: var(--space-md); align-items: end; }
.cadet[hidden] { display: none; }
.cadet__art {
  width: min(100%, 30rem); justify-self: center;
  -webkit-mask-image: linear-gradient(black 72%, transparent);
  mask-image: linear-gradient(black 72%, transparent);
  animation: rise var(--dur-slow) var(--ease-out);
}
.cadet__text { animation: fade var(--dur-slow) var(--ease-out); }
.cadet__name { font-size: var(--text-display-s); line-height: 1.05; }
.cadet__epithet { font-style: italic; font-size: var(--text-lede); color: var(--gold); }
.cadet__facts { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-lg); margin-top: var(--space-md); }
.cadet__facts div { display: grid; }
.cadet__facts dt { font-size: var(--text-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-dim); }
.cadet__facts dd { margin: 0; }
.cadet__bio { margin-top: var(--space-md); max-width: var(--measure); color: var(--ink-dim); }

@media (min-width: 60rem) {
  .roster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); align-items: start; }
  .roster__head { position: sticky; top: var(--space-xl); }
  .roster__picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; max-width: 34rem; }
  .roster__pick { min-width: 0; }
  .cadet { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--space-xl); align-items: center; }
  .cadet__art { width: 100%; }
}

@keyframes rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --- the deck: a parchment spread ----------------------------------------- */

.deck {
  position: relative;
  color: var(--parchment-ink);
  background:
    radial-gradient(circle at 1px 1px, oklch(70% 0.05 75 / 0.35) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(120% 80% at 50% 0%, var(--parchment), var(--parchment-deep));
  border-block: 6px double var(--gold-deep);
  padding-inline: 0 !important;
}
.deck__head, .upgrade { padding-inline: var(--gutter); }
.deck__head { max-width: 52rem; }
.deck__head p { margin-top: var(--space-md); color: var(--parchment-ink-dim); max-width: var(--measure); }
.wall {
  margin-block: var(--space-xl);
  display: grid; gap: var(--space-xs);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.wall__row { overflow: hidden; }
.wall__track {
  display: flex; gap: var(--space-xs); width: max-content;
  animation: drift calc(70s + var(--row) * 9s) linear infinite;
}
.wall__row:nth-child(even) .wall__track { animation-direction: reverse; }
.wall__track img {
  width: clamp(5.5rem, 9vw, 8.75rem);
  filter: drop-shadow(0 0.35rem 0.4rem oklch(30% 0.05 60 / 0.35));
}
@keyframes drift { to { transform: translateX(-50%); } }

.upgrade { display: grid; gap: var(--space-xl); align-items: center; padding-top: var(--space-lg); }
.upgrade__copy p { margin-top: var(--space-sm); color: var(--parchment-ink-dim); max-width: 28rem; }
.inks { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
.ink { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: var(--space-md); align-items: center; }
@media (min-width: 40rem) {
  .inks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
  .ink { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); align-items: start; align-content: start; }
}
.ink__flip {
  position: relative; display: block; width: 100%; aspect-ratio: 600 / 789;
  padding: 0; border: 0; background: none; cursor: pointer;
  perspective: 1200px;
}
.ink__face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  transition: transform var(--dur-slow) var(--ease-in-out);
  filter: drop-shadow(0 0.6rem 0.7rem oklch(30% 0.05 60 / 0.4));
}
.ink__face img { width: 100%; }
.ink__face--inked { transform: rotateY(180deg); }
.ink__flip[aria-pressed="true"] .ink__face--plain { transform: rotateY(-180deg); }
.ink__flip[aria-pressed="true"] .ink__face--inked { transform: rotateY(0deg); }
.ink__label { font-size: var(--text-sm); color: var(--parchment-ink-dim); line-height: 1.4; opacity: 0.45; transition: opacity var(--dur) var(--ease-out); }
.ink__label b { display: block; color: var(--parchment-ink); font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase; }
.ink:has([aria-pressed="true"]) .ink__label { opacity: 1; }
.deck :focus-visible { outline-color: var(--gold-deep); }

@media (min-width: 60rem) {
  .upgrade { grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); }
  .inks { gap: var(--space-xl); max-width: 48rem; }
}

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

.modes__list { margin-top: var(--space-xl); display: grid; gap: var(--space-xl); }
.mode { display: grid; gap: var(--space-xs); align-content: start; }
.mode img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--gold-line); margin-bottom: var(--space-2xs); }
.mode h3 { font-size: var(--text-lede); line-height: 1.15; color: var(--gold); }
.mode p { color: var(--ink-dim); max-width: 30rem; }

@media (min-width: 48rem) {
  .modes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode--story { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: var(--space-xl); }
  .mode--story img { grid-row: span 3; margin: 0; }
}
@media (min-width: 72rem) {
  .modes__list { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .mode--story { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); align-items: start; }
  .mode--story img { grid-row: auto; margin-bottom: var(--space-2xs); }
  .mode:not(.mode--story) { margin-top: var(--space-3xl); }
}

/* --- screenshots ---------------------------------------------------------- */

.shots { padding-inline: 0 !important; }
.shots h2 { padding-inline: var(--gutter); }
.shots__strip {
  margin-top: var(--space-lg);
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(16rem, 30rem);
  gap: var(--space-sm);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: var(--space-2xs) var(--gutter) var(--space-md);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.shots__strip li { scroll-snap-align: start; }
.shots__link { display: block; border: 1px solid var(--gold-faint); transition: border-color var(--dur-fast) var(--ease-out); }
.shots__link:hover { border-color: var(--gold); }
.shots__link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.lightbox {
  width: min(96vw, 110rem); max-width: none; max-height: 92dvh;
  padding: 0; border: 1px solid var(--gold-line); background: var(--night-0); color: var(--ink);
}
.lightbox::backdrop { background: oklch(8% 0.03 282 / 0.9); }
.lightbox__img { width: 100%; height: auto; max-height: 92dvh; object-fit: contain; }
.lightbox__btn {
  position: absolute; display: grid; place-items: center;
  width: 3rem; height: 3rem;
  background: var(--shade); border: 1px solid var(--gold-line); border-radius: 50%;
  font-size: 1.6rem; line-height: 1; color: var(--gold); cursor: pointer;
}
.lightbox__btn:hover { color: var(--ink); border-color: var(--ink); }
.lightbox__close { top: var(--space-sm); right: var(--space-sm); }
.lightbox__prev { left: var(--space-sm); top: 50%; translate: 0 -50%; }
.lightbox__next { right: var(--space-sm); top: 50%; translate: 0 -50%; }

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

.end {
  display: grid; justify-items: center; gap: var(--space-md); text-align: center;
  padding: var(--space-3xl) var(--gutter) var(--space-xl);
  background:
    radial-gradient(70% 90% at 50% 100%, oklch(28% 0.1 300 / 0.6), transparent 70%),
    var(--night-0);
  border-top: 1px solid var(--gold-faint);
}
.end__line { font-size: var(--text-display); font-weight: 700; font-style: italic; line-height: 1.05; text-wrap: balance; }
.end__links { display: flex; gap: var(--space-lg); }
.end__links a { font-size: var(--text-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.end__small { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--ink-dim); }

/* --- press page ----------------------------------------------------------- */

.press-top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-md) var(--gutter);
  border-bottom: 1px solid var(--gold-faint);
}
.press-top img { width: clamp(7rem, 14vw, 10rem); }
.press-top a.back { font-size: var(--text-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.press { display: grid; gap: var(--space-2xl); padding: var(--space-2xl) var(--gutter) var(--space-3xl); }
.press h1 { font-size: var(--text-display); line-height: 1.02; }
.press h2 { font-size: var(--text-display-s); line-height: 1.1; margin-bottom: var(--space-md); }
.press p + p { margin-top: var(--space-sm); }
.press .prose { max-width: 42rem; color: var(--ink-dim); }
.facts { display: grid; gap: 0; border-top: 1px solid var(--gold-faint); max-width: 42rem; }
.facts div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: var(--space-md); padding: var(--space-xs) 0; border-bottom: 1px solid var(--gold-faint); }
.facts dt { font-size: var(--text-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); padding-top: 0.2em; }
.facts dd { margin: 0; }
.downloads { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.downloads a.cta { background: transparent; color: var(--gold); border-color: var(--gold-line); }
.downloads a.cta:hover { background: var(--gold); color: var(--night-0); }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: var(--space-sm); }
.press-grid img { width: 100%; border: 1px solid var(--gold-faint); }
.press-features { display: grid; gap: var(--space-2xs); color: var(--ink-dim); max-width: 42rem; padding-left: 1.2rem; }
@media (min-width: 60rem) {
  .press { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-3xl); }
  .press > .wide { grid-column: 1 / -1; }
}

/* --- 404 ------------------------------------------------------------------ */

.lost { min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: var(--space-md); text-align: center; padding: var(--gutter); }
.lost img { width: clamp(12rem, 30vw, 20rem); }

/* --- reveal and reduced motion -------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(1rem); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 150ms linear; }
  .hero__art img { transform: none; }
  .wall__track { animation: none; }
  .ink__face { transition: opacity 150ms linear; transform: none !important; }
  .ink__face--inked { opacity: 0; }
  .ink__flip[aria-pressed="true"] .ink__face--plain { opacity: 0; }
  .ink__flip[aria-pressed="true"] .ink__face--inked { opacity: 1; }
  .cadet__art, .cadet__text { animation: none; }
  .hand__card { transition: none; }
}
