/* ============================================================
   Suikoden I&II HD Remaster — concept landing page
   Palette: night indigo base, parchment-gold accents,
   crimson (Ch. I) / steel-blue (Ch. II) chapter themes
   ============================================================ */

@font-face {
  font-family: 'Cinzel';
  src: url('../assets/fonts/cinzel-var.woff2') format('woff2-variations');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('../assets/fonts/spectral-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('../assets/fonts/spectral-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('../assets/fonts/spectral-400i.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Spectral';
  src: url('../assets/fonts/spectral-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --night-0: #05070f;
  --night-1: #0a0e1c;
  --night-2: #111830;
  --ink: #e9e2d0;
  --ink-dim: #b7ad97;
  --gold: #c9a55c;
  --gold-hi: #ecd9a4;
  --crimson-0: #170a0d;
  --crimson-1: #2a0f16;
  --crimson: #a52534;
  --crimson-hi: #e0606e;
  --steel-0: #080e18;
  --steel-1: #0f1d31;
  --steel: #4d7cae;
  --steel-hi: #93c2e8;
  --serif-display: 'Cinzel', 'Times New Roman', serif;
  --serif-body: 'Spectral', Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  background: var(--night-0);
  color: var(--ink);
  font-family: var(--serif-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(201, 165, 92, 0.35); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 300;
  background: var(--gold); color: var(--night-0);
  padding: 0.6rem 1.1rem; border-radius: 4px;
  font-family: var(--serif-display); font-size: 0.85rem;
  text-decoration: none; transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 12px; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 250;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; background: var(--night-0);
  transition: opacity 0.7s var(--ease-out), visibility 0.7s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-rune { color: var(--gold); }
.lr-ring, .lr-ring-2, .lr-gate, .lr-star {
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.lr-ring { stroke-dasharray: 327; stroke-dashoffset: 327; animation: draw 1.2s var(--ease-out) forwards; }
.lr-ring-2 { stroke-dasharray: 252; stroke-dashoffset: 252; animation: draw 1.2s 0.15s var(--ease-out) forwards; opacity: 0.6; }
.lr-gate { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1s 0.5s var(--ease-out) forwards; }
.lr-star { fill: currentColor; stroke: none; opacity: 0; animation: fade-in 0.5s 1.2s forwards; }
.loader-text {
  font-family: var(--serif-display); font-size: 0.8rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--ink-dim);
  opacity: 0; animation: fade-in 0.6s 0.4s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; gap: 2rem;
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(rgba(5, 7, 15, 0.82), rgba(5, 7, 15, 0.55));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 165, 92, 0.14);
  transition: padding 0.35s var(--ease-out), background 0.35s;
}
.site-nav.scrolled { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.nav-mark {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--gold); text-decoration: none;
  font-family: var(--serif-display); font-size: 0.95rem; letter-spacing: 0.06em;
}
.nav-mark em { font-style: normal; color: var(--ink-dim); font-size: 0.78rem; letter-spacing: 0.12em; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none;
  font-family: var(--serif-display); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 1px; background: var(--gold); transition: right 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-hi); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-buy {
  color: var(--night-0); background: var(--gold);
  font-family: var(--serif-display); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-decoration: none;
  padding: 0.5rem 1.1rem; border-radius: 3px;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.nav-buy:hover { background: var(--gold-hi); transform: translateY(-1px); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px; margin-left: auto;
}
.nav-toggle span {
  display: block; height: 2px; margin: 5px 0;
  background: var(--gold); transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(5, 7, 15, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem;
}
.mobile-menu a {
  color: var(--ink); text-decoration: none;
  font-family: var(--serif-display); font-size: 1.35rem; letter-spacing: 0.12em;
}
.mobile-menu .mm-buy { color: var(--gold); }

/* ---------- Shared section chrome ---------- */
.kicker {
  font-family: var(--serif-display); font-size: 0.78rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); text-align: center; margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--serif-display); font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  line-height: 1.18; text-align: center; letter-spacing: 0.04em;
  color: var(--ink);
  text-wrap: balance;
}
.rune-divider { display: flex; justify-content: center; margin: 1.6rem 0 3rem; color: var(--gold); }
.rd-line { stroke: currentColor; stroke-width: 1; opacity: 0.5; }
.rd-glyph circle { stroke: currentColor; stroke-width: 1.4; }
.rd-glyph path { fill: currentColor; }

.lede { font-size: 1.22rem; line-height: 1.75; color: var(--ink); }
.lede + p, p + p { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif-display); font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 1.9rem; border-radius: 3px;
  text-align: center; white-space: normal;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, background 0.25s, color 0.25s;
}
.btn-gold {
  background: linear-gradient(160deg, var(--gold-hi), var(--gold) 55%, #a3803f);
  color: #241a06;
  box-shadow: 0 4px 24px rgba(201, 165, 92, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(201, 165, 92, 0.45); }
.btn-ghost {
  color: var(--ink); border: 1px solid rgba(233, 226, 208, 0.35);
  background: rgba(10, 14, 28, 0.35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); transform: translateY(-2px); }
.btn-lg { font-size: 1rem; padding: 1.1rem 2.3rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, #1d1430 0%, transparent 55%),
    linear-gradient(180deg, #060a18 0%, #0a0e22 45%, #141126 75%, #241631 100%);
}
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art {
  position: absolute; inset: -6% -4%; z-index: 1;
  opacity: 0.34;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 42%, #000 30%, transparent 78%);
  mask-image: radial-gradient(75% 70% at 50% 42%, #000 30%, transparent 78%);
}
.hero-art img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.82) brightness(0.9) sepia(0.18);
}
.hero-dusk {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(60% 42% at 50% 88%, rgba(224, 122, 68, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(5, 7, 15, 0.55) 0%, transparent 30%, transparent 62%, rgba(5, 7, 15, 0.92) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 4; text-align: center;
  padding: 7rem 1.5rem 6rem; max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--serif-display); font-size: 0.8rem;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
.hero-title { display: flex; flex-direction: column; align-items: center; }
.ht-line {
  font-family: var(--serif-display); font-weight: 900;
  font-size: clamp(2.6rem, 8.2vw, 5.6rem);
  letter-spacing: 0.05em; line-height: 1.04;
  background: linear-gradient(175deg, #f7ecd0 20%, var(--gold-hi) 55%, var(--gold) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(201, 165, 92, 0.25);
}
.ht-sub {
  margin-top: 0.7rem;
  font-family: var(--serif-display); font-weight: 400; font-style: normal;
  font-size: clamp(1rem, 2.6vw, 1.5rem); letter-spacing: 0.62em; text-indent: 0.62em;
  color: var(--ink);
}
.ht-sub em { font-style: normal; border-top: 1px solid rgba(201,165,92,.5); border-bottom: 1px solid rgba(201,165,92,.5); padding: 0.28rem 0; }
.ht-wars {
  margin-top: 1.05rem;
  font-family: var(--serif-display); font-size: clamp(0.82rem, 1.9vw, 1.05rem);
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-dim);
}
.hero-tagline {
  margin-top: 2rem; font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  font-style: italic; color: var(--ink);
}
.ht-stars { color: var(--gold); font-style: normal; }
.hero-meta {
  margin-top: 1.9rem; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 0.9rem;
  font-size: 0.95rem; color: var(--ink-dim);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }
.hm-sep { width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); opacity: 0.8; }
.hero-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.hero-heroes {
  position: absolute; z-index: 3; right: clamp(-40px, 2vw, 60px); bottom: 0;
  width: clamp(180px, 24vw, 340px);
  opacity: 0.92;
  filter: drop-shadow(0 12px 44px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}
.scroll-cue {
  position: absolute; z-index: 5; left: 50%; bottom: 1.6rem;
  transform: translateX(-50%); color: var(--gold);
  animation: cue-bob 2.6s ease-in-out infinite;
}
@keyframes cue-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- Legend / 108 stars ---------- */
.legend { position: relative; padding: 8rem 0 7rem; background: linear-gradient(180deg, var(--night-0), var(--night-1) 60%, var(--night-0)); }
.legend-grid {
  display: grid; grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.legend-copy p { color: var(--ink-dim); }
.legend-copy .lede { color: var(--ink); }
.star-counter { text-align: center; color: var(--gold); }
.sc-constellation { width: min(240px, 60%); margin: 0 auto; }
.sc-lines { stroke-width: 0.8; opacity: 0.55; }
.sc-stars circle { animation: twinkle 3s ease-in-out infinite; }
.sc-stars circle:nth-child(2n) { animation-delay: 1s; }
.sc-stars circle:nth-child(3n) { animation-delay: 2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.sc-number {
  font-family: var(--serif-display); font-weight: 700;
  font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; margin-top: 0.8rem;
  color: var(--gold-hi); font-variant-numeric: tabular-nums;
}
.sc-of { font-size: 0.4em; color: var(--ink-dim); font-weight: 400; margin-left: 0.3rem; }
.sc-label {
  font-family: var(--serif-display); font-size: 0.75rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim);
  margin-top: 0.5rem;
}

/* ---------- Chapters ---------- */
.chapter { position: relative; padding: 8rem 0 7rem; overflow: hidden; }
.chapter-veil { position: absolute; inset: 0; pointer-events: none; }
.chapter-1 {
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(165, 37, 52, 0.16), transparent 60%),
    linear-gradient(180deg, var(--crimson-0) 0%, var(--crimson-1) 50%, var(--crimson-0) 100%);
}
.chapter-1 .chapter-veil {
  background:
    radial-gradient(45% 32% at 12% 88%, rgba(224, 96, 110, 0.07), transparent 70%),
    repeating-linear-gradient(45deg, rgba(201, 165, 92, 0.02) 0 2px, transparent 2px 26px);
}
.chapter-2 {
  background:
    radial-gradient(90% 60% at 15% 0%, rgba(77, 124, 174, 0.18), transparent 60%),
    linear-gradient(180deg, var(--steel-0) 0%, var(--steel-1) 50%, var(--steel-0) 100%);
}
.chapter-2 .chapter-veil {
  background:
    radial-gradient(45% 32% at 88% 88%, rgba(147, 194, 232, 0.07), transparent 70%),
    repeating-linear-gradient(-45deg, rgba(147, 194, 232, 0.02) 0 2px, transparent 2px 26px);
}
.chapter-head { text-align: center; margin-bottom: 3.6rem; position: relative; }
.chapter-no {
  font-family: var(--serif-display); font-size: 0.78rem;
  letter-spacing: 0.34em; text-transform: uppercase;
}
.chapter-1 .chapter-no { color: var(--crimson-hi); }
.chapter-2 .chapter-no { color: var(--steel-hi); }
.chapter-logo { width: min(320px, 72vw); margin: 1.3rem auto 0.9rem; filter: drop-shadow(0 6px 30px rgba(0,0,0,0.55)); }
.chapter-place {
  font-size: 0.92rem; font-style: italic; color: var(--ink-dim); letter-spacing: 0.06em;
}
.chapter-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center; position: relative;
}
.chapter-grid-rev .chapter-story { order: 2; }
.chapter-grid-rev .chapter-figure { order: 1; }
.chapter-story p { color: var(--ink-dim); }
.chapter-story .lede { color: var(--ink); }
.chapter-story strong { color: var(--ink); font-weight: 600; }
.chapter-beats { list-style: none; margin-top: 1.8rem; }
.chapter-beats li {
  position: relative; padding: 0.55rem 0 0.55rem 1.9rem;
  font-size: 0.98rem; color: var(--ink);
  border-top: 1px solid rgba(233, 226, 208, 0.09);
}
.chapter-beats li::before {
  content: ''; position: absolute; left: 0.2rem; top: 1.05rem;
  width: 7px; height: 7px; transform: rotate(45deg);
}
.chapter-1 .chapter-beats li::before { background: var(--crimson); box-shadow: 0 0 8px rgba(165,37,52,.8); }
.chapter-2 .chapter-beats li::before { background: var(--steel); box-shadow: 0 0 8px rgba(77,124,174,.8); }

.chapter-figure, .cs-item { position: relative; }
.shot-open {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: none; border-radius: 6px; overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 165, 92, 0.16);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}
.shot-open img { transition: transform 0.6s var(--ease-out); }
.shot-open:hover { transform: translateY(-5px); box-shadow: 0 26px 70px rgba(0,0,0,.65), 0 0 0 1px rgba(201,165,92,.4); }
.shot-open:hover img { transform: scale(1.03); }
.chapter-figure figcaption, .cs-item figcaption {
  margin-top: 0.8rem; text-align: center;
  font-size: 0.85rem; font-style: italic; color: var(--ink-dim); letter-spacing: 0.04em;
}
.chapter-shots {
  margin-top: 3.4rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem); position: relative;
}

/* ---------- Rune gate transition ---------- */
.rune-gate {
  padding: 4.2rem 1.5rem; text-align: center; color: var(--gold);
  background: linear-gradient(180deg, var(--crimson-0), var(--night-0) 50%, var(--steel-0));
}
.rune-gate svg { max-width: 100%; height: auto; }
.rg-ring circle { fill: none; stroke: currentColor; stroke-width: 1.2; }
.rg-ring circle:last-child { opacity: 0.5; }
.rg-doors { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rg-line { stroke: currentColor; stroke-width: 1; opacity: 0.4; }
.rg-spark { fill: currentColor; opacity: 0.85; }
.rg-caption {
  margin-top: 1.1rem; font-style: italic; font-size: 0.95rem; color: var(--ink-dim);
  letter-spacing: 0.08em;
}

/* ---------- Gallery ---------- */
.gallery { padding: 8rem 0 7rem; background: linear-gradient(180deg, var(--steel-0), var(--night-1) 40%, var(--night-0)); }
.filmstrip {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.fs-item {
  position: relative; padding: 0; border: 0; cursor: zoom-in;
  background: var(--night-2); border-radius: 6px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 165, 92, 0.12);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.fs-item:nth-child(1) { grid-column: span 7; }
.fs-item:nth-child(2) { grid-column: span 5; }
.fs-item:nth-child(3) { grid-column: span 4; }
.fs-item:nth-child(4) { grid-column: span 4; }
.fs-item:nth-child(5) { grid-column: span 4; }
.fs-item:nth-child(6) { grid-column: span 5; }
.fs-item:nth-child(7) { grid-column: span 7; }
.fs-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; transition: transform 0.6s var(--ease-out); }
.fs-item:hover { transform: translateY(-4px); box-shadow: 0 20px 55px rgba(0,0,0,.6), 0 0 0 1px rgba(201,165,92,.38); }
.fs-item:hover img { transform: scale(1.04); }
.fs-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 0.7rem;
  background: linear-gradient(transparent, rgba(5, 7, 15, 0.88));
  font-family: var(--serif-display); font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-hi);
  text-align: left; opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.fs-item:hover .fs-cap, .fs-item:focus-visible .fs-cap { opacity: 1; transform: none; }
.gallery-hint {
  margin-top: 2.2rem; text-align: center;
  font-size: 0.88rem; font-style: italic; color: var(--ink-dim);
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 260; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(3, 4, 9, 0.94); }
.lb-frame {
  position: relative; z-index: 2; max-width: min(1200px, 92vw);
  display: flex; flex-direction: column; align-items: center;
}
.lb-img {
  max-width: 100%; max-height: 78vh; border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(201, 165, 92, 0.3);
}
.lb-cap { margin-top: 1rem; font-style: italic; color: var(--ink); text-align: center; padding: 0 1rem; }
.lb-count {
  margin-top: 0.3rem; font-family: var(--serif-display);
  font-size: 0.75rem; letter-spacing: 0.3em; color: var(--gold);
}
.lb-btn {
  position: absolute; z-index: 3; width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 14, 28, 0.7); color: var(--gold-hi);
  border: 1px solid rgba(201, 165, 92, 0.35); border-radius: 50%;
  cursor: pointer; transition: background 0.25s, transform 0.25s var(--ease-out);
}
.lb-btn:hover { background: rgba(201, 165, 92, 0.2); transform: scale(1.08); }
.lb-prev { left: clamp(0.6rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.6rem, 3vw, 2.5rem); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); }
.lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-close { top: clamp(0.8rem, 3vw, 2rem); right: clamp(0.8rem, 3vw, 2rem); }

/* ---------- Remaster features ---------- */
.remaster { padding: 8rem 0 7rem; background: linear-gradient(180deg, var(--night-0), var(--night-2) 55%, var(--night-0)); }
.feature-grid {
  list-style: none; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2.4vw, 1.6rem);
}
.feature {
  position: relative; padding: 2rem 1.6rem 1.8rem;
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.06), rgba(10, 14, 28, 0.4));
  border: 1px solid rgba(201, 165, 92, 0.16); border-radius: 6px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, background 0.4s;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 165, 92, 0.45);
  background: linear-gradient(165deg, rgba(201, 165, 92, 0.12), rgba(10, 14, 28, 0.5));
}
.f-glyph {
  width: 42px; height: 42px; color: var(--gold);
  stroke: currentColor; stroke-width: 1.6; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 1.1rem;
}
.feature h3 {
  font-family: var(--serif-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-hi);
  margin-bottom: 0.55rem;
}
.feature p { font-size: 0.93rem; color: var(--ink-dim); line-height: 1.65; }

