/* ═══════════════════════════════════════════════════════════
   ADVENTURE WITH FLETCHER :: Seven Spirits Studios
   Storybook design system: parchment, forest, wood & gold
   ═══════════════════════════════════════════════════════════ */

:root {
  --cream:       #F9F2E3;
  --cream-deep:  #F1E6CE;
  --parchment:   #EFE3C8;
  --ink:         #2E2418;
  --ink-soft:    #57452F;
  --wood:        #6B4A2F;
  --wood-light:  #8B5E3C;
  --green:       #1F3D2B;
  --green-deep:  #16291E;
  --night:       #101B14;
  --gold:        #E9A83C;
  --gold-light:  #F4C95D;
  --red:         #C8372D;
  --sky:         #BFE3F2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Nunito", "Segoe UI", system-ui, sans-serif;

  --shadow-soft:  0 10px 30px rgba(46,36,24,.14);
  --shadow-deep:  0 24px 60px rgba(16,27,20,.35);
  --radius: 22px;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
body[data-loading="true"] { overflow: hidden; }

::selection { background: var(--gold); color: var(--ink); }

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

/* paper grain over everything, very subtle */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 4;
  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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; }

h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: .55em;
  color: var(--ink);
}
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; }

.light { color: var(--cream); }
.ink-gold {
  background: linear-gradient(160deg, var(--gold-light) 20%, var(--gold) 55%, #C97F1E 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1em;
}
.eyebrow.light { color: var(--gold-light); }
.eyebrow.gold  { color: var(--gold); }

.lede { font-size: 1.16rem; font-weight: 600; color: var(--ink-soft); }
.section-lede { max-width: 640px; font-size: 1.08rem; color: var(--ink-soft); margin-bottom: 2.6rem; }
.section-lede.light { color: rgba(249,242,227,.82); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-weight: 800;
  font-size: 1rem; letter-spacing: .02em;
  padding: .95em 2em;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer; border: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-gold {
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 60%, #D88E20);
  color: #3A2410;
  box-shadow: 0 6px 20px rgba(233,168,60,.45), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn-gold:hover { box-shadow: 0 12px 32px rgba(233,168,60,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost {
  background: rgba(249,242,227,.12);
  color: var(--cream);
  border: 2px solid rgba(249,242,227,.65);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(249,242,227,.22); }
.btn-wood { background: var(--wood); color: var(--cream); box-shadow: var(--shadow-soft); }
.btn-wood:hover { background: var(--wood-light); }
.btn-ghost-d { background: transparent; color: var(--wood); border: 2px solid var(--wood); }
.btn-big { font-size: 1.1rem; padding: 1.1em 2.4em; }
.btn-ic { font-size: .8em; }

/* ── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(circle at 50% 42%, #244832 0%, var(--green-deep) 62%, #0D1A12 100%);
  display: grid; place-items: center;
  transition: opacity .8s ease, visibility .8s ease;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; padding: 0 24px; }
.loader-logo {
  width: min(560px, 86vw);
  margin: 26px auto 0;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 0 1.5px rgba(244,201,93,.35);
  will-change: transform;
  transform-origin: center center;
}
.loader-studio {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .42em; font-size: clamp(.8rem, 1.6vw, 1rem);
  color: var(--gold-light);
}
.loader-sub {
  font-style: italic; color: rgba(249,242,227,.6);
  font-family: var(--font-display); font-size: .95rem; letter-spacing: .12em;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(20px, 3.5vw, 44px);
  transition: background .4s ease, box-shadow .4s ease, padding .4s ease;
}
.nav.scrolled {
  background: rgba(249,242,227,.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(46,36,24,.12);
  padding-top: 10px; padding-bottom: 10px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.45rem; letter-spacing: .02em;
  color: var(--cream); text-decoration: none;
  transition: color .4s ease;
}
.nav.scrolled .nav-brand { color: var(--ink); }
.brand-target { width: 30px; height: 30px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.nav-brand:hover .brand-target { transform: rotate(180deg) scale(1.12); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.nav-links a {
  color: rgba(249,242,227,.92); text-decoration: none;
  font-weight: 700; font-size: .95rem;
  position: relative; transition: color .4s ease;
}
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 2.5px; border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  background: linear-gradient(160deg, var(--gold-light), var(--gold));
  color: #3A2410 !important;
  padding: .55em 1.3em; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(233,168,60,.4);
  transition: transform .25s ease, box-shadow .25s ease;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(233,168,60,.5); }

.nav-tools { display: flex; align-items: center; gap: 12px; }
.music-toggle {
  display: flex; align-items: center; gap: 8px;
  background: rgba(249,242,227,.14);
  border: 1.5px solid rgba(249,242,227,.45);
  color: var(--cream);
  border-radius: 999px; padding: .45em 1em;
  font-family: var(--font-body); font-weight: 700; font-size: .85rem;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: all .35s ease;
}
.nav.scrolled .music-toggle { color: var(--wood); border-color: var(--wood); background: rgba(107,74,47,.07); }
.music-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.music-toggle svg circle { fill: currentColor; stroke: none; }
.music-toggle .eq { display: none; gap: 2.5px; align-items: flex-end; height: 14px; }
.music-toggle .eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
.music-toggle .eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.music-toggle .eq i:nth-child(2) { height: 100%; animation-delay: .25s; }
.music-toggle .eq i:nth-child(3) { height: 75%; animation-delay: .5s; }
@keyframes eq { 0%,100% { transform: scaleY(.4);} 50% { transform: scaleY(1);} }
.music-toggle.playing .eq { display: flex; }
.music-toggle.playing .music-label { display: none; }

.nav-burger { display: none; }

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--green-deep);
  padding:
    max(88px, env(safe-area-inset-top))
    16px
    max(48px, env(safe-area-inset-bottom));
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  opacity: 0.75;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 72% 58% at 50% 52%,
      rgba(9, 15, 11, 0.68) 0%,
      rgba(9, 15, 11, 0.4) 52%,
      rgba(9, 15, 11, 0.1) 78%
    ),
    radial-gradient(
      ellipse at 50% 38%,
      transparent 20%,
      rgba(11, 18, 13, 0.62) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(13, 22, 16, 0.66) 0%,
      rgba(13, 22, 16, 0.18) 32%,
      rgba(13, 22, 16, 0.22) 58%,
      rgba(13, 22, 16, 0.92) 100%
    );
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1000px);
  margin-inline: auto;
  padding-inline: clamp(4px, 2vw, 20px);
  text-align: center;
}

.hero-kicker {
  max-width: 100%;
  margin: 0 auto clamp(10px, 2vh, 22px);
  padding-left: 0.3em;

  font-weight: 800;
  font-size: clamp(0.65rem, 1.5vw, 0.82rem);
  line-height: 1.4;
  letter-spacing: clamp(0.18em, 0.9vw, 0.44em);
  text-transform: uppercase;

  color: #fbf6ea;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.85),
    0 3px 22px rgba(0, 0, 0, 0.95);
}

.hero-pre {
  margin: 0 0 0.1em;

  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.7rem);
  line-height: 1.2;

  color: var(--gold-light);
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(0, 0, 0, 0.85),
    0 4px 26px rgba(0, 0, 0, 0.95);
}

.hero-title {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  max-width: 100%;
  margin: 0 0 0.12em;

  font-size: clamp(3rem, 14vw, 10.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: clamp(-0.02em, 0.15vw, 0.015em);
  white-space: nowrap;

  color: var(--gold-light);
  filter:
    drop-shadow(0 1px 0 #7a4a12)
    drop-shadow(0 2px 0 #5c3a0e)
    drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

.hero-title .ltr {
  display: inline-block;
  min-width: 0;

  background: linear-gradient(
    178deg,
    #fff3d6 8%,
    var(--gold-light) 38%,
    var(--gold) 62%,
    #c97f1e 92%
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-tm {
  flex: 0 0 auto;
  margin-top: 0.08em;
  margin-left: 0.04em;

  font-size: 0.22em;
  line-height: 1;
  color: var(--gold-light);
}

.hero-tag {
  max-width: 720px;
  margin-inline: auto;

  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.6vw, 1.45rem);
  line-height: 1.35;

  color: var(--cream);
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 12px rgba(0, 0, 0, 0.85),
    0 4px 24px rgba(0, 0, 0, 0.95);
}

.hero-tag em {
  font-weight: 700;
  font-style: italic;
}

.hero-tag span {
  display: block;
  margin-top: 0.5em;

  font-family: var(--font-body);
  font-size: 0.72em;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: clamp(0.06em, 0.5vw, 0.14em);

  color: var(--gold-light);
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(0, 0, 0, 0.85),
    0 3px 18px rgba(0, 0, 0, 0.95);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-top: clamp(20px, 3.5vh, 36px);
}

.hero-ctas > * {
  min-height: 48px;
}

/* ── Tablets and phones ────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    min-height: 100svh;
    place-items: center;
    padding-top: max(80px, env(safe-area-inset-top));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }

  .hero-video {
    transform: none;
    object-position: center center;
  }

  .hero-content {
    padding-inline: 8px;
  }

  .hero-title {
    font-size: clamp(3rem, 15vw, 7rem);
    line-height: 0.92;
  }

  .hero-kicker {
    letter-spacing: 0.22em;
  }

  .hero-ctas {
    gap: 10px;
  }
}

/* ── Small phones ──────────────────────────────────────── */

@media (max-width: 480px) {
  .hero {
    min-height: 100svh;
    padding-inline: 12px;
    padding-top: max(72px, env(safe-area-inset-top));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .hero-title {
    font-size: clamp(2.65rem, 15vw, 4.5rem);
    letter-spacing: -0.025em;
  }

  .hero-pre {
    font-size: clamp(0.95rem, 5vw, 1.25rem);
  }

  .hero-kicker {
    font-size: 0.64rem;
    line-height: 1.5;
    letter-spacing: 0.16em;
  }

  .hero-tag {
    font-size: clamp(0.92rem, 4.4vw, 1.1rem);
  }

  .hero-tag span {
    font-size: 0.68em;
    letter-spacing: 0.07em;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 340px);
    margin-inline: auto;
  }

  .hero-ctas > * {
    width: 100%;
    min-height: 50px;
  }

  .hero-shade {
    background:
      radial-gradient(
        ellipse 95% 55% at 50% 48%,
        rgba(9, 15, 11, 0.58) 0%,
        rgba(9, 15, 11, 0.38) 55%,
        rgba(9, 15, 11, 0.16) 80%
      ),
      linear-gradient(
        to bottom,
        rgba(13, 22, 16, 0.72) 0%,
        rgba(13, 22, 16, 0.18) 35%,
        rgba(13, 22, 16, 0.32) 62%,
        rgba(13, 22, 16, 0.95) 100%
      );
  }
}

/* ── Short landscape phones ───────────────────────────── */

@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: 100svh;
    place-items: center;
    padding-block: 64px 28px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 11vw, 5.5rem);
  }

  .hero-kicker {
    margin-bottom: 8px;
  }

  .hero-ctas {
    margin-top: 16px;
  }
}

/* ── Accessibility and performance ────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    transform: none;
  }

  .hero-title .ltr,
  .hero-particles {
    animation: none !important;
  }
}

/* ── Section dividers ───────────────────────────────────── */
.divider { display: block; width: 100%; height: clamp(40px, 7vw, 90px); margin-top: -1px; }
.div-cream path { fill: var(--cream); }
.div-green path { fill: var(--green); }
.divider.flip { position: absolute; top: 0; left: 0; transform: rotate(180deg) translateY(99%); }

/* ── Story ──────────────────────────────────────────────── */
.story { background: var(--cream); padding-top: clamp(30px, 4vw, 60px); }
.story-grid {
  display: grid; grid-template-columns: minmax(280px, 1fr) 1.25fr;
  gap: clamp(34px, 6vw, 80px); align-items: center;
}
.story-art {
  display: flex; flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.4vw, 14px);
}
.polaroid {
  background: #fff;
  padding: 14px 14px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft), 0 2px 6px rgba(46,36,24,.1);
  position: relative; z-index: 2;
  width: clamp(220px, 78%, 320px);
}
/* scrapbook scatter: alternate left/right with a little overlap */
.ph-1 { align-self: flex-start; z-index: 3; }
.ph-2 { align-self: flex-end;   margin-top: clamp(-22px, -2vw, -10px); z-index: 2; }
.ph-3 { align-self: flex-start; margin-top: clamp(-22px, -2vw, -10px); z-index: 1; }
.polaroid img { border-radius: 6px; }
.polaroid figcaption {
  font-family: var(--font-display); font-style: italic;
  text-align: center; padding-top: 10px; color: var(--ink-soft); font-size: .95rem;
}
.polaroid::before {  /* washi tape */
  content: ""; position: absolute; top: -14px; left: 50%;
  width: 110px; height: 30px; margin-left: -55px;
  background: rgba(233,168,60,.5);
  transform: rotate(-3deg);
  border-radius: 2px;
}
.tilt-l { transform: rotate(-3.5deg); }
.tilt-r { transform: rotate(4deg); }
.polaroid { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 4; }

