/* ============================================================
   1. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-site);
  background-attachment: fixed;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   2. DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colours */
  --color-brand-primary:        #1B2A6B;
  --color-brand-secondary:      #7EC8E3;
  --color-brand-accent:         #F5A623;
  --color-brand-warm:           #E8A455;
  --color-brand-light:          #FAF6EF;

  /* Backgrounds */
  --color-bg-base:              #1B2A6B;
  --color-bg-elevated:          #243680;
  --color-bg-overlay:           #0D1A42;
  --color-bg-inverse:           #FAF6EF;
  --color-bg-warm:              #2A1F0E;

  /* Text */
  --color-text-primary:         #FAF6EF;
  --color-text-secondary:       rgba(250,246,239,0.70);
  --color-text-muted:           rgba(250,246,239,0.40);
  --color-text-inverse:         #1B2A6B;
  --color-text-accent:          #F5A623;
  --color-text-link:            #7EC8E3;

  /* Actions */
  --color-action-primary:       #F5A623;
  --color-action-primary-hover: #FAC96A;
  --color-action-primary-text:  #1B2A6B;
  --color-action-ghost-border:  rgba(250,246,239,0.30);
  --color-action-ghost-text:    #FAF6EF;
  --color-action-ghost-hover:   rgba(250,246,239,0.08);

  /* Typography */
  --font-display:    'Fredoka', sans-serif;
  --font-body:       'Nunito', sans-serif;
  --font-japanese:   'M PLUS Rounded 1c', sans-serif;
  --font-journal:    'Caveat', cursive;

  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  --text-xs:    0.64rem;
  --text-sm:    0.8rem;
  --text-base:  1rem;
  --text-lg:    1.25rem;
  --text-xl:    1.563rem;
  --text-2xl:   1.953rem;
  --text-3xl:   2.441rem;
  --text-4xl:   3.052rem;
  --text-5xl:   3.815rem;
  --text-6xl:   4.768rem;

  --leading-tight:    1.1;
  --leading-snug:     1.2;
  --leading-normal:   1.3;
  --leading-relaxed:  1.5;
  --leading-loose:    1.6;
  --leading-reading:  1.75;

  --tracking-tight:   -0.02em;
  --tracking-normal:   0em;
  --tracking-wide:     0.04em;
  --tracking-wider:    0.08em;
  --tracking-widest:   0.12em;

  /* Spacing */
  --space-1:    4px;
  --space-2:    8px;
  --space-3:    12px;
  --space-4:    16px;
  --space-5:    20px;
  --space-6:    24px;
  --space-8:    32px;
  --space-10:   40px;
  --space-12:   48px;
  --space-16:   64px;
  --space-20:   80px;
  --space-24:   96px;
  --space-32:   128px;
  --space-40:   160px;
  --space-48:   192px;

  --padding-section-y:          96px;
  --padding-section-x:          80px;
  --padding-section-y-mobile:   64px;
  --padding-section-x-mobile:   24px;
  --width-content:               1200px;
  --width-narrow:                760px;

  /* Radius */
  --radius-xs:    4px;
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-2xl:   32px;
  --radius-pill:  9999px;
  --radius-full:  50%;
  --radius-card:  16px;
  --radius-modal: 24px;
  --radius-scene: 16px;

  /* Shadows */
  --shadow-sm:  0 2px 4px rgba(27,42,107,0.12), 0 1px 2px rgba(27,42,107,0.08);
  --shadow-md:  0 4px 8px rgba(27,42,107,0.16), 0 2px 4px rgba(27,42,107,0.10);
  --shadow-lg:  0 8px 24px rgba(27,42,107,0.24), 0 4px 8px rgba(27,42,107,0.12);
  --shadow-glow-gold:         0 0 16px rgba(245,166,35,0.40), 0 0 32px rgba(245,166,35,0.20);
  --shadow-glow-gold-intense: 0 0 24px rgba(245,166,35,0.60), 0 0 48px rgba(245,166,35,0.30);
  --shadow-glow-hoshi:        0 0 16px rgba(126,200,227,0.40), 0 0 32px rgba(126,200,227,0.20);
  --shadow-button-primary:      0 4px 16px rgba(245,166,35,0.40), 0 2px 4px rgba(245,166,35,0.20);
  --shadow-button-primary-hover:0 8px 24px rgba(245,166,35,0.50), 0 4px 8px rgba(245,166,35,0.30);
  --shadow-card:  0 0 0 1.5px rgba(245,166,35,0.25), 0 8px 32px rgba(27,42,107,0.40);
  --shadow-card-hover: 0 0 0 2px rgba(245,166,35,0.50), 0 0 24px rgba(245,166,35,0.20), 0 12px 48px rgba(27,42,107,0.50);
  --shadow-scene-frame: 0 0 0 2px rgba(245,166,35,0.35), 0 0 50px rgba(245,166,35,0.12), 0 24px 80px rgba(0,0,0,0.70);
  --shadow-modal: 0 32px 96px rgba(0,0,0,0.60), 0 0 0 1px rgba(245,166,35,0.15);

  /* Borders */
  --border-subtle:        1px solid rgba(250,246,239,0.10);
  --border-default:       1px solid rgba(250,246,239,0.20);
  --border-accent:        1.5px solid rgba(245,166,35,0.40);
  --border-accent-strong: 2px solid rgba(245,166,35,0.70);
  --border-focus:         2px solid rgba(245,166,35,0.80);

  /* Motion */
  --duration-fast:     100ms;
  --duration-normal:   200ms;
  --duration-slow:     300ms;
  --duration-slower:   450ms;
  --duration-slowest:  600ms;
  --duration-scene:    800ms;
  --duration-reveal:   1200ms;

  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-gentle:  cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Z-index */
  --z-base:     0;
  --z-raised:   10;
  --z-dropdown: 100;
  --z-overlay:  300;
  --z-modal:    400;
  --z-tease:    900;

  /* Journal */
  --journal-question-color: #F5A623;
  --journal-answer-color:   #3D2000;

  /* Surface & UI */
  --color-surface:    rgba(255,255,255,0.06);
  --color-bg-alt:     #0f0a1e;
  --color-border:     rgba(250,246,239,0.15);
  --color-bg-dark:    #0f0a1e;

  /* Site-wide unified gradient */
  --bg-site: linear-gradient(160deg, #1B2A6B 0%, #1a0d3b 100%);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
}

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--color-text-secondary);
}

/* ============================================================
   4. GLOBAL UTILITIES
   ============================================================ */

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-brand-accent);
  color: var(--color-brand-primary);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  z-index: var(--z-tease);
  transition: top var(--duration-fast) var(--ease-out);
}
.skip-link:focus {
  top: var(--space-4);
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--duration-slowest) var(--ease-gentle),
    transform var(--duration-slowest) var(--ease-gentle);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal.delay-1 { transition-delay: 150ms; }
.scroll-reveal.delay-2 { transition-delay: 300ms; }
.scroll-reveal.delay-3 { transition-delay: 450ms; }
.scroll-reveal.delay-4 { transition-delay: 600ms; }

