/* Canadian FAIT Research — shared cinematic scene system.
   Generic primitives (.scene / .scene-scrub / .scene-sticky / .scene-content / .is-in)
   are wired by /scenes.js on every page. Overlay-only chrome (#cinematic-intro,
   ci-close/ci-progress/ci-dot, html.ci-lock) is homepage-specific and stays here
   too since it's small. Homepage bespoke illustrations use an "hp-" prefix since
   they're one-off visuals, not shared vocabulary. Per-batch bespoke scene CSS for
   other pages gets appended below in its own labelled section, reusing the same
   .scene-* primitives. */

/* ============================================================
   1. Generic scene primitives — used by every page via scenes.js
   ============================================================ */
.scene{
  min-height:100vh;min-height:100svh;
  display:flex;align-items:center;justify-content:center;
  padding:100px 24px;position:relative;z-index:1;overflow:hidden;
}
.scene.scene-scrub{overflow:visible;display:block;padding:0}

.scene-sticky{
  position:sticky;top:0;height:100vh;height:100svh;
  display:flex;align-items:center;justify-content:center;gap:56px;
  padding:100px 24px;overflow:hidden;max-width:1180px;margin:0 auto;
}

.scene-content{max-width:680px;text-align:center;color:var(--ink)}
.scene-content-half{flex:1;max-width:480px;text-align:left}
.scene-content-wide{max-width:800px}
.scene-content > *{
  opacity:0;transform:translateY(28px);
  transition:opacity .8s ease,transform .8s ease;
}
.scene.is-in .scene-content > *{opacity:1;transform:translateY(0)}
.scene-content > *:nth-child(1){transition-delay:.05s}
.scene-content > *:nth-child(2){transition-delay:.22s}
.scene-content > *:nth-child(3){transition-delay:.4s}
.scene-content > *:nth-child(4){transition-delay:.58s}
.scene-content > *:nth-child(5){transition-delay:.76s}

.scene-mark{
  display:inline-flex;width:64px;height:64px;border-radius:18px;
  align-items:center;justify-content:center;font-size:1.8rem;margin:0 auto 22px;
  background:linear-gradient(135deg,var(--blue),var(--teal));
}
.scene-eyebrow{
  display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--teal);margin-bottom:18px;
}
.scene h2{font-size:clamp(1.7rem,4.2vw,2.6rem);font-weight:800;color:var(--ink);line-height:1.25;margin:0 0 .55em}
.scene p{font-size:clamp(1rem,2vw,1.15rem);color:var(--ink2);margin:0 0 1em}
.scene strong{color:var(--ink)}
.scene-stat{margin-top:26px;font-size:1.08rem;color:rgba(255,255,255,.92)}

.scene-list{list-style:none;margin:28px 0 0;padding:0;text-align:left;display:grid;gap:16px}
.scene-list-item{
  padding:16px 20px;border-radius:14px;background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.88);font-size:1.02rem;
  transition:background .3s ease,border-color .3s ease;
}
.scene-list-item strong{display:block;font-size:1.05rem;margin-bottom:2px;color:#fff}
.scene-list-item.is-active{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.42)}

/* Scroll-scrubbed visual pane — the illustration half of a .scene-sticky split */
.scene-visual{flex:1;position:relative;min-height:320px;display:flex;align-items:center;justify-content:center}

/* One continuous background wash across a tall .scene-scrub track — pass the
   gradient via --scene-gradient per section so each page can pick its own stops. */
