*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{scroll-snap-type:y proximity}
body{color:#F4F0EB;font-family:'Outfit',sans-serif;font-weight:300;font-size:1.125rem;line-height:1.85;overflow-x:hidden}

/* Layer 0: Sky */
.layer-sky{position:fixed;inset:0;z-index:0;background:linear-gradient(180deg,#A8D8EA 0%,#7B9ACC 100%)}

/* Layer 1: Far botanicals */
.layer-far{position:fixed;inset:0;z-index:1;pointer-events:none;will-change:transform}
.far-fern{position:absolute;filter:blur(8px)}
.f1{left:5%;top:20%}
.f2{right:8%;top:40%}

/* Layer 3: Foreground */
.layer-near{position:fixed;inset:0;z-index:4;pointer-events:none;will-change:transform}
.near-leaf{position:absolute;filter:drop-shadow(0 2px 4px rgba(0,0,0,0.15))}
.n1{left:3%;top:60%}
.n2{right:4%;top:30%}

/* Layer 2: Content */
.layer-content{position:relative;z-index:2}

/* Scenes */
.scene{min-height:100vh;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(40px,6vw,80px) clamp(16px,4vw,48px);scroll-snap-align:start}

/* Frost panels */
.frost-panel{background:rgba(255,255,255,0.12);backdrop-filter:blur(20px) saturate(1.4);-webkit-backdrop-filter:blur(20px) saturate(1.4);border:1px solid rgba(255,255,255,0.18);border-radius:24px;padding:clamp(2rem,5vw,4rem);max-width:720px;width:100%;margin:0 auto;box-shadow:0 8px 32px rgba(27,42,74,0.08),inset 0 1px 0 rgba(255,255,255,0.2)}
.frost-panel h2{font-family:'Righteous',cursive;font-size:clamp(1.8rem,4vw,3rem);letter-spacing:0.04em;color:#FFFDF7;margin-bottom:12px}
.frost-panel h3{font-family:'Righteous',cursive;font-size:clamp(1.3rem,2.5vw,2rem);letter-spacing:0.04em;color:#FFFDF7;margin-bottom:8px}
.frost-panel p{color:#F4F0EB;max-width:60ch}

/* Glow variant for Scene 5 */
.frost-glow{background:rgba(94,196,182,0.08);border:1px solid rgba(94,196,182,0.2);box-shadow:0 8px 32px rgba(94,196,182,0.1),inset 0 1px 0 rgba(94,196,182,0.15)}

/* Scene 1: Observatory Dome */
.scene-dome{position:relative}
.starburst{position:absolute;opacity:0.6}
.ray{opacity:0;transform-origin:150px 150px;transition:opacity 0.4s ease,transform 0.4s ease}
.starburst.active .ray{opacity:1;transform:scaleY(1)}
.starburst.breathing{animation:breathe 6s ease-in-out infinite}
@keyframes breathe{0%,100%{transform:scale(0.97)}50%{transform:scale(1.03)}}
.dome-text{position:relative;z-index:5;text-align:center}
.hero-name{font-family:'Righteous',cursive;font-size:clamp(3rem,8vw,7rem);letter-spacing:0.08em;color:#FFFDF7;line-height:1}
.hero-sub{font-family:'Outfit',sans-serif;font-weight:300;font-size:clamp(0.95rem,1.8vw,1.2rem);color:#F4F0EB;margin-top:12px;letter-spacing:0.02em;opacity:0;transition:opacity 1.5s ease 1.5s}
.hero-sub.show{opacity:1}

/* Scene 2: Atrium */
.scene-atrium{gap:clamp(24px,4vw,48px)}
.atrium-ferns{display:flex;justify-content:center;gap:clamp(60px,20vw,300px)}
.atrium-fern{flex-shrink:0}

/* SVG path draw */
.draw-path{stroke-dasharray:500;stroke-dashoffset:500;transition:stroke-dashoffset 2.5s ease-out}
.draw-visible .draw-path{stroke-dashoffset:0}

/* Scene 3: Gallery */
.scene-gallery{gap:clamp(24px,3vw,40px)}
.specimen{text-align:center}
.specimen-svg{margin-bottom:12px}

/* Living tremor */
@keyframes livingTremor{0%,100%{transform:translate(0,0) rotate(0deg)}15%{transform:translate(-1.5px,0.5px) rotate(-0.3deg)}30%{transform:translate(1px,-0.5px) rotate(0.2deg)}45%{transform:translate(-0.5px,1px) rotate(-0.1deg)}60%{transform:translate(1px,0px) rotate(0.15deg)}80%{transform:translate(-0.5px,-0.5px) rotate(-0.1deg)}}
.tremor-active{animation:livingTremor 0.5s cubic-bezier(0.36,0.07,0.19,0.97) 1}

/* Scene 4: Skybridge */
.scene-skybridge{background:linear-gradient(180deg,transparent,rgba(27,42,74,0.15))}
.skyline{margin-bottom:clamp(24px,4vw,48px)}
.sky-text{font-family:'Righteous',cursive;font-size:clamp(1.6rem,3.5vw,3rem);letter-spacing:0.04em;color:#FFFDF7;text-align:center;line-height:1.4}

/* Scene 5: Root System */
.scene-roots{background:linear-gradient(180deg,rgba(27,42,74,0.6),#1B2A4A);gap:clamp(24px,4vw,48px)}
.root-network{display:block;margin:0 auto}
.root-path{stroke-dasharray:300;stroke-dashoffset:300;transition:stroke-dashoffset 1.5s ease-out}
.roots-visible .r1{stroke-dashoffset:0;transition-delay:0s}
.roots-visible .r2{stroke-dashoffset:0;transition-delay:0.15s}
.roots-visible .r3{stroke-dashoffset:0;transition-delay:0.3s}
.roots-visible .r4{stroke-dashoffset:0;transition-delay:0.45s}
.roots-visible .r5{stroke-dashoffset:0;transition-delay:0.6s}
.roots-visible .r6{stroke-dashoffset:0;transition-delay:0.75s}
.roots-visible .r7{stroke-dashoffset:0;transition-delay:0.9s}
.roots-visible .rb1{stroke-dashoffset:0;transition-delay:1.2s}
.roots-visible .rb2{stroke-dashoffset:0;transition-delay:1.3s}
.roots-visible .rb3{stroke-dashoffset:0;transition-delay:1.4s}
.roots-visible .rb4{stroke-dashoffset:0;transition-delay:1.5s}

.footer-text{font-family:'Outfit',sans-serif;font-weight:500;font-size:0.8125rem;letter-spacing:0.06em;text-transform:uppercase;color:rgba(244,240,235,0.4)}

/* Reveal */
[data-reveal]{opacity:0;transform:translateY(20px);transition:opacity 0.7s cubic-bezier(0.23,1,0.32,1),transform 0.7s cubic-bezier(0.23,1,0.32,1)}
[data-reveal].visible{opacity:1;transform:translateY(0)}

/* Responsive */
@media(max-width:768px){
.layer-near{display:none}
.atrium-ferns{gap:40px}
.starburst{width:200px;height:200px}
}