/* Star field (reusable background overlay) */
.star-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.star-field::before,
.star-field::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.50) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 40%, rgba(245,166,35,0.45) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 10%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 65%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px 1px at 68% 25%, rgba(245,166,35,0.35) 0%, transparent 100%),
    radial-gradient(2px 2px at 78% 50%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 80%, rgba(245,166,35,0.40) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 35%, rgba(255,255,255,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(2px 2px at 48% 85%, rgba(245,166,35,0.25) 0%, transparent 100%);
}
.star-field::after {
  background-image:
    radial-gradient(1px 1px at 5%  55%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 32% 20%, rgba(245,166,35,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 45%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(2px 2px at 75% 15%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 70%, rgba(245,166,35,0.35) 0%, transparent 100%);
}

/* Primary CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 16px 40px;
  background: var(--color-action-primary);
  color: var(--color-action-primary-text);
  font-family: var(--font-display);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-lg);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-button-primary);
  transition: all var(--duration-normal) var(--ease-spring);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--color-action-primary-hover);
  box-shadow: var(--shadow-button-primary-hover);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-sm);
}

/* Ghost CTA button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 28px;
  background: transparent;
  color: var(--color-action-ghost-text);
  font-family: var(--font-body);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-base);
  border: 1px solid var(--color-action-ghost-border);
  border-radius: var(--radius-pill);
  transition: all var(--duration-normal) var(--ease-default);
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--color-action-ghost-hover);
  border-color: rgba(250,246,239,0.45);
  color: #FAF6EF;
}

/* Focus styles (global) */
:focus-visible {
  outline: 2px solid var(--color-brand-accent);
  outline-offset: 3px;
}

/* ============================================================
   5. SECTION 00: TEASE
   ============================================================ */
.section-tease {
  position: fixed;
  inset: 0;
  z-index: var(--z-tease);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-scene) var(--ease-out);
}
.section-tease.tease-hidden {
  opacity: 0;
  pointer-events: none;
}

.tease-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.tease-controls {
  position: absolute;
  bottom: var(--space-8);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  z-index: 1;
}

.tease-sound-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.50);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.80);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-default);
}
.tease-sound-btn:hover {
  background: rgba(0,0,0,0.70);
  border-color: rgba(255,255,255,0.40);
  color: #fff;
}
.tease-sound-btn.is-unmuted .sound-x-1,
.tease-sound-btn.is-unmuted .sound-x-2 {
  display: none;
}

.tease-skip-btn {
  padding: var(--space-2) var(--space-5);
  background: rgba(0,0,0,0.50);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius-pill);
  color: rgba(255,255,255,0.70);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-wide);
  transition: all var(--duration-normal) var(--ease-default);
}
.tease-skip-btn:hover {
  background: rgba(0,0,0,0.70);
  color: #fff;
  border-color: rgba(255,255,255,0.40);
}

/* ============================================================
   6. SECTION 01: HERO
   ============================================================ */
.section-hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: clamp(48px, 8vh, 96px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('Assets/hero/hero-background-MASTER.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.00) 30%,
    rgba(0, 0, 0, 0.30) 100%
  );
  z-index: 1;
}
.section-hero {
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  width: 100%;
  padding: 0 var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  font-size: 4.5rem;
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  text-shadow: 0 2px 8px rgba(0,0,0,0.60), 0 4px 32px rgba(0,0,0,0.45);
  max-width: 800px;
}

/* ── Illustrated tagline between hero and invitation ──────── */
.section-tagline {
  display: flex;
  justify-content: center;
  padding: var(--space-2) var(--padding-section-x) 0;
}
.tagline-img {
  display: block;
  width: 100%;
  max-width: 540px;
  height: auto;
  filter: invert(1) hue-rotate(180deg) contrast(1.2) brightness(1.3);
  mix-blend-mode: screen;
}

.hero-subheadline {
  font-family: var(--font-body);
  font-size: 1.5rem;
  line-height: var(--leading-relaxed);
  color: rgba(250,246,239,0.90);
  text-shadow: 0 1px 6px rgba(0,0,0,0.55), 0 2px 16px rgba(0,0,0,0.35);
}

/* Hero entrance animations (triggered by JS after tease) */
.hero-animate {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-scene) var(--ease-gentle),
    transform var(--duration-scene) var(--ease-gentle);
}
.hero-animate.delay-1 { transition-delay: 200ms; }
.hero-animate.delay-2 { transition-delay: 400ms; }
.hero-animate.hero-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Auto-fade: text fades out after holding, no vertical movement */
.hero-animate.hero-fading {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 2s var(--ease-gentle) !important;
}

/* Adults' sign */
.adults-sign {
  position: absolute;
  top: 5%;
  right: 3%;
  z-index: 3;
  width: 120px;
  padding: 0;
  border-radius: var(--radius-sm);
  transform-origin: top center;
  animation: sign-sway 2s ease-in-out infinite;
  min-width: 44px;
  min-height: 44px;
}
.adults-sign img {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.30);
}
.adults-sign:hover {
  animation-play-state: paused;
}
.adults-sign:focus-visible {
  outline: 2px solid var(--color-brand-accent);
  outline-offset: 4px;
}

@keyframes sign-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%       { transform: rotate(2deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250,246,239,0.40);
  animation: scroll-bounce 2s ease-in-out infinite;
  animation-delay: 1200ms;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   16. PARENTS' PANEL
   ============================================================ */
.panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 26, 66, 0.70);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slower) var(--ease-out);
}
.panel-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.parents-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 360px;
  background: var(--color-brand-primary);
  border-left: 2px solid rgba(245, 166, 35, 0.30);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.40);
  border-radius: 16px 0 0 16px;
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--duration-slower) var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: var(--space-8);
  gap: var(--space-8);
  overflow-y: auto;
}
.parents-panel.panel-open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.panel-heading {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-accent);
  line-height: var(--leading-snug);
  max-width: 220px;
}

.panel-close-btn {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  border: 1px solid rgba(250,246,239,0.20);
  color: rgba(250,246,239,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal) var(--ease-default);
}
.panel-close-btn:hover {
  border-color: rgba(250,246,239,0.45);
  color: var(--color-text-primary);
  background: rgba(250,246,239,0.08);
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.panel-link {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: color var(--duration-normal) var(--ease-default);
  position: relative;
}
.panel-link::before {
  content: '\2605';
  color: var(--color-brand-accent);
  font-size: 0.65em;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--duration-normal) var(--ease-out), transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}
.panel-link:hover {
  color: var(--color-brand-accent);
}
.panel-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.panel-divider {
  border: none;
  border-top: 1px solid rgba(250,246,239,0.15);
  margin: var(--space-2) 0;
}

.panel-cta-group {
  margin-top: auto;
}

.panel-try-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-brand-accent);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-default);
}
.panel-try-link:hover {
  color: var(--color-action-primary-hover);
}
.panel-try-link svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.panel-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
  font-size: var(--text-base);
}

.panel-lang-toggle {
  display: flex;
  justify-content: center;
  padding-top: var(--space-4);
  border-top: var(--border-subtle);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(250,246,239,0.08);
  border: 1px solid rgba(250,246,239,0.20);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-default);
}
.lang-toggle:hover {
  background: rgba(250,246,239,0.12);
}
.lang-en, .lang-jp {
  color: rgba(250,246,239,0.50);
  transition: all var(--duration-normal);
}
.lang-en.active, .lang-jp.active {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-bold);
}
.lang-sep {
  color: rgba(250,246,239,0.30);
}

@media (max-width: 480px) {
  .parents-panel {
    width: 100vw;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-top: 2px solid rgba(245,166,35,0.30);
    height: auto;
    max-height: 90vh;
    top: auto;
    bottom: 0;
    transform: translateY(100%);
  }
  .parents-panel.panel-open {
    transform: translateY(0);
  }
}

/* ============================================================
   7. SECTION 02: INVITATION
   ============================================================ */

/* ── Animated star drift keyframes ─────────────────────────── */
@keyframes star-drift-a {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(12px, -8px); }
  100% { transform: translate(0, 0); }
}
@keyframes star-drift-b {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-10px, 6px); }
  100% { transform: translate(0, 0); }
}