.story-copy p + p { margin-top: 1em; }

.stats {
  margin-top: clamp(54px, 7vw, 90px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  background: linear-gradient(165deg, #FFFDF6, var(--cream-deep));
  border: 1.5px solid rgba(107,74,47,.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: clamp(22px, 3.4vw, 40px) clamp(16px, 3vw, 40px);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--red);
  line-height: 1.1;
}
.stat-label { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

/* ── Characters ─────────────────────────────────────────── */
.section-green { background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%); }
.characters { padding-top: clamp(90px, 11vw, 150px); }

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: 1rem;
}
.char-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--green-deep);
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  border: none; padding: 0; text-align: left;
  transform-style: preserve-3d;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), box-shadow .45s ease;
}
.char-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 26px 56px rgba(0,0,0,.5); }
.char-card img.char-still {
  width: 100%; aspect-ratio: 16/10.5; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.char-card:hover img.char-still { transform: scale(1.07); }
.char-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,18,12,.88) 0%, transparent 46%);
  pointer-events: none;
}
.char-label {
  position: absolute; left: 22px; right: 22px; bottom: 16px; z-index: 2;
  color: var(--cream);
}
.char-name {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.7rem; line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
}
.char-role { font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.char-play {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(233,168,60,.92);
  display: grid; place-items: center;
  color: #3A2410; font-size: .85rem;
  opacity: 0; transform: scale(.6);
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
}
.char-card:hover .char-play { opacity: 1; transform: scale(1); }

.supporting { margin-top: clamp(60px, 7vw, 90px); }
.supporting h3 { margin-bottom: .4em; }
.support-lede { color: rgba(249,242,227,.75); max-width: 620px; margin-bottom: 1.8rem; font-size: .98rem; }
.support-row {
  display: flex; gap: 18px;
  overflow-x: auto; overflow-y: hidden; padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
  cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.support-row.dragging { cursor: grabbing; scroll-snap-type: none; }
/* WebKit (Safari/Chrome): custom always-visible scrollbar; Safari
   ignores scrollbar-color and auto-hides overlay bars otherwise */
.support-row::-webkit-scrollbar { height: 10px; }
.support-row::-webkit-scrollbar-track { background: rgba(249,242,227,.14); border-radius: 999px; }
.support-row::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
.support-row::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }
.support-card {
  flex: 0 0 272px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, rgba(249,242,227,.1), rgba(249,242,227,.04));
  border: 1.5px solid rgba(244,201,93,.3);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
  padding: 0; text-align: left; cursor: default;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .35s ease, box-shadow .35s ease;
}
.support-card:hover { transform: translateY(-7px); border-color: rgba(244,201,93,.75); box-shadow: 0 20px 44px rgba(0,0,0,.45); }
.support-photo { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--green-deep); }
.support-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.support-card:hover .support-photo img { transform: scale(1.06); }
.support-meta { padding: 16px 18px 20px; }
.plate-name {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.25rem; color: var(--cream);
}
.plate-tag {
  display: block;
  font-weight: 800; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light); margin: 2px 0 10px;
}
.plate-line { display: block; font-size: .88rem; color: rgba(249,242,227,.75); line-height: 1.55; }

