/* Fit the video to the space above the existing certification heading. */
.home-light .hero-film {
  width: min(1120px, calc(100% - var(--m) - var(--m)), var(--home-film-fit, 70vh));
  margin-inline: auto;
}
.home-light .hero-film video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }

@media (min-width: 900px) and (max-height: 960px),
       (max-width: 899px) and (max-height: 740px) {
  .home-light .hero { padding-block: clamp(12px, 2.4vh, 24px) clamp(10px, 1.8vh, 18px); }
  .home-light .hero-film { margin-top: clamp(10px, 1.8vh, 18px); }
  .home-light .hero-lead { margin-top: 10px; }
  .home-light .hero .actions { margin-top: clamp(10px, 1.7vh, 16px); }
}

@media (max-width: 360px) and (max-height: 600px) {
  .home-light .hero { padding-block: 7px; }
  .home-light .hero h1 { font-size: 27px; line-height: 1.16; }
  .home-light .hero-film { margin-top: 8px; }
  .home-light .hero-lead { margin-top: 8px; font-size: 14px; line-height: 1.43; }
  .home-light .hero .actions { margin-top: 8px; }
}

/* On short landscape screens the controls need a readable movie and text.
   Keep the reading order and fit them side by side only at that height. */
@media (orientation: landscape) and (min-width: 600px) and (max-height: 460px) {
  .home-light .hero {
    display: grid;
    grid-template: "title film" auto "details film" auto / minmax(0, 1fr) auto;
    align-content: center; align-items: center; gap: 5px clamp(16px, 3vw, 36px);
    padding: 7px var(--m);
  }
  .home-light .hero-copy { grid-area: title; align-self: end; text-align: left; }
  .home-light .hero h1 { padding: 0; font-size: clamp(22px, 3.3vw, 32px); }
  .home-light .hero h1 br { display: none; }
  .home-light .hero-film { grid-area: film; width: min(36vw, var(--home-film-fit, 210px)); margin: 0; }
  .home-light .hero-after { grid-area: details; align-self: start; text-align: left; padding: 0; }
  .home-light .hero-lead { margin: 0; font-size: 13px; line-height: 1.4; }
  .home-light .hero .actions { justify-content: flex-start; margin-top: 7px; gap: 14px; }
  .home-light .hero .actions a { font-size: 14px; }
  .home-light .hero .actions .btn { min-height: 36px; padding: 6px 12px; }
}

.home-light .home-consult-sticker {
  bottom: max(var(--consult-inset-y, max(16px, env(safe-area-inset-bottom))), var(--consult-clearance, 0px));
}
.home-light .site-footer { padding-bottom: max(80px, env(safe-area-inset-bottom)); }
body.menu-open .home-consult-sticker { visibility: hidden; }
