@media (max-width: 1199px) {
  #v3-home article.bh-hero {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
  }

  #v3-home article.bh-hero .bh-text {
    order: 1;
    position: relative !important;
    top: auto !important;
    height: auto !important;
    padding-top: 40px !important;
    gap: 16px;
    padding-bottom: 0 !important;
    min-height: 0;
  }

  #v3-home article.bh-hero .bh-body {
    max-width: 680px;
  }

  #v3-home article.bh-hero .bh-explore {
    order: 2;
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    margin: 32px 24px 0 !important;
    width: auto !important;
    max-width: none !important;
  }

  #v3-home article.bh-hero .bh-media {
    order: 3;
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    flex-shrink: 0;
    align-self: flex-start;
    width: 780px !important;
    height: 800px !important;
    margin-top: 32px;
    /* transform instead of CSS zoom: iPhone Safari mis-scales text inside zoomed boxes on first load */
    zoom: 1 !important;
    transform: scale(var(--bhz, .5));
    transform-origin: top left;
    margin-left: calc((100% - 780px * var(--bhz, .5)) / 2);
    margin-right: calc(780px * (var(--bhz, .5) - 1));
    margin-bottom: calc(620px * (var(--bhz, .5) - 1));
  }

  #v3-home article.bh-hero .bh-media .hidden {
    display: block !important;
  }

  #v3-home article.bh-hero .bh-z {
    zoom: 1;
  }

  #v3-home article.bh-hero .bh-card {
    left: 24px !important;
    scale: 1;
  }

  #v3-home article.bh-hero .bh-card2 {
    right: 24px !important;
    scale: 1;
    max-width: calc(100% - 48px);
  }

  #v3-home article.bh-hero .bh-agent {
    width: 296px !important;
    transform: none;
  }

  #v3-home article.bh-hero .bh-media img.max-w-none {
    margin-left: 0;
  }

  #v3-home article.bh-hero .bh-media > div > div {
    transform: none !important;
  }

  #v3-home article.bh-hero .bh-media .bhz-layer > img {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    object-position: center bottom;
    transform: none !important;
    translate: 80px 0 !important;
  }
}

/* Reveal the rear product cards progressively without entering the left navigation. */
@media (min-width: 1200px) and (max-width: 1599px) {
  #v3-home article.bh-hero {
    min-height: 736px !important;
  }

  #v3-home article.bh-hero .bh-card {
    translate: clamp(-180px, calc((100vw - 1600px) * .6), 0px) 0;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  #v3-home article.bh-hero .bh-explore {
    margin-inline: 56px !important;
  }
}

@media (max-width: 767px) {
  #v3-home article.bh-hero .bh-text h1 > span:first-child {
    font-size: clamp(26px, 8.2vw, 36px);
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
  }

  #v3-home article.bh-hero .bh-phrase {
    font-size: clamp(26px, 8.2vw, 36px);
    letter-spacing: 0;
  }
}
/* Desktop: push the quote bubbles right so they cover less of the subject photo. */
@media (min-width: 1200px) {
  #v3-home article.bh-hero .bh-card2 {
    right: 72px !important;
  }
}

/* Analytics and Research: tuck the rear illustration slightly farther behind the photo. */
#v3-home article.bh-hero .bh-card:not(:has(.bh-ans)) {
  margin-left: 24px;
}

/* Research: keep the completed study stages, without per-row elapsed times. */
#v3-home article.bh-hero .bh-card ul li > .tabular-nums {
  display: none;
}

/* Header and Solutions menu match the rest of the site: cream bar/panel, brown card hover. */
#v3-home header.sticky,
#v3-home header.sticky > div.absolute.top-full {
  background-color: #f2efe9 !important;
}
#v3-home header .nav-card:hover,
#v3-home header .nav-card:focus-visible {
  border-color: #d6c7b8 !important;
  box-shadow: 0 16px 36px -22px rgba(42, 27, 18, .4) !important;
}