/* ── World ──────────────────────────────────────────────── */
.world { background: var(--cream); padding-top: clamp(90px, 11vw, 150px); }
.world-strip {
  display: flex; gap: clamp(16px, 2vw, 26px);
  overflow-x: auto;
  padding: 10px clamp(20px, 4vw, 48px) 26px;
  scroll-snap-type: x proximity;
  cursor: grab;
}
.world-strip::-webkit-scrollbar { height: 10px; }
.world-strip::-webkit-scrollbar-track { background: rgba(107,74,47,.14); border-radius: 999px; }
.world-strip::-webkit-scrollbar-thumb { background: var(--wood); border-radius: 999px; }
.world-strip::-webkit-scrollbar-thumb:hover { background: var(--wood-light); }
/* Firefox only: standard scrollbar properties (setting these in WebKit
   would disable the custom ::-webkit-scrollbar styling above) */
@supports (-moz-appearance: none) {
  .support-row { scrollbar-color: var(--gold) rgba(249,242,227,.14); scrollbar-width: thin; }
  .world-strip { scrollbar-color: var(--wood) rgba(107,74,47,.14); scrollbar-width: thin; }
}
.world-strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.world-card {
  flex: 0 0 clamp(300px, 42vw, 520px);
  scroll-snap-align: center;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16/9;
}
.world-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 6s ease;
}
.world-card:hover img { transform: scale(1.12); }
.world-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 34px 20px 14px;
  background: linear-gradient(to top, rgba(20,16,8,.78), transparent);
  color: var(--cream);
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem;
  letter-spacing: .02em;
}
.world-hint { text-align: center; font-weight: 700; letter-spacing: .22em; font-size: .75rem; text-transform: uppercase; color: var(--wood-light); margin: 4px 0 0; }

