.hero {
  position: relative;
  min-height: 680px;
  color: var(--color-white);
  background: var(--color-navy);
}

.hero-carousel {
  position: relative;
  height: clamp(680px, calc(100vh - var(--header-height)), 820px);
  min-height: 680px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.hero-carousel.is-dragging {
  cursor: grabbing;
}

.hero-carousel__track {
  height: 100%;
  display: flex;
  will-change: transform;
}

.hero-slide {
  position: relative;
  width: 100%;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, center);
  transform: scale(1.01);
}

.hero-slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(4 25 45 / 0.94) 0%,
    rgb(4 25 45 / 0.88) 24%,
    rgb(4 25 45 / 0.65) 45%,
    rgb(4 25 45 / 0.18) 72%,
    rgb(4 25 45 / 0.04) 100%
  );
}

.hero-slide__inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--page-width));
  height: 100%;
  display: flex;
  align-items: center;
  margin-inline: auto;
}

.hero-slide__content {
  width: min(620px, 55vw);
  margin-left: clamp(3rem, 6.3vw, 5.5rem);
  padding-bottom: 1rem;
}

.hero-slide__eyebrow {
  margin-bottom: 1.45rem;
  color: #7fe0e7;
  font-size: 0.875rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.hero-slide__title {
  color: var(--color-white);
  font-size: var(--font-size-hero);
  font-weight: 620;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-slide__summary {
  max-width: 33rem;
  margin-top: 1.65rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 1.125rem;
  line-height: 1.9;
}

.hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero-carousel__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 48px;
  height: 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  background: rgb(7 31 56 / 0.24);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
  backdrop-filter: blur(8px);
}

.hero-carousel__arrow:hover {
  border-color: rgb(255 255 255 / 0.65);
  background: rgb(7 31 56 / 0.55);
}

.hero-carousel__arrow--prev {
  left: max(1rem, calc((100vw - var(--page-width)) / 2));
}

.hero-carousel__arrow--next {
  right: max(1rem, calc((100vw - var(--page-width)) / 2));
}

.hero-carousel__dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 2.5rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.hero-carousel__dot {
  width: 32px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgb(255 255 255 / 0.42);
  cursor: pointer;
  transition: width var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) ease;
}

.hero-carousel__dot[aria-current="true"] {
  width: 58px;
  background: var(--color-white);
}

@media (max-width: 900px) {
  .hero,
  .hero-carousel {
    min-height: 640px;
  }

  .hero-carousel {
    height: calc(100svh - var(--header-height));
    max-height: 760px;
  }

  .hero-slide__scrim {
    background: linear-gradient(90deg, rgb(4 25 45 / 0.9) 0%, rgb(4 25 45 / 0.66) 65%, rgb(4 25 45 / 0.25) 100%);
  }

  .hero-slide__content {
    width: min(600px, 82vw);
    margin-left: 2rem;
  }

  .hero-carousel__arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-slide__image {
    object-position: 60% center;
  }

  .hero-slide__scrim {
    background: linear-gradient(90deg, rgb(4 25 45 / 0.92) 0%, rgb(4 25 45 / 0.7) 72%, rgb(4 25 45 / 0.4) 100%);
  }

  .hero-slide__content {
    width: 88%;
    margin-left: 0;
  }

  .hero-slide__title {
    font-size: clamp(2.75rem, 13vw, 3.35rem);
  }

  .hero-slide__summary {
    font-size: 1rem;
  }

  .hero-carousel__dots {
    bottom: 1.5rem;
  }
}
