/* Hero: four stills of the same scene behind the hero. Scrolling down untangles the grey threads into one orange thread,
   scrolling up tangles them again. Loaded after styles.css and animations.css. */

.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }

/* The stills have an off white studio backdrop. Brightening lifts it to white,
   multiply drops what is left into the page, and the mask softens the edges. */
.hero-art {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 44%;
  right: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 22%), linear-gradient(to bottom, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 60%;
  filter: brightness(1.12) contrast(1.08);
  mix-blend-mode: multiply;
  opacity: 0;
  will-change: opacity, transform;
}
.hero-art img:first-child { opacity: 1; }

@media (min-width: 900px) {
  .hero { min-height: calc(100vh - 80px); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero-copy { max-width: 46%; }
}

@media (max-width: 899px) {
  .hero { padding-bottom: 0; }
  .hero-art { position: relative; inset: auto; left: auto; aspect-ratio: 5 / 4; margin-top: var(--space4); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 72%, transparent 100%); }
  .hero-art img { object-position: 78% 60%; }
}
