.hero-media {
  overflow: hidden;
  background: #071626;
}

.hero-track {
  width: 100%;
  height: 100%;
  display: flex;
  transform: translate3d(0, 0, 0);
  transition: transform 900ms cubic-bezier(.22, .75, .25, 1);
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
  background: #071626;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 42%;
}

.hero-slide:nth-child(1) img { object-position: center 36%; }
.hero-slide--testing img { object-position: center 43%; }

.hero-slide--product {
  background:
    radial-gradient(circle at 78% 48%, rgba(115, 221, 245, .34), transparent 31%),
    linear-gradient(110deg, #071626 0%, #0c2942 44%, #c8dce5 44%, #edf4f7 100%);
}

.hero-slide--product::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, .3) 48.2% 48.5%, transparent 48.7%),
    repeating-linear-gradient(90deg, transparent 0 74px, rgba(6, 37, 59, .035) 74px 75px);
}

.hero-slide--product img {
  position: relative;
  width: min(68vw, 980px);
  height: 100%;
  margin-left: auto;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  filter: saturate(1.08) contrast(1.04);
}

.hero-slide--rollover img {
  width: min(62vw, 900px);
  padding: 42px 2vw 22px;
}

.hero-controls {
  position: absolute;
  z-index: 4;
  right: max(20px, calc((100vw - 1180px) / 2));
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(4,16,28,.52);
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.hero-arrow,
.hero-dot {
  appearance: none;
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  font: inherit;
  font-size: 18px;
  transition: background .2s ease, color .2s ease;
}

.hero-arrow:hover {
  color: #00131b;
  background: var(--cyan-2);
}

.hero-pagination {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
  transition: width .25s ease, background .25s ease;
}

.hero-dot.is-active {
  width: 26px;
  background: var(--cyan-2);
}

.hero-arrow:focus-visible,
.hero-dot:focus-visible {
  outline: 3px solid var(--cyan-2);
  outline-offset: 3px;
}

@media (min-width: 783px) {
  .hero-controls {
    top: 150px;
    bottom: auto;
  }
}

@media (max-width: 782px) {
  .hero-content { padding-bottom: 84px; }
  .hero-slide--testing img { object-position: 56% center; }
  .hero-slide--product {
    background:
      radial-gradient(circle at 67% 36%, rgba(115, 221, 245, .3), transparent 35%),
      linear-gradient(155deg, #071626 0%, #0c2942 35%, #d7e6ec 35%, #edf4f7 100%);
  }
  .hero-slide--product img {
    width: 100%;
    height: 58%;
    margin: 70px 0 0;
    object-position: center top;
  }
  .hero-slide--rollover img {
    height: 54%;
    padding: 24px 16px 0;
  }
  .hero-controls {
    right: 14px;
    bottom: 18px;
    gap: 9px;
  }
  .hero-arrow { width: 32px; height: 32px; }
}

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