/* ── Episode carousel flip cards (live inside .world-strip) ── */
.ep-card {
  flex: 0 0 clamp(230px, 27vw, 280px);
  scroll-snap-align: start;
  height: 230px;
  border: none; background: none; padding: 0; cursor: pointer;
  perspective: 1200px;
  -webkit-tap-highlight-color: transparent;
}
.ep-inner {
  position: relative; display: block;
  width: 100%; height: 100%;
  transition: transform .6s cubic-bezier(.4,.1,.2,1);
  -webkit-transform-style: preserve-3d; transform-style: preserve-3d;
}
.ep-card.flipped .ep-inner { transform: rotateY(180deg); }
.ep-face {
  position: absolute; inset: 0;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; flex-direction: column;
  border: 1.5px solid rgba(107,74,47,.16);
  border-top: 5px solid var(--ep-color, var(--gold));
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(46,36,24,.1);
  text-align: left;
  transition: box-shadow .35s ease;
}
.ep-card:hover .ep-face { box-shadow: 0 16px 34px rgba(46,36,24,.2); }
/* WebKit ignores backface-visibility here, so face visibility is
   driven by an opacity swap timed to the middle of the .6s flip;
   the rotateY transforms keep each face oriented correctly */
.ep-front {
  background: linear-gradient(165deg, #FFFDF6, var(--cream-deep));
  transform: rotateY(0deg);
  opacity: 1;
  transition: opacity 0s linear .3s;
}
.ep-back {
  background: linear-gradient(165deg, var(--ep-color, var(--gold)), #2E2418);
  transform: rotateY(180deg);
  color: var(--cream);
  opacity: 0;
  transition: opacity 0s linear .3s;
}
.ep-card.flipped .ep-front { opacity: 0; }
.ep-card.flipped .ep-back { opacity: 1; }
.ep-num {
  font-family: var(--font-body); font-weight: 800;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ep-color, var(--gold));
}
.ep-back .ep-num { color: rgba(255,255,255,.7); }
.ep-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.2rem; line-height: 1.22; color: var(--ink);
  margin: .5em 0 auto;
}
.ep-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wood-light); margin-top: 14px;
}
.ep-hint {
  font-size: .66rem; font-weight: 700; letter-spacing: .08em;
  color: rgba(107,74,47,.5); margin-top: 6px;
}
.ep-desc {
  font-size: .9rem; line-height: 1.5; color: var(--cream);
  margin-top: .55em; overflow-y: auto;
}

