/* hero.css — the dark opening (PDF p.5, p.15: Ink atmosphere, clear
   headline, Vermilion action, honest image, film or type).

   .hero              sits on the Ink preset (the page default)
   .hero__grid        text and media share the row; on phones text comes
                      first, then media, in reading order. Split is set in
                      the markup with grid spans (no fixed template).
   .hero__media--bleed  desktop only: the image runs to the page edge
   [data-arrive]      optional expressive arrival of the headline, lede,
                      actions and image (motion.js; static under reduced
                      motion and without JS)

   Media: a still <img> paints first; if the block carries a film,
   hero-video.js attaches it after load, fades it in, offers Pause and
   skips it under reduced motion and Save-Data. */
.hero { padding-block: var(--space-7) var(--space-8); overflow: clip; }
.hero__grid { align-items: center; row-gap: var(--space-7); }
.hero h1 { margin: 0 0 var(--space-5); font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); } /* 40 → 72: inside the PDF H1 range, sized for a full-sentence headline */
.hero__lede { max-width: 40ch; margin: 0 0 var(--space-6); color: var(--on-text); }
.hero__actions { --gap: var(--space-3); }

/* 5:4 on desktop, 4:3 below: the crops that keep both the face and the
   reaching hand (docs/media-audit-forward-play.md) */
.hero__media { aspect-ratio: 5 / 4; width: 100%; }
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus-x, 50%) var(--focus-y, 50%);
}
@media (min-width: 1024px) {
  /* reach the viewport edge whether or not the container is centred
     inside a wider window */
  .hero__media--bleed {
    --bleed: max(var(--page-margin), calc((100vw - var(--content-max)) / 2));
    width: calc(100% + var(--bleed));
    margin-right: calc(-1 * var(--bleed));
    border-radius: var(--radius-card) 0 0 var(--radius-card);
  }
}
.hero__media video { opacity: 0; transition: opacity var(--duration-enter) var(--ease-out); }
.hero__media video.is-playing { opacity: 1; }
.hero__pause {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 1;
  min-height: var(--target-preferred);
  padding: 0 var(--space-4);
  border: 1px solid var(--color-brand-ink);   /* keeps the chip's edge over bright film */
  border-radius: var(--radius-control);
  background: var(--color-bg-reading);
  color: var(--color-text-reading);
  font-size: var(--text-ui);
  cursor: pointer;
  --on-focus: var(--color-focus-reading);
  --on-focus-gap: var(--color-bg-reading);
  transition: background-color var(--duration-fast) var(--ease-out);
}
.hero__pause:hover { background: var(--color-surface-reading); }

@media (max-width: 1023px) {
  .hero { padding-top: var(--space-6); }
  .hero__media { aspect-ratio: 4 / 3; }
}