/* ── Unified site-wide star field on content sections ───────── */
.section-invitation,
.section-world-map,
.section-how-it-works,
.section-characters,
.section-demo,
.section-pricing,
.section-faq {
  position: relative;
}
.section-invitation::after,
.section-world-map::after,
.section-how-it-works::after,
.section-characters::after,
.section-demo::after,
.section-pricing::after,
.section-faq::after {
  content: '';
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at  8% 12%, rgba(255,255,255,0.40) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 38%, rgba(245,166,35,0.35)  0%, transparent 100%),
    radial-gradient(2px 2px at 38%  8%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 53% 62%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 66% 22%, rgba(245,166,35,0.30)  0%, transparent 100%),
    radial-gradient(2px 2px at 77% 48%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 84% 78%, rgba(245,166,35,0.30)  0%, transparent 100%),
    radial-gradient(1px 1px at 91% 32%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 14% 72%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 46% 88%, rgba(245,166,35,0.20)  0%, transparent 100%),
    radial-gradient(1px 1px at 30% 55%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 68%, rgba(255,255,255,0.25) 0%, transparent 100%);
  z-index: 0;
  animation: star-drift-a 45s ease-in-out infinite;
}
/* Alternate drift direction for variety */
.section-world-map::after,
.section-pricing::after {
  animation: star-drift-b 55s ease-in-out infinite;
}
.section-invitation > *,
.section-world-map > *,
.section-how-it-works > *,
.section-characters > *,
.section-demo > *,
.section-pricing > *,
.section-faq > * {
  position: relative;
  z-index: 1;
}

/* ── Section divider lines ──────────────────────────────────── */
/* Glowing gold rule between each dark section */
.section-world-map::before,
.section-how-it-works::before,
.section-characters::before,
.section-demo::before,
.section-pricing::before,
.section-faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,166,35,0.20) 20%,
    rgba(245,166,35,0.55) 50%,
    rgba(245,166,35,0.20) 80%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(245,166,35,0.25);
  pointer-events: none;
  z-index: 2;
}

.section-invitation {
  padding: var(--space-8) var(--padding-section-x);
  background:
    radial-gradient(ellipse 55% 60% at 12% 55%, rgba(126,200,227,0.13) 0%, transparent 55%),
    transparent;
  overflow: hidden;
}

.invitation-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 50% at 90% 10%, rgba(245,166,35,0.06) 0%, transparent 50%);
  z-index: 0;
}

.invitation-tagline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-brand-accent);
  text-align: center;
  line-height: var(--leading-snug);
  opacity: 0.90;
  max-width: 700px;
  margin: 0 auto var(--space-16);
  position: relative;
  z-index: 1;
}

.invitation-inner {
  max-width: var(--width-content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-20);
  align-items: center;
}

.invitation-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invitation-hoshi-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,200,227,0.22) 0%, rgba(126,200,227,0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.invitation-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  filter: drop-shadow(0 0 20px rgba(126,200,227,0.50)) drop-shadow(0 0 48px rgba(126,200,227,0.25));
  animation: hoshi-float 6s ease-in-out infinite;
}

@keyframes hoshi-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-14px); }
}

.invitation-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.invitation-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.invitation-accent {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-accent);
  line-height: var(--leading-snug);
}

.invitation-body {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

.invitation-cta {
  margin-top: var(--space-3);
}
.invitation-sign-link {
  display: inline-block;
  align-self: flex-start;
  transition: transform var(--duration-normal) var(--ease-out);
}
.invitation-sign-link:hover {
  transform: scale(1.05);
}
.invitation-sign {
  height: 120px;
  width: auto;
}

@media (max-width: 1024px) {
  .invitation-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-12);
  }
  .invitation-image img { max-width: 320px; }
  .invitation-text { align-items: center; }
  .invitation-hoshi-glow { width: 260px; height: 260px; }
}

@media (max-width: 768px) {
  .section-invitation {
    padding: var(--padding-section-y-mobile) var(--padding-section-x-mobile);
  }
  .invitation-headline { font-size: var(--text-3xl); }
  .invitation-accent { font-size: var(--text-xl); }
  .invitation-image img { max-width: 260px; }
}

/* ============================================================
   8. SECTION 03: WORLD MAP
   ============================================================ */
.section-world-map {
  padding: var(--padding-section-y) var(--padding-section-x);
  background: transparent;
}

.world-map-header {
  max-width: var(--width-content);
  margin: 0 auto var(--space-12);
  text-align: center;
}

.world-map-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text-accent);
  margin-bottom: var(--space-4);
}

.world-map-sub {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.world-map-container {
  position: relative;
  max-width: var(--width-content);
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-scene-frame);
}

.world-map-image {
  width: 100%;
  display: block;
}

.map-hotspot-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.map-hotspot-poly {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.map-hotspot-poly:hover {
  fill: rgba(245, 166, 35, 0.15);
  stroke: rgba(245, 166, 35, 0.5);
  stroke-width: 0.3;
}

.map-preview-panel {
  position: absolute;
  background: rgba(13, 26, 66, 0.95);
  border: var(--border-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  width: 240px;
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  z-index: 10;
}
.map-preview-panel.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}
.map-see-inside {
  display: inline-block;
  margin-top: var(--space-2);
  color: var(--color-brand-accent);
  font-weight: var(--font-weight-semibold);
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
}
.map-see-inside:hover { text-decoration: underline; }

/* World preview overlay */
.world-preview-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.world-preview-overlay.open {
  display: flex;
}
.world-preview-box {
  position: relative;
  max-width: 680px;
  width: 90%;
  background: rgba(13, 26, 66, 0.95);
  border: var(--border-accent);
  border-radius: var(--radius-xl);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.world-preview-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}
.world-preview-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.5);
  border: none;
  color: var(--color-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.world-preview-close:hover { background: rgba(0,0,0,0.7); }

.map-preview-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: rgba(250,246,239,0.10);
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal);
}
.map-preview-close:hover {
  background: rgba(250,246,239,0.20);
  color: var(--color-text-primary);
}

.map-preview-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-brand-accent);
  margin-bottom: var(--space-3);
}

.map-preview-hook {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

@media (max-width: 768px) {
  .section-world-map {
    padding: var(--padding-section-y-mobile) 0;
  }
  .world-map-header { padding: 0 var(--padding-section-x-mobile); }
  .world-map-container { border-radius: 0; overflow-x: auto; }
  .world-map-image { min-width: 700px; }
  .map-preview-panel {
    width: calc(100% - var(--space-8));
    max-width: 280px;
  }
}

/* ============================================================
   9. SECTION 04: TWO DOORS
   ============================================================ */
.section-two-doors {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 1380 / 752;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.two-doors-bg {
  position: absolute;
  inset: 0;
  background-image: url('Assets/sections/two-doors-final.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.doors-container {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.doors-hotspot-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.door-poly {
  fill: transparent;
  stroke: transparent;
  cursor: pointer;
  transition: fill 0.3s ease, stroke 0.3s ease;
}
.door-poly:hover {
  fill: rgba(245, 166, 35, 0.1);
  stroke: rgba(245, 166, 35, 0.4);
  stroke-width: 0.3;
}
.door-adults   { left: 74%; top: 2%; width: 13%; height: 92%; }

.door-panel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  background: rgba(13, 26, 66, 0.96);
  border: var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  width: 320px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-gentle), transform var(--duration-slow) var(--ease-spring);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.door-panel.visible { opacity: 1; pointer-events: all; transform: translateY(-50%) scale(1); }
.door-panel-children { left: 5%; }
.door-panel-adults   { right: 5%; }

.door-panel-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(250,246,239,0.10);
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal);
}
.door-panel-close:hover { background: rgba(250,246,239,0.20); color: var(--color-text-primary); }

.door-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-brand-accent);
  line-height: var(--leading-snug);
}

.door-panel-body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