/* ── Watch ──────────────────────────────────────────────── */
.section-night {
  background:
    radial-gradient(ellipse at 50% 0%, #1C3326 0%, var(--night) 58%),
    var(--night);
}
.watch { padding: clamp(90px, 11vw, 150px) 0; }

.cinema { max-width: 980px; margin: 0 auto; }
.cinema-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 10px #241A10,
    0 0 0 12px rgba(233,168,60,.55),
    0 34px 80px rgba(0,0,0,.6);
}
.cinema-frame video { width: 100%; aspect-ratio: 16/9; }
.cinema-frame iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.cinema-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, rgba(16,27,20,.1), rgba(16,27,20,.45));
  border: none; cursor: pointer;
  transition: opacity .4s ease;
}
.cinema-play svg { width: clamp(74px, 9vw, 104px); filter: drop-shadow(0 8px 26px rgba(0,0,0,.55)); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.cinema-play:hover svg { transform: scale(1.1); }
.cinema-play circle { fill: rgba(233,168,60,.95); }
.cinema-play path { fill: #3A2410; }
.cinema-play.hidden { opacity: 0; pointer-events: none; }
.cinema-caption { text-align: center; color: rgba(249,242,227,.75); margin-top: 18px; font-size: .98rem; }
.cinema-caption strong { color: var(--gold-light); }

/* end-of-teaser call to action overlay */
.cinema-cta {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 8px;
  padding: clamp(20px, 4vw, 48px);
  background: linear-gradient(to top, rgba(8,12,9,.93), rgba(8,12,9,.82));
  backdrop-filter: blur(3px);
  animation: ctaIn .5s ease;
}
@keyframes ctaIn { from { opacity: 0; } to { opacity: 1; } }
.cinema-cta-kicker { font-weight: 800; font-size: .76rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-light); }
.cinema-cta h3 { font-family: var(--font-display); font-weight: 900; color: var(--cream); font-size: clamp(1.4rem, 3vw, 2.1rem); }
.cinema-cta-line { color: rgba(249,242,227,.82); max-width: 460px; font-size: .98rem; }
.cinema-cta-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ── Videogame ──────────────────────────────────────────── */
.gamesec { background: var(--cream); padding-top: clamp(90px, 11vw, 150px); }
.game-grid {
  display: grid; grid-template-columns: 1.25fr 1fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}
.game-shot a { display: block; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-deep); }
.game-shot img { width: 100%; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.game-shot a:hover img { transform: scale(1.04); }
.game-shot-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #6B3226;
  pointer-events: none;
}
.game-shot-play::before {
  content: ""; position: absolute;
  width: clamp(76px, 9vw, 110px); height: clamp(76px, 9vw, 110px);
  border-radius: 50%;
  background: rgba(244,201,93,.94);
  box-shadow: 0 10px 34px rgba(0,0,0,.45);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.game-shot a:hover .game-shot-play::before { transform: scale(1.1); }
.game-shot-play span { position: relative; }
.game-points { list-style: none; display: grid; gap: 12px; }
.game-points li {
  padding: 14px 18px 14px 44px;
  position: relative;
  background: #FFFDF6;
  border: 1.5px solid rgba(107,74,47,.14);
  border-radius: 12px;
  font-size: .95rem; color: var(--ink-soft);
}
.game-points li::before {
  content: "➳"; position: absolute; left: 16px; top: 13px;
  color: var(--gold); font-size: 1.1rem;
}
.game-points strong { color: var(--ink); display: block; }
.game-ctas { margin-top: 20px; }
.game-note { margin-top: 12px; font-size: .82rem; color: var(--wood-light); font-weight: 700; }
.game-strip {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(30px, 4vw, 48px);
}
.game-strip figure { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-soft); background: #FFFDF6; }
.game-strip img { width: 100%; }
.game-strip figcaption {
  padding: 10px 16px 12px;
  font-family: var(--font-display); font-style: italic;
  font-size: .92rem; color: var(--ink-soft);
}

/* ── Music ──────────────────────────────────────────────── */
.music { padding-top: clamp(90px, 11vw, 150px); }
.music-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(34px, 6vw, 80px); align-items: center;
}
.jukebox {
  display: flex; align-items: center; gap: 20px;
  background: rgba(249,242,227,.08);
  border: 1.5px solid rgba(249,242,227,.22);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 32px);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.juke-play {
  flex: 0 0 74px; width: 74px; height: 74px;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(160deg, var(--gold-light), var(--gold) 70%);
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(233,168,60,.45);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.juke-play:hover { transform: scale(1.08); }
.juke-play svg { width: 30px; fill: #3A2410; }
.juke-play .ic-pause { display: none; }
.jukebox.playing .ic-play { display: none; }
.jukebox.playing .ic-pause { display: block; }
.juke-meta { flex: 1; min-width: 0; }
.juke-title { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--cream); }
.juke-sub { font-size: .85rem; color: rgba(249,242,227,.65); margin-bottom: 10px; }
.juke-bar { height: 6px; background: rgba(249,242,227,.18); border-radius: 4px; overflow: hidden; }
.juke-progress { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 4px; transition: width .35s linear; }
.juke-eq { display: flex; gap: 4px; align-items: flex-end; height: 38px; }
.juke-eq i { width: 5px; background: var(--gold); border-radius: 3px; height: 30%; transition: height .2s; }
.jukebox.playing .juke-eq i { animation: eq .8s ease-in-out infinite; }
.jukebox.playing .juke-eq i:nth-child(1) { animation-delay: 0s; height: 55%; }
.jukebox.playing .juke-eq i:nth-child(2) { animation-delay: .15s; height: 90%; }
.jukebox.playing .juke-eq i:nth-child(3) { animation-delay: .3s; height: 65%; }
.jukebox.playing .juke-eq i:nth-child(4) { animation-delay: .45s; height: 100%; }
.jukebox.playing .juke-eq i:nth-child(5) { animation-delay: .6s; height: 70%; }

/* ── Invest ─────────────────────────────────────────────── */
.invest {
  position: relative;
  padding: clamp(100px, 13vw, 180px) 0;
  overflow: hidden;
  background: var(--night);
}
.invest-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .5;
}
.invest-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(11,17,12,.72) 75%),
    linear-gradient(to bottom, rgba(11,17,12,.86), rgba(11,17,12,.5) 35%, rgba(11,17,12,.9));
}
.invest-particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.invest-content { position: relative; z-index: 2; text-align: center; max-width: 860px; }
.invest-content h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.invest-lede { font-size: 1.14rem; max-width: 700px; margin: 0 auto 2.2rem; color: rgba(249,242,227,.85); }
.invest-points {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
  text-align: left;
  max-width: 780px; margin: 0 auto 2.6rem;
}
.invest-points li {
  position: relative;
  padding: 16px 20px 16px 52px;
  background: rgba(249,242,227,.07);
  border: 1.5px solid rgba(249,242,227,.16);
  border-radius: 14px;
  color: rgba(249,242,227,.88);
  font-size: .97rem;
  backdrop-filter: blur(4px);
}
.invest-points li strong { color: var(--gold-light); display: block; }
.invest-points .invest-game-link { color: var(--gold-light); text-underline-offset: 3px; }
.invest-points li::before {
  content: "➳";
  position: absolute; left: 18px; top: 16px;
  color: var(--gold); font-size: 1.25rem;
}
.invest-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Movie teaser (Through the Eyes of the King) ────────── */
.nav-movie {
  font-family: var(--font-display) !important;
  font-style: italic;
  color: var(--gold-light) !important;
}
.nav.scrolled .nav-links a.nav-movie { color: #9A6A14 !important; }

.movie-teaser {
  position: relative;
  padding: clamp(110px, 15vw, 200px) 0;
  background: #07070A;
  overflow: hidden;
  text-align: center;
}
.movie-teaser-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .55;
}
.movie-teaser-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 10%, rgba(7,7,10,.78) 90%),
    linear-gradient(to bottom, rgba(7,7,10,.92), transparent 30%, transparent 65%, rgba(7,7,10,.95));
}
.movie-teaser-content { position: relative; z-index: 2; }
.movie-teaser-kicker {
  font-weight: 800; font-size: .72rem;
  letter-spacing: .44em; text-transform: uppercase;
  color: rgba(249,242,227,.65);
  margin-bottom: 2em;
}
.movie-teaser-pre {
  font-family: "Cinzel", var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  letter-spacing: .34em; text-indent: .34em; text-transform: uppercase;
  color: var(--cream);
}
.movie-teaser-title {
  font-family: "Cinzel", var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  letter-spacing: .1em; text-indent: .1em;
  line-height: 1.05;
  background: linear-gradient(172deg, #FFF6DC 5%, #EFCB68 30%, #C9A227 60%, #8A6C12 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)) drop-shadow(0 0 44px rgba(201,162,39,.25));
}
.movie-teaser-line {
  font-size: clamp(.95rem, 1.8vw, 1.12rem);
  color: rgba(249,242,227,.85);
  margin: 1.6em 0 2.2em;
}
.movie-teaser-btn {
  background: linear-gradient(170deg, #EFCB68, #C9A227 70%);
  color: #1A1405;
  border-radius: 0;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  letter-spacing: .1em; text-transform: uppercase; font-size: .92rem;
  box-shadow: 0 0 0 1px rgba(239,203,104,.4), 0 8px 30px rgba(201,162,39,.3);
}
.movie-teaser-btn:hover { box-shadow: 0 0 0 1px rgba(239,203,104,.75), 0 14px 44px rgba(201,162,39,.45); }

.footer-king { color: rgba(249,242,227,.7); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #0A120D;
  text-align: center;
  padding: 56px 20px 48px;
  color: rgba(249,242,227,.55);
}
.footer-logo { width: 440px; max-width: 86vw; margin: 0 auto 20px; mix-blend-mode: screen; }
.footer-credit {
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 1.05rem; color: var(--gold-light);
  margin-bottom: 10px;
}
.footer-credit strong { font-weight: 800; }
.footer-line { font-size: .92rem; }
.footer-line em { color: var(--gold-light); font-style: italic; }
.footer-rights { max-width: 700px; margin: 12px auto 0; font-size: .74rem; line-height: 1.65; color: rgba(249,242,227,.42); }
.footer-tag { font-size: .82rem; margin-top: 12px; font-style: italic; opacity: .75; }

/* ── Trademark marks ────────────────────────────────────── */
.brand-tm { font-size: .42em; vertical-align: super; font-weight: 700; margin-left: 1px; }
.hero-tm {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(.8rem, 2vw, 1.5rem);
  vertical-align: super;
  color: var(--gold-light); -webkit-text-fill-color: var(--gold-light);
  margin-left: .06em;
}

/* ── Character modal ────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,15,10,.82);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  width: min(1020px, 100%);
  max-height: min(88vh, 880px);
  overflow-y: auto;
  background: var(--cream);
  border-radius: 24px;
  box-shadow: var(--shadow-deep);
  display: grid; grid-template-columns: 1.2fr 1fr;
  animation: modalIn .45s cubic-bezier(.34,1.4,.64,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(36px) scale(.96); } to { opacity: 1; transform: none; } }
.modal-media { background: #000; display: flex; align-items: center; border-radius: 24px 0 0 24px; overflow: hidden; }
.modal-media video { width: 100%; }
.modal-body { padding: clamp(22px, 3vw, 38px); }
.modal-role { font-weight: 800; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.modal-name { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; margin: .1em 0 .35em; }
.modal-bio { color: var(--ink-soft); font-size: .98rem; }
.modal-traits { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.modal-traits span {
  font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(233,168,60,.18); color: #9A6A14;
  border: 1.5px solid rgba(233,168,60,.5);
  padding: .35em 1em; border-radius: 999px;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--ink); color: var(--cream);
  font-size: 1rem; font-weight: 700;
  transition: transform .25s ease, background .25s ease;
}
.modal-close:hover { transform: rotate(90deg) scale(1.08); background: var(--red); }

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10,15,10,.92);
  display: grid; place-items: center;
  padding: 4vh 4vw;
  backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  animation: modalIn .4s cubic-bezier(.34,1.4,.64,1);
}
.lightbox-cap { color: rgba(249,242,227,.8); font-weight: 700; margin-top: 14px; }
.lightbox-close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(249,242,227,.5);
  background: transparent; color: var(--cream);
  font-size: 1.1rem; cursor: pointer;
  transition: all .25s ease;
}
.lightbox-close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }

/* ── Reveal helpers (JS adds .in) ───────────────────────── */
.reveal-up, .reveal-left, .reveal-scale {
  opacity: 0;
  transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(36px); }
.reveal-left  { transform: translateX(-44px); }
.reveal-scale { transform: scale(.93) translateY(20px); }
.reveal-up.in, .reveal-left.in, .reveal-scale.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1020px) {
  .modal-card { grid-template-columns: 1fr; max-width: 620px; }
  .modal-media { border-radius: 24px 24px 0 0; }
}

@media (max-width: 880px) {
  /* while the full-screen menu is open, drop the nav's backdrop-filter
     and background: backdrop-filter would otherwise make .nav the
     containing block for the fixed overlay, collapsing it to the nav
     bar when scrolled. The burger and brand still float above it. */
  .nav.menu-open {
    background: transparent !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
  }
  .nav.menu-open .nav-brand { color: var(--cream); }
  .nav.menu-open .nav-burger { border-color: rgba(249,242,227,.45) !important; background: rgba(249,242,227,.14) !important; }
  .nav-links {
    position: fixed; inset: 0;
    background: var(--green-deep);
    flex-direction: column; justify-content: center;
    gap: 30px;
    font-size: 1.25rem;
    transform: translateY(-104%);
    visibility: hidden;
    transition: transform .5s cubic-bezier(.6,.05,.2,1), visibility 0s linear .5s;
    z-index: 40;
  }
  .nav-links.open { transform: none; visibility: visible; transition: transform .5s cubic-bezier(.6,.05,.2,1), visibility 0s; }
  .nav-links a, .nav.scrolled .nav-links a { color: var(--cream); font-size: 1.3rem; }
  .nav-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px;
    background: rgba(249,242,227,.14);
    border: 1.5px solid rgba(249,242,227,.45);
    border-radius: 12px;
    cursor: pointer; align-items: center;
    z-index: 45;
    transition: all .3s ease;
  }
  .nav.scrolled .nav-burger { border-color: var(--wood); background: rgba(107,74,47,.08); }
  .nav-burger i { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--cream); transition: all .35s ease; }
  .nav.scrolled .nav-burger i { background: var(--wood); }
  .nav-burger.open i { background: var(--cream); }
  .nav-burger.open i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-burger.open i:nth-child(2) { opacity: 0; }
  .nav-burger.open i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .story-grid { grid-template-columns: 1fr; }
  .story-art { margin: 0 auto; max-width: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .stats .stat:last-child { grid-column: 1 / -1; }
  .game-grid { grid-template-columns: 1fr; }
  .game-strip { grid-template-columns: 1fr; }
  .music-grid { grid-template-columns: 1fr; }
  .invest-points { grid-template-columns: 1fr; }
  .music-label { display: none; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .clip-row { grid-template-columns: repeat(2, 1fr); }
  .support-card { flex-basis: 250px; }
}

/* ── Plush collection (coming soon) ─────────────────────── */
.plush-soon {
  display: inline-block; vertical-align: middle;
  margin-left: 14px; position: relative; top: -4px;
  background: linear-gradient(180deg, #F4C95D, #E9A83C);
  color: #4a2e08;
  border-radius: 999px; padding: .42em 1.1em;
  font-family: var(--font-body, inherit);
  font-size: .82rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(233,168,60,.35);
}
.plush-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(30px, 4vw, 48px);
}
.plush-card {
  margin: 0;
  background: #FFFDF6;
  border: 1.5px solid rgba(107,74,47,.14);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}
.plush-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }
.plush-card img {
  display: block; width: 100%;
  aspect-ratio: 3 / 2; object-fit: contain;
  background: #F2ECDF;
}
.plush-card figcaption {
  text-align: center; padding: 12px 10px 14px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; color: var(--ink);
}
@media (max-width: 980px) {
  .plush-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .plush-grid { grid-template-columns: 1fr; }
  .plush-soon { display: block; width: max-content; margin: 10px 0 0; top: 0; }
}

