/* Coordinated entrance layers leave scroll-owned transforms intact. */
@media(prefers-reduced-motion:no-preference){
 .hero-intro:not(.hero-pending) .continuous-mountain-field{animation:hero-scene-in 900ms cubic-bezier(.4,0,.2,1) both}
 .hero-intro:not(.hero-pending) #home .reel-title-button>span:first-child{animation:hero-re-in 1150ms cubic-bezier(.22,1,.36,1) 220ms both}
 .hero-intro:not(.hero-pending) #home .reel-title-button>span:last-child{animation:hero-el-in 1150ms cubic-bezier(.22,1,.36,1) 220ms both}
 .hero-intro #sculpture.hero-glass-enter{animation:hero-glass-in 600ms cubic-bezier(.4,0,.2,1) 160ms both}
 .hero-intro:not(.hero-pending) .reel-motion-label{animation:hero-label-in 750ms cubic-bezier(.22,1,.36,1) 700ms both}
}
.hero-intro-glyph{display:inline-block}
@keyframes hero-scene-in{from{opacity:0}to{opacity:1}}
@keyframes hero-re-in{from{translate:clamp(-220px,-16vw,-70px) 0;clip-path:inset(-35% 100% -35% -25%)}to{translate:0 0;clip-path:inset(-35% -25% -35% -25%)}}
@keyframes hero-el-in{from{translate:clamp(70px,16vw,220px) 0;clip-path:inset(-35% -25% -35% 100%)}to{translate:0 0;clip-path:inset(-35% -25% -35% -25%)}}
@keyframes hero-glass-in{from{opacity:0}to{opacity:1}}
@keyframes hero-label-in{from{opacity:0;translate:0 8px;letter-spacing:.3em}to{opacity:1;translate:0 0}}

