/* Progressive, native scroll scenes. With no controller, the wrappers are normal
   blocks and the original backgrounds/section geometry remain fully readable. */
:root{--layer-css-ready:1;--hero-layer-depth:0px;--cap-layer-depth:0px}
.layers-ready .scene-stage.is-layered{position:relative;height:calc(var(--scene-height) + var(--scene-depth))}
.layers-ready .hero-stage{--scene-depth:var(--hero-layer-depth);z-index:0}
.layers-ready .capability-stage{--scene-depth:var(--cap-layer-depth);z-index:2}
.layers-ready .scene-stage.is-layered>.scene-card{position:sticky;top:0}
.layers-ready .hero-stage.is-layered+.gradient-story{margin-top:calc(-1 * var(--hero-layer-depth))}
.layers-ready .capability-stage.is-layered+.approach{margin-top:calc(-1 * var(--cap-layer-depth))}
.layers-ready .gradient-story{position:relative;z-index:1}
.layers-ready .approach{position:relative;z-index:3}
.layers-ready .scene-stage.is-layered+.scene-foreground{box-shadow:0 -22px 42px -32px rgb(23 54 55 / .4)}
/* Whole scenes hand over as one sheet. No transform on Hero typography, photo,
   capability grid or descriptor: existing startup and composition stay stable. */
.layers-ready .hero-stage.is-layered>.hero::after,
.layers-ready .capability-stage.is-layered>.capabilities::after{content:'';position:absolute;inset:0;z-index:3;background:#173637;opacity:calc(var(--scene-cover-progress,0) * .12);pointer-events:none}
/* A keyboard link must never stay behind the next opaque sheet. This changes
   only visual pinning; the matched stage depth/negative margin still cancel. */
.layers-ready .scene-stage.is-layered.is-keyboard-reading>.scene-card{position:relative;top:auto}
.layers-ready .scene-stage.is-keyboard-reading>.scene-card::after{display:none}
@media(prefers-reduced-motion:reduce){
 .layers-ready .scene-stage.is-layered{height:auto!important}
 .layers-ready .scene-stage.is-layered>.scene-card{position:relative!important;top:auto!important}
 .layers-ready .scene-stage.is-layered+.scene-foreground{margin-top:0!important;box-shadow:none!important}
 .layers-ready .scene-stage>.scene-card::after{display:none!important}
}
