.scroll-hero {
  position: relative;
  width: 100%;
  height: 200vh; /* Increased to provide scroll 'travel' distance */
  margin-top: calc(-1 * var(--header-h));
  overflow: visible;
  background: #000;
}

.scroll-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  pointer-events: none;
  /* Opacity and visibility are handled by JS during scroll */
}

.scroll-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: sticky;
  top: 0;
}

.scroll-hero__sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scroll-hero__media-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
  width: 300px;
  height: 400px;
  max-width: 95vw;
  max-height: 85vh;
  will-change: transform;
  transition: none; /* Crucial: no transition during JS-driven scroll pulse */
}

.scroll-hero__media-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scroll-hero__media-tint {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  pointer-events: none;
  transition: opacity 0.1s linear;
}

.scroll-hero__caption {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
}

.scroll-hero__arrow {
  width: 40px;
  height: 40px;
  color: #FFFFFF;
  animation: bounceDown 2s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

.scroll-hero__titles {
  position: absolute;
  inset: 0;
  z-index: 5; /* Lower than media-center (10) */
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-hero__titles h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin: 0;
  white-space: nowrap;
  will-change: transform;
  transition: opacity 0.3s ease;
  /* Base transform to align middle-out via JS */
  transform-origin: center;
}