/* ---------- Buyer facts ---------- */
.facts { padding: 8rem 0 7rem; background: linear-gradient(180deg, var(--night-0), var(--night-1)); }
.buy-panel {
  background: linear-gradient(170deg, rgba(201, 165, 92, 0.07), rgba(10, 14, 28, 0.55));
  border: 1px solid rgba(201, 165, 92, 0.22); border-radius: 10px;
  padding: clamp(1.6rem, 4vw, 3.2rem);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}
.buy-main {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3rem); align-items: center;
  padding-bottom: 2.4rem; margin-bottom: 2.4rem;
  border-bottom: 1px solid rgba(201, 165, 92, 0.18);
}
.buy-art { border-radius: 6px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55); }
.buy-price {
  font-family: var(--serif-display); font-weight: 900;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--gold-hi);
}
.buy-edition {
  font-family: var(--serif-display); font-size: 0.8rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim);
  margin: 0.7rem 0 1.5rem;
}
.buy-note { margin-top: 1.1rem; font-size: 0.88rem; font-style: italic; color: var(--ink-dim); max-width: 42ch; }
.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 2rem;
}
.spec dt {
  font-family: var(--serif-display); font-size: 0.72rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.4rem;
}
.spec dd { font-size: 1rem; color: var(--ink); line-height: 1.6; }
.spec-sub { font-size: 0.85rem; color: var(--ink-dim); }
.spec-wide { grid-column: span 3; }
.esrb-block {
  margin-top: 2.4rem; padding-top: 2rem;
  border-top: 1px solid rgba(201, 165, 92, 0.18);
  display: flex; align-items: center; gap: 1.6rem;
}
.esrb-block img { width: 96px; height: auto; filter: brightness(1.05); }
.esrb-grade { font-family: var(--serif-display); letter-spacing: 0.1em; font-size: 1.05rem; color: var(--ink); }
.esrb-desc { font-size: 0.9rem; color: var(--ink-dim); margin-top: 0.25rem; }

