/* Hero zoom scroll (see part.js). Rewritten from RIPE's home hero "Visual" layer (Framer appear + scroll transform).
   The hero clips; its media layer fills it and carries two separate scales that multiply:
     transform  the load settle, 1.5 -> 1 on a 10 s bounce-0 spring (a Web Animation, gone when it ends)
     scale      the scroll zoom, 1 -> 1.2 while the next section scrolls up through the viewport, spring-smoothed
   so scrolling during the settle never fights it. */
[data-hero-zoom] { position: relative; overflow: clip; }
[data-hero-zoom] > [data-hz-media] { position: absolute; inset: 0; z-index: 0; will-change: transform; transform-origin: 50% 50%; }
[data-hz-media] > video, [data-hz-media] > img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }

/* Opt-in sticky cover (data-hz-cover, Leome): the hero stays pinned while the section after it slides up over it.
   Give that next section its own background. The hero sticks for as long as its parent lasts, so wrap hero + cover in
   their own block when the page goes on afterwards. */
[data-hero-zoom][data-hz-cover] { position: sticky; top: 0; z-index: 0; }
[data-hero-zoom][data-hz-cover] + * { position: relative; z-index: 1; }