/* ── Prayer portal ──────────────────────────────────────── */
.pray-portal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px; }
.pray-backdrop { position: absolute; inset: 0; background: rgba(10, 16, 11, .72); backdrop-filter: blur(4px); }
.pray-card {
  position: relative; max-width: 520px; width: 100%;
  background: linear-gradient(165deg, #FFFDF6, var(--cream-deep));
  border: 1.5px solid rgba(244,201,93,.55);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  text-align: center;
  box-shadow: 0 34px 90px rgba(0,0,0,.5);
}
.pray-close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(107,74,47,.3);
  background: #FFFDF6; color: var(--wood);
  font-size: 1rem; font-weight: 800; cursor: pointer;
}
.pray-close:hover { background: var(--cream-deep); }
.pray-mark { width: 52px; height: 52px; margin: 0 auto 12px; display: block; }
.pray-card h3 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--ink);
  margin: 0 0 10px;
}
.pray-lede { color: var(--ink-soft); font-size: .97rem; margin: 0 0 18px; }
.pray-points {
  list-style: none; text-align: left;
  display: grid; gap: 10px; margin: 0 0 22px; padding: 0;
}
.pray-points li {
  padding: 12px 16px 12px 42px; position: relative;
  background: #FFFDF6;
  border: 1.5px solid rgba(107,74,47,.14);
  border-radius: 12px;
  font-size: .93rem; color: var(--ink-soft);
}
.pray-points li::before {
  content: "🙏"; position: absolute; left: 14px; top: 11px; font-size: .95rem;
}

