.hero-carousel__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero[data-service-tone="blue"] { --hero-type: #a9d7ff; --hero-title: #b5caff; --hero-button: #60a5fa; }
.hero[data-service-tone="violet"] { --hero-type: #dbb9ff; --hero-title: #dab8ff; --hero-button: #b58bfa; }
.hero[data-service-tone="gold"] { --hero-type: #ffe1a0; --hero-title: #ffdf91; --hero-button: #f3bf64; }
.hero[data-service-tone="coral"] { --hero-type: #ffc1cf; --hero-title: #ffb4c8; --hero-button: #f497ae; }
.hero[data-service-tone="mint"] { --hero-type: #b6fce9; --hero-title: #9af3d5; --hero-button: #74dfc3; }

.hero__headline-intro,
.hero__service-title {
  display: block;
}

.hero__headline-intro {
  margin-bottom: .12em;
  color: var(--hero-type, #a9d7ff);
  font-size: .68em;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.hero h1 .hero__service-title {
  max-width: min(15ch, 100%);
  min-height: 1.08em;
  color: #dcebff;
  line-height: 1.06;
  text-wrap: balance;
  overflow-wrap: anywhere;
  background: linear-gradient(115deg, #fff 12%, var(--hero-title, #b5caff) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .button--primary {
  background: var(--hero-button, #60a5fa);
  color: #07101e;
  transition: transform .16s, background .35s;
}

.hero__service-title.is-entering {
  animation: hero-service-enter 480ms ease both;
}

@keyframes hero-service-enter {
  from { opacity: .45; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-carousel__controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  margin-top: 18px;
  padding: 7px;
  border: 1px solid rgba(167, 139, 250, .42);
  border-radius: 999px;
  background: rgba(9, 11, 20, .72);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
}

.hero-carousel__arrow,
.hero-carousel__dot {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  color: #f8fafc;
  background: transparent;
}

.hero-carousel__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
}

.hero-carousel__arrow:hover,
.hero-carousel__arrow:focus-visible {
  background: rgba(96, 165, 250, .2);
}

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

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(248, 250, 252, .72);
  border-radius: 50%;
}

.hero-carousel__dot[aria-current="true"] {
  width: 24px;
  border-color: #60a5fa;
  border-radius: 999px;
  background: #60a5fa;
}

.hero-carousel__arrow:focus-visible,
.hero-carousel__dot:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 3px;
}

.catalog-hero[data-hero-carousel] {
  isolation: isolate;
  background: #10182c;
}

.catalog-hero[data-hero-carousel]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(9, 11, 20, .98) 0%, rgba(9, 11, 20, .91) 41%, rgba(9, 11, 20, .47) 72%, rgba(9, 11, 20, .18) 100%);
}

.catalog-hero[data-hero-carousel]::after {
  z-index: 1;
}

.catalog-hero[data-hero-carousel] > :not(.hero-carousel__media) {
  position: relative;
  z-index: 2;
}

.catalog-hero__copy {
  max-width: 690px;
}

@media (max-width: 699px) {
  .hero h1 .hero__service-title {
    min-height: 0;
  }

  .hero-carousel__controls {
    gap: 6px;
    margin-top: 16px;
    padding: 6px;
  }

  .hero-carousel__arrow {
    width: 34px;
    height: 34px;
  }

  .hero-carousel__dot {
    width: 9px;
    height: 9px;
  }

  .hero-carousel__dot[aria-current="true"] {
    width: 20px;
  }

  .catalog-hero[data-hero-carousel]::before {
    background: linear-gradient(180deg, rgba(9, 11, 20, .94) 0%, rgba(9, 11, 20, .84) 62%, rgba(9, 11, 20, .54) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero__service-title.is-entering {
    transition: none;
    animation: none;
  }
}
