main .hero.primary {
  background-image: linear-gradient(180deg, rgba(15, 34, 45, .12), rgba(15, 34, 45, .87)),
    url("/assets/valcor-hero-sunrise-v232.webp");
  background-position: center;
}

.hero-rotation {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero-rotation img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.hero-rotation img.is-visible { opacity: 1; }

.hero-rotation::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 34, 45, .12), rgba(15, 34, 45, .87));
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.hero-rotation:has(.is-visible)::after { opacity: 1; }

.hero-motion {
  display: block;
  margin: 0 24px 0 auto;
  padding: 0 4px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--copy);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotation img,
  .hero-rotation::after { transition: none; }
}

/* Keep each rig in frame as the viewport crops the portrait images. */
.hero-rotation img.permian { object-position: 80% center; }
.hero-rotation img.bayou { object-position: 59% center; }

@media (max-width: 375px) {
  main .hero.primary { background-position: 46% center; }
}
