/* ==========================================================================
   Infinity Blade — preservation site
   ========================================================================== */

:root {
  --bg: #07080b;
  --bg-soft: #0b0e12;
  --bg-panel: #0f1318;
  --ink: #e7eef4;
  --ink-soft: #c2ced8;
  --muted: #8e9caa;
  --silver: #aac3d4;
  --silver-bright: #e6f1f8;
  --silver-dim: rgba(170, 195, 212, .24);
  --steel: #d3e0e9;
  --bronze: #7e9caf;
  --blood: #a94e52;
  --blood-bright: #d47878;
  --blood-dim: rgba(169, 78, 82, .24);
  --line: rgba(170, 195, 212, .18);
  --line-soft: rgba(231, 238, 244, .08);
  --serif: "Cinzel", "Trajan Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

section[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 4, 6, .66);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

::selection {
  background: var(--silver);
  color: #071016;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78em;
  color: var(--silver-bright);
  overflow-wrap: anywhere;
}

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  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;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .8rem 1rem;
  background: var(--silver);
  color: #071016;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Global texture / progress
   -------------------------------------------------------------------------- */

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .42;
  background-image: url("assets/noise.png");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 120;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--silver), var(--silver-bright));
  box-shadow: 0 0 14px rgba(126, 160, 184, .6);
  transition: width .08s linear;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 5vw;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
}

.site-header.scrolled {
  padding: .85rem 5vw;
  background: rgba(8, 8, 10, .86);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(18px) saturate(120%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--serif);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--silver);
  flex: none;
  filter: drop-shadow(0 0 8px rgba(126, 160, 184, .25));
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.4vw, 2.2rem);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a { position: relative; padding: .4rem 0; transition: color .25s var(--ease); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--silver);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  padding: .7rem 1rem !important;
  border: 1px solid var(--silver-dim);
  color: var(--silver) !important;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  background: var(--silver);
  color: #071016 !important;
  border-color: var(--silver);
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 130;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Shared typography / buttons
   -------------------------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1rem;
  color: var(--silver);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--silver));
  flex: none;
}
.center .eyebrow { justify-content: center; }
.center .eyebrow::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--silver), transparent);
}

.section {
  position: relative;
  z-index: 2;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 5vw;
}

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  margin: .4rem 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: .015em;
  color: var(--ink);
  text-wrap: balance;
}

.lede {
  max-width: 650px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(.98rem, 1.3vw, 1.08rem);
  font-weight: 300;
  line-height: 1.8;
}
.center .lede { margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 48px;
  padding: .95rem 1.55rem;
  border: 1px solid transparent;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--silver-bright), var(--silver));
  color: #071016;
  box-shadow: 0 10px 30px rgba(126, 160, 184, .14);
}
.btn-gold:hover { box-shadow: 0 16px 38px rgba(126, 160, 184, .3); }

.btn-ghost {
  border-color: rgba(233, 226, 210, .22);
  background: rgba(255, 255, 255, .015);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--silver); color: var(--silver); }

.btn-steel {
  background: linear-gradient(135deg, #e4eef5, #9fb7c9);
  color: #071016;
}
.btn-bronze {
  background: linear-gradient(135deg, #b9d2df, #6f92a8);
  color: #071016;
}

.game-3 .btn-gold {
  background: linear-gradient(135deg, var(--blood-bright), var(--blood));
  color: #140708;
  box-shadow: 0 10px 30px rgba(169, 78, 82, .16);
}
.game-3 .btn-gold:hover { box-shadow: 0 16px 38px rgba(169, 78, 82, .32); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8.5rem 5vw 6rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 22%, rgba(126, 160, 184, .1), transparent 65%),
    radial-gradient(ellipse 80% 65% at 50% 105%, rgba(74, 96, 120, .14), transparent 62%),
    linear-gradient(180deg, #09090b 0%, #08080a 52%, #0b0b0f 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 8, 10, .1), transparent 24%, transparent 72%, var(--bg) 100%),
    radial-gradient(circle at 50% 44%, transparent 0 34%, rgba(8, 8, 10, .52) 72%, rgba(8, 8, 10, .9) 100%);
  pointer-events: none;
}

.hero-halo {
  position: absolute;
  width: min(78vw, 860px);
  aspect-ratio: 1;
  border: 1px solid rgba(126, 160, 184, .14);
  border-radius: 50%;
  box-shadow: inset 0 0 120px rgba(126, 160, 184, .045);
  pointer-events: none;
}
.hero-halo::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(126, 160, 184, .08);
  border-radius: 50%;
}
.hero-halo::after {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 43%, rgba(126, 160, 184, .07) 50%, transparent 57% 100%);
  animation: halo-spin 36s linear infinite;
}