@media (max-width: 768px) {
  .section-two-doors { border-radius: var(--radius-md); }
  .door-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    width: 100%;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .door-panel.visible { transform: translateY(0); }
}

/* ============================================================
   10. SECTION 05: CHARACTERS CAROUSEL
   ============================================================ */

/* Sticky pin wrapper — provides scroll budget for curtain animation */
.curtain-pin-wrapper {
  position: relative;
  height: calc(100vh + 800px); /* 480px curtain animation + 320px hold buffer */
}

.section-characters {
  width: 100vw;
  height: 100svh;
  background: transparent;
  position: sticky;
  top: 0;
  overflow: hidden;
  padding-bottom: var(--space-16);
}

/* Gradient fade at the top edge of the curtain — blends into the nav/dark background */
.curtain-fade-img {
  position: absolute;
  top: -700px;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 30;
  pointer-events: none;
  mix-blend-mode: lighten;
}

/* Scroll-driven curtain canvas — sits above all section content */
.curtain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .curtain-canvas { display: none; }
  .curtain-pin-wrapper { height: auto; }
  .section-characters { position: relative; }
}

.characters-header {
  padding: var(--padding-section-y) var(--padding-section-x) var(--space-12);
}

.characters-headline {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: var(--color-brand-accent);
}

.carousel-track {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { padding-inline: 22.5vw; padding-top: var(--padding-section-y); }

.character-panel {
  min-width: 55vw;
  width: 55vw;
  height: 600px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-12);
  position: relative;
  flex-shrink: 0;
  opacity: 0.55;
  transform: scale(0.93);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.character-panel.active {
  opacity: 1;
  transform: scale(1);
}

.character-image {
  height: 380px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--space-8);
  filter: drop-shadow(0 0 16px rgba(126,200,227,0.40)) drop-shadow(0 0 32px rgba(126,200,227,0.20));
}

.character-video {
  display: none;
}
.character-canvas-anim {
  height: 380px;
  width: auto;
  margin-bottom: var(--space-8);
  display: none;
  filter: drop-shadow(0 0 16px rgba(126,200,227,0.40)) drop-shadow(0 0 32px rgba(126,200,227,0.20));
}
/* Hoshi in characters section — match invitation section appearance */
.character-panel-hoshi {
  position: relative;
}
.character-hoshi-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126,200,227,0.22) 0%, rgba(126,200,227,0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
}
.character-panel-hoshi .character-image {
  max-width: 560px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(126,200,227,0.50)) drop-shadow(0 0 48px rgba(126,200,227,0.25));
}

.character-panel-hoshi.playing .character-image { display: none; }
.character-panel-hoshi.playing .character-hoshi-glow { display: none; }
.character-panel-hoshi.playing .character-canvas-anim {
  display: block;
  height: auto;
  max-height: 305px;
}
.character-panel-whale.playing .character-image { display: none; }
.character-panel-whale.playing .character-canvas-anim { display: block; }
.character-panel-fox.playing .character-image { display: none; }
.character-panel-fox.playing .character-canvas-anim { display: block; }
.character-panel-tanuki.playing .character-image { display: none; }
.character-panel-tanuki.playing .character-canvas-anim { display: block; }

.character-sign {
  height: 80px;
  width: auto;
  object-fit: contain;
  margin-bottom: var(--space-2);
}

.character-name {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-accent);
  text-align: center;
  margin-bottom: var(--space-3);
}

.character-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 400px;
  line-height: var(--leading-relaxed);
}

.character-panel-hedgehog.playing .character-image { display: none; }
.character-panel-hedgehog.playing .character-canvas-anim { display: block; }
.character-panel-axolotl.playing .character-image { display: none; }
.character-panel-axolotl.playing .character-canvas-anim { display: block; }

.character-panel-cat {
  justify-content: center;
}
.character-panel-cat .character-image {
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(250,246,239,0.25);
  transition: all var(--duration-slow) var(--ease-spring);
  cursor: pointer;
  border: none;
}
.carousel-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--color-brand-accent);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(250, 246, 239, 0.5);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-4);
  transition: color var(--duration-normal) var(--ease-default);
  z-index: 2;
}
.carousel-arrow:hover { color: var(--color-brand-accent); }
.carousel-arrow-prev { left: 24vw; }
.carousel-arrow-next { right: 24vw; }

@media (max-width: 768px) {
  .carousel-arrow { display: none; }
  .character-panel { height: 500px; min-width: 80vw; width: 80vw; }
  .character-image { height: 280px; }
  .characters-header { padding: var(--padding-section-y-mobile) var(--padding-section-x-mobile) var(--space-8); }
  .characters-headline { font-size: var(--text-4xl); }
}

/* ============================================================
   11. SECTION 06: DEMO WIDGET
   ============================================================ */
.section-demo {
  padding: var(--padding-section-y) var(--padding-section-x);
  background: transparent;
  position: relative;
}

.demo-header {
  max-width: var(--width-content);
  margin: 0 auto var(--space-12);
  text-align: center;
}

.demo-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.demo-subhead {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.demo-frame {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-scene-frame);
  overflow: hidden;
  background: transparent;
}

.demo-room-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1008;
}

.demo-room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 300ms var(--ease-gentle);
}
.demo-room-image.fading { opacity: 0; }

.demo-room-transition {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease-default);
  z-index: 5;
}
.demo-room-transition.active { opacity: 0.6; }

.demo-hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.demo-hotspot {
  position: absolute;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}
/* Standard tap/book/exit hotspots — faint gold glow on hover */
.demo-hotspot--tap:hover,
.demo-hotspot--book:hover,
.demo-hotspot--exit:hover {
  background: rgba(245, 166, 35, 0.12);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.2);
}
/* Exit hotspots — always a very faint glow to hint they lead somewhere */
.demo-hotspot--exit {
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.08);
}
.demo-hotspot--exit:hover {
  box-shadow: 0 0 24px rgba(245, 166, 35, 0.3);
}
/* Easter eggs — completely invisible, no hover, no cursor */
.demo-hotspot--easter_egg {
  cursor: default;
}
.demo-hotspot--easter_egg:hover {
  background: transparent;
  box-shadow: none;
}

/* ── 1. Custom cursor — desktop only ─────────────────────── */
.world-scene {
  cursor: url('Assets/icons/cursors/cursor-book-default-32.png') 16 16, pointer;
}
.world-scene .book-target:hover {
  cursor: url('Assets/icons/cursors/cursor-book-open-32.png') 16 16, pointer;
}
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .world-scene {
    cursor: url('Assets/icons/cursors/cursor-book-default-64.png') 32 32, pointer;
  }
  .world-scene .book-target:hover {
    cursor: url('Assets/icons/cursors/cursor-book-open-64.png') 32 32, pointer;
  }
}

/* ── 2. On-object book indicator — touch only ────────────── */
@keyframes bookPulse {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1.0); }
  50%  { opacity: 1.0; transform: translate(-50%, -50%) scale(1.05); }
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.0); }
}
.book-indicator {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: url('Assets/icons/indicators/book-indicator-48.png') center / contain no-repeat;
  pointer-events: none;
  z-index: 3;
  animation: bookPulse 2.5s ease-in-out infinite;
}
@media (hover: none) and (pointer: coarse) {
  .book-indicator { display: block; }
}
@media (hover: none) and (pointer: coarse) and (min-width: 768px) {
  .book-indicator {
    width: 64px; height: 64px;
    background-image: url('Assets/icons/indicators/book-indicator-64.png');
  }
}
@media (hover: none) and (pointer: coarse) and (min-width: 1024px) {
  .book-indicator {
    width: 96px; height: 96px;
    background-image: url('Assets/icons/indicators/book-indicator-96.png');
  }
}
.book-target:hover .book-indicator,
.book-target:active .book-indicator {
  animation: none;
  opacity: 1.0;
  transform: translate(-50%, -50%) scale(1.1);
  transition: transform 200ms ease, opacity 200ms ease;
}

