/* The illustrated opening is a separate narrative from dated project records. */
.habitat-story{height:370vh;height:370svh;background:#123727;position:relative}
.habitat-stage{height:100vh;height:100svh;min-height:0;overflow:hidden;position:-webkit-sticky;position:sticky;top:0;isolation:isolate;background:#bfdccd;color:#fff}
.forest-layer{position:absolute;inset:-2%;z-index:-5;transform-origin:50% 70%;will-change:transform,filter}
.forest-layer>img{width:100%;height:100%;object-fit:cover;object-position:center bottom}
.habitat-stage:after{content:'';position:absolute;inset:0;background:linear-gradient(#0000004a,transparent 50%,#00000055);pointer-events:none;z-index:5}
.habitat-title{position:absolute;top:20%;left:8%;right:8%;text-align:center;text-shadow:0 3px 35px #072f1faa;z-index:7;will-change:transform,opacity}
.habitat-title h1{font-size:clamp(3.2rem,6.5vw,7rem);line-height:1.04;letter-spacing:-.055em}
.habitat-title .eyebrow{margin-bottom:22px}
.habitat-title>p:last-child{font-size:17px;margin-top:24px}
.deer-track,.rabbit-track{position:absolute;bottom:10%;z-index:2;will-change:transform,opacity}
.deer-track{left:34%;width:clamp(150px,19vw,310px)}
.rabbit-track{left:56%;bottom:11%;width:clamp(85px,10vw,160px)}
.deer-track>img,.rabbit-track>img{width:100%;height:auto;filter:drop-shadow(0 14px 12px #17392340)}
.butterfly-layer{position:absolute;inset:0;z-index:3;pointer-events:none;will-change:transform,opacity}
.butterfly{position:absolute;width:clamp(22px,3vw,42px);animation:flutter 5s ease-in-out infinite}
.b1{left:28%;top:61%}.b2{left:65%;top:53%;animation-delay:-2s;width:30px}.b3{left:47%;top:67%;animation-delay:-3.5s;width:25px}.b4{left:77%;top:69%;animation-delay:-1s;width:36px}
@keyframes flutter{0%,100%{transform:translate(0,0) rotate(-7deg)}50%{transform:translate(13px,-18px) rotate(10deg)}}
.foreground-layer{position:absolute;inset:auto -2% -5%;height:22%;z-index:4;pointer-events:none;will-change:transform,opacity}
.foreground-layer img{height:100%;width:100%;object-fit:cover;object-position:center bottom}
.industrial-ground{position:absolute;inset:62% 0 0;z-index:-1;background:linear-gradient(#4d5557,#252f30);opacity:0}
.habitat-shadow{position:absolute;inset:0;background:linear-gradient(#15151566,#151515);opacity:0;z-index:1;pointer-events:none}
.building-track{position:absolute;left:50%;top:25%;width:min(1400px,112vw);margin-left:max(-700px,-56vw);height:68%;z-index:4;transform:translateY(-125vh);opacity:0;will-change:transform;display:flex;align-items:flex-end;justify-content:center}
.building-track img{width:100%;height:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 35px 25px #05181980)}
.habitat-closing{position:absolute;inset:0;z-index:8;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:90px 25px 80px;background:#00000061;opacity:0;visibility:hidden}
.habitat-closing h2{font-size:clamp(3rem,6vw,6rem)}
.habitat-closing>p:not(.eyebrow){font-size:18px;max-width:540px;margin:25px 0 32px}
.habitat-controls{position:absolute;left:4%;right:4%;bottom:48px;z-index:9;display:flex;justify-content:space-between;align-items:center;font-size:13px;text-shadow:0 2px 12px #061e17}
.habitat-controls a{text-underline-offset:6px}
.habitat-caption{position:absolute;left:4%;right:4%;bottom:16px;font-size:11px;color:#ffffffb0;z-index:9}
.habitat-progress{position:absolute;right:22px;top:42%;height:115px;width:2px;background:#ffffff40;z-index:9}
.habitat-progress span{display:block;height:0;width:2px;background:var(--gold)}
.scene-credit{font-size:11px;color:#6a785e;margin-top:20px}.scene-credit a{text-underline-offset:3px}
@media(max-width:760px){.habitat-story{height:330vh;height:330svh}.habitat-title{top:22%;left:20px;right:20px}.habitat-title h1{font-size:clamp(2.8rem,10vw,4.8rem);line-height:1.1}.habitat-title .eyebrow{font-size:10px;letter-spacing:.14em}.habitat-title>p:last-child{font-size:15px;margin-top:20px}.deer-track{left:15%;width:42vw;bottom:14%}.rabbit-track{left:60%;width:23vw;bottom:15%}.butterfly.b1{left:18%;top:61%}.butterfly.b2{left:76%;top:53%}.butterfly.b3{left:52%;top:62%}.butterfly.b4{left:80%;top:76%}.building-track{width:155vw;left:50%;margin-left:-77.5vw;height:62%;top:25%}.habitat-closing h2{font-size:3rem}.habitat-closing>p:not(.eyebrow){font-size:16px;max-width:290px}.habitat-controls{left:23px;right:23px;bottom:57px;font-size:12px;gap:20px}.habitat-caption{left:23px;right:23px;bottom:16px;font-size:10px;line-height:1.35}.habitat-progress{right:12px;height:75px}.foreground-layer{height:19%}}
/* Reduced motion keeps the full scroll narrative, with fades instead of travel or parallax. */
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.butterfly{animation:none}.habitat-title,.deer-track,.rabbit-track,.butterfly-layer,.forest-layer,.foreground-layer,.habitat-closing{will-change:auto}}
.building-track img{transform:scaleX(1.35)}
.building-label{position:absolute;right:16%;bottom:22%;padding:9px 16px;background:#172f3c;color:#edf6fa;font-size:clamp(12px,1.4vw,20px);font-weight:700;letter-spacing:.18em;box-shadow:0 3px 0 #091e28;transform:rotate(-5deg)}
@media(max-width:760px){.building-track img{transform:scaleX(1.1)}.building-label{font-size:11px;right:21%;bottom:17%;padding:8px 10px}}

@media(max-height:600px) and (min-width:600px){
.habitat-title{top:105px;left:6%;right:48%;text-align:left}
.habitat-title h1{font-size:clamp(30px,4.2vw,54px)}
.habitat-title .eyebrow{font-size:10px;margin-bottom:12px}
.habitat-title>p:last-child{font-size:14px;margin-top:15px}
.deer-track{left:55%;width:20vw;bottom:15%}.rabbit-track{left:77%;width:10vw;bottom:16%}
.habitat-closing{padding:95px 25px 65px}.habitat-closing h2{font-size:36px}
.habitat-closing .eyebrow{font-size:10px;margin-bottom:10px}
.habitat-closing>p:not(.eyebrow){font-size:14px;max-width:580px;margin:12px 0 16px}
.habitat-controls{bottom:42px}.habitat-caption{bottom:12px;font-size:10px}
}

/* Cohesive woodland-to-campus illustration; only the landscape loses color. */
.campus-layer{position:absolute;inset:0;z-index:0;opacity:0;pointer-events:none;will-change:opacity,filter}
.campus-layer img{width:100%;height:100%;object-fit:cover;object-position:center bottom}
.habitat-closing h2,.habitat-closing>p{text-shadow:0 2px 18px #0008}

