/* ==========================================================================
   SITE SYSTEM. Direction B: type is the stage. Black ground, white type, one yellow.
   Every page loads this file and js/site.js. A page is complete without the script.

   COLOUR (contrast measured with the WCAG formula, all pass AA for body text)
     --bg     #000000  ground
     --panel  #111111  media ground and form fields
     --ink    #ffffff  text            on --bg 21.00:1   on --panel 18.88:1
     --dim    #8f8f8f  quiet text      on --bg  6.49:1   on --panel  5.84:1
     --y      #ffff00  the one accent  on --bg 19.56:1   (one word, one marker, the focus ring)
     buttons: #000000 on #ffffff 21.00:1
     Dark only. No second accent, no gradients on type, no borders as decoration.

   TYPE (Archivo variable, weight 100 to 900, width 62 to 125. Arabic: Kufi, always lang="ar" dir="rtl")
     headline  .hl        weight 900, width 62 to 85 per line, size --f, line height .8, capitals
     display   .display   weight 900, width 62, clamp(46px, 9.2vw, 150px), line height .84, capitals
               .display--xl  14.6vw   .display--s  clamp(40px, 5.6vw, 96px)
               .display.fit > span (one per line): each line set to the full measure with the width axis
     number    .nums b    weight 900, width 62 (opens to 108 with scroll speed), line height .8
     title     h3, .ttl   weight 650, width 88, clamp(20px, 2.15vw, 34px), line height 1.16
     body      p, .text   weight 400, width 100, 16px on 1.5, measure 34em at most
     small     nav, captions, .kicker, .toggle   14px on 1.4 (kicker and captions in --dim)

   SPACE
     --m   page margin, clamp(14px, 1.4vw, 28px)
     --s1 8px  --s2 16px  --s3 24px  --s4 40px  --s5 72px  --s6 clamp(88px, 14vh, 160px) between sections
     --nav 58px bar height   --r 14px media corner   --ease cubic-bezier(.16, 1, .3, 1)

   COMPONENTS (markup)
     skip link      a.skip[href="#main"]
     nav and menu   header.nav#nav > a.nav__brand + button.nav__btn#hamburger[aria-expanded][aria-controls=nav-menu]
                    (span.nav__open Menu, span.nav__shut Close) + nav > ul.nav__menu#nav-menu > li > a.nav__link
                    (aria-current="page" on the current one), last li > a.btn.nav__cta.
                    One row from 1100px. Below that a full screen menu (script) or a wrapped row (no script).
     footer         footer.footer > ul.footer__links > li > a   +   p.footer__legal
     page headline  h1.hl > span.ln (one per line) > span.m > span.w (a word)
                    optional inline clip window in a line: span.slot > span.win > video[muted playsinline loop preload=none poster]
                    per line: --rest (letter width at rest) and --tight (widest that keeps the window)
     section opener header.opener > p.kicker (optional) + h2.display
     section        section.sec (margins and the space above)
     fact number    ul.nums > li > b (the number) + span (the label)
     media piece    figure.piece > div.piece__media > img | div.loop > img.loop__poster[alt=""] + video[aria-label] + button.toggle.loop__toggle
                    + figcaption > span (one line) + a.link (optional)
     strip          div.strip > ul > li > img   (a row that drifts sideways with the scroll, or scrolls by hand)
     text block     article.textblock > h3 + p     (in div.cols for three columns)
     tag list       ul.tags > li
     timeline row   article.trow > span.trow__when + div > h3 + p.trow__org + p.trow__note
     table row      ul.rows > li.row > span.row__when + span.row__what
     buttons        a.btn (white fill)   a.btn.btn--ghost (outline)   a.link (text with an arrow)   button.toggle (quiet text)
     form field     div.field > label + input | textarea | select (+ p.field__error)
     reveal         class rv on any block: it rises in once when it enters the screen (script and motion allowed only)
     scenes         div.runway > section.stage (Home first screen) and div.runway > section.film: held with
                    position sticky and driven by scroll in js/site.js. Without the script they are plain sections.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-vf-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
}
@font-face {
  font-family: "Kufi";
  src: url("../fonts/noto-kufi-arabic-arabic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFC;
}

/* registered so the width axis and the window growth interpolate as numbers */
@property --wdth { syntax: "<number>"; inherits: true; initial-value: 62; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --bg: #000; --panel: #111; --ink: #fff; --dim: #8f8f8f; --y: #ffff00;
  --m: clamp(14px, 1.4vw, 28px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 72px; --s6: clamp(88px, 14vh, 160px);
  --nav: 58px; --r: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
html.menu-open { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { display: block; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, video, canvas { max-width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--y); color: #000; }
:focus-visible { outline: 2px solid var(--y); outline-offset: 4px; border-radius: 2px; }
/* the Arabic face is asked for after the page has loaded (the script adds .late), so it never competes with the first paint */
html:not(.js) [lang="ar"], .late [lang="ar"] { font-family: "Kufi", "Archivo", sans-serif; }
[lang="ar"] { font-stretch: 100%; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
input.vh:focus-visible + label { outline: 2px solid var(--y); outline-offset: 4px; border-radius: 2px; }

/* moving between pages: the bar stays, the headline hands over */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .nav { view-transition-name: nav; }
  .hl { view-transition-name: headline; }
}

/* ---------- skip link ---------- */
.skip { position: absolute; z-index: 40; left: var(--m); top: -80px; padding: .6em 1em; background: #fff; color: #000; font-weight: 650; }
.skip:focus { top: 8px; }

/* ---------- nav and menu ---------- */
.nav {
  position: fixed; z-index: 30; inset: 0 0 auto 0; height: var(--nav);
  display: flex; align-items: center; gap: 2vw;
  padding: 0 var(--m); background: var(--bg);
  font-size: 14px; line-height: 1.4;
}
.nav__brand { font-weight: 650; }
.nav nav { margin-left: auto; }
.nav__menu { display: flex; align-items: center; gap: 1.7vw; }
.nav__link { display: block; padding: .5em 0; color: var(--dim); transition: color .2s; }
.nav__link:hover, .nav__link[aria-current] { color: var(--ink); }
.nav__btn { display: none; margin-left: auto; padding: 8px 0 8px 14px; font: inherit; font-weight: 650; color: var(--ink); background: none; border: 0; cursor: pointer; }
.nav__shut, .nav__btn[aria-expanded="true"] .nav__open { display: none; }
.nav__btn[aria-expanded="true"] .nav__shut { display: inline; }

@media (max-width: 1099.98px) {
  /* no script: the links stay in the flow as a wrapped row */
  html:not(.js) .nav { position: static; height: auto; flex-wrap: wrap; padding-block: 14px; }
  html:not(.js) .nav__menu { flex-wrap: wrap; gap: 4px 18px; }
  .js .nav__btn { display: block; }
  .js .nav nav { margin: 0; }
  .js .nav__menu {
    position: fixed; z-index: -1; inset: 0;
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 0;
    padding: var(--nav) var(--m) 0; background: var(--bg);
    font-size: min(14.4vw, calc((100svh - 130px) / 6.6)); line-height: .92; font-weight: 900; text-transform: uppercase;
    font-variation-settings: "wght" 900, "wdth" 62;
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility 0s .25s;
  }
  .js.menu-open .nav__menu { visibility: visible; opacity: 1; transition-delay: 0s; }
  .js .nav__menu li { opacity: 0; transform: translateY(40%); transition: transform .45s var(--ease), opacity .3s; }
  .js.menu-open .nav__menu li { opacity: 1; transform: none; }
  .js.menu-open .nav__menu li:nth-child(2) { transition-delay: 25ms; } .js.menu-open .nav__menu li:nth-child(3) { transition-delay: 50ms; }
  .js.menu-open .nav__menu li:nth-child(4) { transition-delay: 75ms; } .js.menu-open .nav__menu li:nth-child(5) { transition-delay: 100ms; }
  .js.menu-open .nav__menu li:nth-child(6) { transition-delay: 120ms; } .js.menu-open .nav__menu li:nth-child(7) { transition-delay: 140ms; }
  .js .nav__menu .nav__link, .js .nav__menu .nav__cta { padding: 0; color: var(--ink); background: none; font-size: inherit; line-height: inherit; font-weight: inherit; }
  .js .nav__menu .nav__link[aria-current] { color: var(--dim); }
}

/* ---------- buttons and links ---------- */
.btn {
  display: inline-block; padding: .8em 1.25em; background: #fff; color: #000;
  font-size: 15px; line-height: 1.2; font-weight: 650; transition: background .2s, color .2s;
}
.btn:hover { background: var(--y); }
.btn--ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--ghost:hover { background: #fff; color: #000; }
.nav__cta { padding: .55em .95em; font-size: 14px; }
.btn .arrow, .link .arrow { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(.3em); }
.link { display: inline-block; padding: .2em 0; font-weight: 550; white-space: nowrap; }
.link:not(:has(.arrow))::after { content: "\2192"; display: inline-block; margin-left: .3em; transition: transform .35s var(--ease); }
.link:not(:has(.arrow)):hover::after { transform: translateX(.3em); }
.toggle { padding: .3em 0; font: inherit; font-size: 14px; color: var(--dim); background: none; border: 0; cursor: pointer; transition: color .2s; }
.toggle:hover { color: var(--ink); }
html:not(.js) .toggle { display: none; }

/* ---------- shared type ---------- */
.kicker { margin-bottom: var(--s2); font-size: 14px; line-height: 1.4; color: var(--dim); }
.display {
  font-size: clamp(46px, 9.2vw, 150px); line-height: .84; font-weight: 900;
  font-variation-settings: "wght" 900, "wdth" 62; text-transform: uppercase; text-wrap: balance;
}
.display--xl { font-size: 14.6vw; }
.display--s { font-size: clamp(40px, 5.6vw, 96px); }
.display > span { display: block; }
/* .fit: every line is set to the full measure with the width axis (the script finds the width, the line opens to it once in view) */
.fit > span { width: max-content; white-space: nowrap; font-variation-settings: "wght" 900, "wdth" var(--wdth); --wdth: var(--fitw, 62); }
.rv-on .fit > span { --wdth: 62; transition: --wdth 1.5s var(--ease) .1s; }
.rv-on .is-in .fit > span, .rv-on .fit.is-in > span { --wdth: var(--fitw, 62); }
h3 { font-size: clamp(20px, 2.15vw, 34px); line-height: 1.16; font-weight: 650; font-stretch: 88%; }
.text { max-width: 34em; }
.sec { padding: var(--s6) var(--m) 0; }
.opener { margin-bottom: var(--s5); }

/* reveal: on only when the script says motion is allowed */
.rv-on .rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-on .rv.is-in { opacity: 1; transform: none; }

/* ---------- page headline ---------- */
.hl {
  display: flex; flex-direction: column; gap: .05em;
  font-size: var(--f, clamp(56px, 13vw, 200px)); line-height: .8; font-weight: 900; text-transform: uppercase;
}
.ln {
  display: flex; align-items: center; gap: .075em;
  --wdth: var(--rest, 62);
  font-variation-settings: "wght" 900, "wdth" var(--wdth);
}
.m { flex: none; display: block; overflow: hidden; padding-top: .02em; }
.w { display: block; white-space: nowrap; animation: rise .95s var(--ease) both; animation-delay: calc(var(--i, 0) * 75ms); }
.w i { font-style: normal; color: var(--y); }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }
/* the window takes whatever the letters leave */
.slot { position: relative; z-index: 1; flex: 1 1 0; min-width: .69em; height: .69em; }
.win {
  position: absolute; overflow: hidden; background: var(--panel);
  left: calc(var(--dx, 0) * var(--p) * 1px);
  top: calc(var(--dy, 0) * var(--p) * 1px);
  width: calc(100% + var(--dw, 0) * var(--p) * 1px);
  height: calc(100% + var(--dh, 0) * var(--p) * 1px);
  border-radius: calc(var(--r0, .09em) * (1 - var(--p)) + var(--r) * var(--p));
}
/* --oy keeps the band clear of the caption burned into each clip; the script sets it as the window changes shape */
.win video, .win canvas { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--oy, 40%); }

/* ---------- Home: first screen ---------- */
.runway { position: relative; }
.stage {
  position: relative; overflow-x: clip;
  --f: min(15.6vw, calc((100svh - 300px) / 2.5));
  --ch: min(calc(100svh - 356px), calc((100vw - 2 * var(--m)) * .5625));   /* height of everything in the strip */
  --cw: calc(var(--ch) * .5625);                                           /* one 9:16 clip */
  --nf: min(21svh, 30vw);
}
.screen {
  position: relative; z-index: 2; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  padding: calc(var(--nav) + 4px) var(--m) 24px;
}
.role { font-size: 14px; line-height: 1.4; color: var(--dim); animation: fade .9s ease .5s backwards; }
.stage .hl { align-self: center; }
/* rest = where the letters sit, tight = widest letters that still leave a window */
.l1 { --rest: 72; --tight: 85; --oy: 44%; animation: breathe-1 1.5s var(--ease) .15s backwards; }
.l2 { --rest: 68; --tight: 79.5; --oy: 29%; --dir: 1; animation: breathe-2 1.5s var(--ease) .22s backwards; }
.l3 { --rest: 62; --tight: 62; --oy: 34%; }
@keyframes breathe-1 { from { --wdth: 80; } }
@keyframes breathe-2 { from { --wdth: 74.5; } }
.l2 .m:first-child .w { --i: 1; }
.l2 .m:last-child .w { --i: 2; }
.l3 .w { --i: 3; }

.foot { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4vw; animation: fade .9s ease .5s backwards; }
.cap label { display: inline-block; margin-right: 1.3em; padding: .3em 0; font-size: 14px; color: var(--dim); cursor: pointer; transition: color .2s; }
.cap label:hover, .cap input:checked + label { color: var(--ink); }
.ttl {
  display: grid; overflow: hidden; margin-top: .1em; padding: .1em 0 .2em; max-width: 21em;
  font-size: clamp(20px, 2.15vw, 34px); line-height: 1.16; font-weight: 600; font-stretch: 88%;
}
.t { grid-area: 1 / 1; transform: translateY(130%); transition: transform .7s var(--ease); }
.t b { font-weight: 800; color: var(--y); margin-inline-end: .2em; }
.t-ar { font-size: .9em; line-height: 1.5; }
#l-en:checked ~ .ttl .t-en, #l-ar:checked ~ .ttl .t-ar, #l-es:checked ~ .ttl .t-es { transform: none; }
.t.out { transform: translateY(-130%); }
.t.snap { transition: none; }
.side { max-width: 26em; font-size: 16px; line-height: 1.45; }
.lede { margin-bottom: .8em; }
.go { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em 1.8em; }

/* the strip exists only while the scene is driven by scroll */
.track, .nums__count { display: none; }

/* ---------- fact numbers (plain: a grid of big numbers) ---------- */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5) var(--m); padding: var(--s6) var(--m) 0; }
.nums li { display: flex; flex-direction: column; }
.nums b {
  display: block; white-space: nowrap; font-size: clamp(88px, 13vw, 200px); line-height: .8; font-weight: 900;
  font-variation-settings: "wght" 900, "wdth" var(--nw, 62);
}
.nums span { margin-top: .5em; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.2; font-weight: 600; font-stretch: 88%; }

/* the hold is reserved before the script runs, so nothing below it loads early or jumps (the script sets the same height) */
@media (prefers-reduced-motion: no-preference) {
  .js .runway { min-height: 400svh; }
  .js .runway--film { min-height: 310svh; }
  @media (max-width: 820px) { .js .runway { min-height: 290svh; } .js .runway--film { min-height: 310svh; } }
}
/* a short window (a phone held sideways): the headline is sized by width alone and the first screen flows taller than the window; the script runs no held scene here */
@media (max-height: 520px) {
  .stage { --f: 15.6vw; }
  .js .runway, .js .runway--film { min-height: 0; }
}
.flat-load .runway, .flat-load .runway--film { min-height: 0; }

/* ---------- scrub mode: the script is here and motion is allowed ---------- */
.scrub .stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.scrub .screen { height: 100svh; min-height: 0; pointer-events: none; }
.scrub .foot, .scrub .role { opacity: calc(1 - var(--fo, 0)); translate: 0 calc(var(--fo, 0) * 30px); }
.scrub .foot { pointer-events: auto; }
.scrub .is-away .foot { pointer-events: none; }
.scrub .stage .m { transform: translateX(calc(var(--wx, 0) * var(--dir, -1) * 1vw)); }
.scrub .win { transform: translateX(calc(var(--tx, 0) * 1px)); will-change: left, top, width, height, transform; }
.scrub .track {
  display: flex; position: absolute; z-index: 1; left: 0; top: calc(var(--nav) + 10px);
  width: max-content; align-items: flex-start; gap: 9vw;
  padding: 0 var(--m) 0 calc(50vw - (3 * var(--cw) + 24px) / 2);
  opacity: var(--to, 0); transform: translateX(calc(var(--tx, 0) * 1px)); will-change: transform;
}
.clips { display: flex; gap: 12px; }
.ph { display: block; width: var(--cw); aspect-ratio: 9 / 16; visibility: hidden; }
.track figcaption { margin-top: 14px; }
.track .wt > .toggle { display: block; margin: 4px 0 0 auto; }   /* Pause under the right edge of the clips: the last part of them to leave the screen */
.wt figcaption { display: grid; grid-template-columns: repeat(3, var(--cw)); gap: 12px; font-size: 15px; }

.scrub .nums { position: absolute; z-index: 3; left: var(--m); right: var(--m); bottom: 22px; display: block; padding: 0; pointer-events: none; }
.scrub .nums li {
  position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; white-space: nowrap;
  flex-direction: row; align-items: baseline; gap: .12em; font-size: var(--nf);
  padding: .09em 0 .07em;
}
.scrub .nums li > * { transform: translateY(calc(var(--fy, 600) * 1px)); }
.scrub .stage:not(.is-away) .nums { visibility: hidden; }   /* not there until the sentence has started to leave */
.scrub .nums b { font-size: 1em; }
.scrub .nums span { margin: 0; font-size: clamp(18px, 2.3vw, 36px); }
.scrub .nums__count {
  display: block; position: absolute; z-index: 3; right: var(--m); bottom: calc(22px + var(--nf) * .07);
  font-size: clamp(18px, 2.3vw, 36px); line-height: 1; font-weight: 900; font-variation-settings: "wght" 900, "wdth" 62;
  color: var(--dim); opacity: var(--to, 0); pointer-events: none;
}

/* ---------- media piece ---------- */
.piece__media { border-radius: var(--r); overflow: hidden; background: var(--panel); }
.piece__media img, .piece__media video { display: block; width: 100%; height: auto; }
.piece figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); margin-top: 12px; font-size: 15px; line-height: 1.3; }
.loop { position: relative; }
/* the poster is a lazy image under the video, so it loads only when the loop is near */
.piece__media .loop__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.loop video { position: relative; }
.loop__toggle { position: absolute; right: 10px; bottom: 10px; padding: .35em .8em; color: #fff; background: rgba(0, 0, 0, .72); }

/* ---------- Home: Design & Social (plain: a section; from 821px with scroll: carried by the strip) ---------- */
.ds { padding: var(--s6) var(--m) 0; }
/* until the page has loaded (the script then adds .late) this section is not rendered while off screen, so its pictures never compete with the first paint */
.js:not(.late) main > .ds { content-visibility: auto; contain-intrinsic-size: auto 1600px; }
.ds__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s4) calc(var(--m) * 2); align-items: start; }
.ds__grid .piece { grid-column: span 3; }
.ds__grid .piece:nth-child(3) { grid-column: span 4; }
.ds__grid .piece:nth-child(4) { grid-column: span 2; }

