/* Pin only the artwork. The hero, its copy, CTAs and slider controls remain
   in normal document flow. The clip prevents the fixed image from showing
   through later sections; it does not pin those sections or their content. */
@supports (clip-path: inset(0)) {
  .hero {
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
  }

  .hero > .hero-slider {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: 100vh;
    height: 100lvh;
  }
}

/* Only the introductory text makes room for the independent phone.
   Relative offsets preserve both full-width buttons and their positions. */
@media (max-width: 768px) {
  .hero__content > .hero__phone-copy {
    position: relative;
    top: calc(0px - var(--hero-phone-copy-lift, 0px));
    transition: top 400ms cubic-bezier(0.16, 1, 0.3, 1);
  }
}

/* Keep the independent controls together when a CTA group lifts the phone.
   The existing reduced-motion rule still overrides transition duration. */
@media (max-width: 768px) {
  .scroll-top {
    --phone-controls-step: 64px; /* phone height (56px) plus the 8px gap */
    bottom: calc(var(--space-md) + var(--privacy-banner-offset) + var(--phone-controls-step) + var(--phone-controls-lift, 0px));
    transition: all var(--transition), bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
