/* Layout and media keep their exact resting coordinates during coverage. */
.handoff-guides{position:fixed;inset:0;width:100%;height:100svh;pointer-events:none;z-index:12;opacity:0}
.handoff-study #work.is-covering-hero>.work-sticky{position:fixed;top:0;left:0;width:100%;height:100svh;transform:none}
.handoff-study .reel-video-tile{mask:none!important}
.handoff-study .reel-video-tile:after{display:none!important}
.handoff-study #work .project-film{clip-path:none;mask:none}
.handoff-study #work .project-heading-letter{transform:none;opacity:1;filter:none}
.handoff-study #work .project-label-rail{opacity:1}
html[data-handoff-transition=boundary] .handoff-study .glass-hero{clip-path:inset(0 0 calc(100% - var(--study-edge,100%)) 0)!important}
html[data-handoff-transition=boundary] .handoff-study #work>.work-sticky{clip-path:inset(var(--study-edge,100%) 0 0 0)}
@media(prefers-reduced-motion:reduce){.handoff-guides{display:none}.handoff-study .glass-hero,.handoff-study #work>.work-sticky{clip-path:none!important;mask:none!important}}

/* Shared editorial gutter for project frames, titles, and their rules. */
#work.scroll-gallery .project-track{padding-left:var(--page);padding-right:var(--page)}

/* Titles share the media viewport instead of clipping early at the page gutter. */
#work.scroll-gallery .project-label-rail{overflow:visible;clip-path:inset(0 calc(-1 * var(--page)) 0 calc(-1 * var(--page)))}

/* The centered Reel is the geometry source for incoming frames and titles. */
.glass-hero.scroll-reel .reel-video-tile{translate:var(--reel-swipe-offset,0px) 0}
#work.scroll-gallery .project-label-rail{left:var(--page);width:calc(100% - var(--page)*2);clip-path:inset(0 calc(-1 * var(--page)) 0 calc(-1 * var(--page)))}
.handoff-study #work .project-heading-letter{opacity:var(--heading-entry,1);transform:translateY(var(--heading-lift,0px));filter:none}
.about-swipe-guide{position:fixed;inset:0;width:100%;height:100svh;pointer-events:none;z-index:12;opacity:0}
.about-boundary-handoff.handoff-study #work.is-about-covering>.work-sticky{position:fixed;top:0;left:0;width:100%;height:100svh;translate:none;clip-path:inset(0 calc(100% - var(--about-swipe-edge,100%)) 0 0)}
.about-boundary-handoff #about.is-about-entry{clip-path:inset(0 0 0 var(--about-swipe-edge,100%))}
@media(prefers-reduced-motion:reduce){.about-swipe-guide{display:none}.handoff-study #work .project-heading-letter{opacity:1;transform:none}}

/* The frames move together only during the swipe, then settle on the text gutter. */
.handoff-study #work .work-window,.handoff-study #work .project-label-rail{translate:var(--project-swipe-offset,0px) 0}
@media(prefers-reduced-motion:reduce){.glass-hero.scroll-reel .reel-video-tile,.handoff-study #work .work-window,.handoff-study #work .project-label-rail{translate:none}}

/* Restore the 1a9d3ba Reel geometry: its seam and the project track share the page gutter. */
#work.scroll-gallery .project-track{padding-left:var(--page);padding-right:var(--page)}
#work.scroll-gallery .project-label-rail{left:var(--page);width:calc(100% - var(--page)*2)}
@media(max-width:700px){
 #work.scroll-gallery .project-track{padding-left:var(--reel-media-left,var(--page));padding-right:var(--page)}
 #work.scroll-gallery .project-label-rail{left:var(--reel-media-left,var(--page));width:calc(100% - var(--reel-media-left,var(--page))*2)}
}
/* The outgoing film plane gently recedes while the vertical boundary passes. */
.about-boundary-handoff #work.is-about-covering .work-window{transform:perspective(1400px) translate3d(calc(var(--project-exit-progress,0)*-28px),0,calc(var(--project-exit-progress,0)*-60px)) rotateY(calc(var(--project-exit-progress,0)*5deg)) scale(calc(1 - var(--project-exit-progress,0)*.02));transform-origin:0 50%;will-change:transform}
.about-boundary-handoff #about.is-about-entry .about-timeline,.about-boundary-handoff #about.is-about-entry .timeline-clip{clip-path:none}
@media(prefers-reduced-motion:reduce){.about-boundary-handoff #work.is-about-covering .work-window{transform:none}}

/* The title begins at mid-swipe, above the clipped media layer. */
.project-heading-overlay{position:fixed;inset:0;z-index:8;pointer-events:none}
.project-heading-overlay[hidden]{display:none}
.project-heading-overlay>h2{position:absolute;margin:0;white-space:nowrap;overflow:visible}
.project-heading-overlay .project-heading-letter{font-style:normal;opacity:clamp(0,calc(var(--heading-progress,0)*1.28 - var(--letter-index)*.04),1);transform:translateY(calc((1 - clamp(0,calc(var(--heading-progress,0)*1.28 - var(--letter-index)*.04),1))*8px));filter:none}
html[data-handoff-transition=boundary] .handoff-is-crossing #work .work-heading{visibility:hidden}
@media(prefers-reduced-motion:reduce){.project-heading-overlay{display:none}.handoff-is-crossing #work .work-heading{visibility:visible}}

/* One small playhead on the boundary; the existing content supplies the motion. */
.about-transition-edit{--edit-edge:100vw;position:fixed;inset:0;z-index:12;pointer-events:none;visibility:hidden;opacity:var(--edit-opacity,0)}
.about-transition-edit.is-active{visibility:visible}
.about-transition-edit .transition-head{position:absolute;left:var(--edit-edge);top:0}
.about-transition-edit .transition-head>span{position:absolute;left:-3px;width:7px;height:9px;background:#c1decc;clip-path:polygon(0 0,100% 0,100% 60%,50% 100%,0 60%)}
.about-boundary-handoff #work.is-about-covering .work-window{transform:perspective(1400px) translateZ(calc(var(--project-exit-progress,0)*-35px));transform-origin:50% 50%}
.about-boundary-handoff #work.is-about-covering .project-film{transform:translate3d(0,calc(var(--image-retire,0)*-18px),0) scale(calc(1 - var(--image-retire,0)*.045));transform-origin:50% 50%;transition:none}
.about-boundary-handoff #about .about-landscape-copy{translate:calc((1 - var(--about-copy-entry,1))*12px) 0;opacity:max(var(--about-copy-entry,1),var(--paragraph-read,0))}
.about-boundary-handoff #about .about-timeline .timeline-clip{clip-path:none;translate:0 calc((1 - var(--layer-reveal,1))*8px);opacity:calc(.6 + var(--layer-reveal,1)*.4)}
@media(prefers-reduced-motion:reduce){.about-transition-edit{display:none}.about-boundary-handoff #about .about-landscape-copy,.about-boundary-handoff #about .about-timeline .timeline-clip,.about-boundary-handoff #work.is-about-covering .project-film{translate:none;transform:none;opacity:1}}

/* Hold About's resting composition while its shared reading clock advances. */
.terrain-about-handoff #about.landscape-about{min-height:max(820px,100svh)}
.terrain-about-handoff #about.is-about-holding{position:sticky;top:0;width:100%}
@media(max-width:800px){.terrain-about-handoff #about.landscape-about{min-height:max(800px,100svh)}}
@media(prefers-reduced-motion:reduce){.terrain-about-handoff #about.is-about-holding{position:relative}}

/* Scroll-driven pinning must not trigger native scroll-anchor corrections. */
.terrain-about-handoff .about-arrival-stage,.terrain-about-handoff #contact{overflow-anchor:none}
