/* =========================================================
   carlieandcaiden.com
   A promotional site for "An Adventure with Carlie and
   Her Autistic Brother Caiden"
   ========================================================= */

:root {
  /* Primary cyan world */
  --sky-cyan:       #3BBFCF;
  --sky-cyan-light: #5DD4E8;
  --deep-cyan:      #1A8FA0;
  --magic-white:    #EEF9FC;
  --crisp-white:    #FFFFFF;

  /* Gold / Gear Monster */
  --gear-gold:      #F5B830;
  --gear-gold-dark: #C8881A;
  --gold-glow:      rgba(245, 184, 48, 0.35);

  /* Character anchors */
  --carlie-maroon:  #7B1E2E;
  --carlie-maroon-dark: #5A0F1C;
  --carlie-maroon-light: #A02040;
  --caiden-blue:    #5BA8D4;
  --auburn-hair:    #C05C1A;

  /* Scene backgrounds */
  --creek-green:    #4CAF6A;
  --creek-green-mid:#2A9B5A;
  --creek-green-dark:#1A6B42;
  --deep-forest:    #2A6B52;
  --twilight-purple:#2C2850;
  --twilight-mid:   #4A3F78;
  --twilight-deep:  #0F0B20;
  --stone-warm:     #C4A882;
  --stone-mid:      #9A7A5A;
  --stone-dark:     #5A4030;

  /* Functional */
  --text-dark:      #1A1A2E;
  --text-light:     #F0F8FF;
  --shadow-soft:    rgba(26, 26, 46, 0.18);

  /* Type */
  --font-display: 'Fredoka One', 'Georgia', cursive;
  --font-body:    'Nunito', system-ui, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.2rem;
  --text-xl:   1.5rem;
  --text-2xl:  2rem;
  --text-3xl:  2.75rem;
  --text-4xl:  3.75rem;
  --text-hero: clamp(2.5rem, 7.5vw, 5.75rem);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-dark);
  background: var(--magic-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0 0 0.5em; line-height: 1.1; }
h2 { font-size: var(--text-3xl); }
p { margin: 0 0 1em; }
ul { padding: 0; list-style: none; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-sm);
  color: var(--gear-gold);
  margin: 0 0 1rem;
}
.eyebrow.light { color: var(--magic-white); opacity: 0.85; }

/* =========================================================
   BACKGROUNDS
   ========================================================= */