.track .ds { display: flex; align-items: flex-start; gap: 9vw; padding: 0; }
.track .opener { display: flex; flex-direction: column; justify-content: flex-end; height: var(--ch); margin: 0; }
.track .opener .display { width: 4.9em; font-size: min(11vw, 20svh); text-wrap: wrap; }
.track .ds__grid { display: flex; align-items: flex-start; gap: 9vw; }
/* objects being presented: each piece turns to face the middle of the screen as it crosses, and leans to the pointer */
.track .piece__media {
  height: var(--ch);
  transform: perspective(1800px) rotateY(calc(var(--c, 0) * 16deg + var(--mx, 0) * 3deg)) rotateX(calc(var(--my, 0) * -3deg)) scale(calc(1 - var(--a, 0) * .1));
  will-change: transform;
}
.track .piece__media img, .track .piece__media video { width: auto; height: 100%; max-width: none; }
.track .loop { height: 100%; }
.track .ds figcaption { justify-content: flex-start; gap: 1.2em; }
.track .ds figcaption > span:first-child {
  font-size: clamp(20px, 2vw, 30px); line-height: 1; font-weight: 900; font-variation-settings: "wght" 900, "wdth" 62; text-transform: uppercase;
}

/* ---------- Home: WTFacts feature ---------- */
.wtf { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) calc(var(--m) * 2); align-items: end; }
.wtf .display { margin-bottom: var(--s4); }
.wtf .text { margin-bottom: var(--s3); font-size: clamp(16px, 1.5vw, 21px); }
.wtf__covers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cover { display: block; border-radius: var(--r); overflow: hidden; background: var(--panel); transition: transform .5s var(--ease); }
.cover img { display: block; width: 100%; height: auto; }
.cover:hover { transform: translateY(-10px); }
.strip { grid-column: 1 / -1; margin-inline: calc(-1 * var(--m)); overflow-x: auto; }
.strip ul { display: flex; gap: 12px; width: max-content; padding: 0 var(--m) 4px; }
.strip li { flex: none; width: clamp(118px, 11vw, 190px); border-radius: 10px; overflow: hidden; background: var(--panel); }
.strip img { display: block; width: 100%; height: auto; }