/* Phones: crop the subject photo near the waist like desktop and lift the product cards with it. */
@media (max-width: 767px) {
  #v3-home article.bh-hero .bh-media {
    height: 620px !important;
    overflow: hidden;
  }
  #v3-home article.bh-hero .bh-media .bhz-layer > img {
    object-fit: cover;
    object-position: center top;
  }
}

/* Phones: 24px side padding on the "What's new" news list. */
@media (max-width: 767px) {
  #whats-new > div { padding-left: 24px !important; padding-right: 24px !important; }
  #whats-new [data-news-br] { display: block; }
  #whats-new h2 + a + * , #whats-new div[style*="minmax(min(100%,420px)"] { row-gap: 32px !important; }
}

/* Phones: center the "See Jiro in action" closing section. */
@media (max-width: 767px) {
  #home-cta > div > div { flex-direction: column; justify-content: center !important; text-align: center; }
  #home-cta > div > div > div { align-items: center; }
}

/* Phones: frame the Clinical slide's photo like the other slides (smaller, head lower in frame). */
@media (max-width: 767px) {
  #v3-home article.bh-hero .bh-media .bhz-layer > img[src*="human-8-exec"] {
    top: -20% !important;
    height: 135% !important;
    object-fit: contain;
    object-position: center top;
  }
}

/* Phones: bring the Clinical question bubble down beside the subject, like the other slides. */
@media (max-width: 767px) {
  #v3-home article.bh-hero .bh-card2[style*="860px - 50vw"] {
    bottom: 140px !important;
    right: 16px !important;
    max-width: calc(100% - 32px);
  }
}

/* Phones: lower the Research "study is ready" card so it clears his face. */
@media (max-width: 767px) {
  #v3-home article.bh-hero .bh-card2[style*="min-width: 240px"] {
    bottom: 120px !important;
  }
}

/* Phones: lower the Analytics colonoscopy question bubble by 16px. */
@media (max-width: 767px) {
  #v3-home article.bh-hero .bh-media:has(img[src*="analytics-woman"]) .bh-card {
    translate: 0 calc(-24px / var(--bhz, .5));
  }
  #v3-home article.bh-hero .bh-card2[style*="bottom: 256px"] {
    bottom: 240px !important;
    translate: 0 calc(24px / var(--bhz, .5));
  }
}

/* Hand cursor on every link and nav item. */
#v3-home a[href], #v3-home button:not(:disabled), #v3-home header nav * { cursor: pointer; }

/* Tablets: crop the Analytics and Research photos from the waist up, like the Clinical slide. */
@media (min-width: 768px) and (max-width: 1199px) {
  #v3-home article.bh-hero .bh-media { overflow: hidden; }
  #v3-home article.bh-hero .bh-media .bhz-layer > img[src*="analytics-woman"],
  #v3-home article.bh-hero .bh-media .bhz-layer > img[src*="human-9-researcher"] {
    top: 10% !important;
    height: 130% !important;
    object-fit: contain;
    object-position: center top;
  }
}

/* Tablets: lower the Clinical question bubble to line up with the other slides. */
@media (min-width: 768px) and (max-width: 1199px) {
  #v3-home article.bh-hero .bh-card2[style*="860px - 50vw"] {
    top: auto !important;
    bottom: 256px !important;
  }
}

/* Desktop: bring the three Explore links closer to the supporting paragraph. */
@media (min-width: 1200px) {
  #v3-home .bh-explore { bottom: 176px !important; }
}

/* Some iOS browsers (e.g. Firefox, DuckDuckGo, private modes with a text-size setting) enlarge page text,
   which overflows the homepage's fixed-size cards. Keep the designed text size there. */
@media (max-width: 767px) {
  html:has(#v3-home), #v3-home { -webkit-text-size-adjust: none !important; text-size-adjust: none !important; }
}

/* iPhone Safari text autosizing inflates text inside the zoomed product illustration (it ignores the
   zoom when judging text as "too small"). Disable autosizing on every element of the homepage, at all widths. */
html:has(#v3-home), #v3-home, #v3-home *, #v3-home article.bh-hero .bh-media * {
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
