.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background-color: var(--navy);
  background-size: cover;
  background-position: center var(--hero-bg-focus-y, 50%);
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero__bg--ripple.hero__bg--pending,
.hero__bg--ripple.is-ripple-live {
  background-image: none !important;
}

.hero__bg:not(.hero__bg--ripple) {
  filter: brightness(1) saturate(0.98);
}

.hero__bg--ripple.is-ripple-live .ripple-distortion {
  filter: brightness(1) saturate(0.98);
}

.hero__bg--ripple.hero__bg--pending,
.hero__bg--ripple.is-ripple-live {
  filter: none;
}

.hero__bg .ripple-distortion {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.hero__bg .ripple-distortion canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: auto;
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /* Gradients live in components.css (loads before this file; must not reset here). */
}

.hero .wrap {
  position: relative;
  z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg .ripple-distortion {
    display: none;
  }
}