/* ── 3. Easter egg targets — no indicator ────────────────── */
.world-scene .easter-egg-target {
  cursor: default !important;
}
.world-scene .easter-egg-target:hover {
  background: transparent !important;
  box-shadow: none !important;
}

/* ── 4. Sealed exit targets — subtle glow ────────────────── */
.world-scene .sealed-exit {
  transition: box-shadow 400ms ease;
}
.world-scene .sealed-exit:hover {
  box-shadow: 0 0 12px 4px rgba(245, 166, 35, 0.25);
}
.demo-hotspot.book-read { border-color: rgba(245, 166, 35, 0.30); }
.demo-hotspot.book-read::after {
  content: '\2605';
  position: absolute;
  top: -10px;
  right: -6px;
  color: var(--color-brand-accent);
  font-size: 14px;
}

.demo-progress {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 4;
  display: flex;
  gap: var(--space-1);
}
.demo-progress-star {
  font-size: 1.1rem;
  color: rgba(245, 166, 35, 0.30);
  transition: all var(--duration-slow) var(--ease-spring);
}
.demo-progress-star.earned {
  color: var(--color-brand-accent);
  filter: drop-shadow(0 0 6px rgba(245,166,35,0.60));
}

.demo-nav {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.demo-nav-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(27, 42, 107, 0.75);
  border: 1.5px solid rgba(245, 166, 35, 0.35);
  color: var(--color-brand-accent);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: all var(--duration-normal) var(--ease-default);
}
.demo-nav-btn:hover { background: rgba(27, 42, 107, 0.95); border-color: rgba(245, 166, 35, 0.70); }
.demo-nav-btn.nav-hidden { display: none; }
.demo-nav-up    { top: var(--space-4);    left: 50%;  transform: translateX(-50%); }
.demo-nav-right { top: 50%;  right: var(--space-4); transform: translateY(-50%); }
.demo-nav-down  { bottom: var(--space-4); left: 50%;  transform: translateX(-50%); }
.demo-nav-left  { top: 50%;  left: var(--space-4); transform: translateY(-50%); }

.demo-minimap {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 24px);
  grid-template-rows: repeat(3, 24px);
  gap: 2px;
}
.minimap-room {
  width: 24px;
  height: 24px;
  background: rgba(27, 42, 107, 0.70);
  border: 1px solid rgba(245, 166, 35, 0.20);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: rgba(250, 246, 239, 0.40);
  font-family: var(--font-body);
  font-weight: var(--font-weight-bold);
}
.minimap-room.active {
  background: rgba(245, 166, 35, 0.25);
  border-color: rgba(245, 166, 35, 0.60);
  color: var(--color-brand-accent);
}
.mm-observatory { grid-column: 2; grid-row: 1; }
.mm-garden      { grid-column: 1; grid-row: 2; }
.mm-main        { grid-column: 2; grid-row: 2; }
.mm-bedroom     { grid-column: 3; grid-row: 2; }
.mm-basement    { grid-column: 2; grid-row: 3; }
.mm-kitchen     { grid-column: 3; grid-row: 3; }

/* Book overlay */
.demo-book-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: transparent;
  transform: translateY(100%);
  transition: transform var(--duration-slow) var(--ease-spring);
}
.demo-book-overlay.open { transform: translateY(0); }

.book-spread {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}
.book-page {
  padding: var(--space-10);
  display: flex;
  align-items: flex-start;
  overflow-y: auto;
}
.book-page-left  { background: #FDF5E4; border-right: 2px solid rgba(139,90,43,0.20); }
.book-page-right { background: #FBF0DA; }
.book-page-content {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: #3D2000;
  line-height: var(--leading-reading);
  max-width: 320px;
}

.book-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-5);
  background: #EDE0C4;
  border-top: 1px solid rgba(139,90,43,0.20);
  flex-shrink: 0;
}
.book-controls .btn-ghost {
  color: #3D2000;
  border-color: rgba(61,32,0,0.25);
}
.book-controls .btn-ghost:hover { background: rgba(61,32,0,0.06); border-color: rgba(61,32,0,0.40); }
.book-controls .btn-ghost:disabled { opacity: 0.35; cursor: not-allowed; }
.book-page-indicator { font-family: var(--font-body); font-size: var(--text-sm); color: rgba(61,32,0,0.60); }

.book-close-btn {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0,0,0,0.20);
  color: rgba(61,32,0,0.80);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-normal);
}
.book-close-btn:hover { background: rgba(0,0,0,0.35); }

/* Hoshi overlay */
.demo-hoshi-overlay {
  position: absolute;
  inset: 0;
  z-index: 21;
  background: rgba(13, 26, 66, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-10);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-slow) var(--ease-gentle);
}
.demo-hoshi-overlay.open { opacity: 1; pointer-events: all; }

.hoshi-overlay-img {
  height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(126,200,227,0.40)) drop-shadow(0 0 32px rgba(126,200,227,0.20));
  flex-shrink: 0;
}

.hoshi-overlay-content {
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hoshi-question {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.hoshi-answers { display: flex; flex-direction: column; gap: var(--space-3); }

.hoshi-answer-btn {
  padding: var(--space-3) var(--space-5);
  background: rgba(250,246,239,0.08);
  border: 1px solid rgba(250,246,239,0.20);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  text-align: left;
  transition: all var(--duration-normal);
  cursor: pointer;
}
.hoshi-answer-btn:hover {
  background: rgba(245,166,35,0.12);
  border-color: rgba(245,166,35,0.40);
  color: var(--color-text-primary);
}

.hoshi-response {
  padding: var(--space-4);
  background: rgba(245,166,35,0.10);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-brand-accent);
  color: var(--color-text-secondary);
  font-size: var(--text-base);
  line-height: var(--leading-loose);
}

.hoshi-continue-btn { align-self: flex-start; }

/* Post-demo conversion */
.demo-conversion {
  position: absolute;
  inset: 0;
  z-index: 22;
  background: var(--color-bg-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-10);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-scene) var(--ease-gentle);
}
.demo-conversion.open { opacity: 1; pointer-events: all; }

