.hero {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  padding: 64px 72px 150px;
  background-color: #344957;
  color: #fff;
}

.hero-content {
  max-width: 1040px;
  margin: 0 auto;
}

.hero h1 {
  max-width: 560px;
  margin: 0 0 20px;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
}

.hero-description,
.hero-callout {
  max-width: 610px;
  font-size: 14px;
  line-height: 1.7;
}

.hero-description {
  margin: 0 0 18px;
}

.hero-callout {
  margin: 0 0 32px;
  font-weight: 700;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #344957;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 800ms ease;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgb(0 0 0 / 65%),
    rgb(0 0 0 / 20%)
  );
}

/* Carousel arrows */
.hero-carousel-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-carousel-controls button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  text-shadow: 0 2px 10px rgb(0 0 0 / 80%);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background-color 200ms ease;
}

.hero-carousel-controls button span {
  display: block;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-2px);
}

.hero-carousel-controls .hero-prev {
  left: 12px;
}

.hero-carousel-controls .hero-next {
  right: 12px;
}

.hero-carousel-controls button:hover,
.hero-carousel-controls button:focus-visible {
  background: rgb(0 0 0 / 35%);
}

.hero-carousel-controls button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Visually hidden, but still announced by screen readers */
.hero-counter {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hero-carousel-controls button {
    width: 44px;
    height: 44px;
  }

  .hero-carousel-controls .hero-prev {
    left: 2px;
  }

  .hero-carousel-controls .hero-next {
    right: 2px;
  }
}
