/* Light films: the Muse Light loops (NYCHawk, ImportHelm, the crew). A 4:5 plate that plays by itself while it is
   on screen, muted until the visitor's first tap (assets/light-film.js), a bar under it with Pause and Sound, and a
   caption that carries the film's small print. The app demo plates borrow the same bar (at the end of this file). Linked in the body right before the section that uses it, so it never holds up the first paint.
   Each page tints it with --lf-accent; everything else is neutral so it sits on any of the skins. */
.light-film { margin:0; display:grid; grid-template-columns:minmax(0, 1fr); gap:12px; min-width:0; }
.light-film .lf-frame { position:relative; aspect-ratio:4 / 5; border-radius:var(--lf-radius, 20px); overflow:hidden;
  background:#05070c; box-shadow:0 0 0 1px rgba(255,255,255,.09), 0 34px 80px -34px rgba(0,0,0,.8); }
/* The poster is a lazy picture under the video: the video stays clear until it has a frame of its own. */
.light-film .lf-still, .light-film video { position:absolute; inset:0; display:block; width:100%; height:100%; object-fit:cover; }
/* HDR copies (2026-10-25): on an HDR screen the film shines brighter than its SDR still, so the still fades away
   above it once the film really plays (from the still's own moment) instead of popping. SDR films are untouched. */
.light-film.lf-hdr .lf-still { z-index:1; transition:opacity .5s ease; pointer-events:none; }
.light-film.lf-hdr.lf-lit .lf-still { opacity:0; }
/* a label on the picture (NYCHawk's "Illustrative example") stays above the still, even while it waits for a play */
.light-film.lf-hdr .lf-tag { z-index:2; }
/* The chip at the end of the Pause and Sound row, never over the picture (Kent: a chip on the film's words looks like an
   error): "HDR on" in gold for every visitor whose screen plays the HDR copy; "SDR on" in grey only with ?hdr=1. */
.light-film .lf-chip { align-self:center; margin-left:auto; padding:4px 10px; border-radius:999px; background:rgba(8,8,18,.6);
  box-shadow:0 0 0 1px rgba(255,255,255,.35); color:#D5D9E3; pointer-events:none;
  font:800 13px/1.2 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing:.03em; }
.light-film .lf-chip.is-hdr { color:#FFD66B; box-shadow:0 0 0 1px #FFD66B; }
@media (prefers-reduced-motion: reduce) { .light-film.lf-hdr .lf-still { transition:none; } }

.light-film .lf-bar { display:flex; flex-wrap:wrap; gap:10px; }
.light-film:not(.lf-ready) .lf-bar { display:none; }
.lf-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 16px 0 13px;
  border-radius:999px; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); color:var(--lf-ink, #F4F3F8);
  font-family:var(--lf-font, Inter, system-ui, sans-serif); font-weight:600; font-size:14px; line-height:1; letter-spacing:.01em;
  cursor:pointer; transition:background-color .16s ease, border-color .16s ease; }
.lf-btn[data-lf="play"] { min-width:104px; }
.lf-btn[data-lf="sound"] { min-width:126px; }
.lf-btn:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.3); }
.lf-btn:focus-visible { outline:3px solid var(--lf-accent, #fff); outline-offset:3px; }
.lf-btn svg { width:18px; height:18px; flex:0 0 auto; fill:currentColor; }
.lf-btn .lf-on { display:none; }
/* the state sits on the film's figure, or on a demo plate's bar (2026-10-26) */
.lf-playing [data-lf="play"] .lf-off { display:none; }
.lf-playing [data-lf="play"] .lf-on { display:block; }
.lf-loud [data-lf="sound"] { border-color:var(--lf-accent, #fff); }
.lf-loud [data-lf="sound"] .lf-off { display:none; }
.lf-loud [data-lf="sound"] .lf-on { display:block; }
/* Sound is a toggle: one name, pressed while the sound is on (the icon and a tint of the accent show it) */
.lf-btn[aria-pressed="true"] { background:color-mix(in srgb, var(--lf-accent, #fff) 16%, transparent); }

.light-film figcaption { font-size:13.5px; line-height:1.6; color:var(--lf-caption, rgba(244,243,248,.74)); max-width:62ch; text-wrap:pretty; }
.light-film figcaption strong { color:var(--lf-ink, #F4F3F8); font-weight:600; }
/* A phone-readable label on the picture, next to the answer it qualifies (NYCHawk: just above its answer card). */
.lf-tag { position:absolute; left:var(--lf-tag-x, 4%); bottom:var(--lf-tag-y, 22%); padding:4px 9px; border-radius:999px;
  background:rgba(8,10,18,.78); box-shadow:0 0 0 1px rgba(255,255,255,.16); color:#F4F3F8;
  font:600 12px/1.2 var(--lf-font, Inter, system-ui, sans-serif); letter-spacing:.02em; pointer-events:none; }
.lf-sr { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* The film and its words: the words first on a phone, the film on the left from 900px. */
.lf-split { display:grid; grid-template-columns:minmax(0, 1fr); gap:28px; align-items:center; }
.lf-split > * { min-width:0; }
.lf-split .lf-copy { margin:0; }
.lf-copy p { text-wrap:pretty; }
.lf-copy p + p { margin-top:14px; }
@media (min-width:900px) {
  .lf-split { grid-template-columns:minmax(0, 5fr) minmax(0, 6fr); gap:56px; }
  .lf-split > .light-film { order:-1; }
}

/* Phones: the plate bleeds from the screen edge, never the column (DESIGN.md); the bar and caption keep the gutter. */
@media (max-width:639px) {
  .light-film .lf-frame { margin-inline:calc(-1 * var(--lf-gutter, 24px)); border-radius:0; box-shadow:none; }
}
@media (prefers-reduced-motion: reduce) { .lf-btn { transition:none; } }
@media (forced-colors: active) { .lf-btn { border:1px solid ButtonText; } }

/* ImportHelm: the lead sits before the film on a phone, the worked numbers right after it; beside it from 900px. */
.lf-split > .lf-detail { margin:0; font-size:17px; line-height:1.6; color:var(--text-2, var(--lf-caption)); max-width:62ch; text-wrap:pretty; }
@media (min-width:900px) {
  #lowest-duty .lf-split { grid-template-areas:"film copy" "film detail"; align-items:start; row-gap:0; }
  #lowest-duty .lf-split > .light-film { grid-area:film; }
  #lowest-duty .lf-split > .lf-copy { grid-area:copy; align-self:end; }
  #lowest-duty .lf-split > .lf-detail { grid-area:detail; margin-top:14px; }
}

/* ImportHelm's page wears its own tokens (importhelm.html): brass for the control ring, its body face. */
#lowest-duty { --lf-accent:var(--accent-2); --lf-ink:var(--text); --lf-caption:var(--text-2); --lf-font:var(--font-body); }
#lowest-duty .light-film { max-width:480px; width:100%; justify-self:start; }
#lowest-duty .lf-copy p { font-size:17px; color:var(--text-2); line-height:1.6; }

/* The stage (2026-10-25, the award scan): the films are the site's most original craft and, on HDR screens, their
   light now goes past white, so they get a real stage. From 900px the film takes the larger column, up to 576px wide
   and never taller than 80% of the screen under the top bar (576x720 at 1440x900). From 640 to 899px it stands
   centred, up to 560px (no lopsided column of empty sky). A phone on its side keeps the whole plate on screen.
   Portrait phones keep the edge-to-edge bleed above. The same selectors as each skin's own rule, later in the cascade. */
@media (min-width:900px) {
  .lf-split { grid-template-columns:minmax(0, 6fr) minmax(0, 5fr); }
  .crew-film .light-film, .studio-promo .light-film, .data-film .light-film, #lowest-duty .light-film {
    max-width:min(576px, calc((100svh - 72px) * .8)); }
}
@media (min-width:640px) and (max-width:899px) {
  .crew-film .light-film, .studio-promo .light-film, .data-film .light-film, #lowest-duty .light-film {
    max-width:560px; justify-self:center; margin-inline:auto; }
}
@media (max-width:899px) and (orientation:landscape) and (max-height:600px) {
  .crew-film .light-film, .studio-promo .light-film, .data-film .light-film, #lowest-duty .light-film {
    max-width:calc((100svh - 32px) * .8); justify-self:center; margin-inline:auto; }
  .light-film .lf-frame { margin-inline:0; border-radius:var(--lf-radius, 20px); }
}

/* The app demo plates (2026-10-26, Kent: "Videos autoplay silent, sound turns on after the visitor's first tap or
   click, a sound and pause button on each, films (including LUNA) stay press-to-play"). A plate marked data-autoplay
   plays by itself (assets/light-film.js adds .lf-auto): its "Watch the film" disc gives way to the light films' Pause
   and Sound, centred under the plate and never on the picture, in the page's own ink and accent. The poster sits
   above the video as a still until a frame from the poster's own moment is on screen, then fades (.lf-lit). */
.film.lf-auto { margin-bottom:0; }
.film.lf-auto .film-play { display:none; }
.film .film-still { position:absolute; inset:0; z-index:1; display:block; width:100%; height:100%; object-fit:cover;
  pointer-events:none; transition:opacity .45s ease; }
.film.lf-lit .film-still { opacity:0; }
.lf-bar.film-bar { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:14px 0 0;
  --lf-ink:var(--ink, var(--text, #F4F3F8)); --lf-accent:var(--accent-deep, var(--film-accent, var(--accent, #fff))); }
.film-bar .lf-btn { font-family:inherit; border-color:color-mix(in srgb, var(--lf-ink) 24%, transparent);
  background:color-mix(in srgb, var(--lf-ink) 5%, transparent); }
.film-bar .lf-btn:hover { border-color:color-mix(in srgb, var(--lf-ink) 40%, transparent);
  background:color-mix(in srgb, var(--lf-ink) 10%, transparent); }
.film-bar .lf-btn[aria-pressed="true"], .film-bar.lf-loud [data-lf="sound"] { border-color:var(--lf-accent);
  background:color-mix(in srgb, var(--lf-accent) 14%, transparent); }
@media (prefers-reduced-motion: reduce) { .film .film-still { transition:none; } }
