/* ==========================================================================
   Atlas Conquest — homepage, Layout D ("Focused")
   The Trailer Cut hero, then about five calm screens: how it plays,
   three battlefields, patron gods & commanders, join the beta, finale.
   Moody navy, warm amber glows, gold OptimusPrinceps titles.
   ========================================================================== */

@font-face {
  font-family: 'OptimusPrinceps';
  src: url('../assets/media/fonts/OptimusPrincepsSemiBold.woff') format('woff'),
       url('../assets/media/fonts/OptimusPrincepsSemiBold.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-0: #06080d;
  --ink-1: #0b0f17;
  --ink-2: #131924;
  --ink-3: #1c2433;
  --ink-4: #283246;

  --gold-hi: #f7dc9a;
  --gold: #e8a245;
  --gold-lo: #c96f22;
  --fire-1: #f05a1a;
  --fire-2: #ff9a1f;
  --fire-3: #ffd23a;

  --text: #ede7da;
  --text-2: #bdb6a8;
  --text-3: #918a7e;
  --line: rgba(232, 162, 69, .22);
  --line-soft: rgba(232, 162, 69, .12);

  --skaal: #D55E00;
  --grenalia: #009E73;
  --lucia: #E8B630;
  --neutral: #A89078;
  --shadis: #7B7B8E;
  --archaeon: #0072B2;

  --display: 'OptimusPrinceps', 'Cinzel', 'Trajan Pro', Georgia, serif;
  --sans: 'Alegreya Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --sc: 'Alegreya Sans SC', 'Alegreya Sans', system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --nav-h: 72px;

  --gold-grad: linear-gradient(180deg, var(--gold-hi) 8%, #f2c271 38%, var(--gold) 62%, var(--gold-lo) 100%);
  --hex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0L56 16.17V48.5L28 64.66L0 48.5V16.17ZM28 64.66V97' fill='none' stroke='%23e8a245' stroke-width='1'/%3E%3C/svg%3E");
  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--ink-1);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-synthesis: none;
}
body::after { /* film grain */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: rgba(232, 162, 69, .35); color: #fff; }

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

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--gold-hi); color: #1a1004; padding: 10px 16px; border-radius: 6px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Shared type ---------- */
.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.eyebrow {
  font-family: var(--sc);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .26em;
  text-transform: lowercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.08;
  letter-spacing: .01em;
  filter: drop-shadow(0 4px 24px rgba(232, 140, 50, .18));
}
.section-sub { color: var(--text-2); margin-top: 14px; max-width: 56ch; }
.section-head--center { text-align: center; }
.section-head--center .section-sub { margin-inline: auto; }

/* trailer ornament:  ——— ◆ ——— */
.ornament {
  display: flex; align-items: center; gap: 10px;
  width: min(260px, 70%);
  margin: 20px auto 0;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 85%);
}
.ornament::after { transform: scaleX(-1); }
.ornament i {
  width: 7px; height: 7px; flex: none;
  transform: rotate(45deg);
  border: 1px solid var(--gold-hi);
  background: var(--gold);
  box-shadow: 0 0 12px rgba(247, 200, 120, .8);
}
.ornament--start { margin-left: 0; width: min(200px, 60%); }
.ornament--start::before { display: none; }

/* —— RELEASING 2027 —— */
.dateline {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--display);
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-hi);
}
.dateline span { padding-left: .28em; } /* optically re-centre the tracking */
.dateline::before, .dateline::after {
  content: ''; width: clamp(40px, 8vw, 110px); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 162, 69, .8));
}
.dateline::after { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h);
  padding: 0 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .04em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .3s, background-color .3s, border-color .3s, color .3s, filter .3s;
}
.btn .icon { width: 20px; height: 20px; }
.btn--lg { --h: 58px; padding: 0 28px; font-size: 18px; }
.btn--sm { --h: 42px; padding: 0 14px 0 14px; font-size: 15px; gap: 9px; }
.btn--sm .icon { width: 18px; height: 18px; }