.conversion-hoshi {
  height: 160px;
  width: auto;
  filter: drop-shadow(0 0 24px rgba(245,166,35,0.60)) drop-shadow(0 0 48px rgba(245,166,35,0.30));
}
.conversion-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-brand-accent);
}
.conversion-body {
  max-width: 440px;
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

@media (max-width: 768px) {
  .section-demo { padding: var(--padding-section-y-mobile) 0; }
  .demo-header { padding: 0 var(--padding-section-x-mobile) var(--space-8); }
  .demo-frame { border-radius: 0; }
  .book-spread { grid-template-columns: 1fr; }
  .book-page-right { display: none; }
  .book-page { padding: var(--space-6); }
  .demo-hoshi-overlay { flex-direction: column; text-align: center; padding: var(--space-8) var(--space-6); }
  .hoshi-overlay-img { height: 120px; }
}

/* ============================================================
   Section 07 — Pricing (flip cards)
   ============================================================ */
.section-pricing {
  padding: var(--padding-section-y) var(--padding-section-x);
  background: transparent;
}

.pricing-inner {
  max-width: 900px;
  margin: 0 auto;
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.pricing-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.pricing-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

/* ── Border Glow (ReactBits-style, gold palette) ─────────────── */

.pricing-card-wrap {
  /* Dynamic props — updated by JS on pointermove */
  --edge-proximity: 0;
  --cursor-angle: 45deg;

  /* Tuning */
  --edge-sensitivity: 30;
  --color-sensitivity: 50;  /* edge-sensitivity + 20 */
  --glow-padding: 40px;
  --cone-spread: 25;
  --fill-opacity: 0.35;
  --card-bg: #12103a;

  /* Gold glow colours */
  --glow-color:    hsl(45deg 95% 65% / 100%);
  --glow-color-60: hsl(45deg 95% 65% /  60%);
  --glow-color-50: hsl(45deg 95% 65% /  50%);
  --glow-color-40: hsl(45deg 95% 65% /  40%);
  --glow-color-30: hsl(45deg 95% 65% /  30%);
  --glow-color-20: hsl(45deg 95% 65% /  20%);
  --glow-color-10: hsl(45deg 95% 65% /  10%);

  /* Gold mesh gradient layers */
  --gradient-one:   radial-gradient(at 80% 55%, #F5A623 0px, transparent 50%);
  --gradient-two:   radial-gradient(at 69% 34%, #FFD166 0px, transparent 50%);
  --gradient-three: radial-gradient(at  8%  6%, #FFAB07 0px, transparent 50%);
  --gradient-four:  radial-gradient(at 41% 38%, #F5A623 0px, transparent 50%);
  --gradient-five:  radial-gradient(at 86% 85%, #FFD166 0px, transparent 50%);
  --gradient-six:   radial-gradient(at 82% 18%, #FFC85A 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51%  4%, #F5A623 0px, transparent 50%);
  --gradient-base:  linear-gradient(#F5A623 0 100%);

  position: relative;
  border-radius: var(--radius-lg);
  perspective: 1400px;
  /* NOTE: no isolation here — it forces flat 3D and breaks card flip */
  display: grid;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    rgba(0,0,0,0.10) 0px  1px  2px,
    rgba(0,0,0,0.10) 0px  2px  4px,
    rgba(0,0,0,0.10) 0px  4px  8px,
    rgba(0,0,0,0.10) 0px  8px 16px,
    rgba(0,0,0,0.10) 0px 16px 32px,
    rgba(0,0,0,0.10) 0px 32px 64px;
}

/* Shared base for both pseudo-elements */
.pricing-card-wrap::before,
.pricing-card-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}

/* Fade out smoothly when not hovering */
.pricing-card-wrap:not(:hover)::before,
.pricing-card-wrap:not(:hover)::after {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

/* ── Coloured mesh-gradient border (only visible near cursor) ── */
.pricing-card-wrap::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%)  padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one)   border-box,
    var(--gradient-two)   border-box,
    var(--gradient-three) border-box,
    var(--gradient-four)  border-box,
    var(--gradient-five)  border-box,
    var(--gradient-six)   border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base)  border-box;
  opacity: calc(
    (var(--edge-proximity) - var(--color-sensitivity)) /
    (100 - var(--color-sensitivity))
  );
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black        calc(var(--cone-spread) * 1%),
    transparent  calc((var(--cone-spread) + 15) * 1%),
    transparent  calc((100 - var(--cone-spread) - 15) * 1%),
    black        calc((100 - var(--cone-spread)) * 1%)
  );
}

/* ── Soft ambient fill near edges ──────────────────────────── */
.pricing-card-wrap::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one)   padding-box,
    var(--gradient-two)   padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four)  padding-box,
    var(--gradient-five)  padding-box,
    var(--gradient-six)   padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base)  padding-box;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%,  transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%,  transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%,  transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%,  transparent 40%),
    conic-gradient(from var(--cursor-angle) at center,
      transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(
    var(--fill-opacity) *
    (var(--edge-proximity) - var(--color-sensitivity)) /
    (100 - var(--color-sensitivity))
  );
  mix-blend-mode: soft-light;
}

/* ── Outer glow ring — follows cursor around the border ─────── */
.pricing-card-wrap > .edge-light {
  position: absolute;
  inset: calc(var(--glow-padding) * -1);
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%
  );
  opacity: calc(
    (var(--edge-proximity) - var(--edge-sensitivity)) /
    (100 - var(--edge-sensitivity))
  );
  mix-blend-mode: plus-lighter;
  transition: opacity 0.25s ease-out;
}

.pricing-card-wrap:not(:hover) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.pricing-card-wrap > .edge-light::before {
  content: '';
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0  0px  1px var(--glow-color),
    inset 0 0  1px  0px var(--glow-color-60),
    inset 0 0  3px  0px var(--glow-color-50),
    inset 0 0  6px  0px var(--glow-color-40),
    inset 0 0 15px  0px var(--glow-color-30),
    inset 0 0 25px  2px var(--glow-color-20),
    inset 0 0 50px  2px var(--glow-color-10),
          0 0  1px  0px var(--glow-color-60),
          0 0  3px  0px var(--glow-color-50),
          0 0  6px  0px var(--glow-color-40),
          0 0 15px  0px var(--glow-color-30),
          0 0 25px  2px var(--glow-color-20),
          0 0 50px  2px var(--glow-color-10);
}

/* ── Flip card ───────────────────────────────────────────────── */

/* This intermediate div MUST pass the 3D context down, or the
   front/back backface-visibility trick won't work.
   It is also the element that physically flips.                  */
.pricing-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.pricing-card {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  cursor: pointer;
  background: #12103a;
}

.pricing-card.flipped .pricing-card-inner {
  transform: rotateY(180deg);
}

.pricing-card-front,
.pricing-card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ── Front face ──────────────────────────────────────────────── */
.pricing-card-front {
  position: relative;
}

.pricing-card-front .pricing-card-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.pricing-card-wrap:hover .pricing-card-front .pricing-card-image {
  transform: scale(1.03);
}

.pricing-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: linear-gradient(to top, rgba(10,8,40,0.92) 0%, transparent 100%);
}

.pricing-card-name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: #fff;
  margin: 0 0 var(--space-1);
}

.pricing-card-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ── Back face ───────────────────────────────────────────────── */
.pricing-card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #0D1A42 0%, #1B2A6B 55%, #0a1230 100%);
  border: 1px solid rgba(245,166,35,0.35);
  padding: var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pricing-card-back::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, rgba(245,166,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-card-back .pricing-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-brand-accent);
  border-bottom: 1px solid rgba(245,166,35,0.25);
  padding-bottom: var(--space-4);
  letter-spacing: 0.01em;
}

.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-feature-list li {
  font-size: var(--text-base);
  color: rgba(250,246,239,0.88);
  padding-left: var(--space-6);
  position: relative;
  line-height: var(--leading-relaxed);
}

.pricing-feature-list li::before {
  content: '✦';
  color: var(--color-brand-accent);
  position: absolute;
  left: 0;
  font-size: 0.7em;
  top: 0.2em;
  opacity: 0.85;
}

.pricing-back-footer {
  border-top: 1px solid rgba(245,166,35,0.20);
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-brand-accent);
  line-height: 1;
  text-shadow: 0 0 24px rgba(245,166,35,0.45);
}

.pricing-period {
  font-size: var(--text-sm);
  color: rgba(250,246,239,0.55);
}

/* Gold text link — no big button */
.pricing-text-link {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-brand-accent);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s, letter-spacing 0.2s;
  display: inline-block;
}

.pricing-text-link:hover {
  color: #fcd878;
  letter-spacing: 0.04em;
}

/* School badge on front face */
.pricing-card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: var(--color-brand-accent);
  color: #1B2A6B;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  z-index: 2;
}

