/* ==========================================================================
   CAP YARD — Design System
   --------------------------------------------------------------------------
   00  Tokens
   01  Reset & base
   02  Typography
   03  Layout primitives
   04  Reveal / motion utilities
   05  Header & navigation
   06  Buttons & links
   07  Hero
   08  About
   09  Ticker
   10  Games
   11  Developer
   12  Contact
   13  Footer
   14  Document pages (privacy / terms)
   15  404
   16  Reduced motion / print
   ========================================================================== */

/* ==========================================================================
   00  TOKENS
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #050505;
  --bg-raised:     #0F0F10;
  --bg-elevated:   #141416;

  /* Accents */
  --gold:          #D4AF37;
  --gold-bright:   #E8CB6B;
  --gold-dim:      rgba(212, 175, 55, 0.14);
  --gold-line:     rgba(212, 175, 55, 0.30);
  --emerald:       #00C97A;
  --emerald-dim:   rgba(0, 201, 122, 0.12);

  /* Type */
  --text:          #FFFFFF;
  --text-muted:    rgba(255, 255, 255, 0.60);
  --text-faint:    rgba(255, 255, 255, 0.38);

  /* Borders */
  --line:          rgba(255, 255, 255, 0.09);
  --line-strong:   rgba(255, 255, 255, 0.18);

  /* Families */
  --font-display:  "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --shell:         1240px;
  --gutter:        clamp(1.25rem, 5vw, 4rem);
  --section-y:     clamp(6rem, 14vh, 11rem);
  --radius:        2px;
  --radius-lg:     4px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:     cubic-bezier(0.4, 0, 0.2, 1);
  --dur:           0.6s;

  /* Depth — soft, never harsh */
  --shadow:        0 1px 2px rgba(0, 0, 0, 0.4), 0 24px 60px -24px rgba(0, 0, 0, 0.9);
  --shadow-gold:   0 24px 70px -30px rgba(212, 175, 55, 0.45);

  /* Chrome — tall enough to seat the two-line lockup at a legible size.
     Below ~50px the AP/ARD line collapses into a smudge. */
  --header-h:      88px;
}

/* ==========================================================================
   01  RESET & BASE
   ========================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--bg-raised); }

ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

::selection { background: var(--gold); color: #050505; }

:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

/* Skip link — first tab stop on every page */
.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 999;
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  color: #050505;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translate(-50%, -110%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Thin gold scroll-progress rail */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ==========================================================================
   02  TYPOGRAPHY
   ========================================================================== */

