/* Responsive art direction for the separate V5 hero. The portrait is still a
   flat candidate image; make room for her face before laying out the copy. */
.hero-portrait-v3 { z-index: 1; object-position: right bottom; }
.hero-content, .hero-credit, .hero-side, .scroll-cue { z-index: 2; }

@media (max-width: 800px) {
  .hero { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100svh; }
  .hero-portrait-v3 {
    top: 92px;
    right: clamp(-80px, -12vw, -30px);
    bottom: auto;
    width: auto;
    max-width: none;
    height: clamp(280px, 46vh, 500px);
    height: clamp(280px, 46svh, 500px);
    object-fit: contain;
  }
  .hero-content {
    align-self: stretch;
    width: auto;
    margin-top: clamp(320px, 49vh, 540px);
    margin-top: clamp(320px, 49svh, 540px);
    padding: 0 6% 118px;
  }
  .hero-content h2 { font-size: clamp(31px, 8vw, 48px); line-height: 1.12; }
  .hero-content p { max-width: 100%; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .button { min-height: 48px; }
  .hero-credit { left: 6%; right: auto; bottom: 16px; max-width: 70%; text-align: left; }
  .scroll-cue { bottom: 70px; }
  .hero-side { display: none; }
}

/* A short landscape viewport must not force the portrait beneath the nav or
   overlay the headline: give the section scrollable height and use two sides. */
@media (min-width: 501px) and (max-width: 800px) and (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 610px; }
  .hero-portrait-v3 { top: 104px; right: -20px; height: clamp(270px, 44vw, 390px); }
  .hero-content { width: min(54%, 440px); margin-top: 145px; padding: 0 0 125px 6%; }
  .hero-content h2 { font-size: clamp(30px, 5.5vw, 42px); }
  .hero-actions { gap: 8px; }
  .hero-route { margin-top: 14px; }
}
