/* heroes-v1 (31 Oct 2026): painted hero art behind the Films / sub-genre page headers.
   Separate file so the card-style work in films-v4.css is untouched. Art: site/assets/heroes (WebP 2400/1600 + 4:5 phone). */
.f3-hero.f4-has-art{background:#1c110a;min-height:clamp(340px,31vw,470px);display:flex;align-items:flex-end;isolation:isolate}
.f4-art,.f4-art img{position:absolute;inset:0;width:100%;height:100%;z-index:-2}
.f4-art img{object-fit:cover;object-position:var(--hx,50%) var(--hy,50%);display:block}
/* scrim: dark from the left (where the text sits) and from the bottom; keeps text >= 4.5:1 (checked by heroes-v1/contrast_check.py) */
.f3-hero.f4-has-art::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(90deg,rgba(20,12,6,.92) 0%,rgba(20,12,6,.86) 34%,rgba(20,12,6,.5) 58%,rgba(20,12,6,0) 82%),
             linear-gradient(0deg,rgba(20,12,6,.86) 0%,rgba(20,12,6,.7) 24%,rgba(20,12,6,.3) 46%,rgba(20,12,6,0) 68%)}
.f3-hero.f4-has-art .f3-hero-in{position:relative;width:100%;padding-top:40px}
.f3-hero.f4-has-art h1,.f3-hero.f4-has-art .f3-lede,.f3-hero.f4-has-art .f3-stats,.f3-hero.f4-has-art .f3-alt{text-shadow:0 1px 3px rgba(0,0,0,.75)}
@media (max-width:600px){
  .f3-hero.f4-has-art{min-height:min(118vw,520px)}
  /* v2: phone art is re-cropped so the subject sits in the top ~45%; scrim only under the text block */
  .f4-art img{object-position:50% 0%}
  .f3-hero.f4-has-art::before{background:linear-gradient(0deg,rgba(20,12,6,.94) 0%,rgba(20,12,6,.9) 50%,rgba(20,12,6,.55) 58%,rgba(20,12,6,.12) 68%,rgba(20,12,6,0) 100%)}
}
@media (prefers-contrast:more){.f3-hero.f4-has-art::before{background:rgba(20,12,6,.9)}}

/* text-v1 (31 Oct 2026): Editor's genre article fitted round the films.
   Lead paragraph over the hero; top 10 first; article sections + Quick facts / See also side column below. */
.f4-h1alt{font-size:.62em;white-space:nowrap;color:#ead9b4}
.f4-glede{max-width:60ch}
.f4-glede p{margin:4px 0 10px;font-size:1.06rem;line-height:1.55;color:#f3e7cc;text-shadow:0 1px 3px rgba(0,0,0,.75)}
.f3-hero.f4-has-art .f4-glede a{color:#f6dfa0;text-decoration:underline;text-underline-offset:2px}
.f4-about{grid-template-columns:minmax(0,1fr) 320px;gap:36px;margin-top:8px}
.f4-about .f3-sec-h{margin-top:30px}
.f4-article>h3:first-child{margin-top:.2em}
.f4-cont{margin-top:10px}
.f4-cont>summary{max-width:100%;text-align:left;white-space:normal}
.f4-side{position:sticky;top:16px;margin-top:30px;display:grid;gap:16px}
.f4-see{border:1px solid var(--border,#e6d3a8);border-radius:var(--radius,12px);padding:14px 16px}
.f4-see h2{font:400 1.15rem Rye,serif;margin:0 0 8px;border:0;padding:0}
.f4-see ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.f4-see li a{display:inline-block;padding:6px 12px;border-radius:999px;border:1px solid var(--border,#d9bf86);font-weight:700;text-decoration:none;min-height:24px}
.f4-see li a:hover,.f4-see li a:focus-visible{text-decoration:underline}
@media (max-width:1000px){.f4-about{grid-template-columns:1fr;gap:0}.f4-side{position:static}}
@media (max-width:600px){
  /* phone: art is a fixed 4:5 band at the top (subject in its top ~45%); text starts below the subject, scrim keyed to it */
  .f3-hero.f4-has-art{display:block;min-height:0}
  .f3-hero.f4-has-art .f4-art{inset:0 0 auto 0;height:125vw}
  .f3-hero.f4-has-art .f3-hero-in{padding-top:64vw}
  .f3-hero.f4-has-art::before{background:linear-gradient(180deg,rgba(20,12,6,0) 0,rgba(20,12,6,.08) 42vw,rgba(20,12,6,.6) 54vw,rgba(20,12,6,.9) 63vw,rgba(20,12,6,.94) 100%)}
  .f4-glede p{font-size:1rem}
}
@media (prefers-contrast:more){.f3-hero.f4-has-art::before{background:rgba(20,12,6,.9)}}
.f4-lrest p{font-size:1.06rem;line-height:1.65}
.f4-see li a{color:var(--link,#8a3b1c);font:700 .95rem "Source Sans 3",system-ui,sans-serif;letter-spacing:0;text-transform:none;margin:0;white-space:normal}
.f4-see li a:hover{color:var(--link,#8a3b1c)}

/* v2 contrast pass (31 Oct 2026): longer lede now reaches further right, so the left scrim runs wider
   on desktop and is near-solid on tablet; keeps all hero text >= 4.5:1 (heroes-v1/contrast_check.py) */
@media (min-width:601px){
  .f3-hero.f4-has-art::before{background:linear-gradient(90deg,rgba(20,12,6,.93) 0%,rgba(20,12,6,.9) 42%,rgba(20,12,6,.74) 62%,rgba(20,12,6,.32) 82%,rgba(20,12,6,0) 96%),
             linear-gradient(0deg,rgba(20,12,6,.86) 0%,rgba(20,12,6,.7) 24%,rgba(20,12,6,.3) 46%,rgba(20,12,6,0) 68%)}
  .f3-hero.f4-has-art .f4-glede{max-width:54ch}
}
@media (min-width:601px) and (max-width:1100px){
  .f3-hero.f4-has-art::before{background:linear-gradient(90deg,rgba(20,12,6,.93) 0%,rgba(20,12,6,.9) 70%,rgba(20,12,6,.72) 88%,rgba(20,12,6,.5) 100%),
             linear-gradient(0deg,rgba(20,12,6,.8) 0%,rgba(20,12,6,.5) 40%,rgba(20,12,6,0) 75%)}
}
@media (prefers-contrast:more){.f3-hero.f4-has-art::before{background:rgba(20,12,6,.9)}}
