/* =========================================================================
   Realm of Knights: The Siege — site design system
   Dark cinematic theme drawn from the game's palette:
   night stone blues, parchment, gold, castle teal.
   ========================================================================= */

/* ---------------- Font (self-hosted, OFL-licensed, ships with the game) - */
@font-face {
  font-family: "MedievalSharp";
  src: url("../../art/UI/MedievalSharpFont/MedievalSharp-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------------- Tokens ------------------------------------------------ */
:root {
  --bg-0: #080d17;            /* page background            */
  --bg-1: #0c1322;            /* alternating sections       */
  --bg-2: #111b2e;            /* raised panels              */
  --line: rgba(150, 182, 224, 0.12);
  --line-strong: rgba(150, 182, 224, 0.26);

  --parchment: #f0e6cf;       /* headings                   */
  --ink: #b6c3d9;             /* body text                  */
  --ink-dim: #7f90aa;         /* secondary text             */

  --gold: #e8b64c;
  --gold-bright: #ffd166;
  --gold-deep: #b8862f;
  --teal: #59c2c9;

  --font-display: "MedievalSharp", "Georgia", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1140px;
  --radius: 16px;
  --radius-lg: 22px;

  /* One motion vocabulary, used everywhere -------------------------------- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* settles softly        */
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* slight overshoot      */
  --t-fast: 0.18s;
  --t-mid: 0.34s;
  --t-slow: 0.7s;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.6);
}

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* the few remaining pieces of game art render as crisp pixels */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--parchment);
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------------- Scroll progress --------------------------------------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 12px rgba(232, 182, 76, 0.5);
}

/* ---------------- Buttons ---------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition:
    transform var(--t-mid) var(--ease-spring),
    box-shadow var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    color var(--t-fast) var(--ease-out);
}
.btn-sm { padding: 10px 20px; font-size: 0.95rem; border-radius: 10px; }

/* light sweeps across the button on hover */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: transform 0.65s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%) skewX(-18deg); }
.btn:active { transform: translateY(1px) scale(0.985); }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #2a1c05;
  box-shadow: 0 6px 22px rgba(232, 182, 76, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-gold:hover {
  color: #2a1c05;
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(232, 182, 76, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--parchment);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.btn-ghost::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); }

/* placeholder (not-yet-live) links */
.is-placeholder { cursor: default; }

/* ---------------- Store badges ------------------------------------------ */
.store-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.store-badges-stack { flex-direction: column; align-items: stretch; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.88rem;
  transition:
    border-color var(--t-mid) var(--ease-out),
    color var(--t-mid) var(--ease-out),
    background var(--t-mid) var(--ease-out),
    transform var(--t-mid) var(--ease-spring);
}
.store-badge:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--parchment);
  transform: translateY(-2px);
}
.store-badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
  opacity: 0.85;
}
.store-badge .sb-name { font-weight: 500; letter-spacing: 0.01em; }
.store-badges-stack .store-badge { justify-content: flex-start; border-radius: 12px; }

/* ---------------- Navigation -------------------------------------------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0.75), transparent);
  opacity: 1;
  transition: opacity var(--t-mid) var(--ease-out);
  pointer-events: none;
}
.site-nav.is-scrolled {
  background: rgba(8, 13, 23, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0, 0, 0, 0.3);
}
.site-nav.is-scrolled::before { opacity: 0; }

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 0;
  transition: padding var(--t-mid) var(--ease-out);
}
.site-nav.is-scrolled .nav-inner { padding: 10px 0; }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--parchment);
  margin-right: auto;
  transition: color var(--t-fast) var(--ease-out);
}
.nav-brand:hover { color: var(--gold-bright); }
.nav-brand img {
  width: 34px;
  height: 34px;
  transition: transform var(--t-mid) var(--ease-spring);
}
.nav-brand:hover img { transform: translateY(-2px) rotate(-4deg); }

/* two-line lockup: title above, subtitle beneath */
.brand-lines {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: block;
  color: var(--ink);
  font-size: 0.93rem;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-mid) var(--ease-out);
}
.nav-links a:hover { color: var(--parchment); background: rgba(255, 255, 255, 0.05); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--gold); }