/* Hint text on front: tap to flip */
.pricing-card-front::after {
  content: 'Tap to explore';
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.pricing-card-wrap:hover .pricing-card-front::after {
  opacity: 1;
}

.pricing-escape {
  text-align: center;
  margin-top: var(--space-10);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.pricing-escape-link {
  color: var(--color-brand-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-escape-link:hover {
  color: #fcd878;
}

@media (max-width: 1024px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .section-pricing { padding: var(--padding-section-y-mobile) var(--padding-section-x-mobile); }
  .pricing-title { font-size: var(--text-3xl); }
}

@media (max-width: 768px) {
  .section-pricing { padding: var(--padding-section-y-mobile) var(--padding-section-x-mobile); }
  .pricing-title { font-size: var(--text-3xl); }
  .pricing-card-body { padding: var(--space-5); }
}

/* ============================================================
   Section 08 — FAQ Journal
   ============================================================ */
.section-faq {
  padding: var(--padding-section-y) var(--padding-section-x);
  background: transparent;
  position: relative;
  overflow: hidden;
}

.faq-inner {
  /* Header stays centered at a readable width */
  max-width: var(--width-content);   /* 1200px */
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.faq-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.faq-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
}

/* ── Journal outer container ──────────────────────────────── */
.faq-journal {
  /* No border-radius or overflow:hidden — the book PNG has its
     own shape and the transparent corners must show the dark bg */
  background: transparent;
}

.faq-journal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  background: transparent;
}

.faq-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(80, 55, 30, 0.55);
  transition: color 0.3s, opacity 0.3s;
  z-index: 10;
  padding: var(--space-3);
}

.faq-arrow--prev { left:  5%; }
.faq-arrow--next { right: 5%; }

@keyframes faq-arrow-flash {
  0%, 100% { color: rgba(80, 55, 30, 0.85); }
  40%       { color: rgba(245, 166, 35, 1); }
}

.faq-arrow:hover {
  animation: faq-arrow-flash 0.55s ease-in-out infinite;
}

.faq-arrow[hidden] { display: none; }

/* Make faq-spreads the positioning context */
.faq-spreads { position: relative; }

.faq-dots {
  display: flex;
  gap: var(--space-2);
}

.faq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}

.faq-dot.active {
  background: var(--color-brand-accent);
  border-color: var(--color-brand-accent);
}

/* ── Spreads container ────────────────────────────────────── */
.faq-spreads {
  position: relative;
}

/* ── Each spread is the open journal ─────────────────────── */
.faq-spread {
  display: none;
  grid-template-columns: 1fr 1fr;
  position: relative;
  /* Exact image ratio: both PNGs are 1908×1040 / 3840×2093 ≈ same */
  aspect-ratio: 1908 / 1040;
  /* Show the whole image, no cropping */
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

.faq-spread.active {
  display: grid;
}

/* Spread 1 — illustrated first page (transparent PNG) */
.faq-spread--first {
  background-image: url('Assets/journal/Transparent/first_page_4k.png');
}

/* All subsequent spreads — clean blank journal (transparent PNG) */
.faq-spread:not(.faq-spread--first) {
  background-image: url('Assets/journal/Transparent/hoshi-journal-clean-4k.png');
}

/* Drop-shadow follows the actual book silhouette, not a rectangle */
.faq-spread.active {
  filter: drop-shadow(0 20px 48px rgba(0,0,0,0.65));
}

/* Remove the old CSS centre-spine line — the image provides one */
.faq-spread::after {
  display: none;
}

/* ── Page areas ───────────────────────────────────────────── */
/* Text sits within the parchment, clear of the wooden covers.
   The transparent PNG has ~8% wood frame each side, ~7% top,
   ~12% bottom.                                                */
.faq-page {
  padding: 9% 5% 14%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Left page: add left padding for the wood frame */
.faq-page--left  { padding-left: 10%; }
/* Right page: add right padding for the wood frame */
.faq-page--right { padding-right: 10%; }

/* ── Per-spread text positioning ─────────────────────────── */
/* Spread 1 left: push down, shift right away from centrefold */
.faq-spread--first .faq-page--left {
  padding-top: 38%;
  padding-left: 18%;
  padding-right: 8%;
}

/* Spread 2 — PERFECT, do not touch */
.faq-spread:nth-child(2) .faq-page--left {
  padding-top: 30%;
  padding-left: 18%;
  padding-right: 8%;
}
.faq-spread:nth-child(2) .faq-page--right {
  padding-top: 30%;
  padding-right: 16%;
}

/* Spreads 3 + 4 — match spread 2 vertical height, left needs +4 chars right */
.faq-spread:nth-child(3) .faq-page--left,
.faq-spread:nth-child(4) .faq-page--left {
  padding-top: 30%;
  padding-left: 18%;
  padding-right: 8%;
}
.faq-spread:nth-child(3) .faq-page--right,
.faq-spread:nth-child(4) .faq-page--right {
  padding-top: 30%;
  padding-right: 16%;
}

/* Spread 5 left only — shift right away from centrefold */
.faq-spread:nth-child(5) .faq-page--left {
  padding-left: 18%;
  padding-right: 8%;
}

/* Art-only page (spread 1 right, spread 5 right) — no text */
.faq-page--art {
  pointer-events: none;
}

/* ── Ink-on-parchment text styles ────────────────────────── */
.faq-handwriting {
  font-family: 'Caveat', cursive;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 600;
  color: #3a2010;           /* dark sepia ink */
  margin-bottom: 0.6em;
  line-height: 1.25;
}

.faq-answer p {
  font-family: 'Caveat', cursive;
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  color: #4e3320;           /* lighter sepia */
  line-height: 1.65;
  margin: 0;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-faq { padding: var(--padding-section-y-mobile) var(--padding-section-x-mobile); }
  .faq-title    { font-size: var(--text-3xl); }

  /* On mobile: stack pages vertically, keep the image but let it
     crop naturally rather than squish text into a very short strip */
  .faq-spread {
    grid-template-columns: 1fr;
    aspect-ratio: 1908 / 1040;
    background-size: 100% 100%;
    background-position: center;
  }

  .faq-page          { padding: 8% 12%; }
  .faq-page--left    { padding-left: 12%; }
  .faq-page--right   { padding-right: 12%; border-top: none; }
  .faq-page--art     { display: none; }
  .faq-handwriting   { font-size: var(--text-xl); }
}

/* ============================================================
   Section 09 — The Door (final CTA)
   ============================================================ */
.section-the-door {
  padding: var(--padding-section-y) 0 0;
  background: transparent;
  position: relative;
}

.section-the-door .door-cta-inner {
  padding-left: var(--padding-section-x);
  padding-right: var(--padding-section-x);
}

.the-door-bg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: var(--space-10);
}

/* Subtle star-field overlay */
.section-the-door::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.8) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 200px 200px, 150px 150px, 100px 100px;
  background-position: 0 0, 60px 40px, 100px 80px;
  pointer-events: none;
  opacity: 0.4;
}

.door-cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-10);
  position: relative;
  z-index: 1;
}

.door-cta-hoshi {
  flex-shrink: 0;
}

/* Right Hoshi floats slightly offset so they don't mirror exactly */
.door-cta-hoshi--right .door-cta-hoshi-img {
  animation-delay: 1.2s;
}

.door-cta-hoshi-img {
  width: 260px;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.4));
  animation: gentle-float 4s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .door-cta-hoshi-img { animation: none; }
}

.door-cta-text {
  flex: 1;
  text-align: center;
}

.door-cta-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  color: #fff;
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.door-cta-body {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.85);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}

