/* Native scroll; each opaque chapter slides over the chapter pinned behind it.
   Negative sticky offsets allow long chapters to be read before their bottom pins. */
.film-page.home-stack-enabled main{position:relative;display:block;isolation:isolate;overflow:visible}
.film-page.home-stack-enabled main>.home-stack-layer{position:sticky;top:var(--home-stack-top,0px);z-index:var(--home-stack-order);min-height:100vh;min-height:100svh;margin-block:0;isolation:isolate;overflow-anchor:none;scroll-margin-top:var(--ds-header-offset,80px)}
.film-page.home-stack-enabled .home-stack-layer>.home-stack-shade{position:absolute;inset:0;z-index:20;pointer-events:none;background:#000;opacity:var(--home-stack-shade,0);border-radius:inherit}
.film-page.home-stack-enabled main>.film-main{background:#f3f0e8;margin-bottom:0;--film-browser-buffer:0px}
.film-page.home-stack-enabled main>.film-main::after{display:none}
.film-page.home-stack-enabled main>.selected{background:#101010}
.film-page.home-stack-enabled main>:is(.practice,.selected-evidence,.home-about,.personal-practice){background:var(--paper,#f3f0e8)}
.film-page.home-stack-enabled main>.contact-strip{background:var(--accent,#f2552c)}
/* The pin itself supplies depth: no huge transformed or blurred GPU layers on iOS. */
@media(prefers-reduced-motion:reduce){
 .film-page.home-stack-enabled main>.home-stack-layer{position:relative;top:auto}
 .film-page.home-stack-enabled .home-stack-shade{display:none}
}
@media print{
 .film-page.home-stack-enabled main>.home-stack-layer{position:static;min-height:0}
 .film-page.home-stack-enabled .home-stack-shade{display:none}
}
