.cinematic-hero {
  position: relative;
  height: var(--hero-scroll-height, 400vh);
  min-height: 100vh;
  padding: 0 !important;
  display: block !important;
  border-bottom: 1px solid #2a3040;
  background: #0b111a;
}

.cinematic-hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.cinematic-hero__media,
.cinematic-hero__poster,
.cinematic-hero__canvas,
.cinematic-hero__atmosphere,
.cinematic-hero__wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cinematic-hero__media {
  z-index: -3;
  background: #0b111a;
}

.cinematic-hero__poster,
.cinematic-hero__canvas {
  display: block;
  object-fit: cover;
  object-position: center center;
}

.cinematic-hero__poster {
  z-index: -2;
  transform: translate3d(var(--hero-poster-x, 0), var(--hero-poster-y, 0), 0) scale(var(--hero-poster-scale, 1));
  transform-origin: var(--hero-focus-x, 72%) var(--hero-focus-y, 72%);
  will-change: transform;
}

.cinematic-hero__canvas {
  z-index: -1;
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.cinematic-hero[data-sequence-ready="true"] .cinematic-hero__canvas {
  opacity: 1;
}

.cinematic-hero__atmosphere {
  z-index: -1;
  pointer-events: none;
  opacity: var(--hero-atmosphere-opacity, 0.16);
  transform: translate3d(0, var(--hero-atmosphere-y, 0), 0) scale(1.08);
  transform-origin: center;
  will-change: transform, opacity;
  background:
    radial-gradient(ellipse at 72% 70%, rgba(224, 231, 231, 0.2) 0%, rgba(224, 231, 231, 0) 36%),
    linear-gradient(180deg, rgba(142, 161, 170, 0) 46%, rgba(142, 161, 170, 0.2) 72%, rgba(12, 22, 32, 0) 100%);
  mix-blend-mode: screen;
}

.cinematic-hero__wash {
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 13, 22, 0.92) 0%, rgba(7, 13, 22, 0.67) 44%, rgba(7, 13, 22, 0.16) 75%),
    linear-gradient(180deg, rgba(6, 11, 18, 0.18) 0%, rgba(6, 11, 18, 0.56) 100%);
}

.cinematic-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.cinematic-hero__progress {
  position: absolute;
  z-index: 2;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  width: 1px;
  height: 72px;
  overflow: hidden;
  background: rgba(240, 237, 232, 0.26);
}

.cinematic-hero__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #b87333;
  transform: scaleY(var(--hero-progress, 0));
  transform-origin: top;
}

.cinematic-hero--static {
  min-height: clamp(640px, 86vh, 920px);
  height: auto;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
}

.cinematic-hero--static .cinematic-hero__sticky {
  position: relative;
  inset: auto;
  min-height: clamp(640px, 86vh, 920px);
  height: auto;
  padding: 6rem 0;
  overflow: visible;
}

.cinematic-hero--static .cinematic-hero__media,
.cinematic-hero--static .cinematic-hero__atmosphere,
.cinematic-hero--static .cinematic-hero__wash {
  position: absolute;
}

.cinematic-hero--static .cinematic-hero__progress {
  display: none;
}

@media (max-width: 767px) {
  .cinematic-hero {
    --hero-scroll-height: 300vh;
  }

  .cinematic-hero__sticky {
    min-height: 100svh;
  }

  .cinematic-hero__poster,
  .cinematic-hero__canvas {
    object-position: center center;
  }

  .cinematic-hero__wash {
    background:
      linear-gradient(90deg, rgba(7, 13, 22, 0.86) 0%, rgba(7, 13, 22, 0.48) 100%),
      linear-gradient(180deg, rgba(6, 11, 18, 0.2) 0%, rgba(6, 11, 18, 0.73) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-hero__canvas,
  .cinematic-hero__atmosphere,
  .cinematic-hero__progress {
    display: none;
  }
}