.door-cta-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.door-cta-actions .btn-ghost {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

.door-cta-actions .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

@media (max-width: 768px) {
  .section-the-door { padding: var(--padding-section-y-mobile) 0 0; }
  .section-the-door .door-cta-inner { padding-left: var(--padding-section-x-mobile); padding-right: var(--padding-section-x-mobile); }
  .door-cta-inner { flex-direction: column; text-align: center; gap: var(--space-8); }
  .door-cta-hoshi--right { display: none; } /* Hide right Hoshi on mobile — left one is enough */
  .door-cta-hoshi-img { width: 160px; margin: 0 auto; }
  .door-cta-title { font-size: var(--text-3xl); }
  .door-cta-body { font-size: var(--text-lg); }
  .door-cta-actions { justify-content: center; }
}

/* ============================================================
   Black Cat Peek
   ============================================================ */
.cat-peek {
  position: relative;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
  height: 0; /* collapses — cat is positioned relative to this anchor */
}

.cat-peek img {
  position: absolute;
  bottom: 0;
  right: 8%;
  width: clamp(100px, 12vw, 180px);
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 -8px 24px rgba(0,0,0,0.40));
}

.cat-peek.peeking img {
  transform: translateY(28%); /* shows head + shoulders peeking up */
}

@media (prefers-reduced-motion: reduce) {
  .cat-peek img { transition: none; }
}

/* ============================================================
   Section 10 — Footer
   ============================================================ */
.section-footer {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  box-shadow: inset 0 60px 80px rgba(13, 26, 66, 0.55);
  overflow: hidden;
  color: rgba(255,255,255,0.85);
}

/* Garden illustration */
.footer-garden {
  position: absolute;
  inset: 0;
  background-image: url('Assets/sections/footer-garden-4k.jpg');
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

/* Deep gradient overlay — darkens bottom so text reads cleanly */
.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 28, 0.15) 0%,
    rgba(10, 8, 28, 0.65) 50%,
    rgba(10, 8, 28, 0.92) 100%
  );
  z-index: 1;
}

/* Star field sits above overlay */
.footer-stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* All content sits above layers */
.footer-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-32) var(--padding-section-x) var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}

/* Logo image */
.footer-logo {
  display: inline-block;
  text-decoration: none;
}

/* Text-only logo fallback (when no transparent PNG available) */
.footer-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-brand-accent);
  letter-spacing: 0.02em;
  text-shadow: 0 0 32px rgba(245,166,35,0.35);
  line-height: 1;
  transition: color var(--duration-normal) var(--ease-default), text-shadow var(--duration-normal) var(--ease-default);
}

.footer-logo-text:hover {
  color: var(--color-action-primary-hover);
  text-shadow: 0 0 48px rgba(245,166,35,0.55);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* Make it white */
}

.footer-tagline {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  margin: 0;
}

/* Nav row */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-sep {
  color: rgba(255,255,255,0.25);
  font-size: var(--text-sm);
}

/* Language toggle row */
.footer-lang-row {
  display: flex;
  justify-content: center;
}

/* Divider */
.footer-divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 0;
}

/* Bottom row */
.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: var(--space-4);
}

.footer-social-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
}

.footer-social-link:hover {
  color: #fff;
  transform: translateY(-2px);
}

.footer-legal {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.footer-legal-link {
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-legal-link:hover {
  color: rgba(255,255,255,0.8);
}

@media (max-width: 768px) {
  .footer-content { padding: var(--space-24) var(--padding-section-x-mobile) var(--space-10); }
  .footer-bottom { flex-direction: column; align-items: center; }
  .footer-logo-img { height: 40px; }
}

/* ============================================================
   GLOBAL RESPONSIVE OVERRIDES
   These override token values and base typography at breakpoints
   so all sections scale correctly without per-section duplication.
   ============================================================ */

/* Tablet: 1024px and below */
@media (max-width: 1024px) {
  :root {
    --padding-section-x: 48px;
    --text-5xl: 3.2rem;
    --text-6xl: 3.8rem;
  }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
  :root {
    --padding-section-x: var(--padding-section-x-mobile);
    --padding-section-y: var(--padding-section-y-mobile);
    --text-4xl: 2.4rem;
    --text-5xl: 2.8rem;
    --text-6xl: 3.2rem;
  }

  html {
    scroll-behavior: auto; /* Prefer native snap on mobile */
  }
}

/* Small mobile: 480px and below */
@media (max-width: 480px) {
  :root {
    --padding-section-x-mobile: 20px;
    --text-3xl: 2rem;
    --text-4xl: 2.2rem;
    --text-5xl: 2.6rem;
  }
}

/* ============================================================
   SECTION EYEBROW — utility, used across all section headers
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-accent);
  margin-bottom: var(--space-3);
}

/* ============================================================
   HERO CTA ROW
   ============================================================ */
.hero-cta-row {
  margin-top: var(--space-2);
}

.hero-cta-btn {
  font-size: var(--text-lg);
  padding: 16px 44px;
  box-shadow:
    0 4px 20px rgba(245,166,35,0.45),
    0 2px 6px rgba(245,166,35,0.25);
}

.hero-cta-btn:hover {
  box-shadow:
    0 8px 32px rgba(245,166,35,0.55),
    0 4px 12px rgba(245,166,35,0.30);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION 04: HOW IT WORKS — Three Pillar Cards
   ============================================================ */
.section-how-it-works {
  padding: var(--padding-section-y) var(--padding-section-x);
  background:
    radial-gradient(ellipse 45% 50% at 85% 15%, rgba(245,166,35,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 10% 85%, rgba(126,200,227,0.06) 0%, transparent 50%),
    transparent;
}

.how-inner {
  max-width: var(--width-content);
  margin: 0 auto;
}

.how-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}

.how-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-accent);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-5);
}

.how-sub {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-loose);
}

.how-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.pillar-card {
  padding: var(--space-10);
  background: rgba(250,246,239,0.04);
  border: 1px solid rgba(245,166,35,0.18);
  border-radius: 28px;
  box-shadow:
    0 0 0 1.5px rgba(245,166,35,0.15),
    0 8px 32px rgba(27,42,107,0.40);
  transition: all var(--duration-slow) var(--ease-gentle);
  cursor: default;
}

.pillar-card:hover {
  background: rgba(250,246,239,0.07);
  border-color: rgba(245,166,35,0.38);
  box-shadow:
    0 0 0 2px rgba(245,166,35,0.45),
    0 0 28px rgba(245,166,35,0.18),
    0 12px 48px rgba(27,42,107,0.50);
  transform: translateY(-5px);
}

.pillar-icon {
  width: 72px;
  height: 72px;
  background: rgba(245,166,35,0.14);
  border: 1.5px solid rgba(245,166,35,0.30);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-8);
  color: var(--color-text-accent);
  box-shadow: 0 0 20px rgba(245,166,35,0.15), 0 0 40px rgba(245,166,35,0.08);
  transition: all var(--duration-slow) ease;
  flex-shrink: 0;
}
.pillar-icon svg {
  width: 32px;
  height: 32px;
}

.pillar-card:hover .pillar-icon {
  background: rgba(245,166,35,0.24);
  border-color: rgba(245,166,35,0.55);
  box-shadow: 0 0 28px rgba(245,166,35,0.30), 0 0 56px rgba(245,166,35,0.12);
  transform: scale(1.08);
}

.pillar-headline {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
  margin-bottom: var(--space-4);
}

.pillar-body {
  font-size: var(--text-base);
  color: rgba(250,246,239,0.72);
  line-height: var(--leading-loose);
}

@media (max-width: 1024px) {
  .how-pillars {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section-how-it-works {
    padding: var(--padding-section-y-mobile) var(--padding-section-x-mobile);
  }
  .how-headline { font-size: var(--text-3xl); }
  .how-header { margin-bottom: var(--space-12); }
  .pillar-card { padding: var(--space-8); }
}

/* ── Reduced Motion global sweep ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Keep opacity-based reveals but remove transforms */
  .scroll-reveal {
    transform: none !important;
    opacity: 0;
  }
  .scroll-reveal.revealed {
    opacity: 1;
  }
  .invitation-image img {
    animation: none;
  }
}
