.home-consistency.home-final .buyer-hero.home-carousel-shell,
.localized-visual.home-consistency.home-final .buyer-hero.home-carousel-shell {
  display: block;
  min-height: 0;
  padding: 0;
  background: #101e25;
}

.home-carousel {
  --hero-gutter: max(4vw, calc((100vw - 1240px) / 2));
  --hero-surface: #101e25;
  --hero-text: #fff;
  --hero-muted: #d6e1e5;
  --hero-height: clamp(510px, 41vw, 650px);
  --hero-motion: 550ms;
  position: relative;
  background: var(--hero-surface);
  color: var(--hero-text);
}

.home-carousel__slides {
  display: grid;
  touch-action: pan-y pinch-zoom;
}

.home-carousel__slide {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: var(--hero-height);
  isolation: isolate;
  overflow: clip;
  background: var(--hero-surface);
  visibility: hidden;
  pointer-events: none;
}

/* The shared homepage motion layer forces media ancestors to opacity 1. */
body.home-consistency .home-carousel__slide { opacity: 0 !important; }
body.home-consistency .home-carousel__slide:is(.is-active, .is-underlay) { opacity: 1 !important; }

.home-carousel__slide.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.home-carousel__slide.is-underlay {
  visibility: visible;
  z-index: 1;
}

.home-carousel[data-ready] .home-carousel__slide {
  transition: opacity var(--hero-motion) ease-in-out;
}

.home-carousel__media {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: min(78vw, calc(var(--hero-height) * 1.6));
  display: grid;
  align-items: center;
}

.home-carousel__media img {
  width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: right center;
}

.home-carousel__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-surface), rgb(16 30 37 / 76%) 15%, transparent 40%);
  pointer-events: none;
}

.home-carousel__copy {
  width: min(100%, calc(580px + var(--hero-gutter)));
  padding: 40px 22px 98px var(--hero-gutter);
}

.home-carousel__label {
  margin: 0 0 18px;
  color: #b5d9e8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-carousel .home-carousel__title {
  color: var(--hero-text);
  margin: 0;
  max-width: 15ch;
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.home-carousel__description {
  margin: 20px 0 0;
  max-width: 39ch;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--hero-muted);
}

.home-carousel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-carousel .home-carousel__actions .button {
  min-height: 48px;
  text-align: center;
}

.home-carousel .home-carousel__actions .primary {
  background: #08668d;
  border-color: #08668d;
}

.home-carousel .home-carousel__actions .primary:hover {
  background: #075574;
  border-color: #075574;
}

.home-carousel__copy { opacity: 0; }
.home-carousel .is-active .home-carousel__copy { opacity: 1; }
.home-carousel[data-ready] .home-carousel__copy { transition: opacity 150ms ease-in-out; }
.home-carousel[data-ready] .is-active .home-carousel__copy { transition: opacity 270ms ease-in-out 120ms; }

.home-carousel__controls {
  position: absolute;
  z-index: 3;
  inset: auto auto 23px var(--hero-gutter);
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-carousel__controls[hidden] { display: none; }

.home-carousel__control {
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 1px solid #78909a;
  border-radius: 2px;
  background: var(--hero-surface);
  color: var(--hero-text);
  font: inherit;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.home-carousel__control:hover { background: #28434f; }
.home-carousel__dots { display: flex; }
.home-carousel__dot { border-color: transparent; background: transparent; }
.home-carousel__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid #b6ccd6;
  border-radius: 50%;
}
.home-carousel__dot[aria-current="true"]::before { background: #edf8ff; border-color: #edf8ff; }
.home-carousel [data-hero-rotation] { margin-left: 8px; }
.home-carousel [data-hero-rotation] span { font-size: 15px; }
.home-carousel .home-carousel__control:focus-visible { outline: 2px solid #b8e6ff; outline-offset: 2px; }

.home-carousel__status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .home-carousel { --hero-gutter: max(22px, 5vw); --hero-image-height: min(66.6667vw, 512px); }
  .home-carousel__slide { align-items: start; min-height: 0; }
  .home-carousel__media { inset: 0 0 auto; width: 100%; height: var(--hero-image-height); }
  .home-carousel__media img { height: 100%; object-position: center; }
  .home-carousel__media::after { background: linear-gradient(0deg, var(--hero-surface), transparent 14%); }
  .home-carousel__copy { width: 100%; padding: calc(var(--hero-image-height) + 16px) var(--hero-gutter) 24px; }
  .home-carousel__label { margin-bottom: 10px; }
  .home-carousel .home-carousel__title { font-size: clamp(30px, 6.8vw, 46px); max-width: 20ch; }
  .home-carousel__description { margin-top: 12px; }
  .home-carousel__actions { margin-top: 18px; }
  .home-carousel .home-carousel__actions .button { padding-inline: 12px; }
  .home-carousel__controls { position: relative; inset: auto; width: max-content; margin: 0 0 0 var(--hero-gutter); padding-bottom: 18px; }
}

@media (max-width: 480px) {
  .home-carousel__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-carousel .home-carousel__actions .button { padding: 8px; }

  /* Leave a clear right rail when longer local copy moves the CTAs down. */
  .localized-visual .home-carousel__actions {
    padding-inline-end: max(0px, calc(74px + env(safe-area-inset-right, 0px) - var(--hero-gutter)));
  }
  .localized-visual .home-carousel .home-carousel__actions .button {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 374px) {
  /* Leave room for the fixed WhatsApp shortcut on the narrowest screens. */
  .home-carousel__controls { gap: 0; }
  .home-carousel__dot { width: 32px; }
  .home-carousel [data-hero-rotation] { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .home-carousel { --hero-motion: 0ms; }
  .home-carousel[data-ready] .home-carousel__copy,
  .home-carousel[data-ready] .is-active .home-carousel__copy { transition: none; }
}

.home-carousel-overview {
  padding: clamp(28px, 4vw, 52px) max(22px, 4vw, calc((100vw - 1240px) / 2));
  background: #fff;
  color: #162e3a;
}

.home-carousel-overview h1 {
  max-width: 36ch;
  margin: 0 0 20px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.18;
}

.home-carousel-overview__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
}

.home-carousel-overview__details p {
  max-width: 62ch;
  margin: 0;
  line-height: 1.55;
}

.home-carousel-overview__details strong { display: block; }

.home-carousel-overview__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  margin-top: 12px;
}

.home-carousel-overview__links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: #08668d;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .home-carousel-overview__details { grid-template-columns: 1fr; }
}
