/* The supplied continuous-line illustration sits beneath the scrub artwork;
   its transparent canvas lets the site background remain uninterrupted. */
.home-hero-storyline {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(8px, 1.6vh, 18px);
  left: 0;
  height: clamp(96px, 15.5vh, 124px);
  opacity: 1;
  pointer-events: none;
  overflow: hidden;
}

.home-hero-storyline img {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  animation-name: hero-storyline-sketch-in;
  animation-duration: calc(var(--hero-typewriter-total, 2180ms) - 320ms);
  animation-timing-function: cubic-bezier(.45, 0, .2, 1);
  animation-delay: 320ms;
  animation-fill-mode: both;
}

.home-hero-storyline--copy {
  display: none;
}

@media (min-width: 1201px) {
  #top.hero-x .hero-x-lede {
    gap: 0;
  }

  .home-hero-storyline--stage {
    display: none;
  }

  .home-hero-storyline--copy {
    display: block;
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 0;
    width: 100vw;
    max-width: none;
    height: 0;
    margin: .75rem 0 .75rem calc(-1 * var(--gutter));
    overflow: visible;
  }

  .home-hero-storyline--copy img {
    top: 0;
    width: 100vw;
    transform: translateY(-53.9344%);
  }
}

.home-hero-storyline picture {
  display: contents;
}

@keyframes hero-storyline-sketch-in {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: .45;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@media (max-width: 820px), (orientation: portrait) {
  .home-hero-storyline {
    bottom: clamp(6px, 1vh, 12px);
    height: clamp(70px, 11.5vh, 96px);
    opacity: 1;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-hero-storyline img {
    animation: none;
  }
}
