.hero-content {
  align-items: center;
}

.hero {
  --hero-parallax: 0px;
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: visible;
  background: none;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-background::after {
  z-index: 1;
  background: linear-gradient(110deg, rgba(0, 0, 0, .66), rgba(0, 0, 0, .38));
}

.hero-background-slide {
  position: absolute;
  z-index: 0;
  inset: -7%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
}

.hero-background-slide.is-active {
  opacity: 1;
}

.hero-message {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  text-align: center;
}

.hero-message h1,
.hero-message p {
  color: #fff;
}

.hero-message .eyebrow,
.hero-message .hero-copy {
  margin: 0;
}

.hero h1 {
  max-width: 1100px;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-copy {
  max-width: 760px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.search-box,
.hero-search {
  width: 100%;
  max-width: none;
}

@media (min-width: 700px) and (max-width: 979px) {
  .search-box {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-box .search-term,
  .search-box button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 980px) {
  .hero-background-slide {
    transform: translate3d(0, var(--hero-parallax), 0) scale(1.04);
    will-change: opacity, transform;
  }

  .hero-content {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: clamp(26px, 4vh, 44px);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .search-box {
    justify-self: stretch;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    padding: clamp(20px, 2vw, 30px);
  }

  .search-box .search-term,
  .search-box button {
    grid-column: 1 / -1;
  }

  .search-box button {
    width: 100%;
  }
}

@media (min-width: 980px) {
  .hero-search {
    justify-self: stretch;
  }

  .hero-search .search-filter-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    align-items: stretch;
  }

  .hero-search .search-submit {
    min-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-background-slide {
    transform: none;
    will-change: auto;
    transition: none;
  }
}

@media (max-width: 699px) {
  .hero-background {
    background: url("../images/hero-v.webp") center / cover no-repeat;
  }

  .hero-background-slide {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .search-box {
    grid-template-columns: 1fr;
  }

  .search-box .search-term,
  .search-box button {
    grid-column: auto;
  }
}