/* Steam: the classic Steam store blue (light cyan → deep blue), white label + glyph */
.btn--steam {
  color: #fff;
  background: linear-gradient(90deg, #47bfff 5%, #1a44c2 60%);
  border-color: rgba(150, 215, 255, .55);
  text-shadow: 0 1px 2px rgba(6, 24, 74, .45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .32),
    inset 0 -2px 0 rgba(8, 26, 92, .35),
    0 0 0 1px rgba(0, 0, 0, .35),
    0 0 26px -2px rgba(71, 191, 255, .35),
    0 12px 30px -12px rgba(26, 68, 194, .8);
}
.btn--steam .icon { color: #fff; filter: drop-shadow(0 1px 2px rgba(6, 24, 74, .45)); }
.btn--steam:hover {
  filter: brightness(1.14) saturate(1.06);
  transform: translateY(-1px);
  border-color: rgba(190, 232, 255, .8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 -2px 0 rgba(8, 26, 92, .35),
    0 0 0 1px rgba(0, 0, 0, .35),
    0 0 38px 0 rgba(71, 191, 255, .55),
    0 16px 40px -12px rgba(40, 110, 255, .9);
}
.btn--steam:active { transform: translateY(1px); }
.btn--xl { --h: 66px; padding: 0 38px; font-size: 21px; gap: 14px; }
.btn--xl .icon { width: 24px; height: 24px; }

.btn--ghost {
  color: var(--gold-hi);
  background: rgba(11, 15, 23, .45);
  border-color: rgba(247, 220, 154, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--gold-hi);
  background: rgba(232, 162, 69, .14);
  transform: translateY(-1px);
}
.btn__play {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid rgba(247, 220, 154, .6);
  margin-left: -6px;
}
.btn__play .icon { width: 13px; height: 13px; margin-left: 2px; }
.btn__meta {
  font-family: var(--sans); font-size: 14px; letter-spacing: .04em;
  color: var(--text-3);
  padding-left: 12px; border-left: 1px solid rgba(247, 220, 154, .25);
}

/* Discord: the beta lives there, so it gets its own (accessible) blurple */
.btn--discord {
  color: #fff;
  background: linear-gradient(180deg, #5a66ec 0%, #4b56d8 52%, #3f49c4 100%);
  border-color: rgba(190, 198, 255, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 0 0 1px rgba(0, 0, 0, .35),
    0 10px 28px -10px rgba(88, 101, 242, .85);
}
.btn--discord:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px rgba(0, 0, 0, .35), 0 14px 34px -10px rgba(110, 122, 255, .95); }
.btn--discord:active { transform: translateY(1px); }

.beta-pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 18px 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(150, 160, 255, .5);
  background: rgba(88, 101, 242, .2);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f0f1ff;
  font-size: 17px; font-weight: 500; letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 8px 26px -12px rgba(0, 0, 0, .9);
  transition: background-color .25s, border-color .25s, transform .3s var(--ease-out);
}

/* Primary call to action: Steam leads (default, works with or without a store URL).
   CONFIG.primaryCta = 'discord' adds .primary-discord and flips the roles.
   Markup marked data-primary-only="steam|discord" is shown only in that mode, so the page is right without JS too. */
html:not(.primary-discord) [data-primary-only="discord"],
html.primary-discord [data-primary-only="steam"] { display: none !important; }
.steam-pill { /* secondary Steam link (only when Discord leads): still Steam blue */
  border-color: rgba(102, 192, 244, .55);
  background: linear-gradient(90deg, rgba(71, 191, 255, .26) 5%, rgba(26, 68, 194, .34) 60%);
  color: #eaf6ff;
  box-shadow: 0 0 22px -6px rgba(71, 191, 255, .35), 0 8px 26px -12px rgba(0, 0, 0, .9);
}
.steam-pill .icon, .steam-pill .icon--arrow { color: #8fd3ff; }
.steam-pill:hover { background: linear-gradient(90deg, rgba(71, 191, 255, .4) 5%, rgba(26, 68, 194, .5) 60%); border-color: #8fd3ff; }

/* "Steam page coming soon" — shown beside a Steam button for ~4s while CONFIG.steam is empty */
.soon-note {
  position: fixed; left: 0; top: 0; z-index: 95;
  max-width: min(460px, 100vw - 24px);
  padding: 10px 16px 11px;
  border-radius: 8px;
  border: 1px solid rgba(143, 211, 255, .55);
  background: rgba(9, 14, 26, .96);
  box-shadow: 0 0 22px -6px rgba(71, 191, 255, .45), 0 14px 34px -12px rgba(0, 0, 0, .9);
  color: #eaf6ff;
  font-size: 16px; line-height: 1.4; text-align: center;
  pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility 0s .2s;
}
.soon-note.is-shown { opacity: 1; visibility: visible; transition: opacity .2s; }

.round-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(247, 220, 154, .4);
  background: rgba(11, 15, 23, .6);
  color: var(--gold-hi);
  cursor: pointer;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease-out);
}
.round-btn .icon { width: 20px; height: 20px; }
.round-btn:hover { border-color: var(--gold-hi); background: rgba(232, 162, 69, .16); }
.round-btn:active { transform: scale(.94); }
.round-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Atmosphere helpers ---------- */
.hex-lattice {
  position: absolute; inset: 0;
  background-image: var(--hex);
  background-size: 56px 97px;
  background-position: center;
  opacity: .08;
  -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 55% 50% at 50% 50%, #000 0%, transparent 78%);
  pointer-events: none;
}
.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.embers span {
  position: absolute;
  left: var(--x);
  bottom: -12px;
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #fff1cf 0%, #ffb347 35%, rgba(255, 140, 30, 0) 70%);
  opacity: 0;
  animation: ember var(--d) linear var(--delay) infinite;
  will-change: transform, opacity;
}
@keyframes ember {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: var(--o); }
  70%  { opacity: calc(var(--o) * .7); }
  100% { transform: translate3d(var(--dx), calc(var(--rise) * -1), 0); opacity: 0; }
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background-color .4s, box-shadow .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.nav::before { /* soft top fade so links read over the hero video */
  content: ''; position: absolute; inset: 0 0 -40px 0;
  background: linear-gradient(180deg, rgba(6, 8, 13, .75), rgba(6, 8, 13, 0));
  pointer-events: none;
  transition: opacity .4s;
}
.nav.is-scrolled {
  background: rgba(9, 12, 19, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft), 0 10px 30px -10px rgba(0, 0, 0, .6);
}
.nav.is-scrolled::before { opacity: 0; }
.nav__inner {
  position: relative;
  height: 100%;
  width: min(1440px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.nav__logo { display: block; flex: none; padding: 6px 0; border-radius: 4px; }
.nav__logo img { width: 190px; height: auto; }
.nav__menu { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  display: block;
  padding: 10px 14px;
  font-family: var(--sc);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .1em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--text-2);
  position: relative;
  transition: color .25s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform .35s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--gold-hi); }
.nav__cta { flex: none; }
.lbl-short { display: none; }
.nav__alt { display: none; }
.nav__burger {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid rgba(247, 220, 154, .3);
  border-radius: 6px;
  background: rgba(11, 15, 23, .5);
  cursor: pointer;
  padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span { display: block; width: 20px; height: 1.5px; background: var(--gold-hi); transition: transform .3s var(--ease-out), opacity .2s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .nav__logo img { width: 160px; }
  .nav__inner { gap: 12px; }
  .nav__burger { display: flex; }
  .nav__cta { margin-left: auto; }
  .nav__menu {
    position: absolute; top: calc(100% + 0px); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(9, 12, 19, .97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .8);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease-out), visibility 0s .3s;
  }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease-out); }
  .nav.is-open { background: rgba(9, 12, 19, .97); }
  .nav__links { flex-direction: column; align-items: stretch; }
  .nav__links a { padding: 14px 4px; font-size: 20px; border-bottom: 1px solid var(--line-soft); }
  .nav__links a::after { display: none; }
  .nav__alt {
    display: inline-flex; align-items: center; gap: 10px;
    margin-top: 18px; min-height: 48px;
    color: #dfe2ff; text-decoration: none;
    font-family: var(--display); font-size: 17px; letter-spacing: .03em;
  }
  .nav__alt .icon { width: 20px; height: 20px; color: #b9c0ff; }
  .nav__alt:not(.nav__alt--discord) { color: #eaf6ff; }
  .nav__alt:not(.nav__alt--discord) .icon { color: #66c0f4; } /* Steam blue */
}
@media (max-width: 520px) {
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
}
@media (max-width: 420px) {
  .nav__logo img { width: 132px; }
  .nav__cta { padding: 0 12px; gap: 7px; font-size: 14px; }
  .nav__cta .icon { width: 16px; height: 16px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: grid;
  place-items: center;
  overflow: clip;
  background: var(--ink-1) url('media/hero-poster.webp') center / cover no-repeat;
  isolation: isolate;
}
@media (max-width: 640px) and (orientation: portrait) {
  .hero { background-image: url('media/hero-portrait-poster.webp'); }
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(.7) contrast(1.05);
  transform: scale(calc(1 + var(--hy, 0) * .08));
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 52%, rgba(7, 9, 15, .86) 0%, rgba(7, 9, 15, .62) 50%, rgba(7, 9, 15, 0) 100%),
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(7, 9, 15, 0) 38%, rgba(7, 9, 15, .86) 100%),
    linear-gradient(180deg, rgba(11, 15, 23, .6) 0%, rgba(11, 15, 23, .15) 22%, rgba(11, 15, 23, .2) 60%, rgba(11, 15, 23, .94) 92%, var(--ink-1) 100%);
}
.hero__glow {
  position: absolute; left: 50%; top: 46%;
  width: min(1100px, 120vw); aspect-ratio: 2.2;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(255, 140, 40, .26) 0%, rgba(232, 110, 30, .1) 38%, transparent 70%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.hex-lattice--hero { opacity: .06; }

.letterbox {
  position: absolute; left: 0; right: 0; height: 13vh; z-index: 3;
  background: #000;
  pointer-events: none;
  animation: letterbox-open .9s var(--ease-in-out) .05s both;
}
.letterbox--top { top: 0; transform-origin: top; }
.letterbox--bottom { bottom: 0; transform-origin: bottom; }
@keyframes letterbox-open { from { transform: scaleY(1); } to { transform: scaleY(0); } }

.hero__content {
  position: relative; z-index: 2;
  transform: translate3d(0, calc(var(--hy, 0) * 16vh), 0);
  opacity: calc(1 - var(--hy, 0) * 1.5);
  width: min(1120px, 100% - 2 * var(--gutter));
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-top: calc(var(--nav-h) * .5);
}
.hero__logo { width: min(1080px, 76vw); }
.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 6px 30px rgba(0, 0, 0, .65)) drop-shadow(0 0 60px rgba(255, 120, 30, .22));
  animation: logo-in 1.1s var(--ease-out) .08s both;
}
@keyframes logo-in {
  from { opacity: 0; transform: scale(1.07); filter: blur(12px) drop-shadow(0 6px 30px rgba(0, 0, 0, .65)); }
  to   { opacity: 1; transform: scale(1); }
}
.hero__tagline {
  margin-top: clamp(18px, 2.4vw, 30px);
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
  letter-spacing: .015em;
  color: #f6f0e4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .9), 0 0 2px rgba(0, 0, 0, .8);
  animation: rise .7s var(--ease-out) .25s both;
}
.hero .dateline {
  margin-top: clamp(14px, 1.8vw, 22px);
  color: #f2dca8;
  text-shadow: 0 0 18px rgba(0, 0, 0, .95), 0 2px 6px rgba(0, 0, 0, .9);
  animation: rise .7s var(--ease-out) .32s both;
}
.hero .dateline::before, .hero .dateline::after { box-shadow: 0 0 8px rgba(0, 0, 0, .8); }
.hero .btn--ghost {
  background: rgba(11, 15, 23, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__ctas {
  margin-top: clamp(30px, 4vw, 46px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
  animation: rise .6s var(--ease-out) .4s both;
}
.hero__beta {
  margin-top: 20px;
  animation: rise .6s var(--ease-out) .5s both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__foot {
  position: absolute; left: 0; right: 0; bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 4;
  width: min(1440px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  animation: rise .7s var(--ease-out) .7s both;
}
.hero__caption {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sc); font-weight: 500; font-size: 13px; letter-spacing: .2em; text-transform: lowercase;
  color: var(--text-2);
}
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--fire-2); box-shadow: 0 0 10px var(--fire-2); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6px 12px;
  font-family: var(--sc); font-weight: 500; font-size: 13px; letter-spacing: .3em; text-transform: lowercase;
  color: var(--text-2); text-decoration: none;
}
.scroll-cue i {
  position: relative; width: 1px; height: 46px;
  background: linear-gradient(180deg, rgba(232, 162, 69, .6), rgba(232, 162, 69, 0));
  overflow: hidden;
}
.scroll-cue i::after {
  content: ''; position: absolute; left: -1px; top: -14px; width: 3px; height: 14px; border-radius: 2px;
  background: var(--gold-hi); box-shadow: 0 0 8px var(--gold);
  animation: cue 2.2s var(--ease-in-out) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(64px); opacity: 0; } }
.hero__pause {
  justify-self: end;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(247, 220, 154, .35);
  background: rgba(11, 15, 23, .5);
  color: var(--gold-hi);
  cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.hero__pause:hover { border-color: var(--gold-hi); background: rgba(232, 162, 69, .16); }
.hero__pause .icon { width: 16px; height: 16px; }
.hero__pause .icon--play, .hero__pause[aria-pressed="true"] .icon--pause { display: none; }
.hero__pause[aria-pressed="true"] .icon--play { display: block; }
.no-hero-video .hero__pause { visibility: hidden; }
.hero.is-still .embers span,
.hero.is-still .scroll-cue i::after,
.hero.is-still .rec { animation-play-state: paused; }

@media (max-width: 1100px) {
  .hero__scrim {
    background:
      radial-gradient(ellipse 70% 48% at 50% 55%, rgba(7, 9, 15, .84) 0%, rgba(7, 9, 15, .6) 52%, rgba(7, 9, 15, 0) 100%),
      radial-gradient(ellipse 100% 80% at 50% 50%, rgba(7, 9, 15, 0) 38%, rgba(7, 9, 15, .8) 100%),
      linear-gradient(180deg, rgba(11, 15, 23, .6) 0%, rgba(11, 15, 23, .15) 22%, rgba(11, 15, 23, .2) 60%, rgba(11, 15, 23, .94) 92%, var(--ink-1) 100%);
  }
}
@media (max-width: 820px) {
  .hero__ctas { flex-direction: column; align-items: stretch; width: min(380px, 100%); }
  .hero__ctas .btn { width: 100%; }
}
@media (max-width: 640px) {
  .hero { min-height: 560px; }
  .hero__logo { width: 90vw; }
  .hero__video { filter: saturate(1.05) brightness(.8) contrast(1.04); }
  .hero__scrim {
    background:
      radial-gradient(ellipse 96% 34% at 50% 47%, rgba(7, 9, 15, .62) 0%, rgba(7, 9, 15, .38) 58%, rgba(7, 9, 15, 0) 100%),
      linear-gradient(180deg, rgba(11, 15, 23, .72) 0%, rgba(11, 15, 23, .12) 18%, rgba(11, 15, 23, .1) 46%, rgba(11, 15, 23, .55) 66%, rgba(11, 15, 23, .96) 90%, var(--ink-1) 100%);
  }
  .hero__glow { opacity: .6; }
  .hero__ctas { gap: 12px; }
  .btn--lg { --h: 56px; font-size: 17px; }
  .hero__caption { font-size: 12px; letter-spacing: .14em; }
  .scroll-cue span { display: none; }
  .scroll-cue i { height: 36px; }
  .letterbox { height: 9vh; }
}
@media (max-height: 780px) and (min-width: 641px) {
  .hero__logo { width: min(820px, 66vw); }
  .hero__ctas { margin-top: 28px; }
  .hero__beta { margin-top: 14px; }
  .scroll-cue span { display: none; }
  .scroll-cue i { height: 34px; }
}


/* ==========================================================================
   SECTIONS (Layout D) — calm, static, scannable. Nothing pins, nothing is
   driven by scroll. The only motion below the hero is a clip someone asked
   for (hover / tap) and the finale coverflow's single pass.
   ========================================================================== */
.sec {
  position: relative;
  padding: clamp(52px, 5.6vw, 80px) 0;
  isolation: isolate;
}
.sec + .sec::before { /* hairline between sections */
  content: ''; position: absolute; left: 50%; top: 0;
  width: min(520px, 70%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.sec__head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sec .section-title { font-size: clamp(32px, 3.5vw, 52px); }
.sec__head .ornament { width: min(220px, 56%); margin-top: 14px; }

/* ---------- 1 · The pitch: concept-art band, then three clips ---------- */
.sec.pitch { padding-top: 0; background: var(--ink-1); }
.pitch__band {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(420px, 38vw, 600px);
}
.pitch__art { position: absolute; inset: 0 0 0 auto; width: 72%; z-index: -2; }
.pitch__art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 28%;
  filter: saturate(.95) brightness(.88);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.pitch__band::after { /* melt into the page above and below */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink-1) 22%, rgba(11, 15, 23, .55) 42%, transparent 62%),
    linear-gradient(180deg, var(--ink-1) 0%, transparent 16%, transparent 80%, var(--ink-1) 100%);
}
.pitch__copy { padding-block: clamp(56px, 6vw, 100px); }
.pitch__lead { margin: 0; max-width: min(36rem, 48%); }
.pitch__hook {
  display: block; text-wrap: balance;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(30px, 3.3vw, 54px); line-height: 1.1; letter-spacing: .01em;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .75));
}
.pitch__more {
  display: block; margin-top: clamp(14px, 1.4vw, 22px); max-width: 32rem;
  font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; color: var(--text);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .9);
}
.pitch__body { width: min(1560px, 100% - 2 * var(--gutter)); margin: clamp(8px, 1.2vw, 20px) auto 0; }
h2.pitch__lead { font-weight: 400; }

/* One turn in three beats, cut from one take: same camera, so they read as a sequence. */
.story { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px); counter-reset: none; }
.beat { position: relative; min-width: 0; display: flex; flex-direction: column; }
.beat + .beat::before { /* a small chevron in the gutter, centred on the video: this leads to that */
  content: ''; position: absolute; top: 0; margin-top: calc(28.125% - 5px);
  left: calc(-1 * clamp(16px, 1.6vw, 28px) / 2 - 7px);
  width: 10px; height: 10px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold);
  transform: rotate(45deg); opacity: .55;
}
.beat__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--ink-0);
  box-shadow: 0 0 0 1px var(--line), 0 26px 50px -28px rgba(0, 0, 0, .95);
  transition: box-shadow .3s ease;
}
.beat__still, .beat__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beat__media video { opacity: 0; transition: opacity .3s ease; }
.beat.is-live .beat__media video { opacity: 1; }
.beat.is-on .beat__media { box-shadow: 0 0 0 1px rgba(247, 220, 154, .55), 0 26px 50px -28px rgba(0, 0, 0, .95), 0 0 60px -24px rgba(232, 140, 50, .55); }
.beat__play { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: flex-end; justify-content: flex-end; }
.beat__play .clip__icon { position: static; margin: 12px; }
.beat__play[aria-pressed="true"] .icon--play, .beat__play:not([aria-pressed="true"]) .icon--pause { display: none; }
.beat__play:focus-visible { outline-offset: -3px; }
.beat__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(0, 0, 0, .35); }
.beat__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); }
.beat__cap { margin-top: 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 400; }
.beat__word { font-family: var(--display); font-size: clamp(26px, 2.1vw, 36px); line-height: 1.05; letter-spacing: .03em; }
.beat__line { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.4; color: var(--text-2); text-wrap: balance; }
.story__more { margin-top: clamp(20px, 2vw, 30px); display: flex; justify-content: center; }