.bg-hero { background: radial-gradient(ellipse at 60% 40%, #5DD4E8 0%, #3BBFCF 45%, #1A8FA0 100%); }
.bg-creek { background: linear-gradient(160deg, #4CAF6A 0%, #2A9B5A 50%, #1A6B42 100%); }
.bg-mystery { background: linear-gradient(135deg, #C4A882 0%, #9A7A5A 60%, #5A4030 100%); }
.bg-twilight { background: radial-gradient(ellipse at center, #4A3F78 0%, #2C2850 55%, #0F0B20 100%); }
.bg-soaring { background: radial-gradient(ellipse at 50% 80%, #FFFFFF 0%, #C8EEFA 30%, #3BBFCF 100%); }

/* =========================================================
   NAV
   ========================================================= */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 143, 160, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--crisp-white);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--crisp-white);
}
.nav-gear {
  width: 28px; height: 28px;
  fill: var(--gear-gold);
  filter: drop-shadow(0 0 8px var(--gold-glow));
  animation: gear-spin 16s linear infinite;
}
.nav-links {
  display: flex;
  gap: 2rem;
  margin: 0;
  align-items: center;
  font-weight: 700;
}
.nav-links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--crisp-white);
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--gear-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--carlie-maroon);
  padding: 0.55rem 1.1rem !important;
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--carlie-maroon-dark);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  width: 26px; height: 3px; background: #fff; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   WIND TRAILS
   ========================================================= */
.wind-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.wind-trail {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  filter: blur(6px);
  animation: drift 14s ease-in-out infinite alternate;
}
.wind-1 { stroke-width: 46px; opacity: 0.22; animation-duration: 12s; }
.wind-2 { stroke-width: 32px; opacity: 0.16; animation-duration: 15s; animation-delay: -3s; }
.wind-3 { stroke-width: 22px; opacity: 0.12; animation-duration: 18s; animation-delay: -6s; }
.wind-4 { stroke-width: 56px; opacity: 0.09; animation-duration: 22s; animation-delay: -2s; }
.wind-5 { stroke-width: 18px; opacity: 0.18; animation-duration: 11s; animation-delay: -8s; }
.wind-layer.intense .wind-trail { filter: blur(4px); }
.wind-layer.intense .wind-1 { opacity: 0.35; }
.wind-layer.intense .wind-2 { opacity: 0.28; }

@keyframes drift {
  from { transform: translateX(-2%) rotate(-1deg); }
  to   { transform: translateX(2%)  rotate(1deg);  }
}

/* =========================================================
   GEARS
   ========================================================= */
.gear-deco {
  position: absolute;
  fill: var(--gear-gold);
  color: var(--gear-gold-dark);
  opacity: 0.14;
  filter: drop-shadow(0 0 18px var(--gold-glow));
  animation: gear-spin 24s linear infinite;
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
}
.gear-deco.reverse { animation-direction: reverse; animation-duration: 18s; }
@keyframes gear-spin { to { transform: rotate(360deg); } }

.gear-hero-1 { width: 340px; height: 340px; top: -70px; right: -90px; }
.gear-hero-2 { width: 200px; height: 200px; bottom: 5%; left: -40px; opacity: 0.1; }
.gear-about { width: 260px; height: 260px; top: 10%; right: -60px; opacity: 0.1; }
.gear-door-bg { width: 420px; height: 420px; top: -100px; left: -120px; opacity: 0.12; }
.gear-door-bg-2 { width: 260px; height: 260px; bottom: -60px; right: 5%; opacity: 0.1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  padding: 4rem 2rem 5rem;
  overflow: hidden;
  color: var(--crisp-white);
  display: flex;
  align-items: center;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-text .eyebrow { color: var(--gear-gold); }
.hero-title {
  font-size: var(--text-hero);
  color: var(--crisp-white);
  margin-bottom: 1.2rem;
  text-shadow:
    3px 4px 0px var(--deep-cyan),
    6px 8px 0px rgba(26, 26, 46, 0.3);
}
.hero-title span { display: block; }
.hero-tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xl);
  max-width: 32ch;
  margin-bottom: 2rem;
  color: var(--magic-white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cover {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.book-cover-wrap {
  position: relative;
  display: inline-block;
  max-width: 420px;
}
.book-cover-wrap.small { max-width: 320px; }
.book-cover {
  width: 100%;
  border-radius: 4px 12px 12px 4px;
  box-shadow:
    -8px 0 0 rgba(0, 0, 0, 0.18),
    -2px 0 6px rgba(0, 0, 0, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.2);
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.book-cover:hover {
  transform: perspective(900px) rotateY(-2deg) rotateX(0deg) scale(1.03);
  box-shadow:
    -4px 0 4px rgba(0, 0, 0, 0.12),
    0 30px 80px rgba(0, 0, 0, 0.4);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fff;
  background: linear-gradient(135deg, var(--carlie-maroon) 0%, var(--carlie-maroon-light) 100%);
  padding: 1rem 2.3rem;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 6px 0 var(--carlie-maroon-dark),
    0 10px 30px rgba(123, 30, 46, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  letter-spacing: 0.03em;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--carlie-maroon-dark), 0 14px 35px rgba(123, 30, 46, 0.5);
}
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--carlie-maroon-dark), 0 4px 15px rgba(123, 30, 46, 0.4);
}
.btn-primary.big { font-size: 1.75rem; padding: 1.2rem 3rem; }
.btn-gear {
  width: 24px; height: 24px; fill: #fff;
  transition: transform 0.5s ease;
}
.btn-primary:hover .btn-gear { transform: rotate(180deg); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--magic-white);
  background: transparent;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 3px solid var(--magic-white);
  transition: all 0.25s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--magic-white);
  color: var(--deep-cyan);
  box-shadow: 0 0 24px rgba(255,255,255,0.5);
}
.btn-secondary.light { color: var(--magic-white); border-color: var(--magic-white); }

/* =========================================================
   RAINBOW DIVIDER + OPENING SCENE
   ========================================================= */
.rainbow-section { position: relative; }
.rainbow-divider {
  background: var(--magic-white);
  padding: 0;
  line-height: 0;
}
.rainbow-divider svg {
  width: 100%;
  height: 180px;
  display: block;
  filter: blur(0.5px);
  opacity: 0.95;
}
.rainbow-scene {
  position: relative;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: var(--crisp-white);
  background: var(--creek-green-dark);
}
.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.rainbow-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15, 11, 32, 0.75) 0%, rgba(15, 11, 32, 0.25) 55%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}
.scene-overlay {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: clamp(1rem, 6vw, 6rem);
  background: rgba(44, 40, 80, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem 2.75rem;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.scene-overlay h2 { color: var(--gear-gold); }
.scene-overlay p { font-size: var(--text-lg); color: var(--magic-white); margin-bottom: 0; }

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  position: relative;
  padding: 6rem 2rem;
  color: var(--text-light);
  overflow: hidden;
}
.about-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 { color: var(--crisp-white); }
.about-text p { font-size: var(--text-lg); max-width: 56ch; }
.feature-list { margin: 1.5rem 0 2rem; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: var(--text-lg);
  padding: 0.35rem 0;
}
.feature-list svg {
  width: 22px; height: 22px;
  fill: var(--gear-gold);
  flex-shrink: 0;
}
.about-cover { display: flex; justify-content: center; }

/* =========================================================
   GEAR DOOR
   ========================================================= */
.gear-door {
  position: relative;
  padding: 6rem 2rem;
  color: var(--magic-white);
  overflow: hidden;
}
.door-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}
.door-art {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}
.door-img {
  max-width: 100%;
  border-radius: 18px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 4px rgba(245, 184, 48, 0.25),
    0 0 60px rgba(245, 184, 48, 0.35);
  transform: perspective(1000px) rotateY(4deg);
  transition: transform 0.5s ease;
}
.door-img:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); }

