.hero-carousel {
  position: relative;
  min-height: min(56.25vw, 720px);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 80px 0 88px;
  background: #081426;
  color: #f8fafc;
  border-bottom: 1px solid var(--color-border);
  isolation: isolate;
}

.hero-slides,
.hero-slide,
.hero-carousel-overlay {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 900ms ease;
}

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

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-carousel-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 14, 32, .97) 0%, rgba(5, 14, 32, .92) 38%, rgba(5, 14, 32, .45) 66%, rgba(5, 14, 32, .18) 100%),
    linear-gradient(0deg, rgba(5, 14, 32, .82) 0%, transparent 42%, rgba(5, 14, 32, .25) 100%);
}

.hero-carousel .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-carousel .hero-video-title,
.hero-carousel .hero-video-lede,
.hero-carousel .hero-video-note {
  max-width: 760px;
}

.hero-carousel-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.hero-slide-dots,
.hero-slide-arrows {
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-dot {
  width: 36px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: width 200ms ease, background-color 200ms ease;
}

.hero-dot.is-active {
  width: 54px;
  background: #67e8f9;
}

.hero-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(165, 243, 252, .35);
  border-radius: 50%;
  background: rgba(8, 20, 38, .62);
  color: #cffafe;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  background: rgba(14, 116, 144, .82);
  transform: translateY(-1px);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
}

.hero-carousel-compat {
  display: none !important;
}

@media (min-width: 1440px) {
  .hero-carousel { min-height: 680px; }
}

@media (max-width: 768px) {
  .hero-carousel {
    min-height: 620px;
    padding: 64px 0 84px;
  }

  .hero-slide img { object-position: 61% center; }

  .hero-carousel-overlay {
    background:
      linear-gradient(90deg, rgba(5, 14, 32, .97) 0%, rgba(5, 14, 32, .88) 74%, rgba(5, 14, 32, .62) 100%),
      linear-gradient(0deg, rgba(5, 14, 32, .84) 0%, transparent 42%);
  }

  .hero-carousel .hero-video-tag {
    font-size: .7rem;
    padding: 6px 12px;
  }

  .hero-carousel .hero-video-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-carousel .hero-video-lede {
    font-size: .96rem;
    line-height: 1.6;
  }

  .hero-slide-arrows { display: none; }
  .hero-carousel-controls { justify-content: center; }
}

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