.hero-glow {
  position: absolute;
  width: min(58vw, 640px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 160, 184, .13), transparent 68%);
  filter: blur(20px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(980px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .eyebrow { justify-content: center; }
.hero .eyebrow::after {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--silver), transparent);
}

.hero-logo {
  width: min(560px, 74vw);
  height: auto;
  margin: 1.5rem auto 1.7rem;
  filter: drop-shadow(0 18px 44px rgba(0, 0, 0, .7)) drop-shadow(0 0 34px rgba(126, 160, 184, .14));
  animation: logo-float 7s ease-in-out infinite;
}

.hero-sub {
  margin: 0 0 2.2rem;
  color: var(--ink-soft);
  font-size: clamp(.98rem, 1.5vw, 1.14rem);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: .01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .85rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.4rem;
  margin-top: 3.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-meta strong {
  color: var(--silver);
  font-weight: 600;
  margin-right: .2rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  color: var(--muted);
  font-size: .58rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.scroll-cue svg { width: 18px; height: 18px; animation: cue-bob 2.4s ease-in-out infinite; }
.scroll-cue:hover { color: var(--silver); }

.embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.ember {
  position: absolute;
  bottom: -12px;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: #a9cbdc;
  box-shadow: 0 0 8px 2px rgba(230, 183, 111, .35);
  opacity: 0;
  animation: ember-rise linear infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes halo-spin { to { transform: rotate(360deg); } }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@keyframes ember-rise {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  12% { opacity: .8; }
  100% { transform: translate3d(var(--drift, 18px), -108vh, 0) scale(.35); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Quote rail
   -------------------------------------------------------------------------- */

.quote-rail {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .012);
}
.quote-track {
  display: flex;
  width: max-content;
  animation: quote-marquee 62s linear infinite;
}
.quote-rail:hover .quote-track { animation-play-state: paused; }
.quote-group { display: flex; }
.quote {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 1.15rem 2rem;
  border-right: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .64rem;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.quote b { color: var(--silver); font-weight: 600; letter-spacing: .16em; }

@keyframes quote-marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.intro-copy p {
  margin: 0 0 1.3rem;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
}

.intro-signature {
  margin-top: 2rem !important;
  color: var(--silver) !important;
  font-family: var(--serif);
  font-size: 1.08rem !important;
  letter-spacing: .06em;
}

.intro-panel { border-top: 1px solid var(--line); }
.panel-stat {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}
.panel-num {
  color: var(--silver);
  font-family: var(--serif);
  font-size: .9rem;
  letter-spacing: .1em;
  opacity: .8;
}
.panel-stat h3 {
  margin: 0 0 .3rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.panel-stat p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Games
   -------------------------------------------------------------------------- */

.games { padding-top: 2rem; }

.game {
  --accent: var(--silver);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  margin-bottom: 2.2rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(135deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, .006));
  overflow: hidden;
  transition: border-color .35s var(--ease);
}
.game:hover { border-color: var(--line); }
.game-1 { --accent: var(--steel); }
.game-2 { --accent: var(--bronze); }
.game-3 { --accent: var(--blood); }

.game.reverse .game-art { order: 2; }
.game.reverse .game-copy { order: 1; }

.game-art {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(150deg, #111216, #0a0a0d 70%);
  background:
    radial-gradient(ellipse 70% 65% at 50% 45%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 68%),
    radial-gradient(ellipse 90% 90% at 50% 120%, rgba(0, 0, 0, .5), transparent 60%),
    linear-gradient(150deg, #111216, #0a0a0d 70%);
  color: var(--accent);
}

.game-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 8, 10, .72));
  z-index: 2;
  pointer-events: none;
}
.game-art::after {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  z-index: 1;
  pointer-events: none;
}

.art-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  left: 15%; top: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 66%);
  filter: blur(32px);
  animation: art-breathe 7s ease-in-out infinite;
}
.art-lines {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(233, 226, 210, .045) 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(233, 226, 210, .035) 40px);
  mask-image: radial-gradient(ellipse at center, black 10%, transparent 74%);
  opacity: .8;
}
.art-numeral {
  position: absolute;
  right: 4%;
  top: 3%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(9rem, 19vw, 17rem);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.06em;
  opacity: .11;
  user-select: none;
}
.art-icon {
  position: absolute;
  z-index: 2;
  width: min(42%, 210px);
  height: auto;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 28%, transparent));
  opacity: .9;
}