/* At a glance: one quiet art band between the clips and the battlefields */
.glance { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 11vw, 190px) 0; margin-top: 0; }
.sec.pitch { padding-bottom: clamp(24px, 2.4vw, 40px); }
.glance__art img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; filter: saturate(1.05) brightness(.85); }
.glance::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 52% 46% at 50% 50%, rgba(8, 11, 18, .72), rgba(8, 11, 18, .25) 70%, transparent 100%), linear-gradient(180deg, var(--ink-1) 0%, transparent 22%, transparent 78%, var(--ink-1) 100%); }
.glance__inner { text-align: center; }
.glance__facts { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; max-width: 1100px; }
.glance__facts li {
  padding: 6px clamp(18px, 2.6vw, 40px);
  font-family: var(--sans); font-weight: 700; white-space: nowrap;
  font-size: clamp(24px, 2.4vw, 38px); line-height: 1.15; letter-spacing: .01em;
  color: var(--gold-hi); text-shadow: 0 3px 22px rgba(0, 0, 0, .85);
}
.glance__facts li + li { border-left: 1px solid rgba(247, 220, 154, .35); }
.glance__note { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(16px, 1.3vw, 19px); color: var(--text); text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.glance + .sec::before { display: none; }

.clip__expand {
  position: absolute; z-index: 3; right: 10px; top: 10px;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid rgba(247, 220, 154, .4); border-radius: 50%;
  background: rgba(6, 8, 13, .62); color: var(--gold-hi); cursor: zoom-in;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: .85; transition: opacity .25s ease, background .25s ease;
}
.clip__expand .icon { width: 16px; height: 16px; }
.clip__expand:hover, .clip__expand:focus-visible { opacity: 1; background: rgba(232, 162, 69, .22); }

/* A still with an optional inline clip on top (see setupClips in main.js).
   The <video> is only created on the first hover/tap, and fades in once it is playing. */
.clip {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink-2);
  box-shadow: 0 0 0 1px rgba(247, 220, 154, .2), 0 26px 50px -28px rgba(0, 0, 0, .95);
  transition: box-shadow .3s;
}
.clip__still, .clip video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.clip video { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.clip__still:not([src]) { visibility: hidden; } /* JS sets src just before the still scrolls into view */
.clip.is-live video { opacity: 1; }
.clip__btn {
  position: absolute; inset: 0; z-index: 2;
  width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0;
  background: none;
  border-radius: inherit;
  cursor: pointer;
}
.clip__btn:focus-visible { outline-offset: -3px; }
.clip__icon {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(247, 220, 154, .5);
  background: rgba(11, 15, 23, .66);
  color: var(--gold-hi);
  transition: background-color .25s, border-color .25s;
}
.clip__icon .icon { width: 14px; height: 14px; }
.clip__icon .icon--play { margin-left: 2px; }
.clip__btn[aria-pressed="true"] .icon--play,
.clip__btn[aria-pressed="false"] .icon--pause { display: none; }
[data-clip-host]:hover .clip,
.clip.is-on { box-shadow: 0 0 0 1px rgba(247, 220, 154, .45), 0 26px 50px -28px rgba(0, 0, 0, .95), 0 0 60px -24px rgba(232, 140, 50, .55); }
[data-clip-host]:hover .clip__icon,
.clip__btn:focus-visible .clip__icon,
.clip.is-on .clip__icon { border-color: var(--gold-hi); background: rgba(11, 15, 23, .86); box-shadow: 0 0 16px -2px rgba(232, 162, 69, .6); }
html:not(.js) .clip__btn { display: none; }

/* ---------- 2 · Three battlefields ---------- */
.maps { background: linear-gradient(180deg, var(--ink-1) 0%, var(--ink-2) 55%, var(--ink-1) 100%); }
.maps__list {
  --gap: clamp(12px, 1.5vw, 22px);
  /* one panel's resting width → a fixed height, so widening a panel never changes the row height */
  --pw: calc((min(var(--maxw), 100vw - 2 * var(--gutter)) - 2 * var(--gap)) / 3);
  margin-top: clamp(26px, 3vw, 40px);
  display: flex; gap: var(--gap);
}
.map { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
/* Each panel is a still of the whole map; the button opens it in the viewer. */
.map__open {
  position: relative; display: block; width: 100%;
  height: calc(var(--pw) / 1.38);
  padding: 0; border: 0; border-radius: 6px; overflow: hidden;
  background: var(--ink-0); cursor: zoom-in;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -30px rgba(0, 0, 0, .9);
  transition: box-shadow .3s ease;
}
.map__still { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: filter .3s ease; }
.map__open:hover, .map__open:focus-visible { box-shadow: 0 0 0 1px rgba(247, 220, 154, .55), 0 24px 60px -30px rgba(0, 0, 0, .9), 0 0 50px -18px rgba(232, 130, 40, .55); }
.map__open:hover .map__still { filter: brightness(1.06) saturate(1.05); }
.map__open:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.map__cap { margin-top: 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.map__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
  letter-spacing: .02em;
  white-space: nowrap;
}
.map__desc {
  font-family: var(--sc); font-weight: 500;
  font-size: 15px; letter-spacing: .14em; text-transform: lowercase;
  color: var(--text-3);
}
@media (min-width: 701px) and (max-width: 1100px) {
  .map__cap { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- 3 · Patron gods & commanders ---------- */
.gods {
  background:
    radial-gradient(ellipse 50% 40% at 50% 60%, rgba(232, 140, 50, .06), transparent 70%),
    var(--ink-1);
}
.gods__tabs {
  margin-top: clamp(22px, 2.4vw, 32px);
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 6px;
}
.god-tab {
  --fcr: 232, 162, 69;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  min-width: 108px;
  padding: 12px 10px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-family: var(--sc); font-weight: 700;
  font-size: 15px; letter-spacing: .14em; text-transform: lowercase;
  color: var(--text-3);
  transition: color .25s, background-color .25s, border-color .25s;
}
.god-tab span { padding-left: .14em; } /* optically re-centre the tracking */
.god-tab img {
  width: 56px; height: 56px; border-radius: 50%;
  opacity: .55; filter: saturate(.45);
  transition: opacity .25s, filter .25s, box-shadow .25s;
}
.god-tab:hover { color: var(--text); }
.god-tab:hover img { opacity: .9; filter: none; }
.god-tab[aria-selected="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  border-color: rgba(var(--fcr), .45);
}
.god-tab[aria-selected="true"] img {
  opacity: 1; filter: none;
  box-shadow: 0 0 0 2px rgb(var(--fcr)), 0 0 24px -2px rgba(var(--fcr), .8);
}
.god-tab[aria-selected="true"]::after {
  content: ''; position: absolute; left: 32%; right: 32%; bottom: -1px; height: 2px; border-radius: 2px;
  background: rgb(var(--fcr));
  box-shadow: 0 0 10px rgba(var(--fcr), .9);
}

.god {
  --fcr: 232, 162, 69;
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(22px, 2.6vw, 36px) clamp(22px, 3.4vw, 52px);
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 55% 75% at 78% 50%, rgba(var(--fcr), .15), transparent 72%),
    linear-gradient(180deg, rgba(19, 25, 36, .82), rgba(11, 15, 23, .82));
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9);
}
.god + .god { margin-top: 18px; } /* no-JS: every panel, stacked */
.god__head { display: flex; align-items: center; gap: 18px; }
.god__emblem {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 0 40px -6px rgba(var(--fcr), .85);
}
.god__name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, 3.2vw, 50px);
  line-height: 1;
  letter-spacing: .02em;
  color: rgb(var(--fcr));
}
.god__role {
  margin-top: 8px;
  font-family: var(--sc); font-weight: 700;
  font-size: 14px; letter-spacing: .2em; text-transform: lowercase;
  color: var(--text-2);
}
.god__line { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--text); max-width: 42ch; }
.god__sub {
  margin: 22px 0 0;
  font-family: var(--sc); font-weight: 700;
  font-size: 13px; letter-spacing: .22em; text-transform: lowercase;
  color: var(--gold);
}
.cmdrs { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }
/* small portrait tokens, each a link to that commander's deck builder page */
.cmdr {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 136px; height: 100%;
  padding: 12px 8px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(11, 15, 23, .6);
  text-align: center;
  text-decoration: none;
  transition: border-color .25s, background-color .25s;
}
.cmdr img {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 2px rgba(var(--fcr), .9), 0 0 18px -4px rgba(var(--fcr), .8);
}
.cmdr > span { display: flex; flex-direction: column; flex: 1; }
.cmdr__name { display: block; font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--text); text-wrap: balance; }
.cmdr__go {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: auto; padding-top: 3px;
  font-family: var(--sc); font-weight: 700;
  font-size: 13px; letter-spacing: .12em; text-transform: lowercase; line-height: 1.3;
  color: var(--gold);
}
.cmdr__go::after { content: '\2192'; letter-spacing: 0; }
.cmdr:hover { border-color: rgba(247, 220, 154, .6); background: rgba(232, 162, 69, .1); }
.cmdr:hover .cmdr__go { color: var(--gold-hi); }

