/* Film page, /films/ (built 27 Nov 2026, chat "26 Nov · videos, Search Console, design systems").
   Seven Sky tokens only (navy, night, cream, mist, gold); band colours stay in the footer band.
   Rhythm taken from a product page he showed: one pinned zoom scene near the top, then still cards. */
.films { color: var(--cream); }
.f-wrap { max-width: 1120px; margin: 0 auto; }
.f-hero { padding: 132px var(--gutter) 88px; }
.f-hero .rule-lg { margin: 22px 0 0; }
.f-h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 76px); line-height: 1.06; letter-spacing: -0.01em; margin: 14px 0 0; max-width: 13ch; color: var(--cream); }
.f-h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin: 0; color: var(--cream); }

/* The one huge word, pinned while the page moves under it */
.f-word { background: var(--bg-night); height: 150vh; }
.f-word-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.f-word-text { font-family: var(--font-display); font-weight: 700; font-size: clamp(96px, 24vw, 340px); line-height: 1; letter-spacing: -0.04em; color: #6d7790; margin: 0; } /* mist 55% over night, 4.3:1 */

/* The zoom scene: the film grows from a small frame to the full window, then plays */
.f-zoom { background: var(--bg-night); }
.f-zoom-track { height: 240vh; position: relative; }
.f-zoom-stage { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.f-zoom-line { position: absolute; top: 9vh; left: var(--gutter); right: var(--gutter); text-align: center; opacity: var(--o, 1); }
.f-frame { position: relative; margin: 0; height: min(84vh, 880px, calc((100vw - 32px) * 16 / 9)); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000; box-shadow: var(--shadow-lift); }
.f-zoom .f-frame { transform: scale(var(--z, 1)); transform-origin: 50% 62%; }
.f-frame video, .f-player video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.f-sound { position: absolute; right: 14px; bottom: 14px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--panel-edge); background: rgba(0, 10, 43, 0.82); color: var(--cream); font: 600 15px var(--font-display); cursor: pointer; }
.f-sound:focus-visible, .f-tab:focus-visible, .f-pill:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Figures: one card each, a small line, one big figure, a small line with its source number */
.f-figs { background: var(--bg-night); padding: 24px var(--gutter) 128px; }
.f-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.f-card { background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 24px; padding: 28px 28px 26px; }
.f-card-top { font-size: 15px; line-height: 1.45; color: var(--mist); margin: 0; }
.f-card-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5vw, 64px); line-height: 1.05; margin: 10px 0 10px; color: var(--cream); }
.f-card-low { font-size: 15px; line-height: 1.45; color: var(--mist); margin: 0; }
.films sup { font-size: 0.7em; line-height: 0; }
.films sup a { color: var(--gold-text); text-decoration: none; padding: 0 2px; }
.films sup a:hover, .films sup a:focus-visible { text-decoration: underline; }

/* Four more films: tab words swap one player and its caption */
.f-select { background: var(--bg-night); padding: 112px var(--gutter) 120px; border-top: 1px solid var(--panel-edge); }
.f-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.f-tab { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--panel-edge); background: none; color: var(--mist); font: 600 16px var(--font-display); cursor: pointer; }
.f-tab[aria-selected="true"] { background: var(--cream); color: var(--navy); border-color: var(--cream); }
.f-panel { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 56px; align-items: start; }
.f-panel[hidden] { display: none; }
.f-player { position: relative; margin: 0; width: 100%; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #000; }
.f-cap { font-size: 22px; line-height: 1.5; color: var(--mist); margin: 0; max-width: 34ch; }
.f-cap strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.18; color: var(--cream); margin-bottom: 14px; }
.f-facts { list-style: none; padding: 0; margin: 28px 0 0; max-width: 46ch; }
.f-facts li { border-top: 1px solid var(--panel-edge); padding: 13px 0; font-size: 15px; line-height: 1.5; color: var(--mist); }

/* All the sourced figures, as a grid of tiles */
.f-bento { background: var(--bg-night); padding: 0 var(--gutter) 128px; }
.f-bento .f-h2 { margin-bottom: 32px; }
@media (min-width: 861px) { .f-bento .f-card-top { min-height: 4.4em; } }

/* Closing: one action */
.f-close { padding: 112px var(--gutter); }
.f-close-card { background: var(--stack-bg); color: var(--stack-ink); border-radius: 28px; padding: 64px 48px; text-align: center; }
.f-close-card .f-h2 { color: var(--stack-ink); margin-bottom: 28px; }
.f-close-card .btn { background: var(--stack-ink); color: var(--stack-bg); }

/* Sources */
.f-sources { padding: 72px var(--gutter) 96px; background: var(--bg-night); }
.f-sources ol { margin: 24px 0 0; padding-left: 22px; color: var(--mist); font-size: 15px; line-height: 1.6; max-width: 80ch; }
.f-sources li { margin-bottom: 12px; }
.f-sources a { color: var(--cream); }

/* The pinned action, the whole way down */
.f-pill { position: fixed; left: 50%; bottom: 22px; z-index: 5; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--cream); color: var(--navy); font: 600 16px var(--font-display); text-decoration: none; box-shadow: var(--shadow-lift); transform: translate(-50%, 0); }
.f-js .f-pill { transform: translate(-50%, 160%); opacity: 0; }
.f-js .f-pill.f-pill-on { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .f-js .f-pill { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s ease; } }

@media (max-width: 860px) {
  .f-grid { grid-template-columns: minmax(0, 1fr); }
  .f-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .f-player { max-width: 360px; }
  .f-close-card { padding: 48px 24px; }
  .f-pill, .f-js .f-pill, .f-js .f-pill.f-pill-on { left: auto; right: 16px; bottom: 16px; min-height: 44px; padding: 0 18px; font-size: 15px; }
  .f-js .f-pill { transform: translateY(160%); }
  .f-pill, .f-js .f-pill.f-pill-on { transform: none; }
}

/* Reduced motion: nothing pinned, nothing zooms, films are plain players */
@media (prefers-reduced-motion: reduce) {
  .f-word { height: auto; }
  .f-word-pin { position: static; height: auto; padding: 72px 0; }
  .f-zoom-track { height: auto; }
  .f-zoom-stage { position: static; height: auto; flex-direction: column; padding: 48px var(--gutter) 64px; }
  .f-zoom-line { position: static; opacity: 1; margin-bottom: 32px; }
  .f-zoom .f-frame { transform: none; height: auto; width: min(100%, 420px); }
  .f-sound { display: none; }
}
@media print { .f-pill, .f-sound, .f-word { display: none; } .f-zoom-track { height: auto; } .f-zoom-stage { position: static; height: auto; } }
