/* The sticky composition is opt-in; no JS and reduced motion retain the
   complete phone and order in the original readable document flow. */
.hero-sticky{display:contents}

@media(prefers-reduced-motion:no-preference){
  .hero.is-scroll-hero{--hero-header-height:88px;position:relative;height:240vh;height:240svh;padding-top:0}
  .is-scroll-hero .hero-sticky{display:block;position:sticky;top:var(--hero-header-height);height:calc(100vh - var(--hero-header-height));height:calc(100svh - var(--hero-header-height));overflow:hidden;isolation:isolate}
  .is-scroll-hero .hero-copy{position:absolute;z-index:1;top:clamp(46px,9vh,110px);left:0;right:0;transform-origin:50% 40%}
  .is-scroll-hero .hero-copy.is-hero-copy-past{pointer-events:none}
  .is-scroll-hero .hero-scene{display:block;position:absolute;inset:0;width:100%;max-width:none;height:100%;padding:0;margin:0;pointer-events:none}
  .is-scroll-hero .hero-scene-surface{left:50%;right:auto;top:54px;bottom:49px;width:min(1030px,calc(100% - 64px));border-radius:36px;transform:translateX(-50%);opacity:0}
  .is-scroll-hero .hero-scene-label{position:absolute;left:16px;right:16px;top:21px;margin:0;opacity:0}
  .is-scroll-hero .hero-phone{position:absolute;left:50%;top:50%;z-index:3;margin:0;opacity:0;transform:translate(-50%,-50%) translateY(100vh) rotate(10deg) scale(.76);transform-origin:50% 50%}
  .is-scroll-hero .hero-phone .bubble{opacity:0}
  .is-scroll-hero .order-preview{position:absolute;left:50%;right:auto;top:50%;z-index:4;width:365px;max-width:calc(100% - 48px);margin:0;opacity:0;transform:translate(-50%,-50%)}
  .is-scroll-hero .handoff-line{left:50%;top:50%;z-index:2;width:86px;transform:translate(-50%,-50%);opacity:0}
  .is-scroll-hero .illustration-caption{position:absolute;left:20px;bottom:17px;width:calc(100% - 40px);max-width:none;margin:0;line-height:1.5;opacity:0}
  .is-scroll-hero.is-hero-moving .hero-phone{will-change:transform,opacity}
  .is-scroll-hero.is-hero-moving .hero-copy{will-change:transform,opacity,filter}

  @media(max-width:900px) and (min-width:701px){
    .is-scroll-hero .order-preview{width:330px}
    .is-scroll-hero .hero-scene-surface{width:calc(100% - 32px)}
  }
  @media(max-width:700px){
    .hero.is-scroll-hero{--hero-header-height:75px;height:240vh;height:240svh}
    .is-scroll-hero .hero-copy{top:clamp(36px,6vh,64px)}
    .is-scroll-hero .hero-scene-surface{top:49px;bottom:57px;width:calc(100% - 28px);border-radius:23px}
    .is-scroll-hero .hero-scene-label{top:17px;font-size:12px;line-height:1.5;gap:6px}
    .is-scroll-hero .hero-phone{flex-shrink:0}
    .is-scroll-hero .order-preview{width:350px;max-width:calc(100% - 48px)}
    .is-scroll-hero .illustration-caption{bottom:16px;left:24px;width:calc(100% - 48px);font-size:10px;text-wrap:balance}
  }
  @media(max-width:380px){
    .is-scroll-hero .hero-scene-label{font-size:11px}
    .is-scroll-hero .hero-copy{top:34px}
  }
  @media(max-height:740px) and (min-width:701px){
    .is-scroll-hero .hero-copy{top:28px}
    .is-scroll-hero .hero-copy>p{margin-top:20px}
    .is-scroll-hero .hero-actions{margin-top:24px}
  }
}
