.hero-wrap {
  height: 300vh;
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.hero__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Default (no JS): frame A (before) is the only thing visible -- frame B
   starts fully transparent rather than relying on JS to hide it. JS then
   animates frame B's opacity 0->1 as the visitor scrolls through the hero. */
.hero__frame--a { z-index: 1; opacity: 1; }
.hero__frame--b { z-index: 2; opacity: 0; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 24, 20, .88) 0%, rgba(28, 24, 20, .55) 45%, transparent 90%);
  z-index: 3;
}

.hero__copy {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  padding: clamp(32px, 6vw, 80px);
  max-width: min(1100px, 80vw);
  color: #fff;
}

.hero__headline {
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.75rem);
  line-height: 1.03;
  max-width: 20ch;
  margin: 12px 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .5);
  overflow: visible;
}

.hero__subhead {
  font-family: var(--body);
  font-size: 1.125rem;
  margin: 0 0 24px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .5);
}

.hero__scrollcue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: .05em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__scrollcue-chevron {
  font-size: 20px;
  line-height: 1;
  animation: scrollcue-bounce 1.6s ease-in-out infinite;
}

.hero__scrollcue-label { text-transform: uppercase; }

@keyframes scrollcue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (max-width: 767px) {
  .hero-wrap { height: 100vh; }
  .hero { position: relative; }
  .hero__frame--b { transition: opacity 800ms ease; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wrap { height: 100vh; }
  .hero { position: relative; }
  .hero__scrollcue-chevron { animation: none; }
}