.god__cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 18px);
  max-width: 720px; width: 100%; justify-self: end;
  padding-block: 10px;
}
.god__cards img { width: 100%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .6)); }
.god__cards li:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.god__cards li:nth-child(3) { transform: rotate(3deg) translateY(10px); }
.god__cards li:nth-child(2) { position: relative; z-index: 1; }

/* ==========================================================================
   FINALE — the trailer's end slide: small wordmark, huge gold
   "Wishlist on Steam Now", a curved coverflow of real cards, the
   "100% Human-Made Assets" pill, then the calls to action.
   ========================================================================== */
.finale {
  position: relative;
  padding: clamp(44px, 4vw, 56px) 0 clamp(40px, 3.4vw, 48px);
  text-align: center;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(ellipse 75% 60% at 50% 50%, #151e33 0%, #0f1627 48%, #0a0e18 100%);
}
.finale__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.finale__hex {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='124.7' viewBox='0 0 72 124.7'%3E%3Cpath d='M36 0L72 20.78V62.35L36 83.14L0 62.35V20.78ZM36 83.14V124.7' fill='none' stroke='%238fa6d8' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 72px 124.7px;
  background-position: center top;
  opacity: .07;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 30%, transparent 100%);
}
.finale__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 44% 30% at 50% 58%, rgba(255, 150, 50, .11), transparent 72%),
    radial-gradient(circle at 94% 6%, rgba(232, 140, 50, .16), transparent 34%),
    radial-gradient(circle at 4% 98%, rgba(232, 140, 50, .1), transparent 36%);
}
.finale__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-inline: var(--gutter); }
.finale__title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: .01em;
  text-wrap: balance;
  filter: drop-shadow(0 3px 0 rgba(80, 34, 0, .45)) drop-shadow(0 8px 44px rgba(255, 150, 40, .32));
}
.finale__title .gold {
  background: linear-gradient(180deg, #fff1bd 4%, #ffd45e 38%, #f6a92a 66%, #d8711b 100%);
  -webkit-background-clip: text; background-clip: text;
}

/* Coverflow */
.flow {
  --cw: clamp(140px, min(15vw, 24vh), 260px);
  position: relative;
  width: 100%;
  height: calc(var(--cw) * 1.4 * 1.24 + 48px);
  margin-top: clamp(8px, 1.4vw, 20px);
  overflow: hidden;
  touch-action: pan-y;
  outline-offset: -6px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-user-select: none; user-select: none;
}
.flow__track { position: absolute; inset: 0; }
.flow__card {
  position: absolute; top: calc(var(--cw) * 1.4 * .12 + 24px); left: calc(50% - var(--cw) / 2);
  width: var(--cw); aspect-ratio: 400 / 560;
  transform-origin: 50% 50%;
  filter: brightness(var(--lit, 1));
  will-change: transform;
  cursor: pointer;
}
.flow__card img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .55));
  -webkit-user-drag: none;
  transition: transform .5s var(--ease-out), filter .6s;
}
.flow__card.is-center img { filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 26px rgba(255, 170, 60, .22)); }
.flow__card.is-center:hover img { transform: translateY(-6px); }
/* The row is driven frame by frame from JS (continuous pan), so no CSS transitions on the cards */
.flow.is-live .flow__card { transition: none; }
/* without JS: a plain centred row */
.flow:not(.is-ready) .flow__track { display: flex; justify-content: center; gap: 14px; }
.flow:not(.is-ready) .flow__card { position: relative; left: auto; flex: none; }
.flow__pause {
  position: absolute; right: max(var(--gutter), 7%); bottom: 4px; z-index: 60;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 15, 23, .6);
  color: var(--text-3);
  cursor: pointer;
  transition: color .25s, border-color .25s;
}
.flow__pause:hover { color: var(--gold-hi); border-color: rgba(247, 220, 154, .5); }
.flow__pause .icon { width: 13px; height: 13px; }
.flow__pause .icon--play, .flow__pause[aria-pressed="true"] .icon--pause { display: none; }
.flow__pause[aria-pressed="true"] .icon--play { display: block; }