/* ── Capture mode (static full-page screenshots) ────────── */
body.capture .reveal-up, body.capture .reveal-left, body.capture .reveal-scale {
  opacity: 1 !important; transform: none !important; transition: none !important;
}
body.capture .loader { display: none; }
body.capture .hero-content { opacity: 1 !important; }

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

/* ═══════════════════════════════════════════════════════════
   MOBILE FIXES — 2026-07-26
   Three verified defects, fixed in cascade order after the
   original rules so nothing above needs to be re-specified.
   ═══════════════════════════════════════════════════════════ */

/* ── FIX 1 ────────────────────────────────────────────────
   The full-screen burger menu was `justify-content: center`
   with no scrolling. On a phone in LANDSCAPE the 8 links are
   taller than the 390px viewport, so the overflow spilled off
   BOTH ends: "Story" was cut off the top and "Invest" — the
   primary CTA — sat entirely below the fold, unreachable.
   Centred flex overflow is not scrollable to the start edge,
   so the ::before/::after auto-margin pair is used: it keeps
   the menu optically centred when it fits and lets it scroll
   normally when it doesn't.                                */
@media (max-width: 880px) {
  .nav-links {
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    gap: clamp(16px, 3.2vh, 30px);
    padding:
      calc(env(safe-area-inset-top, 0px) + 72px)
      20px
      calc(env(safe-area-inset-bottom, 0px) + 28px);
  }
  /* flexible spacers: centre when short, scroll when tall */
  .nav-links::before,
  .nav-links::after { content: ""; margin: auto; flex: 0 0 0; }

  /* keep the links from being squeezed by the scroll container */
  .nav-links a { flex: 0 0 auto; }
}

