.hero-carousel { position: relative; }
#home-banner-panels { touch-action: pan-y pinch-zoom; }
.hero-carousel [hidden] { display: none !important; }
.hero-carousel h2 {
  position: relative;
  width: max-content;
  max-width: 100%;
  margin: 21px 0 18px;
  font-size: 67px;
  line-height: 1.03;
  letter-spacing: -3.7px;
  font-weight: 850;
}
.hero-carousel h2 span { color: var(--purple); }
.hero-carousel h2 span::after {
  display: block;
  content: '';
  position: absolute;
  width: 1.5em;
  height: 7px;
  bottom: -8px;
  inset-inline-end: 0;
  border-top: 3px solid var(--purple);
  border-radius: 50%;
  transform: rotate(-4deg);
}
.hero-carousel-controls {
  position: absolute;
  inset-inline-end: clamp(12px, 2vw, 22px);
  inset-block-end: clamp(12px, 2vw, 20px);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4d3680;
}
.hero-carousel-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid #7953bf;
  border-radius: 12px;
  background: #f0e9fc;
  color: #573594;
  cursor: pointer;
}
.hero-carousel-arrow {
  width: 12px;
  height: 18px;
  background: currentColor;
  clip-path: polygon(76% 0, 100% 14%, 46% 50%, 100% 86%, 76% 100%, 0 50%);
}
[data-banner-next] .hero-carousel-arrow { transform: scaleX(-1); }
@media (forced-colors: active) {
  .hero-carousel-arrow { forced-color-adjust: none; background: ButtonText; }
}
.hero-carousel-controls button:hover { background: #e8dcfa; }
.hero-carousel-controls button:focus-visible { outline: 2px solid #6542cb; outline-offset: 3px; }
.hero-carousel-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) { .hero-carousel h2 { font-size: 58px; } }
@media (max-width: 800px) {
  .hero-carousel h2 { font-size: 47px; letter-spacing: -2.4px; }
  .hero-carousel:has(.hero-carousel-controls:not([hidden])) .hero { padding-block-end: 36px; }
}
@media (max-width: 550px) {
  .hero-carousel:has(.hero-carousel-controls:not([hidden])) .hero { padding-block-end: 64px; }
  .hero-carousel h2 { margin-top: 19px; font-size: clamp(37px, 12vw, 54px); }
  .hero-carousel-controls button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-carousel [data-home-slide].hero-slide-enter { animation: hero-slide-enter 210ms ease-out; }
  @keyframes hero-slide-enter { from { opacity: .5; transform: translateX(9px); } to { opacity: 1; transform: translateX(0); } }
}
