.home-banner-host {
  width: min(1200px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  /* Reserve banner slot before JS fills it — cuts mid-page CLS */
  min-height: clamp(210px, 25vw, 340px);
}

.home-banner-host[hidden],
.home-banner-host[data-empty="1"] {
  display: none;
  min-height: 0;
  margin: 0;
}

.home-banner--skeleton {
  min-height: inherit;
  height: clamp(210px, 25vw, 340px);
  border-radius: 18px;
  background:
    linear-gradient(90deg, #0a2540 0%, #123a5c 45%, #0a2540 100%);
  background-size: 200% 100%;
}

.home-banner {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 18px;
  background: #0a2540;
  box-shadow: 0 12px 34px rgba(10, 37, 64, 0.14);
}

.home-banner__viewport {
  position: relative;
  min-height: inherit;
}

.home-banner__slide {
  position: absolute;
  inset: 0;
  min-height: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
}

.home-banner__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-banner__link,
.home-banner__slide > picture {
  display: block;
  min-height: inherit;
}

.home-banner picture,
.home-banner img {
  width: 100%;
  min-height: inherit;
  height: clamp(210px, 25vw, 340px);
  display: block;
}

.home-banner img {
  object-fit: cover;
}

.home-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 22, 38, var(--banner-overlay, 0.35)) 0%,
    rgba(5, 22, 38, var(--banner-overlay, 0.35)) 52%,
    transparent 100%
  );
  pointer-events: none;
}

.home-banner__copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 610px;
  padding: clamp(1.4rem, 4vw, 3.6rem);
  color: #fff;
}

.home-banner__copy--center {
  margin: auto;
  align-items: center;
  text-align: center;
}

.home-banner__copy--right {
  right: 0;
  left: auto;
  align-items: flex-end;
  text-align: right;
}

.home-banner__eyebrow {
  margin: 0 0 0.45rem;
  color: #ffd54a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-banner__copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 3.5vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.home-banner__copy > p:not(.home-banner__eyebrow) {
  max-width: 540px;
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
}

.home-banner__button {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 1.05rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: #ffc400;
  color: #0a2540;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.home-banner__copy--center .home-banner__button {
  align-self: center;
}

.home-banner__copy--right .home-banner__button {
  align-self: flex-end;
}

.home-banner__arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0a2540;
  font-size: 1.65rem;
  line-height: 1;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.home-banner__arrow--prev { left: 0.75rem; }
.home-banner__arrow--next { right: 0.75rem; }

.home-banner__dots {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0.8rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.home-banner__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.home-banner__dot.is-active {
  width: 1.4rem;
  border-radius: 999px;
  background: #ffc400;
}

@media (max-width: 640px) {
  .home-banner-host {
    width: calc(100% - 1rem);
    margin-top: 1rem;
  }

  .home-banner,
  .home-banner__viewport,
  .home-banner__slide,
  .home-banner__link {
    min-height: 230px;
  }

  .home-banner picture,
  .home-banner img {
    height: 230px;
  }

  .home-banner__copy {
    padding: 1.5rem 2.8rem;
  }

  .home-banner__copy > p:not(.home-banner__eyebrow) {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .home-banner__arrow {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-banner__slide {
    transition: none;
  }
}