.game-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4.6vw, 4.4rem);
}

.game-copy h3 {
  margin: .2rem 0 .7rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--ink);
}
.game-tag {
  margin: 0 0 1.2rem;
  color: var(--accent);
  font-family: var(--serif);
  font-size: .98rem;
  font-style: italic;
  letter-spacing: .06em;
}
.game-copy > p:not(.eyebrow):not(.game-tag) {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: .94rem;
  font-weight: 300;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  gap: .55rem;
  margin: 0 0 1.8rem;
  padding: 0;
  list-style: none;
}
.feature-list li {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
}
.feature-list li::before {
  content: "◇";
  color: var(--accent);
  font-size: .72rem;
  flex: none;
}

.download-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .2rem;
}
.file-meta {
  color: var(--muted);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.verify {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .78rem;
}
.verify summary {
  cursor: pointer;
  color: var(--silver);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  list-style: none;
}
.verify summary::-webkit-details-marker { display: none; }
.verify summary::after { content: " +"; color: var(--muted); }
.verify[open] summary::after { content: " −"; }
.verify p { margin: .8rem 0 0; line-height: 1.7; }
.copy-hash {
  margin-top: .8rem;
  padding: .5rem .75rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--silver);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.copy-hash:hover { background: var(--silver); color: #071016; }

@keyframes art-breathe {
  0%, 100% { opacity: .75; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* --------------------------------------------------------------------------
   Preservation
   -------------------------------------------------------------------------- */

.preservation {
  position: relative;
}
.preservation::before {
  content: "";
  position: absolute;
  inset: 8% 0;
  background: radial-gradient(ellipse at center, rgba(126, 160, 184, .05), transparent 65%);
  pointer-events: none;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.pillar {
  padding: 2rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(160deg, rgba(255, 255, 255, .025), transparent 70%);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: linear-gradient(160deg, rgba(126, 160, 184, .06), transparent 70%);
}
.pillar-icon {
  display: block;
  margin-bottom: 1.4rem;
  color: var(--silver);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
}
.pillar h3 {
  margin: 0 0 .6rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.pillar p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.75; }

.manifesto {
  max-width: 920px;
  margin: clamp(3.5rem, 7vw, 6rem) auto 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.7vw, 2.25rem);
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
  text-wrap: balance;
}
.manifesto::before {
  content: "“";
  display: block;
  margin-bottom: .4rem;
  color: var(--silver);
  font-size: 2.4em;
  line-height: .6;
  opacity: .6;
}

/* --------------------------------------------------------------------------
   Play / requirements
   -------------------------------------------------------------------------- */

.play-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.play-grid .section-head { margin-bottom: 0; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.2rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}
.steps li > span {
  color: var(--silver);
  font-family: var(--serif);
  font-size: .95rem;
  letter-spacing: .08em;
}
.steps h3 {
  margin: 0 0 .25rem;
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 600;
}
.steps p { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.7; }

.requirements {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 6vw, 5rem);
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}
.requirements > div {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1.4rem;
  background: var(--bg);
}
.requirements span {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.requirements strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
}
.requirements small { color: var(--muted); font-size: .7rem; }

.smallprint {
  max-width: 820px;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Downloads
   -------------------------------------------------------------------------- */

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.download-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.6rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(255, 255, 255, .025), transparent 72%);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.download-card:hover {
  transform: translateY(-4px);
  border-color: var(--silver-dim);
  background: linear-gradient(150deg, rgba(126, 160, 184, .07), transparent 72%);
}
.download-numeral {
  color: var(--silver);
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  opacity: .9;
}
.download-card h3 {
  margin: 0 0 .15rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
}
.download-card p { margin: 0 0 .4rem; color: var(--muted); font-size: .76rem; }
.download-file {
  color: var(--silver);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.download-arrow {
  margin-left: auto;
  color: var(--silver);
  font-size: 1.25rem;
  transition: transform .25s var(--ease);
}
.download-card:hover .download-arrow { transform: translateY(3px); }

.download-note {
  margin: 2.2rem 0 0;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 3.5rem 5vw 2rem;
  border-top: 1px solid var(--line-soft);
  background: #060607;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1240px;
  margin: 0 auto;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.footer-nav a:hover { color: var(--silver); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1240px;
  margin: 2.5rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-soft);
  color: #8a8377;
  font-size: .62rem;
  line-height: 1.7;
}
.footer-bottom p { margin: 0; max-width: 760px; }

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Chapter pages / FAQ
   -------------------------------------------------------------------------- */

.hero-title { margin: 0; line-height: 0; }

.game-copy h3 a { color: inherit; transition: color .25s var(--ease); }
.game-copy h3 a:hover { color: var(--accent); }

.text-link {
  display: inline-block;
  margin-top: .85rem;
  color: var(--silver);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.text-link:hover { color: var(--silver-bright); }

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  padding: 1.35rem 2.4rem 1.35rem 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(.98rem, 1.5vw, 1.14rem);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--silver);
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 300;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  max-width: 780px;
  margin: 0;
  padding: 0 0 1.4rem;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 300;
  line-height: 1.8;
}

.detail-page { --accent: var(--silver); }
.detail-page.game-1 { --accent: var(--steel); }
.detail-page.game-2 { --accent: var(--bronze); }
.detail-page.game-3 { --accent: var(--blood); }

.detail-hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 9rem 5vw 6rem;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(160deg, #101116, #08080a 70%);
  background:
    radial-gradient(ellipse 70% 65% at 50% 35%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 68%),
    radial-gradient(ellipse 90% 80% at 50% 115%, rgba(0, 0, 0, .55), transparent 62%),
    linear-gradient(160deg, #101116, #08080a 70%);
}
.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 0 30%, rgba(8, 8, 10, .62) 78%, rgba(8, 8, 10, .92) 100%);
  pointer-events: none;
}
.detail-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.detail-numeral {
  position: absolute;
  right: 2%;
  top: 4%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(14rem, 34vw, 28rem);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.06em;
  opacity: .075;
  user-select: none;
}
.detail-icon {
  position: absolute;
  left: 6%;
  top: 52%;
  width: min(30vw, 270px);
  height: auto;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: .22;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 24%, transparent));
}
.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 2.2rem;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.breadcrumbs a { transition: color .25s var(--ease); }
.breadcrumbs a:hover { color: var(--silver); }
.breadcrumbs span:last-child { color: var(--ink-soft); }
.detail-hero h1 {
  margin: .2rem 0 .6rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.9rem, 8vw, 6.6rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .015em;
  text-wrap: balance;
}
.detail-tag {
  margin: 0 0 1.3rem;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(.98rem, 1.5vw, 1.18rem);
  font-style: italic;
  letter-spacing: .06em;
}
.detail-hero .lede { margin-left: auto; margin-right: auto; }
.detail-hero .hero-actions { margin-top: 2rem; }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .8rem 2rem;
  margin-top: 2.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .6rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.detail-meta strong { color: var(--silver); font-weight: 600; margin-right: .25rem; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.detail-copy h2 {
  margin: 2.3rem 0 .8rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 400;
  line-height: 1.15;
}
.detail-copy h2:first-child { margin-top: 0; }
.detail-copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.85;
}
.detail-copy .feature-list { margin-top: .5rem; }
.detail-side { position: sticky; top: 105px; }
.side-card {
  margin-bottom: 1rem;
  padding: 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, .028), transparent 72%);
}
.side-card h3 {
  margin: .2rem 0 .35rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.side-card .file-meta { display: block; margin-bottom: 1rem; }
.side-btn { width: 100%; }
.req-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.req-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: .74rem;
  line-height: 1.5;
}
.req-list li:last-child { border-bottom: 0; }
.req-list span { color: var(--muted); }
.req-list strong { color: var(--ink); font-weight: 500; text-align: right; }