/* ---------- Home: Deadbolt (plain: a band over the still) ---------- */
.film { position: relative; min-height: 92svh; display: flex; align-items: flex-end; overflow: clip; margin-top: var(--s6); background: var(--bg); }
.film__bg { position: absolute; inset: 0; }
.film__bg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .86)); }
.film__loop, .film__toggle { display: none; }
.film__in { position: relative; width: 100%; padding: var(--s6) var(--m) var(--s5); }
.film__label { margin-bottom: var(--s2); font-size: 14px; line-height: 1.4; }
.film__title { font-size: 21vw; line-height: .8; font-weight: 900; font-variation-settings: "wght" 900, "wdth" 62; }
.logline { margin: var(--s4) 0 var(--s3); font-size: clamp(20px, 2.3vw, 34px); line-height: 1.25; font-weight: 600; font-stretch: 88%; }
.logline span { display: block; }

.scrub .runway--film { margin-top: var(--s6); }
.scrub .film { position: sticky; top: 0; height: 100svh; min-height: 0; display: block; margin: 0; }
/* the two halves of the title are the door: the picture shows only between them */
.scrub .film__bg { clip-path: inset(0 var(--ir, 50%) 0 var(--il, 50%)); }
.scrub .film__bg::after { opacity: var(--still, 0); }
.scrub .film__loop {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; background: #000; opacity: var(--vid, 0);
}
@media (max-aspect-ratio: 4/3) { .scrub .film__loop { object-fit: contain; } }
.scrub .film__in { position: absolute; inset: 0; padding: 0; }
.scrub .film__label { position: absolute; left: var(--m); top: calc(var(--nav) + 12px); margin: 0; }
.scrub .film__title {
  position: absolute; left: var(--m); right: var(--m); top: 50%; transform: translateY(-50%);
  display: flex; justify-content: space-between; white-space: nowrap;
  font-variation-settings: "wght" 900, "wdth" calc(125 - 63 * var(--q, 0));
}
.scrub .film__title span:first-child { transform: translateX(calc(var(--ox, 0) * -1px)); }
.scrub .film__title span:last-child { transform: translateX(calc(var(--ox, 0) * 1px)); }
.scrub .logline {
  position: absolute; left: 50%; top: 43%; transform: translate(-50%, -50%);
  width: min(calc(100vw - 2 * var(--m)), 34em); margin: 0; text-align: center;
}
.scrub .logline span { transform: translateY(calc(var(--ly, 100) * 1%)); clip-path: inset(0 0 calc(var(--ly, 100) * 1%) 0); }
.scrub .film__go { position: absolute; left: 50%; bottom: 9svh; transform: translateX(-50%); opacity: var(--lo, 0); }
.scrub .film:not(.is-end) .film__go { pointer-events: none; }
.scrub .film__toggle { display: block; position: absolute; left: var(--m); bottom: 20px; opacity: var(--vid, 0); }
.scrub .film:not(.is-loop) .film__toggle { visibility: hidden; }

