/* =========================================================================
   THE PASSION SCHOOL — 2026 STICKY-TO-STICKY EXPERIENCE
   Dark/light, glassmorphism, scroll-driven scenes. Brand: navy/coral/mint.
   ========================================================================= */

/* ── Theme tokens ───────────────────────────────────────────────────────── */
:root{
  --navy-900:#0A1F29; --navy-700:#12303D; --navy-500:#1E4D60;
  --coral-500:#E2755A; --coral-600:#C75B41; --coral-300:#EC9079;
  --mint-500:#6FBFA7; --mint-300:#A8D8C8; --mint-100:#EEF7F4;

  /* Dark is the only theme */
  --bg:#07141A; --surface:#0E2730; --surface-2:#12303D;
  --text:#EAF4F1; --text-muted:#9FBCC2; --border:rgba(168,216,200,.14);
  --brand:#A8D8C8; --accent:#EC9079;
  --glass:rgba(14,39,48,.55); --glass-brd:rgba(168,216,200,.14);
  --hero-bg:#07141A; --hero-text:#EAF4F1; --hero-muted:#9FBCC2;
  --shadow:0 10px 30px rgba(0,0,0,.4), 0 30px 70px rgba(0,0,0,.45);
  --glow:0 0 60px rgba(111,191,167,.28);
  --ease:cubic-bezier(.16,1,.3,1); --spring:cubic-bezier(.34,1.56,.64,1);
}

