/* Shared P02 footer: the content scrolls away over the footer behind it. */
body .footer-cover{position:relative;z-index:2;border-radius:0 0 36px 36px;overflow:clip}
body .sub-content-layer.footer-cover{border-radius:32px 32px 36px 36px;background:#f6f5f1}
body .footer-reveal-stage{position:relative;z-index:1;background:#ee284e;overflow:visible;margin-top:-36px;padding-top:36px;isolation:isolate}
body .footer-reveal-stage .footer-reveal-panel{position:relative;transform:translate3d(0,var(--reveal-offset,0px),0)!important;will-change:transform;transition:none!important}
@media(max-width:700px){body .footer-cover{border-radius:0 0 24px 24px}body .sub-content-layer.footer-cover{border-radius:22px 22px 24px 24px}body .footer-reveal-stage{margin-top:-24px;padding-top:24px}}
@media(prefers-reduced-motion:reduce){body .footer-reveal-stage .footer-reveal-panel{transform:none!important;will-change:auto}}

/* Use viewport positioning while uncovering; no scroll-driven transform to lag on reversal. */
body .footer-reveal-stage{height:calc(var(--footer-height,0px) + 36px);overflow-anchor:none}
body .footer-reveal-stage .footer-reveal-panel{position:absolute;top:36px;left:0;width:100%;transform:none!important;will-change:auto}
body .footer-reveal-stage.is-pinned .footer-reveal-panel{position:fixed;top:var(--footer-anchor);left:0;right:0;width:auto}
body .footer-reveal-stage.is-waiting .footer-reveal-panel{visibility:hidden;pointer-events:none}
@media(max-width:700px){body .footer-reveal-stage{height:calc(var(--footer-height,0px) + 24px)}body .footer-reveal-stage .footer-reveal-panel{top:24px}body .footer-reveal-stage.is-pinned .footer-reveal-panel{top:var(--footer-anchor)}}
@media(prefers-reduced-motion:reduce){body .footer-reveal-stage{height:auto}body .footer-reveal-stage .footer-reveal-panel{position:relative;top:auto}}

/* Only the outer content layer cuts the bottom corners, avoiding nested seams. */
body .footer-cover{clip-path:inset(0 round 0 0 36px 36px)}
body .sub-content-layer.footer-cover{clip-path:inset(0 round 32px 32px 36px 36px)}
@media(max-width:700px){body .footer-cover{clip-path:inset(0 round 0 0 24px 24px)}body .sub-content-layer.footer-cover{clip-path:inset(0 round 22px 22px 24px 24px)}}

/* Opaque corner masks are direction-independent and avoid sticky compositor seams. */
body .footer-cover{--cut:36px;border-bottom-left-radius:0;border-bottom-right-radius:0;clip-path:none}
body .sub-content-layer.footer-cover{clip-path:inset(0 round 32px 32px 0 0)}
body .footer-cover:before,body .footer-cover:after{content:'';position:absolute;bottom:-.5px;width:var(--cut);height:var(--cut);z-index:100;pointer-events:none}
body .footer-cover:before{left:0;background:radial-gradient(circle at 100% 0,transparent calc(var(--cut) - .5px),#ee284e var(--cut))}
body .footer-cover:after{right:0;background:radial-gradient(circle at 0 0,transparent calc(var(--cut) - .5px),#ee284e var(--cut))}
@media(max-width:700px){body .footer-cover{--cut:24px}body .sub-content-layer.footer-cover{clip-path:inset(0 round 22px 22px 0 0)}}