/* ---------- text blocks, tags, rows ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4) calc(var(--m) * 2); }
.textblock h3 { margin-bottom: .55em; }
.textblock p { max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: var(--s1); }
.tags li { padding: .35em .8em; background: var(--panel); font-size: 14px; line-height: 1.4; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5) calc(var(--m) * 2); align-items: start; }
.trow { display: grid; grid-template-columns: 5.2em 1fr; gap: var(--s2); padding-bottom: var(--s4); }
.trow__when, .row__when { color: var(--dim); font-weight: 900; font-variation-settings: "wght" 900, "wdth" 62; }
.trow__when { font-size: clamp(20px, 2.15vw, 34px); line-height: 1.16; }
.trow__org { margin-top: .3em; }
.trow__note { color: var(--dim); }
.subhead { margin-bottom: var(--s3); }
.row { display: grid; grid-template-columns: 5.2em 1fr; gap: var(--s2); padding: .55em 0; }
.row__when { font-size: 18px; line-height: 1.35; }
.row__what p { margin: 0; }

/* ---------- form fields ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s3); }
.field label { font-size: 14px; line-height: 1.4; color: var(--dim); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--panel); border: 0; border-bottom: 2px solid var(--dim); border-radius: 0;
}
.field textarea { min-height: 9em; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-bottom-color: var(--y); }
.field__error { font-size: 14px; color: var(--y); }

/* ---------- closing call and footer ---------- */
.cta { padding: var(--s6) var(--m); }
.cta .text { margin: var(--s4) 0 var(--s3); font-size: clamp(16px, 1.5vw, 21px); }
.cta .go { gap: var(--s2); }
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--s2) var(--s4);
  padding: var(--s4) var(--m) var(--s3); font-size: 14px; line-height: 1.4; color: var(--dim);
}
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); }
.footer a { display: inline-block; padding: .3em 0; color: var(--ink); transition: color .2s; }
.footer a:hover { color: var(--dim); }