.made-pill {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: clamp(10px, 1.2vw, 16px);
  padding: 10px 28px 11px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(232, 162, 69, .72);
  background: rgba(8, 11, 18, .55);
  box-shadow: inset 0 0 18px rgba(232, 162, 69, .1), 0 0 34px -12px rgba(232, 162, 69, .45);
  color: #ebe6dc;
  font-size: clamp(17px, 1.5vw, 22px); letter-spacing: .02em;
}
.made-pill .icon { width: 1.05em; height: 1.05em; color: var(--gold); }

.finale__inner--foot { margin-top: 2px; }
.finale__ctas { margin-top: clamp(18px, 1.8vw, 26px); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  position: relative;
  background: var(--ink-0);
  border-top: 1px solid var(--line-soft);
  padding: 72px 0 28px;
  font-size: 16px;
}
.footer::before {
  content: ''; position: absolute; left: 50%; top: -1px; width: min(560px, 70%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo { display: inline-block; border-radius: 4px; }
.footer__logo img { width: 220px; }
.footer__tagline { margin-top: 16px; color: var(--text-2); }
.footer__release { margin-top: 6px; font-family: var(--display); font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.footer__h {
  font-family: var(--sc); font-weight: 700; font-size: 14px; letter-spacing: .22em; text-transform: lowercase;
  color: var(--gold); margin-bottom: 14px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 2px; }
.footer__col a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 36px;
  color: var(--text-2); text-decoration: none;
  transition: color .2s;
}
.footer__col a:hover { color: var(--gold-hi); }
.footer__col .icon { width: 16px; height: 16px; color: var(--text-3); }
.footer__col a:hover .icon { color: var(--gold); }
.footer__bottom {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--text-3);
}
.footer__bottom ul { display: flex; gap: 22px; }
.footer__bottom a { color: var(--text-3); text-decoration: none; display: inline-block; padding: 8px 0; }
.footer__bottom a:hover { color: var(--gold-hi); }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal {
  width: min(1240px, 100vw - 32px);
  max-width: none; max-height: none;
  padding: 0; border: 0;
  background: transparent;
  color: var(--text);
  overflow: visible;
}
.modal::backdrop { background: rgba(3, 4, 8, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal[open] { animation: modal-in .45s var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.modal__title { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em; color: var(--gold-hi); }
.modal__title span { color: var(--text-3); }
.modal__frame {
  position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(247, 220, 154, .25), 0 40px 120px -20px rgba(0, 0, 0, .9), 0 0 160px -40px rgba(232, 130, 40, .5);
}
.modal__frame video, .modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__sentinel { position: absolute; width: 1px; height: 1px; overflow: hidden; }


/* Finale link row: Press kit · Deck builder · Analytics · Rules */
.finale__links { margin-top: clamp(10px, 1.2vw, 16px); }
.finale__links ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.finale__links li { display: flex; align-items: center; }
.finale__links li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .7; }
.finale__links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 14px;
  font-family: var(--sc); font-weight: 500;
  font-size: 15px; letter-spacing: .14em; text-transform: lowercase;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s;
}
.finale__links a:hover { color: var(--gold-hi); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(232, 162, 69, .6); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .god { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .cmdr { width: 128px; }
}
@media (max-width: 860px) {
  /* one column: god, playstyle, its cards, then its commanders */
  .god { grid-template-columns: 1fr; row-gap: 18px; }
  .god__info { display: contents; }
  .god__head { order: 1; }
  .god__line { order: 2; margin-top: 0; }
  .god__cards { order: 3; max-width: 520px; margin-block: 4px 8px; justify-self: center; }
  .god__sub { order: 4; margin-top: 0; }
  .cmdrs { order: 5; margin-top: -8px; }
  /* the numbers: a 2 × 2 grid (hidden live items simply drop out) */
}
@media (max-width: 700px) {
  body { font-size: 17px; }
  .maps__list { flex-direction: column; gap: 26px; }
  .map__open { height: auto; aspect-ratio: 16 / 9; }
  .map__cap { margin-top: 12px; }
  .god-tab { min-width: 0; width: calc((100% - 12px) / 3); padding: 10px 4px 12px; font-size: 14px; letter-spacing: .1em; }
  .god-tab img { width: 48px; height: 48px; }
  .god { padding: 22px 18px 26px; gap: 22px; }
  .god__emblem { width: 64px; height: 64px; }
  .god__line { font-size: 17px; margin-top: 16px; }
  .cmdrs { flex-direction: column; align-items: stretch; }
  .cmdr { flex-direction: row; width: auto; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 999px; text-align: left; }
  .cmdr img { width: 46px; height: 46px; }
  .cmdr__go { justify-content: flex-start; margin-top: 1px; }
  .flow { --cw: 40vw; height: calc(var(--cw) * 1.4 * 1.24 + 40px); }
  .flow__card { top: calc(var(--cw) * 1.4 * .12 + 20px); }
  .flow__pause { bottom: 0; right: var(--gutter); }
  .made-pill { font-size: 16px; padding: 9px 22px 10px 18px; }
  .finale__ctas { flex-direction: column; align-items: stretch; width: min(380px, 100%); gap: 14px; }
  .finale__ctas .btn, .finale__ctas .beta-pill { width: 100%; justify-content: center; }
  .btn--xl { --h: 60px; font-size: 19px; padding: 0 24px; }
  .finale__links a { padding: 0 10px; font-size: 14px; letter-spacing: .1em; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__col:last-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .sec { padding: 40px 0; }
  .sec .section-title { font-size: 30px; }
  .maps__list { gap: 18px; margin-top: 20px; }
  .map__cap { margin-top: 8px; }
  .map__name { font-size: 23px; }
  .sec__head .ornament { margin-top: 10px; }
  .gods__tabs { margin-top: 18px; }
  .god { margin-top: 12px; padding: 18px 16px 20px; row-gap: 14px; }
  .god__head { gap: 14px; }
  .god__emblem { width: 56px; height: 56px; }
  .god__name { font-size: 32px; }
  .god__role { margin-top: 4px; font-size: 13px; }
  .cmdrs { gap: 8px; margin-top: -4px; }
  .cmdr { padding: 4px 14px 4px 4px; }
  .cmdr img { width: 40px; height: 40px; }
  .god-tab { padding: 8px 4px 9px; gap: 6px; }
  .god-tab img { width: 42px; height: 42px; }
  .flow { --cw: 42vw; }
  .finale__links { margin-top: 8px; }
  .finale__links a { padding: 0 8px; font-size: 13.5px; letter-spacing: .08em; }
  /* compact footer: the brand line, then each group as one wrapping row;
     links the finale row already has (.is-dup) drop out */
  .footer { padding: 34px 0 18px; font-size: 15px; }
  .footer__grid { grid-template-columns: 1fr; gap: 14px; }
  .footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .footer__logo img { width: 170px; }
  .footer__tagline { display: none; }
  .footer__release { margin-top: 0; font-size: 12px; }
  .footer__h { margin-bottom: 0; font-size: 13px; }
  .footer__col ul { flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .footer__col a { min-height: 40px; }
  .footer .is-dup { display: none; }
  .footer__bottom { margin-top: 14px; padding-top: 10px; }
}
@media (max-width: 420px) {
  .finale__title { font-size: clamp(34px, 10vw, 48px); }
}
@media (max-width: 380px) {
  .btn--lg { padding: 0 18px; font-size: 16px; }
  .btn__meta { display: none; }
}

/* ==========================================================================
   Reduced motion: no autoplay, no clips (stills only), no particles, no parallax.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .letterbox, .embers, .scroll-cue i::after { display: none; }
  .rec { animation: none; }
  .clip__btn, .clip video { display: none !important; }
}

/* Map panels: no play icon; the whole panel is the (invisible) button, hover or tap runs the pull-back */

/* the card row can be dragged */
.flow.is-live { cursor: grab; }
.flow.is-live:active { cursor: grabbing; }

/* Expand hint: a small corner badge on anything that opens the viewer. */
.expand-hint {
  position: absolute; right: 10px; bottom: 10px;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(6, 8, 13, .62); color: var(--gold-hi);
  box-shadow: 0 0 0 1px rgba(247, 220, 154, .35);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: .8; transition: opacity .25s ease;
  pointer-events: none;
}
.expand-hint .icon { width: 16px; height: 16px; }
[data-view]:hover .expand-hint, [data-view]:focus-visible .expand-hint { opacity: 1; }

/* ==========================================================================
   MEDIA VIEWER (shared click-to-expand)
   ========================================================================== */
.viewer {
  width: min(1240px, 100vw - 32px);
  max-width: none; max-height: none;
  padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible;
}
.viewer::backdrop { background: rgba(3, 4, 8, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viewer[open] { animation: modal-in .35s var(--ease-out); }
.viewer__stage {
  position: relative; aspect-ratio: 16 / 9; max-height: calc(100dvh - 120px); margin-inline: auto;
  background: #000; border-radius: 6px; overflow: hidden; touch-action: pan-y;
  box-shadow: 0 0 0 1px rgba(247, 220, 154, .25), 0 40px 120px -20px rgba(0, 0, 0, .9);
}
.viewer__stage video, .viewer__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.viewer__stage video { cursor: pointer; }
.viewer__replay {
  position: absolute; z-index: 2; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px;
  border: 1px solid rgba(247, 220, 154, .45); border-radius: 999px;
  background: rgba(6, 8, 13, .7); color: var(--gold-hi);
  font: 600 14px/1 var(--sans); letter-spacing: .04em; cursor: pointer;
}
.viewer__replay .icon { width: 16px; height: 16px; }
.viewer__replay:hover { background: rgba(232, 162, 69, .2); }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.viewer__cap { margin: 0; min-width: 0; font-family: var(--display); font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .04em; color: var(--gold-hi); }
.viewer__nav { display: flex; align-items: center; gap: 8px; flex: none; }
.viewer__count { font: 500 14px/1 var(--sc); letter-spacing: .12em; color: var(--text-3); margin-right: 6px; font-variant-numeric: tabular-nums; }
.viewer__prev .icon { transform: scaleX(-1); }
.viewer.is-single .viewer__prev, .viewer.is-single [data-viewer-next], .viewer.is-single .viewer__count { display: none; }
@media (max-width: 600px) {
  .viewer { width: 100vw; }
  .viewer__stage { border-radius: 0; }
  .viewer__bar { padding-inline: 16px; }
}


/* pitch on tablets and phones: beats stack one after another, full width */
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 34px; max-width: 640px; margin-inline: auto; }
  .beat + .beat::before { top: -22px; margin-top: 0; left: calc(50% - 5px); transform: rotate(135deg); }
  .beat__cap { margin-top: 10px; }
  .glance__facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; row-gap: 10px; }
  .glance__facts li { font-size: 22px; padding: 4px 16px; }
  .glance__facts li:nth-child(odd) { border-left: 0; }
}
@media (max-width: 700px) {
  .pitch__band { display: block; min-height: 0; }
  .pitch__art { position: relative; width: 100%; aspect-ratio: 16 / 10; }
  .pitch__art img { object-position: 58% 30%; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .pitch__band::after { background: linear-gradient(180deg, var(--ink-1) 0%, transparent 14%); }
  .pitch__copy { margin-top: -40px; padding-block: 0 36px; text-align: center; }
  .pitch__lead, .pitch__more { max-width: none; margin-inline: auto; }
}

.beat .clip__expand { z-index: 4; }

/* Full-screen story: a big chapter title on the video itself */
.viewer__chapter {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: clamp(40px, 6vw, 90px) clamp(18px, 3vw, 44px) clamp(18px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 6px; pointer-events: none;
  background: linear-gradient(0deg, rgba(5, 7, 12, .82), rgba(5, 7, 12, .45) 55%, transparent);
  opacity: 0;
}
.viewer__chapter.is-in { animation: chapter-in .5s var(--ease-out) forwards; }
@keyframes chapter-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.viewer__chapter-word {
  font-family: var(--display); font-size: clamp(34px, 5vw, 76px); line-height: 1; letter-spacing: .04em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 18px rgba(0, 0, 0, .8));
}
.viewer__chapter-line { font-size: clamp(16px, 1.8vw, 26px); color: var(--text); text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
@media (prefers-reduced-motion: reduce) { .viewer__chapter.is-in { animation: none; opacity: 1; } }
.viewer.has-chapters .viewer__cap { visibility: hidden; }
