/* The header of every sub-section page (SitePageHero.vue): the section's studio picture fills the whole band, no card and
   no edge; the title sits on the picture's dark left half. One height for every page at a given width (--page-hero-h),
   so moving between sections never moves the breadcrumb. The band's colour is the picture's own near-black (--hero-bg),
   shown until the picture arrives. Tokens and the .dark ground come from tokens.css. */
.page-hero { --hero-bg: #080808; /* the measured dominant colour of every hero picture */ position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center; height: var(--page-hero-h); }
.page-hero.dark { background: var(--hero-bg); } /* out-ranks the .dark ground (tokens.css) */
.page-hero-media { position: absolute; inset: 0; z-index: -1; }
/* Never wider than the master (1914 px): a wider screen gets the band's own #080808 on the left, which is the picture's
   edge colour, instead of an upscaled, softer picture. */
.page-hero-media img { display: block; width: 100%; max-width: 1914px; height: 100%; margin-left: auto; object-fit: cover; object-position: 100% 50%; }
.page-hero .wrap { width: 100%; }
/* The copy block is as wide as its longest line, and the scrim belongs to it: a full-height band from the left edge to
   8rem past the copy's right edge, so it sits only behind the copy whatever the screen width, and the subject stays clear. */
.page-hero-copy { position: relative; display: grid; gap: var(--s-4); justify-items: start; width: fit-content; max-width: 36rem; }
.page-hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -40rem -8rem -40rem -100vw; background: linear-gradient(to right, var(--hero-bg) 0%, oklch(0.1 0.005 268 / 0.86) calc(100% - 8rem), oklch(0.1 0.005 268 / 0) 100%); }
.page-hero-copy h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.04; letter-spacing: -0.035em; color: var(--ink); max-width: 16ch; text-wrap: balance; overflow-wrap: anywhere; }
.page-hero-copy h1 .shout { display: block; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }
.page-hero-rule { width: 110px; height: 4px; border-radius: 2px; background: var(--navy); margin-block: var(--s-2) var(--s-1); }
/* The page's brands: the real logos in white, one box each (28 px tall, at most 84 px wide), so a wordmark and an
   emblem weigh about the same. Same row on every page that has one. */
.page-hero-brands { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-2); }
.page-hero-brands img { display: block; width: auto; height: 28px; max-width: 84px; object-fit: contain; opacity: 0.92; }
.page-hero-lede { max-width: 48ch; font-size: var(--step-0); line-height: 1.5; color: var(--ink); text-wrap: pretty; }

/* Tablet and phone: the picture crops to its subject (--hero-x per image), the copy sits at the foot of the band. The
   scrim belongs to the copy, not to the picture: it spans the band from its bottom edge to a short fade above the
   first line, so a short title leaves the subject clear and a long summary still reads. Same height token. */
@media (max-width: 900px) {
  .page-hero { align-items: end; padding-bottom: var(--s-6); }
  .page-hero-media img { object-position: var(--hero-x, 70%) 50%; }
  .page-hero-copy { gap: var(--s-3); width: auto; }
  .page-hero-copy::before { inset: -5rem calc(-1 * var(--gutter)) calc(-1 * var(--s-6)); background: linear-gradient(to top, var(--hero-bg) 0%, oklch(0.1 0.005 268 / 0.86) calc(100% - 5rem), oklch(0.1 0.005 268 / 0) 100%); }
  .page-hero-rule { margin-block: var(--s-1) 0; }
}
/* Phone: the five marks stay on one line (24 px boxes, at most 72 px wide). A picture whose subject sits low moves up by
   --hero-lift (pageHero.ts), so the subject clears the copy; the band colour fills what it leaves at the foot. */
@media (max-width: 640px) {
  .page-hero-media { transform: translateY(calc(-1 * var(--hero-lift, 0%))); }
  .page-hero-brands { gap: var(--s-2) var(--s-4); }
  .page-hero-brands img { height: 24px; max-width: 72px; }
}
