/* The film covers the window, while the text and discovery link size the hero
   together if a short viewport or a larger font needs a little more room. */
@media (width > 1024px), (width > 900px) and (orientation: landscape),
       (width > 700px) and (orientation: landscape) and (height > 540px) {
  .home-page .hero {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .home-page .hero > .wrap {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    padding-block-start: max(calc(var(--site-header-end, 104px) + 1rem), 17svh);
    padding-block-end: max(clamp(1rem, 3.4svh, 2.4rem), env(safe-area-inset-bottom, 0px));
  }

  .home-page .hero h1 {
    font-size: clamp(3.2rem, min(6.6vw, 12svh), 6.55rem);
    margin-block: clamp(1rem, 3.8svh, 2.45rem) clamp(.85rem, 2.6svh, 1.7rem);
    max-width: min(100%, 65rem);
    overflow-wrap: anywhere;
  }

  .home-page .hero-copy { margin-block: 0; }

  .home-page .hero-buttons {
    max-width: 100%;
    flex-wrap: wrap;
    margin-top: clamp(1rem, 3svh, 1.9rem);
  }

  .home-page .hero-bottom {
    position: static;
    align-self: stretch;
    margin-top: auto;
    padding-top: clamp(1.25rem, 3.5svh, 2.75rem);
  }
}

/* In a short landscape window, each column has its own reading order:
   the heading stays under its label, and the actions sit below the explanation. */
@media (min-width: 560px) and (max-width: 1024px) and (max-height: 540px) and (orientation: landscape) {
  .home-page .hero > .wrap {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-areas: "eyebrow copy" "title copy" "title actions";
    grid-template-rows: max-content 1fr auto;
    align-items: start;
    justify-items: start;
    gap: .65rem clamp(1rem, 3vw, 2rem);
    padding-block-start: calc(var(--site-header-end, 104px) + 1rem);
    padding-block-end: max(1rem, env(safe-area-inset-bottom, 0px));
  }

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

  .home-page .hero h1 {
    grid-area: title;
    margin: 0;
    font-size: clamp(1.95rem, 4.8vw, 3.05rem);
    line-height: 1.06;
    overflow-wrap: anywhere;
  }

  .home-page .hero-copy {
    grid-area: copy;
    width: 100%;
    max-width: 46ch;
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    text-wrap: pretty;
  }

  .home-page .hero .hero-buttons {
    grid-area: actions;
    display: flex;
    flex-flow: row wrap;
    width: 100%;
    max-width: 28rem;
    margin: 0;
    gap: .25rem .5rem;
  }

  .home-page .hero-buttons .pill {
    flex: 1 1 7rem;
    min-width: 0;
    min-height: 44px;
    height: auto;
    padding: .6rem .65rem;
    white-space: normal;
    justify-content: center;
    text-align: center;
  }

  .home-page .hero .hero-buttons .hero-deadline {
    flex: 1 1 100%;
    min-height: 44px;
    margin: 0;
  }

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

.home-page .platin-bridge {
  inline-size: 100%;
  min-inline-size: 0;
}

/* Use the landscape plate in a short, wide window. Its engraved captions
   and artwork keep their original shared coordinates when vertically cropped. */
@media (min-width: 600px) and (max-width: 1024px) and (max-height: 540px) and (orientation: landscape) {
  .home-page .platin-bridge {
    aspect-ratio: auto;
    min-height: clamp(46vw, 100svh, 56.55vw);
  }

  .home-page .platin-bridge__plate {
    inset: 50% 0 auto;
    translate: 0 -50%;
    aspect-ratio: 2688 / 1520;
  }

  .home-page .platin-bridge__copy { padding-block: 1.25rem; }
  .home-page .platin-bridge__title { font-size: clamp(2rem, 5.25vw, 3rem); }
}

/* The service grid previously switched to two cards at 521px, leaving
   less than twelve ems for copy in each card after its padding. */
@media (min-width: 521px) and (max-width: 680px) {
  .home-page #services .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page #services .service-row {
    min-height: 0;
  }

  .home-page #services .section-head {
    align-items: start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .home-page #services .section-head > p { max-width: 48ch; }
}

@media (min-width: 801px) and (max-width: 1024px) {
  .home-page .intro-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.home-page :is(.intro-grid, .process-grid, .faq-grid, .contact-r01, .team-heading, .service-grid) > * {
  min-inline-size: 0;
}

.home-page :is(.service-row h3, .team-areas > span, .step h3, .faq-list summary, .channel-link strong, .guide-action) {
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

.home-page .platin-bridge__title span {
  white-space: normal;
}

@media (min-width: 801px) and (max-height: 600px) {
  .home-page .sticky-intro { position: static; }
}
