.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 88px);
  overflow: hidden;
  background-color: #17191c;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    #17191c 0%,
    rgba(23, 25, 28, 0.97) 28%,
    rgba(23, 25, 28, 0.5) 52%,
    transparent 73%
  );
  content: "";
  pointer-events: none;
}

.hero__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__slide-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero__slide-image.is-active {
  z-index: 2;
  opacity: 1;
}

.hero__container {
  position: relative;
  z-index: 4;
  display: flex;
  width: min(100% - 48px, 1440px);
  min-height: calc(100svh - 88px);
  align-items: center;
  margin-inline: auto;
  padding: 75px 0 95px;
  pointer-events: none;
}

.hero__content {
  width: min(48%, 640px);
  pointer-events: auto;
  transform: translateY(-25px);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: #c8cbd0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__eyebrow span {
  width: 30px;
  height: 2px;
  background-color: #a7262c;
}

.hero__title {
  max-width: 620px;
  color: #f3f1ec;
  font-size: clamp(3.4rem, 5.5vw, 6.4rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero__description {
  max-width: 500px;
  margin-top: 28px;
  color: #adb1b6;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
}

.hero__description p {
  margin: 0 0 0.6em;
}

.hero__description p:last-child {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background-color: #f3f1ec;
  color: #15171a;
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f3f1ec;
}

.button--secondary:hover {
  border-color: #f3f1ec;
  background-color: rgba(255, 255, 255, 0.06);
}

.hero__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background-color: rgba(23, 25, 28, 0.55);
  color: #f3f1ec;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.hero__nav:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: rgba(23, 25, 28, 0.8);
}

.hero__nav--prev {
  left: 24px;
}

.hero__nav--next {
  right: 24px;
}

.hero__dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  z-index: 5;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero__dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.hero__dot:hover {
  transform: scale(1.15);
}

.hero__dot.is-active {
  border-color: #f3f1ec;
  background-color: #f3f1ec;
}

@media (max-width: 1050px) {
  .hero__content {
    width: min(55%, 570px);
    transform: translateY(-18px);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      #17191c 0%,
      #17191c 42%,
      rgba(23, 25, 28, 0.7) 68%,
      transparent 100%
    );
  }

  .hero__container {
    width: min(100% - 32px, 620px);
    min-height: auto;
    padding: 60px 0 48px;
  }

  .hero__content {
    width: 100%;
    transform: translateY(-8px);
  }

  .hero__title {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .hero__description {
    margin-top: 22px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 28px;
  }

  .button {
    padding: 0 14px;
  }

  .hero__nav {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .hero__nav--prev {
    left: 12px;
  }

  .hero__nav--next {
    right: 12px;
  }
}

@media (max-width: 390px) {
  .hero__actions {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 3rem;
  }
}

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

/* Razor port: video slides + phone image. Video plays on wide screens only; phones get the image. */
.hero__stage picture {
  display: contents;
}

.hero__slide-mobile-only {
  display: none;
}

@media (max-width: 760px) {
  .hero__slide-video {
    display: none;
  }

  .hero__slide-mobile-only {
    display: block;
  }
}
