/* Progressive video and deferred below-fold background imagery. */
.mack-hero-media {
  isolation: isolate;
  background: #101829;
}

.mack-hero-media > img {
  z-index: 0;
}

.mack-hero-media > video[data-hero-video-fast] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.04) contrast(1.03);
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
  will-change: opacity;
}

.mack-hero-media > video[data-hero-video-fast].is-ready {
  opacity: 1;
}

.mack-hero-media.is-video-enhanced > img {
  animation: none;
}

.mack-hero-media::after {
  z-index: 2;
}

html.dqq-js .mack-welcome-section:not([data-dqq-bg-ready])::before {
  background-image:
    radial-gradient(
      at center 54%,
      rgba(0, 5, 19, 0.27) 0%,
      rgba(0, 5, 19, 0.09) 45%,
      rgba(0, 5, 19, 0) 69%
    ),
    linear-gradient(
      rgba(0, 4, 14, 0.04) 0%,
      rgba(0, 6, 20, 0.01) 42%,
      rgba(0, 3, 12, 0.24) 100%
    ) !important;
}

html.dqq-js .mack-welcome-section:not([data-dqq-bg-ready])::after {
  background-image: none !important;
}

html.dqq-js .mack-journey-cta:not([data-dqq-bg-ready]) {
  background-image: none !important;
}

@media (max-width: 760px) {
  .mack-hero-media > video[data-hero-video-fast] {
    object-position: 50% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mack-hero-media > video[data-hero-video-fast] {
    display: none !important;
  }
}
