.hero-scroll-sequence {
  --site-chrome-height: calc(var(--announcement-height) + var(--navigation-height));
  --hero-product-offset: clamp(280px, 38svh, 340px);
  --hero-copy-offset-y: 20px;
  --hero-copy-opacity: 1;
  --hero-copy-y: 0px;
  --hero-copy-scale: 1;
  --hero-copy-blur: 0px;
  --hero-product-y: var(--hero-product-offset);
  --hero-product-scale: 1;
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 245vh;
  height: 245svh;
  margin-bottom: 64px;
  overflow: clip;
  isolation: isolate;
}

.hero-sticky-stage {
  position: sticky;
  top: var(--site-chrome-height);
  width: 100%;
  height: calc(100vh - var(--site-chrome-height));
  height: calc(100svh - var(--site-chrome-height));
  overflow: clip;
}

.hero-copy-layer,
.hero-product-layer {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
}

.hero-copy-layer {
  z-index: 2;
  align-items: flex-start;
  padding: calc(clamp(36px, 4.5svh, 48px) + var(--hero-copy-offset-y)) 16px 0;
  text-align: center;
  opacity: var(--hero-copy-opacity);
  filter: blur(var(--hero-copy-blur));
  transform: translate3d(0, var(--hero-copy-y), 0) scale(var(--hero-copy-scale));
  transform-origin: center top;
  will-change: opacity, filter, transform;
}

.hero-copy-layer > div {
  width: min(72rem, calc(100vw - 32px));
}

.hero-product-layer {
  z-index: 1;
  align-items: center;
  padding-inline: 48px;
  transform: translate3d(0, var(--hero-product-y), 0) scale(var(--hero-product-scale));
  transform-origin: center;
  will-change: transform;
}

.hero-scroll-sequence .hero-copy-layer .reveal,
.hero-scroll-sequence .hero-product-layer .mac-window-hero {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero-scroll-sequence .hero-demo-window {
  flex: none;
}

@media (min-width: 1200px) {
  .hero-scroll-sequence {
    --hero-product-offset: clamp(360px, 44svh, 460px);
    --hero-copy-offset-y: 34px;
  }

  .hero-copy-layer {
    padding-top: calc(clamp(88px, 11svh, 120px) + var(--hero-copy-offset-y));
  }

  .hero-copy-layer > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-scroll-sequence .hero-copy-layer h1 {
    margin-bottom: 4px;
  }

  .hero-scroll-sequence .hero-copy-layer p:first-of-type {
    margin-top: 0;
    margin-bottom: 32px;
  }

  .hero-product-layer {
    padding-inline: 32px;
  }

  .hero-scroll-sequence .hero-demo-window {
    width: min(82vw, 1380px);
    max-width: none;
  }
}

.hero-scroll-sequence.is-copy-exited .hero-copy-layer {
  pointer-events: none;
}

@media (max-width: 1199px) {
  .hero-scroll-sequence {
    height: 240vh;
    height: 240svh;
  }
}

@media (max-width: 767px) {
  .hero-scroll-sequence {
    --hero-product-offset: clamp(520px, 70svh, 550px);
    --hero-copy-offset-y: 12px;
    height: 230vh;
    height: 230svh;
  }

  .hero-copy-layer {
    padding-top: calc(32px + var(--hero-copy-offset-y));
  }

  .hero-product-layer {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-sequence {
    height: auto;
  }

  .hero-sticky-stage {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .hero-copy-layer,
  .hero-product-layer {
    position: relative;
    inset: auto;
    transform: none;
  }

  .hero-copy-layer {
    padding-top: calc(40px + var(--hero-copy-offset-y));
    opacity: 1;
    filter: none;
  }

  .hero-product-layer {
    padding-top: 64px;
  }
}