.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.display-xl { font-size: clamp(3.4rem, 13vw, 10rem); line-height: 0.92; }
.display-l  { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.display-m  { font-size: clamp(1.9rem, 4vw, 3rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow--gold { color: var(--gold); }

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.body-text { color: var(--text-muted); text-wrap: pretty; }
.body-text + .body-text { margin-top: 1.25rem; }

.index {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.gold { color: var(--gold); }
.emerald { color: var(--emerald); }

/* ==========================================================================
   03  LAYOUT PRIMITIVES
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}
.section--flush { border-top: 0; }
.section--raised { background: var(--bg-raised); }

/* Section header: label column + heading column */
.section-head {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.section-head__meta {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 120px;
}

@media (min-width: 860px) {
  .section-head { grid-template-columns: 220px 1fr; align-items: start; }
  .section-head__meta { padding-top: 0.75rem; }

  /* Inside a column rather than the full page width there is no room for the
     label gutter, so the label stacks above the heading instead. */
  .section-head--stacked { grid-template-columns: 1fr; gap: 1rem; }
  .section-head--stacked .section-head__meta { padding-top: 0; }
}
.section-head--stacked { margin-bottom: clamp(2rem, 4vw, 2.75rem); }

.stack-l > * + * { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.divider { height: 1px; background: var(--line); border: 0; }

/* ==========================================================================
   04  REVEAL / MOTION UTILITIES
   ========================================================================== */

/* The hidden state is scoped to `.js`, which an inline script in <head> sets
   before first paint. Without JavaScript nothing is ever revealed, so the page
   must start visible rather than start blank. */
.reveal {
  transition:
    opacity 0.9s var(--ease) var(--reveal-delay, 0ms),
    transform 0.9s var(--ease) var(--reveal-delay, 0ms);
}
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  will-change: opacity, transform;
}
.js .reveal--left  { transform: translate3d(-26px, 0, 0); }
.js .reveal--right { transform: translate3d(26px, 0, 0); }
.js .reveal--fade  { transform: none; }
.reveal.is-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Hero word-by-word rise */
.word {
  display: inline-block;
  transition:
    opacity 1.1s var(--ease) var(--reveal-delay, 0ms),
    transform 1.1s var(--ease) var(--reveal-delay, 0ms);
}
.js .word {
  opacity: 0;
  transform: translate3d(0, 0.34em, 0);
}
.is-ready .word { opacity: 1; transform: none; }

/* ==========================================================================
   05  HEADER & NAVIGATION
   ========================================================================== */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition:
    background 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft),
    transform 0.5s var(--ease);
}
.header.is-stuck {
  background: rgba(5, 5, 5, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
/* The wordmark is an <img>, so it carries its own gold through a `color`
   presentation attribute in the SVG. Height-driven sizing keeps the lockup's
   ratio intact, and the alt text is what screen readers and crawlers read. */
.brand__logo {
  width: auto;
  height: 52px;
  background: none;
  transition: opacity 0.4s var(--ease-soft), transform 0.5s var(--ease);
}
.brand:hover .brand__logo,
.footer__mark:hover .brand__logo { opacity: 0.78; transform: translateY(-2px); }

.nav { display: none; }

@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.75rem);
  }
}

.nav__link {
  position: relative;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease-soft);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link[aria-current] { color: var(--text); }
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

/* Hamburger */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: flex-end;
}
@media (min-width: 900px) { .burger { display: none; } }

.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease-soft), width 0.4s var(--ease);
}
.burger span:last-child { width: 14px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { width: 22px; transform: translateY(-3px) rotate(-45deg); }

/* Mobile overlay menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 3rem;
  background: rgba(5, 5, 5, 0.96);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.menu.is-open { opacity: 1; visibility: visible; }
@media (min-width: 900px) { .menu { display: none; } }

.menu__list > li {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1.1;
  transform: translateY(105%);
  transition: transform 0.7s var(--ease) var(--reveal-delay, 0ms);
}
.menu.is-open .menu__link { transform: none; }
.menu__link .index { font-size: 0.62rem; }

.menu__foot {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ==========================================================================
   06  BUTTONS & LINKS
   ========================================================================== */

.btn {
  --btn-fg: #050505;
  --btn-bg: var(--gold);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1rem 1.9rem;
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.5s var(--ease), transform 0.4s var(--ease), color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft);
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--gold-bright);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease);
}
.btn:hover { box-shadow: var(--shadow-gold); }
.btn:hover::before { transform: scaleY(1); }

.btn--ghost {
  --btn-fg: var(--text);
  --btn-bg: transparent;
  border-color: var(--line-strong);
}
.btn--ghost::before { background: rgba(255, 255, 255, 0.06); }
.btn--ghost:hover { border-color: var(--gold-line); box-shadow: none; }

.btn__arrow { transition: transform 0.45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Underline text link */
.link {
  position: relative;
  display: inline-block;
  color: var(--text);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.5s var(--ease), color 0.3s var(--ease-soft);
}
.link:hover, .link:focus-visible { background-size: 100% 1px; color: var(--gold); }

/* ==========================================================================
   07  HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + 4rem) 4rem;
  overflow: hidden;
}

/* Cinematic backdrop — pure CSS, zero image weight */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__bg::before {
  /* Deep gold light rising from below */
  content: "";
  position: absolute;
  inset: -20% -10% -30%;
  background:
    radial-gradient(62% 50% at 50% 100%, rgba(212, 175, 55, 0.28), transparent 64%),
    radial-gradient(40% 34% at 80% 10%, rgba(0, 201, 122, 0.08), transparent 70%),
    radial-gradient(70% 60% at 50% 46%, rgba(255, 255, 255, 0.04), transparent 70%);
  animation: drift 24s var(--ease-soft) infinite alternate;
}
.hero__bg::after {
  /* Technical grid. Masked so the lines dissolve rather than hit the edges —
     the vignette is a separate, unmasked layer, otherwise the mask boundary
     shows up as a visible ring across the backdrop. */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--line) 1px, transparent 1px) 50% 0 / clamp(80px, 12vw, 160px) 100%;
  -webkit-mask-image: radial-gradient(80% 66% at 50% 45%, #000 10%, transparent 80%);
  mask-image: radial-gradient(80% 66% at 50% 45%, #000 10%, transparent 80%);
}

/* Vignette — full bleed, never masked */
.hero::after,
.error::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(125% 105% at 50% 45%, transparent 42%, rgba(5, 5, 5, 0.72) 100%);
}

