/* The fixed menu overlays the film; it must not add to the hero's height. */
.home-page .hero{padding:0;background:#000}
.home-page .header:not(.is-content){background:linear-gradient(180deg,rgba(4,5,15,.24),transparent);box-shadow:none;backdrop-filter:none}
.home-page .film{height:100svh;min-height:0;max-height:100svh;aspect-ratio:auto;margin:0;width:100%;background-size:cover!important;background-position:center 55%}
.home-page .film video{object-fit:cover;object-position:center 55%}
.home-page .film-controls{right:28px;bottom:20px}
/* Live ink above the blank notebook. The lettering remains sharp at any size. */
.notes-art{width:100%}
.notebook-scene{position:relative;display:block;width:100%;aspect-ratio:1;border:0;padding:0;background:radial-gradient(ellipse at 50% 55%,#f1e7fa88,transparent 68%);color:inherit;cursor:pointer;isolation:isolate}
.notebook-scene:focus-visible{outline:2px solid #ff168d;outline-offset:8px;border-radius:18px}
.notes-art .notebook-scene>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;mix-blend-mode:normal}
.notebook-writing{position:absolute;width:32%;height:auto;left:34%;top:29%;transform:rotate(-15deg);overflow:visible;fill:none;stroke:#2b2331;stroke-width:3.3;stroke-linecap:round;stroke-linejoin:round}
.notebook-writing .ink-accent{stroke:#ff168d;stroke-width:3.4}
.notebook-scene[data-motion-ready] .notebook-writing path{stroke-dasharray:1;stroke-dashoffset:1}
.notebook-scene.is-writing .notebook-writing path{animation:write-ink var(--ink-duration,.18s) linear var(--ink-delay,0s) both}
@keyframes write-ink{to{stroke-dashoffset:0}}
.science-doodle{position:absolute;fill:none;stroke:#ff43a2;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;overflow:visible;pointer-events:none;animation:doodle-float 3s ease-in-out infinite alternate;animation-play-state:paused}
.is-visible .science-doodle{animation-play-state:running}
.doodle-planet{width:19%;left:7%;top:6%;--tilt:-20deg;--rise:-25px;--drift:12px}
.doodle-molecule{width:15%;right:4%;top:9%;--tilt:20deg;--rise:24px;--drift:-12px;animation-duration:3.8s;animation-delay:-2s}
.doodle-atom{width:14%;left:1%;top:58%;--tilt:55deg;--rise:-22px;--drift:10px;animation-duration:4s;animation-delay:-3s}
.doodle-flask{width:11%;right:0;top:62%;--tilt:-18deg;--rise:-28px;--drift:-8px;animation-duration:3.2s;animation-delay:-1s}
.doodle-star{width:5%;left:8%;top:34%;--tilt:40deg;--rise:18px;--drift:-6px;animation-duration:2s}
.doodle-star-small{width:4%;left:14%;top:83%;--tilt:-40deg;--rise:16px;--drift:8px;animation-delay:-2s}
@keyframes doodle-float{0%{transform:translate(0,0) rotate(0) scale(.94)}100%{transform:translate(var(--drift,8px),var(--rise)) rotate(var(--tilt)) scale(1.12)}}

/* A decorative progress ladder. It never intercepts links or the native scroll bar. */
.scroll-ladder{position:fixed;right:10px;top:122px;bottom:92px;width:56px;z-index:18;pointer-events:none;--ladder-ink:#dc94bd;--travel:0px;--progress:0;transition:opacity .25s}
.ladder-track{position:absolute;left:12px;right:9px;top:0;bottom:0;border-left:2px solid var(--ladder-ink);border-right:2px solid var(--ladder-ink);border-radius:4px;background:repeating-linear-gradient(to bottom,transparent 0 25px,var(--ladder-ink) 25px 27px,transparent 27px 30px);opacity:.6}
.ladder-track:before{content:'';position:absolute;left:-2px;top:0;width:2px;height:100%;background:#ff168d;transform:scaleY(var(--progress));transform-origin:top;box-shadow:0 0 8px #ff168d66}
.ladder-climber{position:absolute;width:68px;height:136px;left:-8px;top:0;transform:translateY(var(--travel));will-change:transform}
.ladder-pose{display:block;width:100%;height:100%;background:url('teacher-climb-v16.png') left center/200% 100% no-repeat;filter:drop-shadow(0 3px 3px #18062222)}
.scroll-ladder[data-step="1"] .ladder-pose{background-position:right center}
.scroll-ladder.is-stepping .ladder-climber{filter:drop-shadow(0 0 6px #ff93c822)}
.scroll-ladder.is-hidden{opacity:0}
@media(min-width:1101px){
 .home-page .film-controls{right:88px}
 .home-page .honors-carousel{width:calc(100vw - 168px)}
 .home-page .review-carousel{max-width:min(1320px,calc(100% - 160px))}
}
@media(max-width:1100px){
 .scroll-ladder{right:3px;top:94px;bottom:24px;width:3px}
 .ladder-track{inset:0;border:0;background:#dfc4d6;opacity:.8}
 .ladder-track:before{left:0;width:3px;box-shadow:none}
 .ladder-climber{display:none}
}
@media(max-width:700px){
 .home-page .hero{padding-top:0;padding-bottom:0}
 .home-page .film{height:auto;min-height:0;max-height:none;aspect-ratio:9/16;overflow:hidden;background-image:url('hero-mobile-poster-v16.jpg')!important;background-size:cover!important;background-position:center}
 .home-page .film video{object-fit:contain;object-position:center}
 .home-page .film-controls{bottom:16px;right:16px;gap:8px}
 .home-page .film-controls button{min-height:44px}
 .notebook-scene{margin:0 auto}
}
@media(prefers-reduced-motion:reduce){
 .notebook-scene[data-motion-ready] .notebook-writing path{stroke-dashoffset:0;animation:none}
 .science-doodle{animation:none}
 .scroll-ladder{transition:none}
 .ladder-climber{will-change:auto}
}

/* Speech shares the climber transform; only its entrance fades independently. */
.ladder-speech{position:absolute;right:calc(100% + 7px);top:16px;width:max-content;max-width:154px;padding:8px 11px;border:1.5px solid #ff168d;border-radius:13px 13px 4px 13px;background:#fff;color:#bf0064;font-size:14px;font-weight:750;line-height:1.45;letter-spacing:-.035em;box-shadow:0 3px 12px #160c2918;opacity:0;transform:translateY(5px) scale(.96);transition:opacity .25s,transform .3s;pointer-events:none}
.ladder-speech:after{content:'';position:absolute;right:-5px;top:13px;width:8px;height:8px;background:#fff;border-top:1.5px solid #ff168d;border-right:1.5px solid #ff168d;transform:rotate(45deg)}
.ladder-speech.is-speaking{opacity:1;transform:none}
@media(max-width:1100px){.ladder-speech{display:none}}
@media(prefers-reduced-motion:reduce){.ladder-speech{transition:none;transform:none}}