.nav-burger {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--parchment);
  margin: 4px 0;
  transition: transform var(--t-mid) var(--ease-out), opacity var(--t-fast) var(--ease-out);
}
.site-nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.site-nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- Hero --------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 122px 0 76px;
}

/* The key art stays as atmosphere only — blurred and dimmed far behind the
   content, so nothing readable ever sits on top of legible artwork. */
.hero-ambient {
  position: absolute;
  inset: -10%;
  z-index: -2;
  background-image: url("../../art/Extra/steam_pixel_art_thumbnail.jpg");
  background-size: cover;
  background-position: center 40%;
  filter: blur(44px) saturate(125%) brightness(0.62);
  opacity: 0.72;
  transform: scale(1.12) translateY(var(--parallax, 0px));
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(90% 70% at 50% 22%, rgba(232, 182, 76, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(8, 13, 23, 0.86) 0%, rgba(8, 13, 23, 0.55) 42%, var(--bg-0) 96%);
}

.hero-inner { display: grid; justify-items: center; text-align: center; }
.hero-head { max-width: 720px; }

/* The kicker and tagline are signposts; the title block is the event. Both
   are kept dim and small so nothing competes with the name. */
.hero-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.9rem, 8vw, 5.2rem);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
/* "The Siege" is part of the title — display type, gold, flanked by rules */
.hero-title-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 26px);
  font-size: clamp(1.25rem, 3.4vw, 2.15rem);
  letter-spacing: 0.3em;
  text-indent: 0.3em;    /* balances the trailing letter-space */
  text-transform: uppercase;
  margin-top: 10px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title-sub::before,
.hero-title-sub::after {
  content: "";
  flex: 0 1 clamp(30px, 12vw, 130px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
  text-indent: 0;
}
.hero-title .gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  color: var(--ink-dim);
  max-width: 480px;
  margin: 22px auto 34px;
}

/* --- Trailer: the centrepiece ------------------------------------------- */
.trailer {
  width: min(880px, 100%);
  margin: 0 auto;
  position: relative;
}
/* soft glow pooling under the player */
.trailer::before {
  content: "";
  position: absolute;
  inset: 12% 6% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232, 182, 76, 0.28), transparent 70%);
  filter: blur(40px);
}
.trailer-frame,
.trailer-embed {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: #06090f;
  box-shadow: var(--shadow-lg);
}
.trailer-frame {
  padding: 0;
  cursor: pointer;
  transition:
    transform var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out);
}
.trailer-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 182, 76, 0.5);
}
/* Scaled up and nudged down on purpose: the source key art has Steam store
   chrome (a wishlist button and a checkmark) baked into its top band, and
   this crops that band out of frame. */
.trailer-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.95);
  transform: scale(1.2) translateY(-8%);
  transition: transform 0.8s var(--ease-out), filter var(--t-mid) var(--ease-out);
}
.trailer-frame:hover .trailer-poster {
  transform: scale(1.25) translateY(-8%);
  filter: brightness(0.72);
}

.trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: rgba(10, 16, 28, 0.55);
  border: 1.5px solid rgba(240, 230, 207, 0.7);
  backdrop-filter: blur(8px);
  transition:
    transform var(--t-mid) var(--ease-spring),
    background var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out);
}
/* the play triangle */
.trailer-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--parchment);
  transition: border-color var(--t-mid) var(--ease-out);
}
/* pulsing ring */
.trailer-play::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 182, 76, 0.55);
  animation: playPulse 2.8s var(--ease-out) infinite;
}
@keyframes playPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}
.trailer-frame:hover .trailer-play {
  transform: scale(1.1);
  background: rgba(232, 182, 76, 0.9);
  border-color: var(--gold-bright);
}
.trailer-frame:hover .trailer-play::before { border-left-color: #2a1c05; }

.trailer-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  color: var(--ink-dim);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.trailer-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* --- Actions: their own clear band, well clear of any artwork ------------ */
.hero-actions {
  margin-top: 46px;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-note {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------------- Sections ---------------------------------------------- */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 40px 0 110px; }
.section-alt {
  background: var(--bg-1);
  border-block: 1px solid var(--line);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.section-head .section-sub { max-width: 600px; margin-inline: auto; }
.section-eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.section-sub { color: var(--ink-dim); font-size: 1.02rem; margin: 0; }

/* ---------------- Reveal on scroll -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Cards ------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition:
    transform var(--t-mid) var(--ease-out),
    border-color var(--t-mid) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out);
}
/* a warm glow follows the pointer across the card */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
              rgba(232, 182, 76, 0.13), transparent 68%);
  transition: opacity var(--t-mid) var(--ease-out);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(232, 182, 76, 0.35);
  box-shadow: var(--shadow-md);
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.card p { color: var(--ink-dim); font-size: 0.95rem; margin: 0; }

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 16px;
}

/* ---------------- Soundtrack --------------------------------------------- */
.tracks { display: grid; gap: 12px; max-width: 680px; margin: 0 auto; }
.track {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color var(--t-mid) var(--ease-out),
    background var(--t-mid) var(--ease-out),
    transform var(--t-mid) var(--ease-out);
}
.track:hover { background: rgba(255, 255, 255, 0.055); transform: translateX(3px); }
.track.is-playing { border-color: rgba(232, 182, 76, 0.45); background: rgba(232, 182, 76, 0.06); }

.track-play {
  flex: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(232, 182, 76, 0.55);
  background: rgba(232, 182, 76, 0.1);
  cursor: pointer;
  transition:
    background var(--t-mid) var(--ease-out),
    transform var(--t-mid) var(--ease-spring),
    box-shadow var(--t-mid) var(--ease-out);
}
.track-play:hover {
  background: rgba(232, 182, 76, 0.24);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(232, 182, 76, 0.1);
}
.track-play .ico-play {
  position: absolute;
  top: 50%;
  left: 53%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--gold-bright);
}
.track-play .ico-pause {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 13px;
  transform: translate(-50%, -50%);
  border-inline: 3.5px solid var(--gold-bright);
}
.track.is-playing .ico-play { display: none; }
.track.is-playing .ico-pause { display: block; }

.track-meta { flex: 1; min-width: 0; }
.track-name {
  font-family: var(--font-display);
  color: var(--parchment);
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.track-bar {
  position: relative;
  height: 6px;
  border-radius: 4px;
  background: rgba(150, 182, 224, 0.14);
  overflow: hidden;
  cursor: pointer;
  transition: height var(--t-fast) var(--ease-out);
}
.track:hover .track-bar { height: 8px; }
.track-fill {
  width: 0%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  box-shadow: 0 0 10px rgba(232, 182, 76, 0.4);
}
.track-time {
  flex: none;
  font-size: 0.8rem;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------------- News --------------------------------------------------- */
.news-card { display: flex; flex-direction: column; }
.news-date {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.news-card h3 { font-size: 1.2rem; }
.news-card h3 a { color: var(--parchment); transition: color var(--t-fast) var(--ease-out); }
.news-card h3 a:hover { color: var(--gold-bright); }
.news-card .more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.9rem;
}
/* arrow that slides out on hover */
.news-card .more::after {
  content: " →";
  display: inline-block;
  transition: transform var(--t-mid) var(--ease-out);
}
.news-card .more:hover::after { transform: translateX(4px); }

article.post { max-width: 760px; margin: 0 auto 56px; }
article.post header { margin-bottom: 18px; }
article.post h2 { font-size: 1.8rem; margin-bottom: 4px; }
article.post + article.post { border-top: 1px solid var(--line); padding-top: 56px; }

/* ---------------- CTA banner --------------------------------------------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line-strong);
  padding: 76px 30px;
  text-align: center;
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(232, 182, 76, 0.12), transparent 65%),
    linear-gradient(180deg, var(--bg-2), var(--bg-0));
}
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.cta-banner p { color: var(--ink); margin-bottom: 30px; }
.cta-banner .hero-ctas { margin-bottom: 28px; }

/* ---------------- Socials ------------------------------------------------ */
.socials { display: flex; gap: 10px; justify-content: center; }
.socials-left { justify-content: flex-start; margin-top: 18px; }
.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color var(--t-mid) var(--ease-out),
    background var(--t-mid) var(--ease-out),
    transform var(--t-mid) var(--ease-spring);
}
.social-btn svg { width: 20px; height: 20px; fill: var(--ink); transition: fill var(--t-mid) var(--ease-out); }
.social-btn:hover {
  border-color: var(--gold);
  background: rgba(232, 182, 76, 0.1);
  transform: translateY(-3px);
}
.social-btn:hover svg { fill: var(--gold-bright); }

/* ---------------- Footer -------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060a12;
  padding: 60px 0 30px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--parchment);
  margin-bottom: 14px;
}
.footer-brand img { width: 32px; height: 32px; }
.footer-blurb { color: var(--ink-dim); max-width: 320px; }
.site-footer h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a {
  color: var(--ink-dim);
  transition: color var(--t-fast) var(--ease-out), padding-left var(--t-mid) var(--ease-out);
}
.site-footer ul a:hover { color: var(--parchment); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-dim);
  font-size: 0.83rem;
}

/* ---------------- Sub-pages ----------------------------------------------- */
.page-hero {
  position: relative;
  padding: 180px 0 80px;
  text-align: center;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(46, 127, 138, 0.16), transparent 70%),
    var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); margin-bottom: 10px; }
