/* Companion visuals only: retain the existing full-bleed framing and typography. */
.hero-final .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
}

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

.hero-neon-sweep,
.hero-neon-horizon {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
}

.hero-neon-sweep {
  inset: -25% auto -25% 0;
  width: 42%;
  background: linear-gradient(90deg,
    transparent 0%, rgba(104, 42, 255, .04) 20%,
    rgba(241, 54, 217, .15) 45%, rgba(255, 170, 248, .24) 49%,
    rgba(112, 247, 255, .32) 50%, rgba(86, 215, 255, .08) 53%,
    transparent 85%);
  mix-blend-mode: screen;
  transform: translateX(-150%) skewX(-18deg);
}

.hero-neon-horizon {
  inset: auto 0 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #b951ff 28%, #ff71dc 55%, #6af4ff 76%, transparent);
  box-shadow: 0 0 12px #be47ff, 0 0 35px rgba(84, 234, 255, .55);
  transform-origin: right center;
}

.hero-final.is-visual-switching .hero-neon-sweep { animation: hero-neon-pass 1.65s cubic-bezier(.22, .61, .36, 1) both; }
.hero-final.is-visual-switching .hero-neon-horizon { animation: hero-neon-trail 1.65s ease-out both; }

@keyframes hero-neon-pass {
  0% { opacity: 0; transform: translateX(-150%) skewX(-18deg); }
  24% { opacity: .95; }
  76% { opacity: .6; }
  100% { opacity: 0; transform: translateX(350%) skewX(-18deg); }
}

@keyframes hero-neon-trail {
  0%, 100% { opacity: 0; transform: scaleX(.25); }
  38% { opacity: .6; transform: scaleX(1); }
}

.hero-carousel-controls {
  position: absolute;
  right: var(--pad);
  bottom: 30px;
  z-index: 5;
  display: grid;
  justify-items: end;
  gap: 9px;
}

.hero-carousel-controls[hidden] { display: none; }

.hero-selector-caption {
  color: #d4bcf0;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .26em;
  padding-right: 7px;
  text-shadow: 0 0 12px rgba(208, 148, 255, .65);
}

.hero-variant-buttons {
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 5px;
  border: 1px solid rgba(175, 117, 244, .5);
  border-radius: 40px;
  background: linear-gradient(120deg, rgba(18, 7, 43, .9), rgba(38, 14, 65, .84));
  box-shadow: 0 8px 30px #08031a80, 0 0 23px #ad44f51a, inset 0 1px 0 #edbdff1c;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-variant,
.hero-autoplay {
  position: relative;
  border: 1px solid transparent;
  border-radius: 26px;
  color: #cab8e3;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
  transition: color .25s, background .25s, border-color .25s, box-shadow .25s;
}

.hero-variant {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  white-space: nowrap;
}

.hero-variant-no { font-size: 9px; letter-spacing: .08em; opacity: .65; }
.hero-variant.is-active .hero-variant-no { color: #79efff; opacity: 1; }
.hero-variant.is-active {
  color: #fff3ff;
  border-color: rgba(221, 129, 255, .45);
  background: linear-gradient(120deg, #8c36d846, #e957c827);
  box-shadow: inset 0 0 16px #d862ff15, 0 0 16px #f56bdc16;
  text-shadow: 0 0 10px #fb94ff85;
}

.hero-variant i {
  position: absolute;
  bottom: 1px;
  left: 28%;
  right: 28%;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, #ec78f2, #7fefff);
  box-shadow: 0 0 6px #79e5ff, 0 0 12px #d861ff;
}

.hero-variant.is-active i { opacity: 1; }
.hero-variant:hover:not(:disabled), .hero-autoplay:hover { color: white; background-color: #b05af221; }
.hero-variant:disabled { opacity: .4; cursor: wait; }
.hero-variant:focus-visible, .hero-autoplay:focus-visible { outline: 2px solid #8af4ff; outline-offset: 3px; }
.hero-autoplay { width: 44px; height: 44px; display: grid; place-items: center; }
.hero-pause-icon { width: 10px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero-autoplay.is-paused .hero-pause-icon { width: 0; height: 0; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; margin-left: 2px; }

.hero-carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .hero-carousel-controls { bottom: 25px; }
  .hero-variant { padding-inline: 13px; }
}

@media (max-width: 600px) {
  .hero-carousel-controls { right: 22px; left: 22px; bottom: 20px; justify-items: start; }
  .hero-selector-caption { display: none; }
  .hero-variant-buttons { max-width: 100%; padding: 4px; gap: 1px; }
  .hero-variant { font-size: 11px; padding-inline: 12px; gap: 6px; }
  .hero-final.has-visual-carousel .hero-copy,
  .hero-final.has-visual-carousel .hero-copy.reveal,
  .hero-final.has-visual-carousel .hero-copy.reveal.visible { bottom: 98px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-final .hero-slide { transition: none; }
  .hero-neon-sweep, .hero-neon-horizon { display: none; }
}
