/* Fightplan Work: the /work/first-class-film case page only (2026-11-21, KD-58).
   Loaded after styles.css, inner.css and work.css. Tokens come from styles.css (brand-tokens.json).
   Every default below works with no JavaScript: the film is a plain video with its own controls and its still.
   work-first-class-film.js adds the muted play in place, the red button and the shot row's seeking.
   Blocks:
     .fc-film-sec   the film on a black stage: the 16:9 player, its caption, the eight shots
     .fc-tall       the 9:16 cut in a phone frame beside its words (inner.css .show)
     .fc-specs      how it was made, six facts two across (inner.css .specs)
     .fc-tape       four numbers, scoreboard style */

/* ---------- The film ---------- */
.fc-film-sec{background:var(--black);border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  padding:var(--space-7) 0 var(--space-7)}
/* the player fits one laptop screen with its caption and the shot row under it, and never shows past 1380 px */
.fc-wrap{width:min(calc(100% - 2 * var(--gutter)),1380px,max(640px,calc((100vh - 330px) * 16 / 9)));margin:0 auto}
.fc-film{position:relative;overflow:hidden;aspect-ratio:16 / 9;background:var(--bg);border:1px solid var(--border-strong)}
.fc-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:var(--bg)}
/* the red button: what waits on the visitor. On wide screens it sits top right on the picture, the one corner the
   film leaves free in every shot (its own mark is top left, its lines low left and low right). On phones it sits
   under the picture, full width, so the still is clear. */
.fc-stage{position:relative}
.fc-play{position:absolute;right:var(--space-5);top:var(--space-5);z-index:2;gap:10px;width:auto;margin:0}
.fc-play[hidden]{display:none}
.fc-play .icon{width:16px;height:16px;fill:currentColor;stroke:none}
/* once the film plays with sound the button is gone and the video's own controls take over */
.fc-film.is-sound + .fc-play{display:none}

/* the eight shots: one row, each a frame of the film and its name; the shot the film is at is lit */
.fc-shots{list-style:none;margin:0;padding:var(--space-4) 0 0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:var(--space-3);
  border-top:1px solid var(--border-strong)}
.fc-shots li{margin:0;min-width:0}
.fc-shot{display:block;width:100%;padding:0;border:0;background:none;color:var(--muted);font:inherit;text-align:left;cursor:pointer}
.no-js .fc-shot{cursor:default}
.fc-shot img{display:block;width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;border:1px solid var(--border);opacity:.8;
  transition:opacity 400ms var(--ease),border-color 400ms var(--ease)}
/* the time stands over the name in every shot, so no name wraps while its neighbour does not */
.fc-shot-cap{display:block;padding-top:var(--space-2);font-size:var(--text-xs);font-weight:600;
  letter-spacing:.12em;text-transform:uppercase;line-height:1.4;transition:color 400ms var(--ease)}
.fc-shot-n{display:block;font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.06em;font-variant-numeric:tabular-nums}
.fc-shot:hover,.fc-shot.on{color:var(--fg)}
.fc-shot:hover img{opacity:.92}
.fc-shot.on img{opacity:1;border-color:var(--fg-2)}
/* while the film waits on its still (phones, reduced motion) no shot is lit: every shot at full strength */
.fc-shots:not(.has-lit) .fc-shot{color:var(--fg-2)}
.fc-shots:not(.has-lit) .fc-shot img{opacity:1}
.fc-shot:focus-visible{outline:2px solid var(--fg);outline-offset:3px}
/* no JS (nothing is lit): every shot at full strength */
.no-js .fc-shot{color:var(--fg-2)}
.no-js .fc-shot img{opacity:1}

@media (max-width:1023px){
  .fc-shots{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:var(--space-4)}
}
@media (max-width:767px){
  .fc-film-sec{padding:var(--space-5) 0 var(--space-6)}
  .fc-wrap{width:calc(100% - 2 * var(--gutter))}
  .fc-stage .fc-play{position:static;display:flex;width:100%;justify-content:center;margin-top:var(--space-3)}
  /* it stays in place once the film plays (as a quiet Pause / Play), so nothing under it jumps */
  .fc-film.is-sound + .fc-play{display:flex}
  .fc-film-sec .work-cap{font-size:var(--text-sm)}
  /* the shots: a swipe row inside the section, the next one peeking in */
  .fc-shots{display:flex;gap:var(--space-3);margin:0 calc(-1 * var(--gutter));padding:var(--space-4) var(--gutter) 0;overflow-x:auto;
    overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);scrollbar-width:none;border-top:0}
  .fc-shots::-webkit-scrollbar{display:none}
  .fc-shots li{flex:0 0 42%;scroll-snap-align:start}
}

/* ---------- The phone cut ---------- */
.fc-phone{width:min(100%,320px);margin:0 auto}
.fc-phone .frame-view{aspect-ratio:9 / 16;background:var(--bg)}
.fc-tall-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:var(--bg)}
/* its red button stands on the still's dark foot, under the picture */
.fc-play-tall{left:0;right:0;top:auto;bottom:10px;width:max-content;margin:0 auto}
/* a hidden button stays hidden whatever the layout rules above say (no JavaScript, or the film failed to load) */
.fc-play[hidden]{display:none !important}
.fc-tall .show-work .work-cap{text-align:center;padding-bottom:var(--space-6)}
@media (max-width:767px){
  .fc-phone{width:min(78%,320px)}
}

/* ---------- How it was made ---------- */
.fc-specs{margin-top:0;padding-bottom:var(--space-5);max-width:none}
.fc-tape{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;border-top:1px solid var(--border-strong)}
.fc-tape div{padding:var(--space-4) var(--space-4) 0 0}
.fc-tape div + div{padding-left:var(--space-4);border-left:1px solid var(--border)}
.fc-tape dt{font-size:var(--text-xs);font-weight:600;letter-spacing:.14em;text-transform:uppercase;line-height:1.4;color:var(--muted)}
.fc-tape dd{margin:6px 0 0;font-family:var(--font-display);font-weight:700;font-size:clamp(44px,5.4vw,72px);line-height:1;letter-spacing:.01em;
  color:var(--fg);font-variant-numeric:tabular-nums}
@media (max-width:767px){
  .fc-tape{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:var(--space-4)}
  .fc-tape div:nth-child(3){padding-left:0;border-left:0}
}
