/* LUMI CASE STUDY, the film: the 30 second Lumi studio film in the browser's own player, right after the
   hero, on Lumi's blue (his picks 24 Nov 2026, chat LUMI STUDIO FILM, review page _mockups/lumi-film-player:
   after the hero, no heading, no LinkedIn mark, blue ground, a light grey hairline). Before it first plays the
   whole picture is one play button with a small round play mark in the middle (his ask the same day: "a click
   anywhere on the video ... should autoplay", the circle "smaller so it doesn't cover the face"); once it
   plays the browser's own bar takes over (page.js). All inside #film so no class can reach another section.
   The film is on Cloudinary; it loads nothing until it is played (preload none), and never plays by itself. */
#film {
  /* A band: Lumi's blue, --cs-blue (page.css), edge to edge with the section padding inside it. While the
     whole page fades the page carries it (page.css, trip.js); with Reduce motion the band paints it here. */
  background: var(--cs-blue);

  .f-film {
    box-sizing: border-box;
    margin: 0;
    padding-inline: clamp(var(--space-400), 4cqw, var(--space-900));   /* the Builder and Ending's side air */
  }
  .f-frame {
    position: relative;
    width: min(100%, calc(80svh * 16 / 9)); /* lint-ok: the whole film fits one screen on a short laptop */
    margin-inline: auto;
  }
  .f-frame video {
    display: block; box-sizing: border-box;
    width: 100%; height: auto; aspect-ratio: 16 / 9;
    border: var(--border-hairline);      /* white film on a pale ground: the hairline shows where it ends */
    border-radius: var(--radius-lg);
    background: var(--color-surface);
  }

  /* The play button: the whole picture, so a click anywhere starts the film. Gone once it has played. */
  .f-play {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    margin: 0; padding: 0; border: 0; border-radius: var(--radius-lg);
    background: none; color: var(--color-text);
    cursor: pointer;
  }
  .f-frame[data-played] .f-play, .f-play[hidden] { display: none; }
  /* the mark: a small glass circle, under Lumi's eyes on the first frame rather than over them */
  .f-play-mark {
    display: grid; place-items: center;
    width: var(--space-700); height: var(--space-700);
    border-radius: 50%;
    background: var(--glass-tint-strong);
    box-shadow: var(--glass-specular), var(--glass-shadow);
    backdrop-filter: blur(var(--glass-blur));
    transition: scale var(--duration-fast) var(--ease-default);
  }
  .f-play-mark::before {
    content: ""; width: var(--space-400); height: var(--space-400);
    translate: 8% 0;                    /* a triangle's weight sits left of its box: nudge it to the optical middle */
    background: currentColor;
    clip-path: polygon(20% 10%, 90% 50%, 20% 90%);
  }
  .f-play:focus-visible { outline: var(--space-50) solid var(--color-focus-ring); outline-offset: calc(var(--space-50) * -1); }
  @media (hover: hover) {
    .f-play:hover .f-play-mark { scale: 1.08; }
  }
  @media (prefers-reduced-motion: reduce) {
    .f-play-mark { transition: none; }
  }
}
