.home-slider {
  position: relative;
  overflow: hidden;
  background: #171717;
  color: #fff;
}

.home-slider [hidden] {
  display: none;
}

.home-slide {
  position: relative;
  isolation: isolate;
}

.home-slide-image,
.home-slide::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-slide-image {
  z-index: -2;
  object-fit: cover;
  object-position: 64% center;
}

.home-slide::after {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(12, 13, 16, .94), rgba(12, 13, 16, .82) 34%, rgba(12, 13, 16, .16) 76%),
    linear-gradient(0deg, rgba(12, 13, 16, .57), transparent 37%);
}

.home-slide-inner {
  display: flex;
  align-items: center;
  min-height: clamp(660px, 53vw, 820px);
  padding-top: 182px;
  padding-bottom: 148px;
}

.home-slide-copy {
  max-width: 580px;
}

.home-slide-copy h1,
.home-slide-copy h2 {
  margin: 0 0 20px;
  color: inherit;
  font-size: clamp(40px, 4.7vw, 76px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.home-slide-copy p {
  max-width: 490px;
  margin: 0 0 28px;
  color: #f0f0f0;
  font-size: 18px;
  line-height: 1.65;
}

.home-slider-controls,
.home-slider-dots {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-slider-controls {
  position: absolute;
  inset: auto 0 48px;
  justify-content: flex-start;
  z-index: 3;
}

@media (min-width: 992px) {
  .home-slider-controls {
    bottom: 78px;
    padding-inline-start: calc(var(--bs-gutter-x, 1.5rem) / 2 + 12px);
  }
}

.home-slider-arrow,
.home-slider-dots button {
  display: grid;
  place-items: center;
  height: 44px;
  padding: 0;
  color: #fff;
  cursor: pointer;
}

.home-slider-arrow {
  width: 44px;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #171717b8;
  font-size: 20px;
}

.home-slider-arrow:hover {
  background: #df1118;
}

.home-slider-dots {
  gap: 3px;
}

.home-slider-dots button {
  width: 32px;
  border: 0;
  background: transparent;
}

.home-slider-dots button::before {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: #fff9;
  content: "";
}

.home-slider-dots button[aria-current="true"]::before {
  width: 23px;
  background: #fff;
}

.home-slider :is(a, button):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 991.98px) {
  .home-slide-inner {
    min-height: 620px;
    padding-top: 132px;
    padding-bottom: 116px;
    justify-content: center;
    text-align: center;
  }

  .home-slide-copy p {
    margin-inline: auto;
  }

  .home-slide-copy .home-slide-actions,
  .home-slider-controls {
    justify-content: center;
  }

  .home-slide::after {
    background: linear-gradient(90deg, rgba(12, 13, 16, .94), rgba(12, 13, 16, .66) 77%, rgba(12, 13, 16, .46));
  }

  .home-slider-controls {
    bottom: 65px;
  }
}

@media (max-width: 575.98px) {
  .home-slide-inner,
  .home-slider-controls {
    padding-inline: 22px;
  }

  .home-slide-copy h1,
  .home-slide-copy h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .home-slide-copy p {
    font-size: 16px;
  }
}

.home-slider.is-ready {
  display: grid;
}

.home-slider.is-ready .home-slide {
  grid-area: 1 / 1;
  z-index: 2;
  min-width: 0;
  opacity: 1;
  transition: opacity .85s ease-in-out;
}

.home-slider.is-ready .home-slide[aria-hidden="true"] {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.home-slider.is-ready .home-slide.is-previous {
  z-index: 1;
  transition: none;
  animation: home-slide-underlay .85s steps(1, end) forwards;
}

@keyframes home-slide-underlay {
  from { opacity: 1; }
  to { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-slider.is-ready .home-slide {
    transition: none;
  }

  .home-slider.is-ready .home-slide.is-previous {
    animation: none;
  }
}