/* short viewports (landscape phones): tighten so the whole
   menu fits without scrolling wherever it still can        */
@media (max-width: 880px) and (max-height: 540px) {
  .nav-links { gap: 12px; padding-top: calc(env(safe-area-inset-top, 0px) + 62px); }
  .nav-links a,
  .nav.scrolled .nav-links a { font-size: 1.05rem; }
}

/* ── FIX 2 ────────────────────────────────────────────────
   The jukebox stayed a flex ROW at every width. At 320px the
   play button (74px) + gaps + EQ left .juke-meta just 83px,
   so "Jesus Right in the Middle" broke one word per line and
   the progress bar was crushed. Stack it on small screens.  */
@media (max-width: 560px) {
  .jukebox {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
  }
  .juke-play {
    flex: 0 0 auto;
    width: 68px; height: 68px;
    margin: 0 auto;
  }
  .juke-meta { width: 100%; }
  .juke-title { font-size: 1.22rem; }
  .juke-sub { margin-bottom: 12px; }
  .juke-eq { justify-content: center; height: 26px; }
}

/* ── FIX 3 ────────────────────────────────────────────────
   `minmax(290px, 1fr)` cannot shrink below its 290px floor,
   so on a 320px phone the character cards resolved to a fixed
   290px column inside a 280px content box — 10px wider than
   every other section, sliced off by body{overflow-x:hidden}.
   `min(290px, 100%)` lets the floor collapse to the
   container width on narrow screens.                        */
.char-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}