.door-text h2 { color: var(--crisp-white); }
.door-text p { font-size: var(--text-lg); max-width: 56ch; }
.pull-quote {
  font-family: var(--font-body);
  font-weight: 800;
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--gear-gold);
  margin: 2rem 0 0;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 4px solid var(--gear-gold);
  max-width: 56ch;
}

/* =========================================================
   SUPERPOWER (Emotional Core)
   ========================================================= */
.superpower {
  position: relative;
  padding: 8rem 2rem;
  text-align: center;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.superpower::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.superpower-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}
.superpower-inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--crisp-white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}
.superpower-inner h2.gold {
  color: var(--gear-gold);
  text-shadow: 0 0 30px var(--gold-glow), 0 4px 30px rgba(0,0,0,0.5);
  margin-top: 1rem;
}
.superpower-art {
  margin: 2.5rem auto;
  max-width: 720px;
  position: relative;
}
.superpower-art::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--gold-glow) 0%, transparent 65%);
  filter: blur(30px);
  z-index: 0;
}
.superpower-art img {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 0 24px var(--gold-glow)) drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
  z-index: 1;
}
.superpower-body {
  font-size: var(--text-xl);
  color: var(--magic-white);
  max-width: 680px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

/* Floating orbs */
.orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.orbs span {
  position: absolute;
  bottom: -40px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gear-gold);
  box-shadow: 0 0 12px var(--gear-gold), 0 0 24px var(--gold-glow);
  opacity: 0;
  animation: orb-rise 8s ease-in infinite;
}
.orbs span:nth-child(1) { left:  8%; animation-delay: 0s;   }
.orbs span:nth-child(2) { left: 22%; animation-delay: 1.5s; width: 8px; height: 8px; }
.orbs span:nth-child(3) { left: 35%; animation-delay: 3s;   width: 14px; height: 14px; }
.orbs span:nth-child(4) { left: 50%; animation-delay: 0.8s; }
.orbs span:nth-child(5) { left: 63%; animation-delay: 2.2s; width: 10px; height: 10px; }
.orbs span:nth-child(6) { left: 76%; animation-delay: 4s;   }
.orbs span:nth-child(7) { left: 88%; animation-delay: 1.2s; width: 8px; height: 8px; }
.orbs span:nth-child(8) { left: 95%; animation-delay: 3.4s; }
@keyframes orb-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 0.7; }
  100% { transform: translateY(-110vh) translateX(30px); opacity: 0; }
}

/* =========================================================
   SOARING (Journey Home)
   ========================================================= */