.scene-gradient-bg{
  position:absolute;inset:0;z-index:0;pointer-events:none;
  background:var(--scene-gradient, linear-gradient(180deg,#0B1620 0%,#2AA79B 100%));
}

.scene-particles{position:absolute;inset:0;pointer-events:none;z-index:0}
.scene-particles span{
  position:absolute;width:6px;height:6px;border-radius:50%;
  background:rgba(255,255,255,.35);animation:scene-float 7s ease-in-out infinite;
}
.scene-particles span:nth-child(1){top:18%;left:12%;animation-delay:0s}
.scene-particles span:nth-child(2){top:70%;left:20%;animation-delay:1.2s}
.scene-particles span:nth-child(3){top:30%;left:82%;animation-delay:2.1s}
.scene-particles span:nth-child(4){top:60%;left:78%;animation-delay:.6s}
.scene-particles span:nth-child(5){top:85%;left:55%;animation-delay:1.8s}
.scene-particles span:nth-child(6){top:12%;left:60%;animation-delay:2.6s}
@keyframes scene-float{
  0%,100%{transform:translateY(0) scale(1);opacity:.35}
  50%{transform:translateY(-22px) scale(1.4);opacity:.8}
}

.scene-scrolldown{
  position:absolute;bottom:36px;left:50%;transform:translateX(-50%);
  color:rgba(255,255,255,.65);font-size:.85rem;font-weight:600;letter-spacing:.03em;
  display:flex;flex-direction:column;align-items:center;gap:6px;
}
.scene-arrow{animation:scene-bounce 1.8s ease-in-out infinite}
@keyframes scene-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(8px)}}

.scene-preview-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:28px 0 34px;text-align:left}
@media(max-width:600px){.scene-preview-grid{grid-template-columns:1fr}}
.scene-preview-card{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:14px;padding:18px 20px}
.scene-preview-card strong{display:block;color:#fff;font-size:1rem;margin-bottom:4px}
.scene-preview-card span{color:rgba(255,255,255,.82);font-size:.9rem}

.scene-enter{background:#fff;color:var(--blue-d) !important}
.scene-enter:hover{background:rgba(255,255,255,.9)}
.scene-enter:focus-visible{outline:3px solid #fff;outline-offset:3px}

.scene-glow{
  position:absolute;top:-60px;left:50%;margin-left:-210px;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.35),rgba(255,255,255,0) 70%);
  pointer-events:none;z-index:-1;
}

@media(max-width:900px){
  .scene-sticky{flex-direction:column;gap:18px;padding:88px 20px 32px;justify-content:flex-start;overflow-y:auto}
  .scene-content-half{max-width:100%;text-align:center}
  .scene-visual{min-height:0;transform:scale(.7)}
}

/* ============================================================
   2. Homepage intro overlay — chrome only (open/close/lock/dots)
   ============================================================ */
#cinematic-intro{
  position:fixed;inset:0;z-index:9999;
  opacity:0;visibility:hidden;pointer-events:none;
  transition:opacity .5s ease;
  background:#0B1620;
  font-family:var(--font);
}
#cinematic-intro.ci-open{opacity:1;visibility:visible;pointer-events:auto}
html.ci-lock{overflow:hidden}

/* The intro's own background is hardcoded dark in every theme (above), so its
   text must stay hardcoded light too — only the *shared* .scene/.scene-scrub
   primitives reused standalone on other pages (whose background genuinely
   flips with the theme) should follow var(--ink)/var(--teal) instead. */
#cinematic-intro .scene-eyebrow{color:rgba(255,255,255,.7)}
#cinematic-intro .scene h2{color:#fff}
#cinematic-intro .scene p{color:rgba(255,255,255,.86)}
#cinematic-intro .scene strong{color:#fff}

