.home-page .hero-copy {
  text-wrap: balance;
}

.home-page .hero .hero-label-compact {
  display: none;
}

/* Keep the subtitle on the shaded half of the architectural film on tablets. */
@media (min-width: 521px) and (max-width: 1024px) {
  .home-page .hero-copy {
    width: 50vw;
  }
}

/* Keep the first line below the floating navigation. The viewport
   floor belongs to the content wrapper so larger type can extend the film. */
@media (max-width: 700px), (max-width: 900px) and (max-height: 540px),
       (max-width: 1024px) and (orientation: portrait) {
  .home-page .hero {
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 0;
  }

  .home-page .hero > .wrap {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "." "eyebrow" "title" "copy" "." "actions";
    /* A smaller share above the copy keeps it in the upper half of tall screens. */
    grid-template-rows: minmax(0, .65fr) repeat(3, auto) minmax(1.5rem, 1fr) auto;
    align-items: start;
    justify-items: start;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: calc(var(--site-header-end, 85px) + clamp(1.35rem, 4svh, 2.2rem));
    padding-bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + .5rem));
  }

  .home-page .hero .eyebrow {
    grid-area: eyebrow;
    max-width: 100%;
    font-size: .68rem;
    line-height: 1.5;
    letter-spacing: .085em;
    text-wrap: balance;
  }

  .home-page .hero h1 {
    grid-area: title;
    max-width: 100%;
    margin: clamp(.95rem, 2.6svh, 1.45rem) 0 .95rem;
    font-size: clamp(2.15rem, .85rem + 6.4vw, 3.65rem);
    line-height: 1.07;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .home-page .hero-copy {
    grid-area: copy;
    max-width: min(100%, 39ch);
    margin: 0;
    font-size: 1rem;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }

  .home-page .hero .hero-label-full,
  .home-page .hero .hero-bottom {
    display: none;
  }

  .home-page .hero .hero-label-compact {
    display: inline;
  }

  /* Equal touch targets share a row; enlarged text can move them onto separate rows. */
  .home-page .hero .hero-buttons {
    box-sizing: border-box;
    grid-area: actions;
    display: flex;
    flex-flow: row wrap;
    align-items: stretch;
    align-content: start;
    width: 100%;
    max-width: 28rem;
    gap: .375rem .625rem;
    margin: 0;
  }

  .home-page .hero-buttons .pill {
    box-sizing: border-box;
    flex: 1 1 8rem;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: max(44px, 2.9rem);
    margin: 0;
    padding: .72rem .75rem;
    justify-content: center;
    font-size: .875rem;
    line-height: 1.3;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .home-page .hero-buttons .pill-glass {
    border: 1px solid rgb(255 255 255 / 43%);
    background: rgb(255 255 255 / 12%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .home-page .hero .hero-buttons .hero-deadline {
    flex-basis: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    font-size: .9rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

}

/* Let translated headings wrap by word first and allow oversized compounds
   to break before they can widen a card or clip the page. */
@media (max-width: 520px) {
  .home-page :is(.section-title, .intro-statement, .platin-bridge__title, .journal-home h2),
  .inner-page main :is(h1, h2, h3) {
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .home-page :is(.section-head, .sticky-intro, .faq-grid) .section-title {
    font-size: clamp(2.08rem, 1.35rem + 4vw, 2.65rem);
    line-height: 1.13;
  }

  .inner-page :is(.inner-hero, .op-page, .journal-cover, .journal-article-head, .consult-hero) h1 {
    font-size: clamp(2.25rem, 1.05rem + 6vw, 2.95rem);
    line-height: 1.09;
  }

  .inner-page .inner-hero {
    padding-top: calc(max(15px, env(safe-area-inset-top, 0px)) + 70px + 1.8rem);
  }

  .inner-page .inner-hero .lead {
    font-size: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }
}
