/* Karen Country Club — homepage film hero (task B-14). Loaded after kcc.css, only on a page
   holding kcc/home-hero. kcc.css is the approved file and stays byte-identical; these rules fix
   what it leaves undone, scoped to the hero.

   1. The player is invisible until it reports that it plays (home-hero.js), so a blocked or
      refused player never covers the still with an error page. It then fades in, gently.
   2. Reduced motion: kcc.css stops every animation, which leaves every still at its starting
      opacity of 0 — an empty hero. The first still is shown instead (reference defect,
      DECISIONS.md). No player is requested in this state (home-hero.js).
   3. A phone set to "still" on the Homepage film screen: the first still, held, and no player.
   4. A poster from the Homepage film screen is one still: shown at once, never cycled out. */

.hero-media .yt-bg{transition:opacity 1.2s ease}
.hero-media.kcc-film-waiting .yt-bg{opacity:0}

.hero .film.kcc-poster .panel{opacity:1;animation:kenburns 24s infinite alternate ease-in-out}

@media(max-width:600px){
  .hero-media[data-film-mobile="still"] .film .panel{animation:none}
  .hero-media[data-film-mobile="still"] .film .panel:first-child{opacity:1}
}

@media(prefers-reduced-motion:reduce){
  .hero .film .panel:first-child{opacity:1}
  .hero-media .yt-bg{display:none}
}

/* Phase P (P-11): the short loop hosted on this site, built by home-hero.js after the page has
   loaded. It covers the hero like the film, stays invisible until it really plays, and yields to
   reduced motion like everything else here. */
.hero-media .kcc-loop{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease;pointer-events:none}
.hero-media .kcc-loop.is-playing{opacity:1}
@media(prefers-reduced-motion:reduce){
  .hero-media .kcc-loop{display:none}
}

/* Brighter opening (Lesah, Nov 2026: "do something about the overlay so it doesn't look dull … use
   the brighter photos, that way they can shine through"; Edward, 24 Nov 2026, after seeing the film
   bare: "Perfect"). kcc.css lays a dark shade over the whole frame, 55% at the top and 85% at the
   foot, plus a film grain, and the footage is a hazy, overcast aerial: together they read as dull.
   So the film plays bare: no shade, no grain. The film is graded instead (more contrast and colour,
   a little more light) to cut the haze, and the stills keep a gentle lift. The words carry their
   own soft shadow, so they still read where the picture is bright. */
.hero .hero-scrim,.hero .grain{display:none}
.hero .film .panel{filter:saturate(1.14) contrast(1.05) brightness(1.06)}
.hero-media .yt-bg,.hero-media .kcc-loop{filter:contrast(1.16) saturate(1.38) brightness(1.07)}
.hero h1{text-shadow:0 2px 28px rgba(6,12,14,.4)}
.hero p.lede{color:#fff;text-shadow:0 1px 2px rgba(6,12,14,.55),0 1px 16px rgba(6,12,14,.65)}
.hero .kicker{color:#eef7fc;text-shadow:0 1px 2px rgba(6,12,14,.6),0 0 18px rgba(6,12,14,.7)}