/* Fine film grain, inlined so it costs one paint and no request */
.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: screen;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from { transform: translate3d(-1.5%, 1%, 0) scale(1.02); }
  to   { transform: translate3d(1.5%, -1.5%, 0) scale(1.08); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* The hero name is the lockup itself rather than set type, so the wordmark on
   the page and the wordmark on the merch are the same drawing. */
.hero__title { line-height: 0; }
.hero__logo {
  width: auto;
  height: clamp(84px, 17vw, 200px);
  max-width: 100%;
  background: none;
  filter: drop-shadow(0 22px 54px rgba(212, 175, 55, 0.30));
  animation: markFloat 6s var(--ease-soft) infinite alternate;
}

@keyframes markFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-5px); }
}

.hero__slogan {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5.5vw, 3.6rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text-muted);
  max-width: 20ch;
}

.hero__meta {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.hero__foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: clamp(3rem, 8vw, 5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.3s var(--ease-soft);
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue__line {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--gold), transparent);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  display: block;
  width: 100%;
  height: 40%;
  background: var(--gold);
  animation: cueRun 2.4s var(--ease-soft) infinite;
}
@keyframes cueRun {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(260%); }
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(0, 201, 122, 0.6);
  animation: pulse 2.6s var(--ease-soft) infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 201, 122, 0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 201, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 201, 122, 0); }
}

/* ==========================================================================
   08  ABOUT
   ========================================================================== */

.about__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .about__grid { grid-template-columns: 1.15fr 0.85fr; }
  .about__grid--even { grid-template-columns: 1fr 1fr; }
}

.pillars {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar {
  padding: clamp(1.6rem, 3vw, 2.25rem);
  background: var(--bg-raised);
  transition: background 0.5s var(--ease-soft);
}
.pillar:hover { background: var(--bg-elevated); }
.pillar__label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.pillar h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.pillar p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   09  TICKER
   ========================================================================== */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 1.15rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.ticker__group span:nth-child(even) { color: var(--gold); }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   10  GAMES
   ========================================================================== */

.games {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .games { grid-template-columns: repeat(2, 1fr); }
}

/* Both games ship with finished key art that already carries the title, so the
   art leads and the card's own type sits under it. Overlaying a second title on
   top of a wordmark would fight it. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    border-color 0.5s var(--ease-soft),
    transform 0.6s var(--ease),
    box-shadow 0.6s var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Cursor-tracked gold light (JS sets --mx / --my) */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(212, 175, 55, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-soft);
}
.card:hover::after,
.card:focus-within::after { opacity: 1; }

.card__art {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
.card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.card:hover .card__art img { transform: scale(1.035); }
.card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(5, 5, 5, 0.55) 100%);
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}
.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.1;
}
.card__text {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}
.tag--live { color: var(--emerald); border-color: rgba(0, 201, 122, 0.35); background: var(--emerald-dim); }
.tag--dev  { color: var(--gold); border-color: var(--gold-line); background: var(--gold-dim); }

/* `margin-top: auto` keeps the spec rows on the bottom edge, so cards of
   different copy lengths still line up across the row. */
.card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: auto;
  padding-top: 1.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.card__specs li { display: flex; gap: 0.5rem; }
.card__specs b { color: var(--text-muted); font-weight: 400; }

.games__note {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ==========================================================================
   11  DEVELOPER
   ========================================================================== */

.quote {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-left: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--gold-dim), transparent 55%), var(--bg-raised);
}
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}
/* ==========================================================================
   12  CONTACT
   ========================================================================== */

.channels {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.channel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.4rem 1.5rem;
  padding-block: clamp(1.4rem, 3vw, 1.9rem);
  border-bottom: 1px solid var(--line);
  transition: padding-inline 0.5s var(--ease), border-color 0.5s var(--ease-soft);
}
@media (min-width: 720px) {
  .channel { grid-template-columns: 190px 1fr auto; }
}
.channel:not(.is-disabled):hover {
  border-bottom-color: var(--gold-line);
  padding-inline: 1rem;
}
.channel__label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.channel__value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1.2;
  word-break: break-word;
}
.channel__value--sm {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
}
.channel__icon {
  color: var(--text-faint);
  transition: transform 0.5s var(--ease), color 0.4s var(--ease-soft);
}
.channel:not(.is-disabled):hover .channel__icon {
  color: var(--gold);
  transform: translate(4px, -4px);
}
.channel.is-disabled { color: var(--text-faint); }
.channel.is-disabled .channel__value { color: rgba(255, 255, 255, 0.24); }