.soaring {
  position: relative;
  padding: 7rem 2rem;
  overflow: hidden;
  color: var(--text-dark);
}
.soaring-grid {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.soaring-img {
  width: 100%;
  border-radius: 24px;
  box-shadow:
    0 30px 80px rgba(26, 143, 160, 0.35),
    0 0 60px rgba(255, 255, 255, 0.5);
}
.float-image.revealed { animation: float-bob 4s ease-in-out infinite; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.soaring-inner {
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 2.5rem 2.25rem;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 30px 80px rgba(26, 143, 160, 0.25);
}
.soaring-inner h2 { color: var(--deep-cyan); }
.soaring-inner p { font-size: var(--text-lg); color: var(--text-dark); margin-bottom: 0; }

/* =========================================================
   AUTHOR
   ========================================================= */
.author {
  background: linear-gradient(180deg, var(--magic-white) 0%, #DDF0F5 100%);
  padding: 6rem 2rem;
}
.author-inner {
  max-width: 900px;
  margin: 0 auto;
}
.author-card {
  background: #fff;
  padding: 3rem;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(26, 143, 160, 0.15);
  border: 1px solid rgba(59, 191, 207, 0.2);
}
.author-card h2 { color: var(--deep-cyan); }
.author-card p { font-size: var(--text-lg); }
.author-card .eyebrow { color: var(--carlie-maroon); }
.author-follow a {
  color: var(--carlie-maroon);
  font-weight: 800;
  border-bottom: 2px solid var(--carlie-maroon);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.author-follow a:hover { color: var(--carlie-maroon-light); }

/* =========================================================
   RESOURCES
   ========================================================= */
.resources {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #DDF0F5 0%, var(--magic-white) 100%);
}
.resources-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.resources h2 { color: var(--deep-cyan); }
.resources .eyebrow { color: var(--carlie-maroon); }
.resources-intro {
  font-size: var(--text-lg);
  max-width: 60ch;
  margin-bottom: 3rem;
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  display: block;
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow: 0 10px 30px rgba(26, 143, 160, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.resource-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky-cyan), var(--gear-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 143, 160, 0.2);
  border-color: var(--sky-cyan);
}
.resource-card:hover::before { transform: scaleX(1); }
.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--deep-cyan);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.resource-card p {
  font-size: var(--text-base);
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.resource-link {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--carlie-maroon);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
  position: relative;
  padding: 7rem 2rem;
  text-align: center;
  overflow: hidden;
  color: var(--crisp-white);
}
.final-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}
.final-inner h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--crisp-white);
  text-shadow: 3px 4px 0 var(--deep-cyan), 6px 8px 0 rgba(26,26,46,0.3);
  margin-bottom: 2.5rem;
}
.final-ctas {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--deep-forest);
  color: var(--text-light);
  padding: 4rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-gear {
  width: 52px; height: 52px;
  fill: var(--gear-gold);
  filter: drop-shadow(0 0 12px var(--gold-glow));
  animation: gear-spin 22s linear infinite;
  flex-shrink: 0;
}
.footer-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  color: var(--crisp-white);
}
.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(240,248,255,0.7);
  margin: 0;
  max-width: 36ch;
}
.footer-links, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-weight: 700;
}
.footer-links a, .footer-social a {
  color: rgba(240,248,255,0.85);
  transition: color 0.2s;
}
.footer-links a:hover, .footer-social a:hover { color: var(--gear-gold); }
.copyright {
  text-align: center;
  font-size: var(--text-sm);
  color: rgba(240,248,255,0.5);
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================================================
   SPARKLES
   ========================================================= */
.sparkle {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.8), 0 0 12px 4px var(--gold-glow);
  animation: sparkle-pop ease-out forwards;
  pointer-events: none;
  z-index: 5;
}
@keyframes sparkle-pop {
  0%   { opacity: 0; transform: scale(0) translateY(0); }
  40%  { opacity: 1; transform: scale(1) translateY(-10px); }
  100% { opacity: 0; transform: scale(0.3) translateY(-24px); }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.hero-title span.revealed:nth-child(1) { transition-delay: 0.05s; }
.hero-title span.revealed:nth-child(2) { transition-delay: 0.18s; }
.hero-title span.revealed:nth-child(3) { transition-delay: 0.31s; }
.hero-title span.revealed:nth-child(4) { transition-delay: 0.44s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-inner,
  .about-inner,
  .door-inner,
  .soaring-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .soaring-inner { text-align: center; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero-text { order: 2; text-align: center; }
  .hero-cover { order: 1; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .scene-overlay { margin: 0 auto; }
  .about-cover { order: -1; }
  .door-art { order: -1; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 720px) {
  nav { padding: 0.75rem 1.25rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 1.25rem;
    background: rgba(26, 143, 160, 0.96);
    backdrop-filter: blur(14px);
    padding: 1.75rem 2rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  h2 { font-size: 2rem; }
  .book-cover { transform: none; }
  .book-cover:hover { transform: scale(1.02); }
  .wind-trail { opacity: 0.12 !important; }
  .hero, .about, .gear-door, .superpower, .soaring, .author, .resources, .final-cta {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .scene-overlay, .author-card, .soaring-inner { padding: 2rem 1.5rem; }
  .gear-deco { opacity: 0.08 !important; }
  .stone-door { width: 240px; height: 320px; }
  .door-gear { width: 130px; height: 130px; }
  .btn-primary.big { font-size: 1.35rem; padding: 1rem 2rem; }
  .final-ctas { flex-direction: column; }
  .final-ctas a { width: 100%; justify-content: center; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@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;
  }
  .reveal { opacity: 1; transform: none; }
  .wind-trail, .gear-deco, .orbs span, .sparkle { display: none; }
  .book-cover { transform: none; }
}
