/* Homepage-only slideshow: leaves the existing split-hero layout and its demo states intact. */
body.home-page .hero:first-of-type > .hero-image {
  isolation: isolate;
  background-color: #07090c !important;
  background-image: none !important;
}
body.home-page .hero:first-of-type .cui-hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
body.home-page .hero:first-of-type .cui-hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 1400ms ease-in-out;
  pointer-events: none;
}
body.home-page .hero:first-of-type .cui-hero-slide.is-active {
  opacity: 1;
}
/* The existing configurable fade / cinematic treatment must stay ABOVE the images. */
body.home-page .hero:first-of-type > .hero-image::before {
  z-index: 1 !important;
  pointer-events: none;
}
body.home-page .hero:first-of-type > .hero-image::after {
  z-index: 2 !important;
  pointer-events: none;
}
body.home-page .hero:first-of-type .cui-hero-slide-controls {
  position: absolute;
  right: clamp(20px, 3vw, 44px);
  bottom: 26px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
body.home-page .cui-hero-slide-dot {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
body.home-page .cui-hero-slide-dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  box-shadow: 0 1px 8px rgba(0,0,0,.42);
  transition: width .25s ease, border-radius .25s ease, background-color .25s ease;
}
body.home-page .cui-hero-slide-dot.is-active::before {
  width: 19px;
  border-radius: 5px;
  background: #fff;
}
body.home-page .cui-hero-slide-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}
@media (max-width: 900px) {
  /* The advisor is pinned at the bottom on mobile; controls must never cover it. */
  body.home-page .hero:first-of-type .cui-hero-slide-controls {
    top: 12px;
    bottom: auto;
    right: 16px;
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(0,0,0,.26);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home-page .hero:first-of-type .cui-hero-slide {
    transition: none;
  }
}

/* Preserve the defining skyline or property on narrower hero crops. */
body.home-page .hero:first-of-type .cui-hero-slide:nth-child(3){object-position: 62% center;}
body.home-page .hero:first-of-type .cui-hero-slide:nth-child(4){object-position: 80% center;}
body.home-page .hero:first-of-type .cui-hero-slide:nth-child(5){object-position: 51% center;}