.contact__note {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ==========================================================================
   13  FOOTER
   ========================================================================== */

.footer {
  padding-block: clamp(3.5rem, 8vw, 5.5rem) 2.5rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}
.footer__mark {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.footer__mark .brand__logo { height: 56px; }
.footer__tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 26ch;
}
.footer__col h2 {
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.35rem;
}
.footer__col li + li { margin-top: 0.75rem; }
.footer__col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-soft), padding-left 0.4s var(--ease);
}
.footer__col a:hover { color: var(--gold); padding-left: 4px; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.footer__bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__bar a:hover { color: var(--gold); }

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.to-top:hover { color: var(--gold); }
.to-top svg { transition: transform 0.4s var(--ease); }
.to-top:hover svg { transform: translateY(-3px); }

/* ==========================================================================
   14  DOCUMENT PAGES (privacy / terms / contact)
   ========================================================================== */

.page-head {
  padding-block: calc(var(--header-h) + clamp(4rem, 12vh, 8rem)) clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: auto 0 -60% 0;
  height: 100%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}
.page-head > .shell { position: relative; z-index: 1; }
/* A page head already carries its own generous space, so the section under it
   does not need the full section rhythm on top as well. */
.page-head + .section { padding-top: clamp(3.5rem, 8vw, 6rem); }

.page-head__meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.doc {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: 1fr;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
@media (min-width: 960px) {
  .doc { grid-template-columns: 230px 1fr; align-items: start; }
  .doc__nav { position: sticky; top: calc(var(--header-h) + 2.5rem); }
}
.doc__nav h2 {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.doc__nav li + li { margin-top: 0.6rem; }
.doc__nav a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-faint);
  border-left: 1px solid var(--line);
  padding: 0.15rem 0 0.15rem 0.9rem;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft);
}
.doc__nav a:hover, .doc__nav a.is-active { color: var(--gold); border-left-color: var(--gold); }

.doc__body { max-width: 72ch; }
.doc__body section + section { margin-top: clamp(2.75rem, 6vw, 4rem); }
.doc__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1.1rem;
  scroll-margin-top: calc(var(--header-h) + 2rem);
  /* Cormorant defaults to old-style figures, which makes a leading "1." read
     as a dropped glyph next to capitals. Section numbers need lining figures. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.doc__body h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin: 2rem 0 0.85rem;
}
.doc__body p { color: var(--text-muted); }
.doc__body p + p { margin-top: 1rem; }
.doc__body ul { margin-top: 1rem; }
.doc__body ul + p { margin-top: 1.35rem; }
.doc__body li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
}
.doc__body li + li { margin-top: 0.7rem; }
.doc__body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1px;
  background: var(--gold);
}
.doc__body strong { color: var(--text); font-weight: 500; }
.doc__body code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 0.1em 0.4em;
  word-break: break-all;
}

.callout {
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-left: 1px solid var(--emerald);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  font-size: 0.92rem;
}
.callout--gold { border-left-color: var(--gold); }

/* Contact page form */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.55rem; }
.field label {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.35s var(--ease-soft), background 0.35s var(--ease-soft);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-elevated);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, 0.22); }
.form__note { font-size: 0.78rem; color: var(--text-faint); }

/* ==========================================================================
   15  404
   ========================================================================== */

.error {
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) var(--gutter) 4rem;
  position: relative;
  overflow: hidden;
}
.error__code {
  font-family: var(--font-display);
  font-size: clamp(7rem, 32vw, 22rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(212, 175, 55, 0.85) 60%, rgba(212, 175, 55, 0) 108%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error__actions {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ==========================================================================
   16  REDUCED MOTION / PRINT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Must out-specify `.js .reveal`, not just `.reveal`. */
  .js .reveal, .js .word { opacity: 1; transform: none; }
  .menu__link { transform: none; }
  .ticker__track { animation: none; }
}

@media print {
  .header, .menu, .progress, .footer__bar nav, .hero__bg, .grain, .ticker { display: none; }
  body { background: #fff; color: #000; }
  .doc__body p, .doc__body li { color: #000; }
  a { text-decoration: underline; }
}
