/* One scroll stack. Sticky positioning drives the overlap; JS only measures
   the cards and interpolates the small perspective scale of the lower cards. */
.screen-stack{position:relative;max-width:1920px;margin:68px auto 0;isolation:isolate}
.screen-stack .new-screen{margin-top:0}
.stack-panel+.stack-panel{margin-top:48px}
.screen-stack.is-stacking::after{content:'';display:block;height:var(--stack-tail,160px)}
.is-stacking .stack-panel{position:sticky;top:var(--panel-top);height:var(--panel-height);z-index:var(--panel-layer);scroll-margin-top:var(--panel-top)}
.is-stacking .stack-panel+.stack-panel{margin-top:64px}
.is-stacking .stack-surface{position:relative;border-radius:60px;transform:scale(var(--panel-scale,1));transform-origin:top center}
.is-stacking .stack-surface::after{content:'';position:absolute;inset:1px;border-radius:inherit;background:#060606;opacity:var(--panel-cover,0);pointer-events:none}
.is-stacking .new-screen{border-color:#343434;border-bottom-color:#060606}
.is-stacking .stack-panel.is-moving .stack-surface{will-change:transform}
@media(max-width:1700px){.is-stacking .stack-surface{border-radius:44px}}
@media(max-width:1200px){.is-stacking .stack-surface{border-radius:32px}}
@media(max-width:850px){.screen-stack{margin-top:40px}.stack-panel+.stack-panel{margin-top:40px}}
@media(max-width:560px){.screen-stack{margin-top:30px}.stack-panel+.stack-panel{margin-top:30px}}
@media(prefers-reduced-motion:reduce){.screen-stack.is-stacking::after{display:none}.is-stacking .stack-panel{position:relative;top:auto;height:auto}.is-stacking .stack-surface{transform:none}}

/* The three stacked sections span the viewport, including wide desktops. */
.screen-stack{width:100%;max-width:none}
.screen-stack .new-screen{max-width:none}