.page-hero p { color: var(--ink-dim); max-width: 560px; margin: 0 auto; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .muted { color: var(--ink-dim); font-size: 0.9rem; }

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease-out), background var(--t-mid) var(--ease-out);
}
.faq details:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.faq details[open] { border-color: rgba(232, 182, 76, 0.35); }
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--parchment);
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform var(--t-mid) var(--ease-spring);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-dim); }

/* press kit tables */
.factsheet { width: 100%; border-collapse: collapse; }
.factsheet th, .factsheet td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.factsheet th { color: var(--parchment); font-family: var(--font-display); font-weight: 400; white-space: nowrap; width: 190px; }

.asset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.asset-tile {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: border-color var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}
.asset-tile:hover { border-color: rgba(232, 182, 76, 0.4); transform: translateY(-3px); }
.asset-tile .a-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.25);
}
.asset-tile .a-img img { max-height: 100%; width: auto; }
.asset-tile .a-label { display: block; padding: 12px; font-size: 0.85rem; color: var(--ink-dim); border-top: 1px solid var(--line); }

/* ---------------- 404 ------------------------------------------------------ */
.lost-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
/* selector must out-rank `.lost-page p` below, or the gradient stays hidden
   behind an opaque text colour */
.lost-page .lost-code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 10rem);
  line-height: 1;
  margin: 0 0 10px;
  background: linear-gradient(180deg, var(--gold-bright) 10%, var(--gold-deep) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.lost-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 10px; }
.lost-page p { color: var(--ink-dim); margin-bottom: 30px; max-width: 460px; }

/* ---------------- Responsive ---------------------------------------------- */
@media (max-width: 900px) {
  .section { padding: 76px 0; }
  .section-tight { padding: 20px 0 76px; }
  .hero { padding: 120px 0 70px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .asset-grid { grid-template-columns: 1fr; }

  .nav-links {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(8, 13, 23, 0.96);
    backdrop-filter: blur(16px);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out), visibility var(--t-mid);
  }
  .site-nav.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 14px; }
  .nav-links a::after { display: none; }
  .nav-burger { display: block; }
  .nav-cta { display: none; }
  .trailer-play { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .trailer-play::before { border-width: 10px 0 10px 16px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .track { flex-wrap: wrap; }
  .track-time { width: 100%; text-align: right; }
  .btn { width: 100%; }
  .hero-ctas { width: min(320px, 100%); }
}

/* ---------------- Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .trailer-play::after { animation: none; }
  .hero-ambient { transform: scale(1.12); }
  .btn::after { display: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