.ci-close{
  position:absolute;top:20px;right:20px;z-index:20;
  width:44px;height:44px;border-radius:50%;border:1.5px solid rgba(255,255,255,.35);
  background:rgba(11,22,32,.4);backdrop-filter:blur(6px);color:#fff;
  font-size:1.1rem;line-height:1;cursor:pointer;transition:.15s;
}
.ci-close:hover{background:rgba(255,255,255,.15);border-color:#fff}
.ci-close:focus-visible{outline:3px solid #fff;outline-offset:2px}

.ci-progress{
  position:absolute;top:50%;right:26px;transform:translateY(-50%);z-index:20;
  display:flex;flex-direction:column;gap:10px;
}
.ci-dot{
  width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.3);
  border:none;padding:0;cursor:pointer;transition:.2s;
}
.ci-dot:hover{background:rgba(255,255,255,.6)}
.ci-dot.ci-dot-active{background:#fff;transform:scale(1.3)}
@media(max-width:640px){.ci-progress{display:none}}

.ci-scroll{
  position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;
  scroll-snap-type:y mandatory;
}
.ci-track{position:relative}
.scene{scroll-snap-align:start;scroll-snap-stop:always}

#watch-intro-link{cursor:pointer}

/* ============================================================
   3. Homepage bespoke scenes — "hp-" prefix, one-off illustrations
   ============================================================ */
.scene-panel-1 .scene-title{font-size:clamp(2.4rem,7vw,4.2rem);font-weight:800;color:#fff;margin:0 0 .3em}
.scene-panel-1 .scene-sub{font-size:clamp(1.05rem,2.4vw,1.35rem);color:rgba(255,255,255,.75);margin:0}

.hp-science{height:240vh}
.hp-body{height:240vh}
.hp-hope{height:220vh}

/* Peanut cracking open to reveal allergen proteins (Ara h 2 / Ara h 6 are real
   peanut-allergen names), then IgE antibodies converge and a histamine glow blooms. */
.hp-peanut{position:relative;width:260px;height:200px}
.hp-shell{
  position:absolute;top:20px;width:140px;height:160px;
  background:linear-gradient(135deg,#E3C08B,#B9884F);
  box-shadow:inset -10px -10px 20px rgba(0,0,0,.28),0 8px 20px rgba(0,0,0,.25);
}
.hp-shell-left{
  left:20px;border-radius:60% 40% 55% 45%/58% 42% 60% 40%;
  transform:translateX(calc(var(--p,0) * -70px)) rotate(calc(var(--p,0) * -22deg));
}
.hp-shell-right{
  right:20px;border-radius:40% 60% 45% 55%/42% 58% 40% 60%;
  transform:translateX(calc(var(--p,0) * 70px)) rotate(calc(var(--p,0) * 22deg));
}
.hp-protein{
  position:absolute;top:50%;width:56px;height:56px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#FFE9C7,#E8B45A);
  box-shadow:0 0 18px rgba(232,180,90,.55);
  display:flex;align-items:center;justify-content:center;text-align:center;
  opacity:calc(var(--p,0) * 2.4 - 0.5);
  transform:translateY(-50%) scale(calc(0.4 + var(--p,0) * 0.9));
}
.hp-protein-a{left:50%;margin-left:-72px}
.hp-protein-b{left:50%;margin-left:16px}
.hp-protein span{font-size:.62rem;font-weight:800;color:#7A4A12;text-shadow:0 1px 0 rgba(255,255,255,.4)}
.hp-antibody{
  position:absolute;width:44px;height:44px;
  stroke:#fff;stroke-width:3;stroke-linecap:round;fill:none;
  opacity:calc(var(--p,0) * 2.2 - 1.1);
  filter:drop-shadow(0 0 4px rgba(255,255,255,.6));
}
.hp-antibody-1{top:-6px;left:38%;transform:translate(calc((1 - var(--p,0)) * -34px),calc((1 - var(--p,0)) * -34px)) rotate(calc((1 - var(--p,0)) * -40deg))}
.hp-antibody-2{top:-10px;right:30%;transform:translate(calc((1 - var(--p,0)) * 34px),calc((1 - var(--p,0)) * -38px)) rotate(calc((1 - var(--p,0)) * 40deg))}
.hp-antibody-3{bottom:-4px;left:50%;transform:translate(calc((1 - var(--p,0)) * -12px),calc((1 - var(--p,0)) * 40px)) rotate(calc((1 - var(--p,0)) * 20deg))}
.hp-histamine-glow{
  position:absolute;top:50%;left:50%;width:160px;height:160px;margin:-80px 0 0 -80px;
  border-radius:50%;background:radial-gradient(circle,rgba(255,120,80,.65),rgba(255,120,80,0) 70%);
  filter:blur(4px);pointer-events:none;
  opacity:calc(var(--p,0) * 2.5 - 1.6);
  transform:scale(calc(0.5 + var(--p,0) * 0.9));
}

/* A figure lights up system-by-system as you scroll, driven by --s0..--s3
   (scenes.js's generic per-substage vars, data-substages="4" on the panel). */
.hp-figure{position:relative;width:180px;height:320px}
.hp-fig-head{position:absolute;top:0;left:50%;transform:translateX(-50%);width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.16);border:2px solid rgba(255,255,255,.4)}
.hp-fig-torso{position:absolute;top:66px;left:50%;transform:translateX(-50%);width:104px;height:150px;border-radius:46px 46px 26px 26px;background:rgba(255,255,255,.11);border:2px solid rgba(255,255,255,.32)}
.hp-fig-arm{position:absolute;top:80px;width:26px;height:120px;border-radius:14px;background:rgba(255,255,255,.11);border:2px solid rgba(255,255,255,.3)}
.hp-fig-arm-l{left:16px;transform:rotate(10deg)}
.hp-fig-arm-r{right:16px;transform:rotate(-10deg)}
.hp-fig-leg{position:absolute;top:210px;width:32px;height:110px;border-radius:0 0 16px 16px;background:rgba(255,255,255,.11);border:2px solid rgba(255,255,255,.3)}
.hp-fig-leg-l{left:52px}
.hp-fig-leg-r{right:52px}
.hp-hot{position:absolute;border-radius:50%;pointer-events:none}
.hp-hot-skin{width:16px;height:16px;background:radial-gradient(circle,#FF8B6B,rgba(255,139,107,0));box-shadow:0 0 14px rgba(255,139,107,.8);opacity:var(--s0,0)}
.hp-hot-skin-1{top:96px;left:26px}
.hp-hot-skin-2{top:150px;right:20px}
.hp-hot-skin-3{top:190px;left:70px}
.hp-hot-airway{width:26px;height:26px;top:56px;left:50%;margin-left:-13px;background:radial-gradient(circle,#7EC8FF,rgba(126,200,255,0));box-shadow:0 0 14px rgba(126,200,255,.8);opacity:var(--s1,0)}
.hp-hot-digestion{width:34px;height:34px;top:150px;left:50%;margin-left:-17px;background:radial-gradient(circle,#B98BFF,rgba(185,139,255,0));box-shadow:0 0 14px rgba(185,139,255,.8);opacity:var(--s2,0)}
.hp-hot-heart{width:30px;height:30px;top:100px;left:50%;margin-left:-58px;background:radial-gradient(circle,#FF6B6B,rgba(255,107,107,0));box-shadow:0 0 14px rgba(255,107,107,.8);opacity:var(--s3,0)}
.hp-heartbeat{
  position:absolute;top:120px;left:50%;margin-left:-52px;width:130px;height:44px;
  stroke:#FF8484;stroke-width:3;fill:none;stroke-linecap:round;stroke-linejoin:round;
  opacity:var(--s3,0);
}
.hp-heartbeat path{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--s3,0))}

/* A food label under a slowly scanning magnifier. */
.hp-label-scene{position:relative;max-width:320px;margin:36px auto 0;height:140px}
.hp-label-card{
  position:absolute;inset:0;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.25);
  border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:12px;justify-content:center;
}
.hp-label-line{display:block;height:8px;border-radius:4px;background:rgba(255,255,255,.3)}
.hp-label-line-hot{background:rgba(255,140,110,.55)}
.hp-magnifier{
  position:absolute;width:56px;height:56px;border-radius:50%;top:10px;left:-10px;
  border:4px solid rgba(255,255,255,.55);box-shadow:0 0 0 6px rgba(255,255,255,.05) inset;
  animation:hp-scan 5s ease-in-out infinite;
}
.hp-magnifier::after{
  content:"";position:absolute;width:4px;height:26px;background:rgba(255,255,255,.55);
  bottom:-22px;right:-4px;transform:rotate(45deg);border-radius:2px;
}
@keyframes hp-scan{0%,100%{transform:translate(0,0)}50%{transform:translate(220px,30px)}}

/* Hope — a seed grows a stem (drawn via stroke-dashoffset from --p) and unfurls
   two leaves; a sun glow brightens in step with the same --p. */
.hp-seed-scene{position:relative;width:220px;height:340px}
.hp-sun-glow{
  position:absolute;top:-20px;right:-10px;width:180px;height:180px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,244,214,.55),rgba(255,244,214,0) 70%);
  filter:blur(2px);pointer-events:none;opacity:calc(var(--p,0) * 1.3);
}
.hp-stem{position:absolute;bottom:0;left:50%;margin-left:-100px;width:200px;height:320px;stroke:rgba(255,255,255,.85);stroke-width:5;fill:none;stroke-linecap:round}
.hp-stem path{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--p,0))}
.hp-leaf{
  position:absolute;width:46px;height:30px;border-radius:0 100% 0 100%;
  background:linear-gradient(135deg,#7BD9A5,#3FA876);box-shadow:0 0 10px rgba(123,217,165,.4);
  opacity:calc(var(--p,0) * 2 - 1.1);
}
.hp-leaf-l{bottom:150px;left:50%;margin-left:-50px;transform:rotate(calc(-20deg - (1 - var(--p,0)) * 30deg)) scale(calc(0.6 + var(--p,0) * 0.5))}
.hp-leaf-r{bottom:190px;left:50%;margin-left:4px;transform:rotate(calc(20deg + (1 - var(--p,0)) * 30deg)) scale(calc(0.6 + var(--p,0) * 0.5))}
.hp-seed{position:absolute;bottom:0;left:50%;width:26px;height:18px;margin-left:-13px;border-radius:50%;background:linear-gradient(160deg,#B98452,#8B5E34);box-shadow:0 4px 10px rgba(0,0,0,.3)}

/* ============================================================
   4. Batch A — shared scene for the 8 SEO landing pages
   ============================================================ */
.seo-approach-scene{height:130vh}
.seo-diverge{width:240px;height:220px;overflow:visible}
.seo-origin{fill:var(--teal)}
.seo-path{fill:none;stroke:var(--card-line);stroke-width:3;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--p,0))}
.seo-endpoint{
  fill:var(--card);stroke:var(--card-line);stroke-width:1.5;
  opacity:calc(var(--p,0) * 2 - 1);transform-origin:center;
  transform:scale(calc(0.6 + var(--p,0) * 0.5));transform-box:fill-box;
}
.seo-endpoint-label{fill:var(--ink);font-family:var(--font);font-weight:800;font-size:15px;opacity:calc(var(--p,0) * 2 - 1)}

/* ============================================================
   5. Batch B — resources hub, families, providers
   ============================================================ */
.res-hub-scene{height:125vh}
.res-doors{display:flex;gap:32px;perspective:800px}
.res-door{
  width:90px;height:160px;background:var(--card);border:1px solid var(--card-line);
  border-radius:8px;position:relative;transform-origin:left center;
  transform:rotateY(calc(var(--p,0) * -55deg));
}
.res-door-b{transform-origin:right center;transform:rotateY(calc(var(--p,0) * 55deg))}
.res-door-glow{
  position:absolute;inset:0;margin:auto;width:60%;height:80%;
  background:radial-gradient(circle,rgba(42,167,155,.5),transparent 70%);
  opacity:var(--p,0);border-radius:6px;
}
.res-door-label{position:absolute;bottom:-28px;left:50%;transform:translateX(-50%);white-space:nowrap;color:var(--ink);font-weight:700;font-size:.85rem}

.res-ladder-scene{height:135vh}
.res-ladder{position:relative;width:140px;height:320px;margin:0 auto}
.res-rail{position:absolute;top:0;bottom:0;width:8px;background:var(--card-line);border-radius:4px}
.res-rail-l{left:10px}
.res-rail-r{right:10px}
.res-rung{position:absolute;left:10px;right:10px;height:8px;border-radius:4px;background:var(--card-line)}
.res-rung.is-active{background:var(--teal);box-shadow:0 0 12px rgba(42,167,155,.7)}

.res-vault-scene{height:125vh}
.res-lock{position:relative;width:120px;height:150px;margin:0 auto}
.res-lock-body{position:absolute;bottom:0;width:120px;height:90px;border-radius:14px;background:var(--card);border:2px solid var(--card-line)}
.res-lock-shackle{
  position:absolute;top:0;left:20px;width:80px;height:80px;border:10px solid var(--ink3);
  border-bottom:none;border-radius:40px 40px 0 0;transform-origin:20px 80px;
  transform:rotate(calc(var(--p,0) * -55deg));
}
.res-lock-hole{position:absolute;bottom:35px;left:50%;transform:translateX(-50%);width:16px;height:16px;border-radius:50%;background:var(--ink3);opacity:calc(1 - var(--p,0))}
.res-lock-check{position:absolute;bottom:30px;left:50%;transform:translateX(-50%);color:var(--teal);font-size:1.6rem;font-weight:800;opacity:calc(var(--p,0)*2 - 1)}

/* ============================================================
   6. Batch C — research, learn, about
   ============================================================ */
.res-registry-scene{height:130vh}
.res-counter{font-size:clamp(3rem,8vw,5rem);font-weight:800;color:var(--ink);line-height:1}
.res-counter-label{color:var(--ink2);font-size:1rem;margin-top:4px;display:block}
.res-map{position:relative;width:260px;height:220px}
.res-pin{
  position:absolute;width:14px;height:14px;border-radius:50% 50% 50% 0;background:var(--teal);
  box-shadow:0 0 10px rgba(42,167,155,.7);transform:rotate(-45deg) scale(calc(var(--p,0) * 1.6));
}
.res-pin-1{opacity:calc(var(--p,0)*3 - 0);top:20px;left:40px}
.res-pin-2{opacity:calc(var(--p,0)*3 - 0.3);top:60px;left:120px}
.res-pin-3{opacity:calc(var(--p,0)*3 - 0.6);top:30px;left:190px}
.res-pin-4{opacity:calc(var(--p,0)*3 - 0.9);top:120px;left:70px}
.res-pin-5{opacity:calc(var(--p,0)*3 - 1.2);top:140px;left:160px}

.learn-calendar-scene{height:125vh}
.learn-page{position:relative;width:200px;height:240px;perspective:600px}
.learn-page-back{position:absolute;inset:0;background:var(--card);border:1px solid var(--card-line);border-radius:10px;display:flex;align-items:center;justify-content:center}
.learn-page-back .learn-date{color:var(--teal);font-weight:800;font-size:1.4rem}
.learn-page-front{
  position:absolute;inset:0;background:var(--card);border:1px solid var(--card-line);
  border-radius:10px;transform-origin:left center;backface-visibility:hidden;
  transform:rotateY(calc(var(--p,0) * -150deg));display:flex;align-items:center;justify-content:center;
}
.learn-page-front span{color:var(--ink2);font-weight:700}

.ab-growth-scene{height:122vh}
.ab-ring{position:relative;width:220px;height:220px}
.ab-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ab-ring-track{fill:none;stroke:var(--card-line);stroke-width:10}
.ab-ring-fill{fill:none;stroke:var(--teal);stroke-width:10;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--p,0))}
.ab-ring-year{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--ink);text-align:center}
.ab-ring-year strong{font-size:1.8rem;display:block}

/* ============================================================
   7. Batch D — treatment-options hub + SLIT/OIT/future-research
   ============================================================ */
.to-hub-scene{height:125vh}

.to-dose-scene{height:135vh}
.to-drop-wrap{position:relative;width:80px;height:240px;margin:0 auto}
.to-dose-track{position:absolute;bottom:0;left:50%;width:4px;height:200px;margin-left:-2px;background:var(--card-line)}
.to-drop-shape{
  position:absolute;top:0;left:50%;width:22px;height:28px;margin-left:-11px;
  background:var(--teal);border-radius:0 70% 70% 70%;
  transform:rotate(45deg) translateY(calc(var(--p,0) * 190px));
  box-shadow:0 0 10px rgba(42,167,155,.6);
}
.to-dose-dot{position:absolute;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;background:var(--card-line)}
.to-dose-dot.is-active{background:var(--teal);box-shadow:0 0 10px rgba(42,167,155,.7)}

.to-stair-scene{height:130vh}
.to-stair{display:flex;align-items:flex-end;gap:14px;height:200px}
.to-stair-bar{width:50px;background:var(--card-line);border-radius:6px 6px 0 0}
.to-stair-bar.is-active{background:var(--teal);box-shadow:0 0 12px rgba(42,167,155,.6)}
.to-stair-bar-1{height:60px}
.to-stair-bar-2{height:130px}
.to-stair-bar-3{height:200px}

.to-tracks-scene{height:125vh}
.to-tracks{display:flex;gap:28px}
.to-track{width:70px;text-align:center}
.to-track-1{opacity:calc(var(--p,0)*3 - 0)}
.to-track-2{opacity:calc(var(--p,0)*3 - 0.5)}
.to-track-3{opacity:calc(var(--p,0)*3 - 1)}
.to-track-icon{font-size:2rem}
.to-track-label{color:var(--ink2);font-size:.78rem;margin-top:6px;display:block}

/* ============================================================
   8. Batch E — contact, faq, community, school-talks
   ============================================================ */
.ct-envelope-scene{height:118vh}
.ct-envelope{position:relative;width:160px;height:110px}
.ct-env-body{position:absolute;inset:0;background:var(--card);border:1px solid var(--card-line);border-radius:8px}
.ct-env-flap{
  position:absolute;top:0;left:0;right:0;height:55px;background:var(--card-line);
  clip-path:polygon(0 0,100% 0,50% 100%);transform-origin:top center;
  transform:rotateX(calc(var(--p,0) * -160deg));transform-style:preserve-3d;
}
.ct-env-mark{position:absolute;bottom:-14px;left:50%;transform:translateX(-50%);color:var(--teal);font-size:1.3rem;opacity:calc(var(--p,0)*2 - 1)}

.faq-book-scene{height:122vh}
.faq-book{position:relative;width:180px;height:140px;perspective:600px}
.faq-page{position:absolute;top:0;width:90px;height:140px;background:var(--card);border:1px solid var(--card-line)}
.faq-page-l{left:0;border-radius:8px 0 0 8px;transform-origin:right center;transform:rotateY(calc(var(--p,0) * 35deg))}
.faq-page-r{right:0;border-radius:0 8px 8px 0;transform-origin:left center;transform:rotateY(calc(var(--p,0) * -35deg))}
.faq-mark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:2.4rem;font-weight:800;color:var(--teal);opacity:calc(var(--p,0)*2 - 0.6)}

.cm-postcards-scene{height:125vh}
.cm-postcards{position:relative;width:280px;height:220px}
.cm-postcard{
  position:absolute;width:96px;height:60px;background:var(--card);border:1px solid var(--card-line);
  border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--ink2);
  font-size:.78rem;font-weight:700;text-align:center;padding:6px;
}
.cm-postcard-1{top:0;left:10px;opacity:calc(var(--p,0)*3 - 0)}
.cm-postcard-2{top:20px;left:170px;opacity:calc(var(--p,0)*3 - 0.4)}
.cm-postcard-3{top:120px;left:0;opacity:calc(var(--p,0)*3 - 0.8)}
.cm-postcard-4{top:140px;left:170px;opacity:calc(var(--p,0)*3 - 1.2)}

.st-lesson-scene{height:135vh}
.st-board{position:relative;width:240px;background:var(--card);border:1px solid var(--card-line);border-radius:12px;padding:20px}
.st-lesson-row{opacity:.3;font-size:.88rem;color:var(--ink2);margin-bottom:12px}
.st-lesson-row:last-child{margin-bottom:0}
.st-lesson-row.is-active{opacity:1;color:var(--ink);font-weight:700}

@media(prefers-reduced-motion:reduce){
  .scene-content > *{transition:none;opacity:1;transform:none}
  .scene-arrow{animation:none}
  .scene-particles span{animation:none}
  .hp-magnifier{animation:none}
  #cinematic-intro{transition:none}
}