/* ── Page base (homepage only) ──────────────────────────────────────────── */
body.x26{ background:var(--bg); color:var(--text); transition:background .4s var(--ease), color .4s var(--ease); }
.x26 ::selection{ background:var(--coral-500); color:#fff; }
.x26 .x-wrap{ max-width:1240px; margin-inline:auto; padding-inline:clamp(1rem,4vw,2.5rem); }
.x26 h1,.x26 h2,.x26 h3{ font-family:'Fraunces',Georgia,serif; letter-spacing:-.02em; line-height:1.05; color:var(--text); }
.x26 .eyebrow26{ display:inline-flex; align-items:center; gap:8px; font:700 .78rem/1 'Plus Jakarta Sans',sans-serif; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
.x26 .eyebrow26::before{ content:''; width:24px; height:2px; border-radius:2px; background:var(--coral-500); }
.x26 .lead{ color:var(--text-muted); font-size:clamp(1.05rem,1.6vw,1.2rem); line-height:1.7; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.x26 .btn26{ --b:var(--coral-500); display:inline-flex; align-items:center; gap:.5rem; font:600 .98rem/1 'Plus Jakarta Sans',sans-serif; padding:.95rem 1.6rem; border-radius:100px; border:1px solid transparent; cursor:pointer; text-decoration:none; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; will-change:transform; }
.x26 .btn26-primary{ background:var(--coral-500); color:#fff; box-shadow:0 10px 30px rgba(226,117,90,.35); }
.x26 .btn26-primary:hover{ transform:translateY(-3px); background:var(--coral-300); box-shadow:0 16px 40px rgba(226,117,90,.45); }
.x26 .btn26-ghost{ background:transparent; color:var(--text); border-color:var(--border); }
.x26 .btn26-ghost:hover{ transform:translateY(-3px); border-color:var(--mint-500); color:var(--brand); }
.x26 .btn26-on-dark{ color:#EAF4F1; border-color:rgba(168,216,200,.3); }
.x26 .btn26:focus-visible{ outline:2px solid var(--mint-500); outline-offset:3px; }

/* ── Scene primitives ───────────────────────────────────────────────────── */
.scene{ position:relative; }
.scene-pad{ padding-block:clamp(5rem,11vw,9rem); }
.glass26{ background:var(--glass); -webkit-backdrop-filter:blur(22px) saturate(160%); backdrop-filter:blur(22px) saturate(160%); border:1px solid var(--glass-brd); border-radius:24px; }

/* reveal */
.reveal{ opacity:0; transform:translateY(34px); transition:opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.reveal.d1{ transition-delay:.08s } .reveal.d2{ transition-delay:.16s } .reveal.d3{ transition-delay:.24s } .reveal.d4{ transition-delay:.32s }

/* ── Background drift layer (moon-gravity education elements) ────────────── */
.edu-bg{ position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.edu-doodle{ position:absolute; left:var(--x); top:var(--y); color:var(--mint-300);
  opacity:.10; animation:drift var(--t,30s) ease-in-out var(--d,0s) infinite alternate; will-change:transform; }
.edu-doodle.c{ color:var(--coral-300); opacity:.09; }
.edu-doodle .material-symbols-outlined{ font-size:var(--s,44px); }
@keyframes drift{
  0%{ transform:translate(0,0) rotate(-8deg); }
  100%{ transform:translate(var(--mx,24px), var(--my,-30px)) rotate(10deg); }
}
.x26 main > section, .x26 #continuous > *{ position:relative; z-index:1; }

/* ── Flying paper rocket ────────────────────────────────────────────────── */
.paper-rocket{ position:fixed; top:0; left:0; width:42px; height:42px; z-index:40; pointer-events:none;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.45)); will-change:transform; }
/* curving flight route the rocket rides through the important content */
.flight-path{ position:absolute; top:0; left:0; z-index:0; pointer-events:none; }
.flight-line{ fill:none; stroke:rgba(168,216,200,.30); stroke-width:2.5; stroke-linecap:round; stroke-dasharray:2 12; }
.flight-line.glow{ stroke:rgba(226,117,90,.18); stroke-width:6; stroke-dasharray:none; filter:blur(2px); }
.flight-mark{ fill:var(--mint-300); filter:drop-shadow(0 0 6px rgba(168,216,200,.9)); transform-box:fill-box; transform-origin:center;
  animation:markPulse 2.6s ease-in-out infinite; }
@keyframes markPulse{ 0%,100%{ opacity:.45; transform:scale(.8); } 50%{ opacity:1; transform:scale(1.3); } }

/* ── Real WebGL 3D logo (Three.js) ──────────────────────────────────────── */
.logo3d{ position:relative; width:clamp(230px,30vw,360px); aspect-ratio:1; margin:0 auto 1.2rem; }
.logo3d canvas{ display:block; width:100% !important; height:100% !important; }
.logo3d::after{ content:''; position:absolute; inset:14%; border-radius:50%; z-index:-1;
  background:radial-gradient(circle, rgba(111,191,167,.30), transparent 66%); filter:blur(14px);
  animation:haloPulse 4s ease-in-out infinite; }
.logo3d-img{ width:100%; height:100%; object-fit:contain; filter:drop-shadow(0 0 22px rgba(111,191,167,.45)); }
@keyframes haloPulse{ 0%,100%{ opacity:.5; transform:scale(1); } 50%{ opacity:1; transform:scale(1.12); } }

/* ── HERO (scene 1) ─────────────────────────────────────────────────────── */
.hero26{ position:relative; min-height:100svh; display:flex; align-items:center; overflow:hidden; background:transparent; color:var(--hero-text); padding-top:120px; }
.hero26 .hero-big{ color:#fff; font-size:clamp(2.3rem,5vw,4.4rem); line-height:1.04; }
.hero-logo{ display:inline-block; width:clamp(170px,20vw,230px); height:auto; margin-bottom:1.4rem;
  background:#fff; padding:14px 20px; border-radius:20px;
  box-shadow:0 12px 34px rgba(0,0,0,.45), inset 0 0 0 1px rgba(168,216,200,.4); }
@media(max-width:991px){ .hero-logo{ width:170px; } }
/* Photo figure: morphing blob + framed photo + floating cards */
.hero-figure{ position:relative; max-width:500px; margin-inline:auto; }
.hero-blob{ position:absolute; inset:-9% -7% -7% -9%; z-index:0;
  background:linear-gradient(140deg, rgba(111,191,167,.32), rgba(226,117,90,.22));
  border-radius:46% 54% 50% 50% / 56% 44% 56% 44%; filter:blur(4px);
  animation:blobMorph 14s ease-in-out infinite; }
@keyframes blobMorph{
  0%,100%{ border-radius:46% 54% 50% 50% / 56% 44% 56% 44%; transform:rotate(0deg); }
  50%{ border-radius:56% 44% 58% 42% / 44% 58% 42% 56%; transform:rotate(4deg); }
}
.hero-dots{ position:absolute; right:-22px; bottom:-18px; width:110px; height:110px; z-index:0; opacity:.5;
  background-image:radial-gradient(rgba(168,216,200,.55) 1.6px, transparent 1.6px); background-size:14px 14px; }
.hero-photo{ position:relative; z-index:1; border-radius:30px; overflow:hidden; aspect-ratio:4/5;
  border:3px solid rgba(168,216,200,.30); box-shadow:0 30px 70px rgba(0,0,0,.45); }
.hero-photo::after{ content:''; position:absolute; inset:0; background:linear-gradient(165deg, rgba(168,216,200,.10), transparent 45%); pointer-events:none; }
.hero-photo img{ width:100%; height:100%; object-fit:cover; transform:scale(1.05); transition:transform 1.4s var(--ease); }
.hero-figure:hover .hero-photo img{ transform:scale(1.12); }
.hero-float{ position:absolute; z-index:3; display:flex; align-items:center; gap:.6rem; padding:.65rem .85rem; border-radius:14px; will-change:transform; transition:transform .3s var(--ease); }
.hero-float:hover{ transform:translateY(-3px) !important; }
@media(max-width:991px){ .hero-photo{ aspect-ratio:16/12; } .hero-figure{ max-width:520px; } }
.hero26 .mesh{ position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(40% 50% at 82% 12%, rgba(111,191,167,.22), transparent 60%),
    radial-gradient(45% 55% at 12% 88%, rgba(226,117,90,.18), transparent 60%),
    radial-gradient(60% 60% at 50% 50%, rgba(30,77,96,.35), transparent 70%);
  animation:meshDrift 18s ease-in-out infinite alternate; }
@keyframes meshDrift{ to{ transform:translate3d(0,-3%,0) scale(1.06); } }
.hero26 h1{ color:#fff; font-size:clamp(2.6rem,6vw,5rem); line-height:1.02; }
.hero26 .accent-word{ color:var(--coral-300); font-style:italic; }
.hero26 .lead{ color:var(--hero-muted); max-width:30rem; }
.hero26 .stat-float{ position:absolute; }

/* Education hero — the child rises from an open book, school elements float around */
.hero-stage{ position:relative; width:100%; max-width:560px; aspect-ratio:1; margin-inline:auto; will-change:transform; }

/* floating education chips — outer = parallax layer, inner = idle bob */
.edu-float{ position:absolute; z-index:4; will-change:transform; }
.edu-chip{ width:54px; height:54px; border-radius:16px; display:grid; place-items:center;
  background:var(--glass); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  border:1px solid var(--glass-brd); box-shadow:0 12px 26px rgba(0,0,0,.4); color:#EAF4F1;
  animation:eduFloat 6s ease-in-out infinite; }
.edu-chip .material-symbols-outlined{ font-size:28px; }
.edu-float.c .edu-chip{ color:var(--coral-300); } .edu-float.m .edu-chip{ color:var(--mint-300); }
@keyframes eduFloat{ 0%,100%{ transform:translateY(0) rotate(-5deg); } 50%{ transform:translateY(-13px) rotate(5deg); } }

/* the child, arched like a portrait, rising from the book */
.book-photo{ position:absolute; left:50%; top:3%; width:60%; transform:translateX(-50%);
  aspect-ratio:3/3.5; border-radius:48% 48% 44% 44% / 44% 44% 50% 50%; overflow:hidden; z-index:2;
  border:4px solid rgba(168,216,200,.30); box-shadow:0 30px 60px rgba(0,0,0,.55); }
.book-photo img{ width:100%; height:100%; object-fit:cover; object-position:center 16%; transform:scale(1.08); transition:transform 1.2s var(--ease); }
.hero-stage:hover .book-photo img{ transform:scale(1.14); }
.book-photo::after{ content:''; position:absolute; inset:0; background:linear-gradient(160deg, rgba(168,216,200,.10), transparent 45%); pointer-events:none; }

/* glow disc behind the child */
.book-glow{ position:absolute; left:50%; top:6%; width:64%; aspect-ratio:1; transform:translateX(-50%); z-index:1;
  border-radius:50%; background:radial-gradient(circle, rgba(111,191,167,.28), transparent 65%); filter:blur(6px); }

/* the open book sits in front of the photo's lower edge */
.book-svg{ position:absolute; left:50%; bottom:1%; width:100%; transform:translateX(-50%); z-index:3;
  filter:drop-shadow(0 24px 36px rgba(0,0,0,.5)); }
@keyframes twinkle{ 0%,100%{ transform:scale(1); opacity:.85; } 50%{ transform:scale(.4); opacity:.3; } }
.float-card{ position:absolute; display:flex; align-items:center; gap:.7rem; padding:.7rem .9rem; border-radius:16px; color:#EAF4F1; }
.float-card .ic{ width:42px; height:42px; border-radius:12px; display:grid; place-items:center; }
.word-mask{ display:inline-block; overflow:hidden; vertical-align:top; }
.word-mask > span{ display:inline-block; transform:translateY(100%); }
.hero-in .word-mask > span{ transform:none; transition:transform .8s var(--ease); }

/* hero pin-out effect handled by GSAP (scale+blur) */

/* ── Marquee trust strip (scene 2) ──────────────────────────────────────── */
.trust26{ background:var(--surface); border-block:1px solid var(--border); padding-block:1.4rem; overflow:hidden; }
.marq{ display:flex; gap:3.5rem; width:max-content; animation:marq 28s linear infinite; align-items:center; }
.marq img{ height:34px; filter:grayscale(1); opacity:.6; transition:.3s; }
.marq img:hover{ filter:none; opacity:1; }
.trust26:hover .marq{ animation-play-state:paused; }
@keyframes marq{ to{ transform:translateX(-50%); } }

/* ── Sticky narrative (scene 3) ─────────────────────────────────────────── */
.pin-rail{ position:sticky; top:0; height:100svh; display:flex; align-items:center; }
.feat-panel{ min-height:100svh; display:flex; align-items:center; }
.feat-card{ border-radius:26px; overflow:hidden; box-shadow:var(--shadow); background:var(--surface); border:1px solid var(--border); }
.feat-card img{ width:100%; height:clamp(260px,42vh,420px); object-fit:cover; }
.rail-dot{ width:10px; height:10px; border-radius:50%; background:var(--border); transition:.4s var(--ease); }
.rail-dot.on{ background:var(--coral-500); transform:scale(1.5); box-shadow:0 0 0 6px rgba(226,117,90,.15); }
.icon-chip26{ width:60px; height:60px; border-radius:18px; display:grid; place-items:center; margin-bottom:1rem; }
.chip-n{ background:rgba(111,191,167,.16); color:var(--mint-500); }
.chip-c{ background:rgba(226,117,90,.16); color:var(--coral-500); }

/* ── Stats (scene 5) ────────────────────────────────────────────────────── */
.stats26{ background:var(--navy-900); color:#EAF4F1; }
.stat-card{ padding:2rem 1rem 1.7rem; border-radius:22px; text-align:center;
  transition:transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.stat-card:hover{ transform:translateY(-10px); box-shadow:0 28px 60px rgba(0,0,0,.45); border-color:rgba(111,191,167,.4); }
.stat-ic{ width:56px; height:56px; border-radius:16px; margin:0 auto 1rem; display:grid; place-items:center;
  background:rgba(111,191,167,.16); color:var(--mint-300); transition:transform .4s var(--spring); }
.stat-card:hover .stat-ic{ transform:scale(1.12) rotate(-6deg); }
.stat-ic .material-symbols-outlined{ font-size:30px; }
.stat-num{ font-family:'Fraunces',serif; font-weight:900; font-size:clamp(2.2rem,4.5vw,3.4rem); color:var(--mint-300); line-height:1; letter-spacing:-.03em; }
.stat-label{ color:var(--hero-muted); font-weight:500; margin-top:.5rem; }

/* ── Bento gallery (scene 6) ────────────────────────────────────────────── */
.bento{ display:grid; gap:14px; grid-template-columns:repeat(4,1fr); grid-auto-rows:170px; }
.bento a{ position:relative; border-radius:20px; overflow:hidden; display:block; }
.bento a img{ width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.bento a:hover img{ transform:scale(1.08); }
.bento a span{ position:absolute; left:0; right:0; bottom:0; padding:1rem; color:#fff; font-weight:600; background:linear-gradient(to top,rgba(7,20,26,.8),transparent); }
.b-lg{ grid-column:span 2; grid-row:span 2; }
.b-wide{ grid-column:span 2; }

/* ── Admission tiers (scene 7) ──────────────────────────────────────────── */
.tier{ background:var(--surface); border:1px solid var(--border); border-radius:24px; padding:2rem; transition:transform .4s var(--ease), box-shadow .4s var(--ease); }
.tier:hover{ transform:translateY(-8px); box-shadow:var(--shadow); }
.tier.featured{ border-color:var(--coral-500); box-shadow:0 0 0 1px var(--coral-500), var(--shadow); }
.tier .price{ font-family:'Fraunces',serif; font-weight:800; font-size:1.7rem; color:var(--brand); }

/* ── Testimonials (scene 8) ─────────────────────────────────────────────── */
.quote26{ font-family:'Fraunces',serif; font-size:clamp(1.4rem,3vw,2.1rem); line-height:1.35; color:var(--text); }
.t-rail{ display:flex; gap:1rem; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:1rem; scrollbar-width:none; }
.t-rail::-webkit-scrollbar{ display:none; }
.t-card{ flex:0 0 320px; scroll-snap-align:start; }

/* ── FAQ (scene 9) ──────────────────────────────────────────────────────── */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{ width:100%; text-align:left; background:none; border:0; cursor:pointer; padding:1.3rem 0; display:flex; justify-content:space-between; gap:1rem; align-items:center; color:var(--text); font:600 1.08rem/1.4 'Plus Jakarta Sans',sans-serif; }
.faq-q .chev{ transition:transform .35s var(--ease); color:var(--accent); }
.faq-item[aria-expanded="true"] .chev{ transform:rotate(180deg); }
.faq-a{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .4s var(--ease); }
.faq-item[aria-expanded="true"] .faq-a{ grid-template-rows:1fr; }
.faq-a > div{ overflow:hidden; }
.faq-a p{ color:var(--text-muted); padding-bottom:1.3rem; line-height:1.7; margin:0; }

/* ── Final CTA (scene 10) ───────────────────────────────────────────────── */
.cta26{ position:relative; overflow:hidden; background:var(--navy-900); color:#fff; border-radius:32px; }
.cta26 .mesh{ position:absolute; inset:0; background:radial-gradient(50% 60% at 80% 10%,rgba(111,191,167,.25),transparent 60%),radial-gradient(50% 60% at 10% 90%,rgba(226,117,90,.22),transparent 60%); animation:meshDrift 16s ease-in-out infinite alternate; }
.mini-form{ display:flex; gap:.6rem; flex-wrap:wrap; max-width:560px; margin-inline:auto; }
.mini-form input,.mini-form select{ flex:1 1 150px; min-width:130px; padding:.9rem 1rem; border-radius:14px; border:1px solid rgba(168,216,200,.25); background:rgba(255,255,255,.06); color:#fff; font:500 .95rem 'Plus Jakarta Sans'; }
.mini-form .btn26{ flex:1 1 100%; justify-content:center; margin-top:.2rem; }
.mini-form input::placeholder{ color:rgba(234,244,241,.55); }

/* ── Theme toggle (header) ──────────────────────────────────────────────── */
.theme-toggle{ width:40px; height:40px; border-radius:50%; border:1px solid var(--border,rgba(18,48,61,.12)); background:transparent; display:grid; place-items:center; cursor:pointer; color:inherit; transition:.25s var(--ease); }
.theme-toggle:hover{ background:rgba(111,191,167,.14); transform:translateY(-2px); }

/* ── Mobile bottom action bar ───────────────────────────────────────────── */
.mbar{ position:fixed; left:12px; right:12px; bottom:12px; z-index:1200; display:none; gap:.5rem; padding:.5rem; }
.mbar a{ flex:1; text-align:center; padding:.8rem; border-radius:14px; font:700 .9rem 'Plus Jakarta Sans'; text-decoration:none; display:flex; align-items:center; justify-content:center; gap:.35rem; }
.mbar .m-call{ background:var(--surface-2); color:var(--text); }
.mbar .m-apply{ background:var(--coral-500); color:#fff; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media(max-width:991px){
  .bento{ grid-template-columns:repeat(2,1fr); grid-auto-rows:150px; }
  .b-lg{ grid-column:span 2; grid-row:span 1; }
}
@media(max-width:768px){
  .mbar{ display:flex; }
  body.x26{ padding-bottom:84px; }
  .pin-rail{ position:static; height:auto; }
  .feat-panel{ min-height:auto; padding-block:2rem; }
  .hero26{ min-height:auto; padding-block:130px 70px; }
}

/* ── Programs horizontal scroll (native, no pin) ────────────────────────── */
.prog-scroll{ scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:var(--mint-500) transparent; }
.prog-scroll::-webkit-scrollbar{ height:8px; }
.prog-scroll::-webkit-scrollbar-thumb{ background:rgba(111,191,167,.4); border-radius:99px; }
.prog-scroll .prog-card{ scroll-snap-align:center; }

/* ── Continuous page flow ───────────────────────────────────────────────── */
.cont-divider{ text-align:center; padding:3.5rem 0 1.5rem; }
.cont-divider span{ display:inline-flex; align-items:center; gap:.8rem; font:700 .78rem/1 'Plus Jakarta Sans',sans-serif; letter-spacing:.18em; text-transform:uppercase; color:var(--mint-300); opacity:.65; }
.cont-divider span::before,.cont-divider span::after{ content:''; width:48px; height:1px; background:var(--border); }
.cont-page{ animation:contIn .8s var(--ease) both; }
@keyframes contIn{ from{ opacity:0; transform:translateY(30px);} to{ opacity:1; transform:none; } }

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion:reduce){
  .x26 *,.x26 *::before,.x26 *::after{ animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; }
  .reveal{ opacity:1!important; transform:none!important; }
  .hero-in .word-mask>span{ transform:none!important; }
  .marq,.cta26 .mesh,.hero26 .mesh{ animation:none!important; }
}
