.hero {
  min-height: 0;
  overflow: hidden;
  background: var(--ink);
}

.hero-carousel {
  display: flex;
  flex-direction: column;
  background: #edf3f2;
}

.hero-track {
  position: relative;
  width: 100%;
  aspect-ratio: 3.2 / 1;
  overflow: hidden;
  background: #edf3f2;
  isolation: isolate;
  touch-action: pan-y;
}

.hero-track::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(7, 31, 38, .16);
  content: '';
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

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

.hero-control {
  display: inline-flex;
  position: absolute;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(8, 38, 45, .38);
  color: #fff;
  font: 500 23px/1 'DM Sans', Arial, sans-serif;
  cursor: pointer;
  opacity: .78;
  pointer-events: auto;
  backdrop-filter: blur(6px);
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}

.hero-control:hover {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(8, 38, 45, .72);
  opacity: 1;
}

.hero-prev {
  left: 14px;
}

.hero-next {
  right: 14px;
}

.hero-control:focus-visible,
.hero-dot:focus-visible {
  outline: 3px solid #e1a83d;
  outline-offset: 3px;
}

.hero-dots {
  display: flex;
  position: absolute;
  bottom: 12px;
  left: 50%;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1px 5px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 20px;
  background: rgba(8, 38, 45, .42);
  pointer-events: auto;
  backdrop-filter: blur(6px);
}

.hero-dot {
  display: inline-grid;
  width: 23px;
  height: 25px;
  flex: 0 0 23px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot::before {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .63);
  content: '';
  transition: width .2s ease, background .2s ease;
}

.hero-dot.is-active::before {
  width: 15px;
  background: #fff;
}

.hero-slide-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.hero-content {
  min-height: 0;
  padding: 44px 0 50px;
}

.hero h1 {
  max-width: 710px;
  font-size: 56px;
  letter-spacing: 0;
}

.hero-metrics {
  margin-top: 34px;
}

@media (max-width: 850px) {
  .hero-content {
    min-height: 0;
    padding: 38px 0 42px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-metrics {
    margin-top: 30px;
  }
}

@media (max-width: 560px) {
  .hero-track {
    aspect-ratio: 3.2 / 1;
  }

  .hero-control {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }

  .hero-prev {
    left: 8px;
  }

  .hero-next {
    right: 8px;
  }

  .hero-dot {
    width: 21px;
    height: 24px;
    flex-basis: 21px;
  }

  .hero-dots {
    bottom: 8px;
  }

  .hero-content {
    padding: 30px 0 34px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 15px;
  }

  .hero-metrics {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-dot::before {
    transition: none;
  }
}