/* Preparation hides the hero until its first rendered frame is ready. */
.hero-intro.hero-pending #home .reel-title h1{opacity:0}
.hero-intro.hero-pending #sculpture,.hero-intro.hero-pending .continuous-mountain-field{opacity:0!important}
.hero-quiet-boot:not(.hero-loading-lock) .hero-readiness{display:none}
/* A compact composition timeline, distinct from the finished scene. */
.hero-readiness{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;overflow:hidden;pointer-events:auto;background:#000;opacity:1;transition:opacity 260ms linear;color:#bfd5c7;font:500 10px/1.4 ui-monospace,monospace;letter-spacing:.06em}
.hero-loader-frame{width:min(280px,calc(100% - 88px));position:relative;will-change:transform,opacity}
.hero-loader-tracks{height:2px;position:relative;background:#17251c}
.hero-loader-tracks::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#426e53,#b6d4c0);transform:scaleX(var(--ready-progress,0));transform-origin:left;}
.hero-loader-playhead{position:absolute;inset:0;transform:translate3d(calc(var(--ready-progress,0)*100%),0,0);}
.hero-loader-playhead::after{content:"";position:absolute;left:0;top:-3px;width:2px;height:8px;translate:-50% 0;background:#d4e8db}
.hero-ready-caption{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:18px;text-transform:uppercase;font-size:10px;letter-spacing:.12em;color:#92a99a}
#hero-ready-count{font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:.015em;color:#bfd5c7}
.hero-readiness.is-settled{opacity:0}
.hero-intro:not(.hero-pending) #sculpture:not(.hero-glass-enter){opacity:0}
.hero-fallback #home .reel-grid{display:block!important;position:absolute;inset:25% 10%;border:1px solid #143623;background-image:linear-gradient(#143623 1px,transparent 1px),linear-gradient(90deg,#143623 1px,transparent 1px);background-size:80px 80px;opacity:.55;pointer-events:none}
@media(prefers-reduced-motion:reduce){.hero-readiness,.hero-loader-playhead,.hero-ready-caption{transition:none}.hero-loader-frame{will-change:auto}.hero-pending #home .reel-title h1{opacity:1}}

/* The visible hero loader owns scrolling until its exit has completed. */
html.hero-loading-lock,html.hero-loading-lock body{overflow:hidden!important;overscroll-behavior:none}
html.hero-loading-lock{touch-action:pinch-zoom;scrollbar-gutter:stable}


/* Keep the preparation surface isolated until the hero is ready to enter. */
html.hero-loading-lock .site-header,html.hero-loading-lock .play-pointer,html.hero-loading-lock .drag-cursor{visibility:hidden!important;opacity:0!important;pointer-events:none!important}
.hero-loader-tracks::after{content:"";position:absolute;inset:8px 0 auto;height:3px;background:repeating-linear-gradient(90deg,#354a3d 0 1px,transparent 1px calc(25% - .25px));opacity:.65}

/* Reel player aperture: the same rectilinear geometry as the hero and timelines. */
.reel-portal-ground{background-color:#000;background-image:linear-gradient(#1c453329 1px,transparent 1px),linear-gradient(90deg,#1c453329 1px,transparent 1px);background-size:80px 80px;will-change:clip-path,opacity}
.reel-opening-frame{position:absolute;pointer-events:none;background:linear-gradient(#bddbc9,#bddbc9) left top/18px 1px no-repeat,linear-gradient(#bddbc9,#bddbc9) left top/1px 18px no-repeat,linear-gradient(#bddbc9,#bddbc9) right top/18px 1px no-repeat,linear-gradient(#bddbc9,#bddbc9) right top/1px 18px no-repeat,linear-gradient(#bddbc9,#bddbc9) left bottom/18px 1px no-repeat,linear-gradient(#bddbc9,#bddbc9) left bottom/1px 18px no-repeat,linear-gradient(#bddbc9,#bddbc9) right bottom/18px 1px no-repeat,linear-gradient(#bddbc9,#bddbc9) right bottom/1px 18px no-repeat}
#cinema.reel-opening .cinema-screen{transform:none}

/* Minimal loader: one continuous progress bar and its percentage. */
.hero-ready-caption{justify-content:flex-end;margin-bottom:12px}
#hero-ready-count{font-size:14px;line-height:1;font-weight:400;letter-spacing:0;color:#c5d9cc}
.hero-loader-tracks{height:4px;background:#142019;overflow:hidden}
.hero-loader-tracks::before{background:#b2cfbd}
.hero-loader-tracks::after,.hero-loader-playhead{display:none}

/* A compact loading frame: editorial percentage, quiet timeline, measured corners. */
.hero-loader-frame{width:min(340px,calc(100% - 88px));padding:24px 20px 28px;--loader-line:#64867355;background:linear-gradient(var(--loader-line),var(--loader-line)) left bottom/12px 1px no-repeat,linear-gradient(var(--loader-line),var(--loader-line)) left bottom/1px 12px no-repeat,linear-gradient(var(--loader-line),var(--loader-line)) right bottom/12px 1px no-repeat,linear-gradient(var(--loader-line),var(--loader-line)) right bottom/1px 12px no-repeat}
.hero-ready-caption{height:40px;position:relative;margin:0 0 14px;display:block;letter-spacing:.1em}
#hero-ready-label{position:absolute;left:0;top:0;font-size:8px;line-height:1.4;color:#718c7d}
#hero-ready-count{position:absolute;bottom:0;left:clamp(64px,calc(var(--ready-progress,0)*100%),100%);translate:-100% 0;font:400 38px/.95 Geist,Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:-.065em;color:#c9ddd0}
.hero-loader-tracks{height:2px;overflow:visible;background:#19271f}
.hero-loader-tracks::before{background:linear-gradient(90deg,#577663,#d1e7d9);box-shadow:0 0 10px #abd4bb12}
.hero-loader-tracks::after{display:block;content:"";position:absolute;inset:8px 0 auto;height:4px;background:repeating-linear-gradient(90deg,#425e4d 0 1px,transparent 1px calc(12.5% - .125px));opacity:.55}
.hero-loader-playhead{display:block;pointer-events:none}
.hero-loader-playhead::after{top:-2px;height:6px;width:1px;background:#def0e4}
@media(prefers-reduced-motion:reduce){.hero-loader-frame{will-change:auto}}

/* The loading cover lives directly under body, outside sticky/transformed scenes. */
html.hero-pending.hero-loading-lock main,html.hero-pending.hero-loading-lock .hero-scene-background{opacity:0!important;pointer-events:none!important}
