.ctoutcom-scroll-hero {
  --ctoutcom-scroll-height: 500svh;
  position: relative;
  width: 100vw;
  height: var(--ctoutcom-scroll-height);
  margin-inline: calc(50% - 50vw);
  background: #000;
  overflow: clip;
}

.ctoutcom-scroll-hero__stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.ctoutcom-scroll-hero__canvas,
.ctoutcom-scroll-hero__fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ctoutcom-scroll-hero__gradient {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: clamp(180px, 32vh, 420px);
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000 92%);
}

.ctoutcom-scroll-hero__loader {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 7vh;
  width: min(180px, 38vw);
  height: 2px;
  transform: translateX(-50%);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  transition: opacity 300ms ease;
}

.ctoutcom-scroll-hero__loader-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: #fff;
  transition: transform 120ms linear;
}

.ctoutcom-scroll-hero.is-ready .ctoutcom-scroll-hero__loader {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ctoutcom-scroll-hero {
    height: 100svh;
  }

  .ctoutcom-scroll-hero__stage {
    position: relative;
  }
}

