.home-page:has(.hero-b30-family) {
  padding-top: 0;
}

.hero.home-hero:has(.hero-b30-family) {
  --family-height: max(100svh, 650px);
  --family-photo-bottom: calc(var(--family-footer) + 72px);
  --family-photo-half: calc(100vw / 6);
  --family-footer: 48px;
  --family-bottom: 0px;
  height: 100svh;
  min-height: 650px;
  max-height: none;
  padding: 0;
  background: #6da6d2;
}

.hero.home-hero .hero-slide.hero-b30-family {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  background: #6da6d2;
  isolation: isolate;
}

.hero.home-hero .hero-b30-family .family-visual {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

/* The environment continues behind the unchanged approved car and family. */
.hero.home-hero .hero-b30-family .family-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  display: block;
  background-image: url('/assets/marketing/b30-family-scene-20261119.webp');
  background-size: 100% calc((var(--family-height) - var(--family-photo-bottom) - var(--family-photo-half)) / .61);
  background-repeat: no-repeat;
  background-position: center top;
  pointer-events: none;
}

.hero.home-hero .hero-b30-family .family-visual::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  display: block;
  background: url('/assets/marketing/b30-family-scene-20261119.webp') center bottom / 100% 400% no-repeat;
  mask-image: linear-gradient(transparent, #000 40%);
  pointer-events: none;
}