/* ---------- Finale ---------- */
.finale {
  position: relative; padding: 9rem 0 8rem; text-align: center; overflow: hidden;
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(201, 165, 92, 0.12), transparent 65%),
    linear-gradient(180deg, var(--night-1), #0d0a1e 60%, #131028);
}
.finale-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(255,255,255,.8), transparent 60%),
    radial-gradient(1px 1px at 34% 68%, rgba(255,255,255,.6), transparent 60%),
    radial-gradient(1.8px 1.8px at 58% 15%, rgba(236,217,164,.9), transparent 60%),
    radial-gradient(1px 1px at 76% 48%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 78%, rgba(236,217,164,.7), transparent 60%),
    radial-gradient(1px 1px at 22% 85%, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1.2px 1.2px at 68% 88%, rgba(255,255,255,.65), transparent 60%),
    radial-gradient(1px 1px at 45% 38%, rgba(255,255,255,.5), transparent 60%);
}
.finale-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.8rem; }
.finale-rune { color: var(--gold); }
.fr-ring { stroke: currentColor; stroke-width: 1.4; }
.fr-ring-2 { opacity: 0.55; }
.fr-gate { stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fr-star { fill: currentColor; }
.finale-title {
  font-family: var(--serif-display); font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.2; letter-spacing: 0.04em;
  text-wrap: balance;
}
.finale-copy { max-width: 56ch; color: var(--ink-dim); font-size: 1.08rem; }
.finale-meta {
  margin-top: 1.1rem; font-family: var(--serif-display);
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 3rem 0 3.4rem; background: var(--night-0);
  border-top: 1px solid rgba(201, 165, 92, 0.12);
  text-align: center;
}
.sf-legal { font-size: 0.8rem; color: var(--ink-dim); max-width: 72ch; margin: 0 auto; }
.sf-concept { margin-top: 0.9rem; font-size: 0.78rem; font-style: italic; color: rgba(183, 173, 151, 0.65); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .legend-grid { grid-template-columns: 1fr; gap: 3rem; }
  .star-counter { order: -1; }
  .chapter-grid, .chapter-grid-rev { grid-template-columns: 1fr; }
  .chapter-grid-rev .chapter-story { order: 1; }
  .chapter-grid-rev .chapter-figure { order: 2; }
  .buy-main { grid-template-columns: minmax(0, 1fr); }
  .buy-art { max-width: min(460px, 100%); margin: 0 auto; }
  .buy-price-block { text-align: center; }
  .buy-note { margin-left: auto; margin-right: auto; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .spec-wide { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-links, .nav-buy { display: none; }
  .nav-toggle { display: block; }
  .hero-heroes { width: 150px; opacity: 0.5; right: -20px; }
  .chapter-shots { grid-template-columns: 1fr; }
  .filmstrip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 0.8rem; }
  .fs-item { flex: 0 0 82%; scroll-snap-align: center; }
  .fs-cap { opacity: 1; transform: none; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-wide { grid-column: span 1; }
  .buy-price-block .btn { width: 100%; justify-content: center; padding-left: 1rem; padding-right: 1rem; }
  .esrb-block { flex-direction: column; text-align: center; }
  .lb-prev { top: auto; bottom: 5vh; left: 18vw; transform: none; }
  .lb-next { top: auto; bottom: 5vh; right: 18vw; transform: none; }
  .lb-prev:hover, .lb-next:hover { transform: scale(1.08); }
  .lb-img { max-height: 62vh; }
}

/* ---------- JS parallax bridge ---------- */
/* Parallax writes --py from JS; keep transform ownership here so the
   reveal transition only animates opacity on parallax elements. */
@media (prefers-reduced-motion: no-preference) {
  [data-parallax],
  .reveal[data-parallax],
  .reveal.in[data-parallax] {
    transform: translate3d(0, var(--py, 0px), 0);
  }
  .reveal[data-parallax] { transition: opacity 0.9s var(--ease-out); }
}

/* ---------- Scroll cue fade ---------- */
.scroll-cue { transition: opacity 0.4s var(--ease-out); }
.scroll-cue.cue-hidden { opacity: 0; pointer-events: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-cue { animation: none; }
}