.steps.compact li { grid-template-columns: 2.6rem 1fr; padding: 1rem 0; }
.steps.compact h3 { font-size: .95rem; }

.detail-next { border-top: 1px solid var(--line-soft); }
.next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.next-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line-soft);
  background: linear-gradient(150deg, rgba(255, 255, 255, .025), transparent 72%);
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.next-card:hover { transform: translateY(-4px); border-color: var(--silver-dim); }
.next-card .next-numeral {
  color: var(--silver);
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
}
.next-card h3 {
  margin: 0 0 .15rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
}
.next-card p { margin: 0; color: var(--muted); font-size: .72rem; }
.next-card .download-arrow { margin-left: auto; color: var(--silver); }

/* Cover art */
.game-cover-bg {
  position: absolute;
  inset: -4%;
  z-index: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(34px) brightness(.22) saturate(.7);
  opacity: .3;
  transform: scale(1.08);
}
.game-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, .62));
}
.game-art::before { z-index: 3; }
.game-art::after { z-index: 4; }
.game-chapter {
  position: absolute;
  left: 1.4rem;
  bottom: 1.1rem;
  z-index: 5;
  color: var(--silver);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.download-cover {
  width: 56px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex: none;
}
.download-chapter {
  display: block;
  margin-bottom: .15rem;
  color: var(--silver);
  font-size: .55rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.detail-cover {
  position: absolute;
  left: 4%;
  top: 50%;
  z-index: 1;
  width: min(24vw, 230px);
  height: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
  opacity: .3;
  transform: translateY(-50%);
  mask-image: linear-gradient(90deg, #000 35%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 100%);
}
.side-cover {
  display: block;
  width: min(150px, 100%);
  height: auto;
  margin: 0 auto 1rem;
  border: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .nav { gap: 1.2rem; }
  .game-art { min-height: 500px; }
  .game-copy { padding: 3rem; }
}

@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 0; right: 0;
    z-index: 120;
    width: min(82vw, 360px);
    height: 100svh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.7rem;
    padding: 6rem 2.2rem 2rem;
    background: #0b0b0e;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    box-shadow: -30px 0 80px rgba(0, 0, 0, .55);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: .78rem; }
  .nav-cta { width: 100%; text-align: center; }

  .intro-grid,
  .play-grid { grid-template-columns: 1fr; }
  .game,
  .game.reverse { grid-template-columns: 1fr; }
  .game.reverse .game-art { order: 0; }
  .game.reverse .game-copy { order: 1; }
  .game-art { min-height: 380px; }
  .game-art::after { inset: 8%; }
  .art-icon { width: min(34%, 160px); }
  .pillars { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .requirements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-halo { width: min(92vw, 720px); }
  .footer-bottom { flex-direction: column; gap: .8rem; }
}

@media (max-width: 640px) {
  .site-header { padding: 1rem 4.5vw; }
  .site-header.scrolled { padding: .7rem 4.5vw; }
  .brand { font-size: .7rem; letter-spacing: .16em; }
  .brand-mark { width: 22px; height: 22px; }
  .section { padding-left: 4.5vw; padding-right: 4.5vw; }
  .hero { padding: 7.5rem 4.5vw 5.5rem; }
  .hero-logo { width: min(82vw, 520px); margin-top: 1rem; }
  .hero-sub { font-size: .95rem; }
  .desktop-break { display: none; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: .8rem 1.4rem; font-size: .55rem; }
  .hero-meta span { flex: 1 1 42%; }
  .scroll-cue { display: none; }
  .quote { padding: 1rem 1.4rem; font-size: .56rem; }
  .game-copy { padding: 1.8rem 1.35rem 2rem; }
  .game-art { min-height: 310px; }
  .art-numeral { font-size: 8.5rem; top: 5%; }
  .art-icon { width: min(40%, 140px); }
  .download-row { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .download-row .btn { width: 100%; }
  .requirements { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 1.4rem; }
  .footer-nav { gap: 1rem; }
  .manifesto { font-size: 1.3rem; }
}

@media (max-width: 940px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-icon { width: min(38%, 220px); left: 2%; opacity: .12; }
  .detail-cover { display: none; }
  .detail-numeral { font-size: clamp(9rem, 24vw, 16rem); }
  .next-grid { grid-template-columns: 1fr; }
  .detail-hero { min-height: 68vh; }
}

@media (max-width: 640px) {
  .detail-hero { min-height: 62vh; padding: 7.5rem 4.5vw 5rem; }
  .detail-hero h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .detail-icon { display: none; }
  .detail-meta { gap: .7rem 1.2rem; }
  .detail-meta span { flex: 1 1 42%; }
  .detail-side .side-card { padding: 1.35rem; }
  .game-cover { padding: .8rem; }
  .download-cover { width: 48px; height: 68px; }
  .faq-item summary { font-size: .96rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .embers { display: none; }
  .quote-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
