/* The opening is a full-screen chapter. The following story enters only after scrolling. */
.hero {
  height: 100vh;
  min-height: 100vh;
  max-height: none;
  height: 100svh;
  min-height: 100svh;
  background: #65372f;
}

.hero-shader-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-shader-plane {
  inset: 0;
}

.hero-shader-plane > .hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.hero-title {
  z-index: 2;
}

.hero-scroll-cue {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 4vw, 64px);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}

.hero-scroll-cue:hover,
.hero-scroll-cue:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 30px;
  background: currentColor;
  transform-origin: top;
}

@media (max-width: 767px) {
  .hero {
    height: 100svh;
    min-height: 100svh;
    max-height: none;
  }

  .hero-shader-frame {
    height: 63%;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 65%, transparent 100%);
  }

  .hero-shader-plane > .hero-photo {
    object-position: 38% 46%;
  }

  .hero-title {
    z-index: 2;
    top: auto;
    bottom: 15%;
    /* The supplied artwork has ~12% transparent padding on each side. */
    left: -12.5%;
    width: 125%;
    max-width: none;
  }

  .hero-scroll-cue {
    left: 21px;
    bottom: 27px;
    gap: 10px;
    font-size: 11px;
  }

  .hero-scroll-line {
    height: 25px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-enabled .hero-scroll-line {
    animation: hero-scroll-line 2.4s ease-in-out infinite;
  }
}

@keyframes hero-scroll-line {
  0%, 100% { transform: scaleY(.72); opacity: .6; }
  55% { transform: scaleY(1); opacity: 1; }
}