/* ---------- motion that needs no script: scroll moves the object, where the browser can ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ds__grid .piece__media { animation: present linear both; animation-timeline: view(); animation-range: entry 0% cover 42%; }
    .track .piece__media { animation: none; }
    .strip { overflow: clip; } /* clip, not hidden: hidden would make the strip its own scroll container and park the view() timeline */
    .strip ul { animation: drift linear both; animation-timeline: view(); animation-range: entry 30% exit 70%; }
  }
}
@keyframes present { from { transform: perspective(1200px) rotateX(16deg) scale(.86); opacity: .35; } }
@keyframes drift { to { transform: translateX(calc(-100% + 100vw)); } }

/* ---------- phone and tablet: designed, not shrunk ---------- */
@media (max-width: 820px) {
  .stage {
    --f: 17vw; --r0: 0px;
    --bh: clamp(64px, calc((100svh - 396px - 41.6vw) / 3), 24svh);
    --cw: min(78vw, calc((100svh - 300px) * .5625)); --ch: calc(var(--cw) * 16 / 9);
    --nf: min(18svh, 40vw);
  }
  .screen { padding-bottom: 18px; gap: 12px; }
  .stage .hl { gap: 8px; }
  /* each text line is set to the measure with the width axis, the window runs edge to edge under it */
  .stage .ln { flex-wrap: wrap; justify-content: space-between; gap: 8px .2em; animation: none; }
  .l1 { --rest: 85.6; } .l2 { --rest: 77; }
  .stage .slot { flex: 0 0 calc(100% + 2 * var(--m)); margin-inline: calc(-1 * var(--m)); order: 9; height: var(--bh); min-width: 0; }
  .stage .win { animation: open .95s var(--ease) .25s backwards; }
  .l2 .win { animation-delay: .34s; } .l3 .win { animation-delay: .43s; }
  .foot { grid-template-columns: 1fr; gap: 10px; }
  .cap label { padding: .5em 0; }
  .ttl { font-size: 19px; }
  .side { font-size: 15px; }
  .lede { margin-bottom: .5em; }
  .scrub .track { top: var(--nav); padding-left: var(--m); }
  .scrub .nums { bottom: 16px; }
  .scrub .nums li { flex-direction: column; align-items: flex-start; gap: 0; }
  .scrub .nums b { order: 2; margin-top: .06em; }
  .scrub .nums span { font-size: 17px; }
  .scrub .nums__count { bottom: 22px; font-size: 20px; }

  .nums { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--m); }
  .nums b { font-size: 25vw; }
  .ds__grid, .wtf, .cols, .split { grid-template-columns: 1fr; }
  .ds__grid .piece:nth-child(n) { grid-column: auto; }
  .opener { margin-bottom: var(--s4); }
  .film__title { font-size: 23.5vw; }
  .scrub .logline { top: 40%; }
  .fit > span { width: auto; white-space: normal; }
}
@keyframes open { from { clip-path: inset(0 50%); } to { clip-path: inset(0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
