.hero-showcase {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #070a0c;
}

.hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(0deg, rgba(4, 7, 9, .84), transparent 38%),
    linear-gradient(90deg, rgba(4, 7, 9, .99) 0%, rgba(4, 7, 9, .94) 25%, rgba(4, 7, 9, .72) 47%, rgba(4, 7, 9, .22) 76%, rgba(4, 7, 9, .12) 100%);
  pointer-events: none;
}

.hero-showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.25s ease, transform 7s ease;
  pointer-events: none;
}

.hero-showcase-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-showcase-slide img,
.hero-showcase-slide video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-showcase-slide[data-position="right"] img,
.hero-showcase-slide[data-position="right"] video {
  object-position: 68% center;
}

.hero-content {
  transition: opacity .36s ease, transform .36s ease;
}

.hero-content.is-changing {
  opacity: 0;
  transform: translateY(12px);
}

.hero-content.has-compact-heading {
  max-width: 980px;
}

.hero h1.hero-heading-compact {
  font-size: clamp(58px, 6.4vw, 100px);
  line-height: .93;
}

.hero h1 .hero-line-spaced {
  display: inline-block;
  margin-top: .12em;
}

.hero-showcase-controls {
  position: absolute;
  z-index: 5;
  top: 120px;
  right: 4.5vw;
  bottom: auto;
  left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-showcase-dot,
.hero-showcase-toggle {
  border: 1px solid rgba(255, 255, 255, .36);
  background: rgba(7, 12, 15, .5);
  color: #fff;
  cursor: pointer;
}

.hero-showcase-dot {
  width: 24px;
  height: 4px;
  padding: 0;
  border-radius: 3px;
  transition: width .3s ease, background-color .3s ease;
}

.hero-showcase-dot.is-active {
  width: 46px;
  border-color: #00aeef;
  background: #00aeef;
}

.hero-showcase-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
}

@media (max-width: 900px) {
  .hero-showcase::after {
    background:
      linear-gradient(0deg, rgba(4, 7, 9, .88), transparent 44%),
      linear-gradient(90deg, rgba(4, 7, 9, .97) 0%, rgba(4, 7, 9, .82) 55%, rgba(4, 7, 9, .34) 100%);
  }

  .hero-showcase-controls {
    top: 94px;
    right: 20px;
    bottom: auto;
    left: auto;
  }

  .hero-showcase-dot {
    width: 16px;
  }

  .hero-showcase-dot.is-active {
    width: 30px;
  }

  .hero h1.hero-heading-compact {
    font-size: 52px;
    line-height: .96;
  }
}

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