/* BAN V20.5 — single-purpose, scoped homepage correction.
   Founder-approved 4K hero and AI THAT VIDEO are untouched.
   Do not change header, fonts/assets for other pages, globe or planner. */

/* Phone caption: exactly three lines at desktop, centered into a pyramid;
   move the block ~38px DOWN from the V20.4 negative-overlap placement. */
html body.home.ban-home-videos-v20 .ban-home-story--intro.ban-home-story--centered {
  width: min(1120px, calc(100% - 56px)) !important;
  max-width: none !important;
  margin: clamp(12px, 1.2vw, 20px) auto 0 !important;
  padding: 0 0 clamp(8px, 1.1vw, 16px) !important;
  gap: 0 !important;
  text-align: center !important;
  position: relative !important;
  z-index: 2 !important;
}
html body.home.ban-home-videos-v20 .ban-home-story--intro #ban-home-title {
  display: block !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  font-size: clamp(19px, 1.66vw, 26px) !important;
  line-height: 1.35 !important;
  font-weight: 660 !important;
  letter-spacing: -.038em !important;
  text-align: center !important;
  text-wrap: initial !important;
}
html body.home.ban-home-videos-v20 #ban-home-title .ban-v205-phone-line {
  display: block;
  text-align: center;
  white-space: nowrap;
}
html body.home.ban-home-videos-v20 .ban-home-story--intro .ban-home-cta {
  margin-top: clamp(24px, 2.2vw, 34px) !important;
  margin-bottom: 0 !important;
  justify-content: center !important;
}
html body.home.ban-home-videos-v20 .ban-home-story--intro .ban-home-micro {
  margin-top: 10px !important;
  text-align: center !important;
}

/* Second video only: centered, side margins, raised to finish the phone
   section cleanly. No clipping/zooming the founders' original 4K footage. */
html body.home.ban-home-videos-v20 #ban-home-robotaxi {
  display: block !important;
  width: min(1000px, 76vw) !important;
  max-width: calc(100% - 40px) !important;
  margin: -2px auto 0 !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
html body.home.ban-home-videos-v20 #ban-home-robotaxi .ban-home-film__frame {
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 16 / 9 !important;
  background: #fff center / contain no-repeat !important;
  overflow: hidden !important;
}
html body.home.ban-home-videos-v20 #ban-home-robotaxi video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

/* Beneath the already-approved third (AI THAT) video: stronger type, same
   centered component and no change to the film/video order. */
html body.home.ban-home-videos-v20 #ban-home-channel .ban-home-story h2 {
  font-size: clamp(29px, 3.4vw, 47px) !important;
  line-height: 1.14 !important;
  max-width: 875px !important;
  margin-inline: auto !important;
  text-align: center !important;
}
html body.home.ban-home-videos-v20 #ban-home-channel .ban-home-story .ban-home-copy {
  font-size: clamp(17px, 1.55vw, 21px) !important;
  line-height: 1.48 !important;
  max-width: 780px !important;
  margin: 18px auto 0 !important;
  text-align: center !important;
}

/* Mobile: prevent text overflow, remain below the phone video, provide margins. */
@media (max-width: 900px) {
  html body.home.ban-home-videos-v20 .ban-home-story--intro.ban-home-story--centered {
    width: calc(100% - 36px) !important;
    margin-top: 14px !important;
    padding-bottom: 14px !important;
  }
  html body.home.ban-home-videos-v20 .ban-home-story--intro #ban-home-title {
    max-width: 680px !important;
    font-size: clamp(18px, 3.4vw, 25px) !important;
    line-height: 1.32 !important;
  }
  html body.home.ban-home-videos-v20 #ban-home-title .ban-v205-phone-line {
    white-space: normal !important;
    text-wrap: balance;
  }
  html body.home.ban-home-videos-v20 #ban-home-robotaxi {
    width: calc(100% - 44px) !important;
    max-width: 640px !important;
    margin-top: 0 !important;
  }
  html body.home.ban-home-videos-v20 #ban-home-channel .ban-home-story h2 {
    font-size: clamp(27px, 5.8vw, 38px) !important;
  }
  html body.home.ban-home-videos-v20 #ban-home-channel .ban-home-story .ban-home-copy {
    font-size: clamp(16px, 3.8vw, 19px) !important;
  }
}
@media (max-width: 480px) {
  html body.home.ban-home-videos-v20 .ban-home-story--intro #ban-home-title {
    font-size: clamp(18px, 4.7vw, 22px) !important;
  }
  html body.home.ban-home-videos-v20 .ban-home-story--intro .ban-home-cta {
    margin-top: 20px !important;
  }
  html body.home.ban-home-videos-v20 #ban-home-robotaxi {
    width: calc(100% - 28px) !important;
  }
}