.hero.home-hero .hero-slide.hero-b30-family .hero-image {
  position: absolute;
  z-index: 1;
  inset: auto 0 calc(var(--family-footer) + 72px);
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  object-position: center;
  transform: none;
  mask-image: linear-gradient(transparent, #000 15%, #000 94%, transparent), linear-gradient(90deg, transparent 11%, #000 22%), radial-gradient(ellipse 45% 30% at left top, transparent 85%, #000 100%);
  mask-composite: intersect;
}

.hero.home-hero .hero-slide.hero-b30-family::before {
  content: '';
  position: absolute;
  z-index: 2;
  display: block;
  inset: 0;
  background: linear-gradient(180deg, #061a2a80, #061a2a38 28%, transparent 53%);
  pointer-events: none;
}

.hero.home-hero .hero-slide.hero-b30-family::after {
  display: none;
}

.hero.home-hero .hero-slide.hero-b30-family .family-copy {
  position: absolute;
  z-index: 3;
  inset: clamp(104px, 13svh, 150px) auto auto 6%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  width: min(520px, 44%);
  margin: 0;
  padding: 0;
  color: #fff;
  text-align: right;
  direction: rtl;
  pointer-events: none;
}

.hero.home-hero .hero-slide.hero-b30-family .family-copy > :is(h1, p) {
  margin: 0;
  color: inherit;
  text-align: inherit;
  white-space: normal;
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 4px #10243855;
}

.hero.home-hero .hero-b30-family .family-copy .family-tagline {
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.25;
  font-weight: 500;
}

.hero.home-hero .hero-b30-family .family-copy h1 {
  margin-top: 7px;
  font-family: inherit;
  font-size: clamp(48px, 4.6vw, 72px);
  font-weight: 700;
  font-style: normal;
  line-height: 1.05;
  letter-spacing: -.035em;
}

.hero.home-hero .hero-b30-family .family-copy .family-detail {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.hero.home-hero .hero-slide.hero-b30-family .family-copy > .baic-starting-price {
  margin-top: 9px;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.35;
  text-align: inherit;
}

.hero.home-hero .hero-b30-family .family-copy .baic-starting-price bdi {
  white-space: nowrap;
  font-weight: 600;
}

.hero.home-hero .hero-slide.hero-b30-family .hero-actions {
  display: flex;
  margin-top: 18px;
  justify-content: flex-start;
}

.hero.home-hero .hero-slide.hero-b30-family .hero-actions .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 46px;
  padding: 11px 24px;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 24px;
  color: #182b3b;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  -webkit-text-stroke: 0;
  text-shadow: none;
  pointer-events: auto;
}

.hero.home-hero .hero-b30-family .hero-actions .pill:hover {
  background: #eaf0f4;
}

.hero.home-hero .hero-b30-family .hero-actions .pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.hero.home-hero .hero-b30-family .teaser-regulatory {
  bottom: var(--family-bottom);
  min-height: var(--family-footer);
  padding: 7px 5%;
  border-top: 1px solid #ffffff40;
  background: #142537a6;
  color: #fff;
  font-size: 13px;
  backdrop-filter: blur(6px);
}

.hero.home-hero .hero-b30-family .teaser-badge {
  min-width: 26px;
  height: 26px;
  font-size: 20px;
}

.hero.home-hero .hero-b30-family .teaser-disclaimer {
  bottom: calc(var(--family-bottom) + var(--family-footer));
  min-height: 0;
  padding: 5px 5%;
  background: #142537b8;
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
}

.hero.home-hero .hero-b30-family .teaser-disclaimer:empty {
  display: none;
}

.hero.home-hero:has(.hero-b30-family.active) .hero-controls {
  bottom: calc(var(--family-bottom) + var(--family-footer) + 12px);
  gap: 0;
  padding: 3px 5px;
  border: 1px solid #ffffff66;
  border-radius: 28px;
  background: #183047a6;
  color: #fff;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.hero.home-hero:has(.hero-b30-family.active) .hero-controls .hero-pagination {
  gap: 0;
  height: 38px;
}

.hero.home-hero:has(.hero-b30-family.active) .hero-controls .hero-pagination button {
  width: 54px;
  height: 36px;
  color: #fff;
  font-size: 13px;
}

.hero.home-hero:has(.hero-b30-family.active) .hero-controls .hero-pagination button.active {
  background: #fff;
  color: #182b3b;
}

.hero.home-hero:has(.hero-b30-family.active) .hero-controls :is(.hero-arrow, .hero-pause) {
  width: 34px;
  height: 38px;
  color: #fff;
}

.hero.home-hero:has(.hero-b30-family.active) .hero-controls .hero-pause {
  border-color: #ffffff55;
}

.hero.home-hero:has(.hero-b30-family.active) .hero-controls button:hover:not(.active) {
  background: #ffffff28;
}

.hero.home-hero:has(.hero-b30-family.active) .hero-controls button:focus-visible {
  outline: 2px solid #fff;
}

.home-page:has(.hero-b30-family.active) .site-header:not(:is(.scrolled, .open, .mega-open, .about-open)) {
  position: absolute;
  inset: 0 0 auto;
  color: #fff;
  background: transparent;
}

.home-page:has(.hero-b30-family.active) .site-header:not(:is(.scrolled, .open, .mega-open, .about-open)) :is(nav > a, .nav-link) {
  -webkit-text-stroke: 0;
  text-shadow: 0 1px 3px #10243855;
}

@media (max-width: 900px) {
  .hero.home-hero:has(.hero-b30-family) {
    --family-photo-bottom: calc(var(--family-footer) + var(--family-bottom) + 74px);
    --family-photo-half: calc(100vw * 643 / 2880);
    --family-footer: 64px;
    --family-bottom: calc(64px + env(safe-area-inset-bottom));
    min-height: 650px;
  }

  .hero.home-hero .hero-slide.hero-b30-family .family-copy {
    inset: 96px 24px auto;
    width: auto;
    align-items: center;
    text-align: center;
  }

  .hero.home-hero .hero-b30-family .family-copy .family-tagline {
    font-size: clamp(21px, 3.8vw, 30px);
  }

  .hero.home-hero .hero-b30-family .family-copy h1 {
    font-size: clamp(44px, 8vw, 62px);
    margin-top: 6px;
  }

  .hero.home-hero .hero-b30-family .family-copy .family-detail {
    margin-top: 10px;
    font-size: 16px;
  }

  .hero.home-hero .hero-slide.hero-b30-family .family-copy > .baic-starting-price {
    margin-top: 8px;
    font-size: 18px;
  }

  .hero.home-hero .hero-slide.hero-b30-family .hero-actions {
    margin-top: 16px;
    justify-content: center;
  }

  .hero.home-hero .hero-slide.hero-b30-family .hero-image {
    bottom: calc(var(--family-bottom) + var(--family-footer) + 74px);
    aspect-ratio: 1440 / 643;
    mask-image: linear-gradient(transparent, #000 12%, #000 94%, transparent);
    mask-composite: add;
  }

  .hero.home-hero .hero-b30-family .teaser-regulatory {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 6px 16px 6px 72px;
    column-gap: 6px;
    font-size: 10px;
  }

  .hero.home-hero .hero-b30-family .teaser-badge {
    min-width: 22px;
    height: 22px;
    font-size: 17px;
  }

  .hero.home-hero .hero-b30-family .teaser-more {
    grid-column: 1 / -1;
    font-size: 11px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .hero.home-hero:has(.hero-b30-family) {
    --family-height: max(100svh, 650px, calc(100vw * 643 / 1440 + 520px));
    --family-photo-bottom: calc(var(--family-footer) + var(--family-bottom) + 75px);
    min-height: var(--family-height);
  }

  .hero.home-hero .hero-slide.hero-b30-family .hero-image {
    bottom: calc(var(--family-bottom) + var(--family-footer) + 75px);
  }
}

@media (max-height: 760px) and (max-width: 599px) {
  .hero.home-hero:has(.hero-b30-family) {
    --family-photo-bottom: calc(var(--family-footer) + var(--family-bottom) + 70px);
  }

  .hero.home-hero .hero-slide.hero-b30-family .family-copy {
    top: 77px;
  }

  .hero.home-hero .hero-b30-family .family-copy .family-tagline {
    font-size: 20px;
  }

  .hero.home-hero .hero-b30-family .family-copy h1 {
    font-size: 40px;
  }

  .hero.home-hero .hero-slide.hero-b30-family .hero-image {
    bottom: calc(var(--family-bottom) + var(--family-footer) + 70px);
  }
}
