/* Aimlink | Hero "Through the sight": a film intro driven by scroll (assets/film/film.js).
   The page opens on the Aimlink ident (the mark as a machined emblem) with no header; the camera pushes through
   its black glass into the hall, the title lands on a silhouetted air-pistol shooter, the camera settles on the
   sight picture and flies the 10 m down the lane into the black aiming mark. There ten shots tear through the
   paper in slow motion. The ten glowing holes become ten pellets that lift out of the paper and float over a quiet
   contour landscape (assets/film/pellets.js, one WebGL canvas), and in the middle the page says what Aimlink is,
   with the two buttons. Then the header arrives.

   Two modes on the same markup:
   - static (default; no JS, reduced motion, Save-Data, no WebGL): poster hero with the title, header at once, then
     the pellet picture (a still of the scene) with the copy and the buttons centred over it.
   - .is-live (film.js): one sticky stage the size of the large viewport, all layers stacked, driven by scroll progress. The words
     sit in the small band at the top of that stage (100svh), so Safari's bars cover the edge instead of pushing the lines. */

@layer sections {
  .film { --film-len: 825svh;   /* 600svh until the analysis came in between the shots and the pellets (film.js, GROW), 756svh before its social end, 808svh until "Ready. Set. Aim." got more scroll (film.js, RAS_EXTRA), 913svh until the empty stretch before the landing was cut (film.js, CUT, 18 Oct 2026) */ --film-floor: 0px; position: relative; isolation: isolate; background: var(--color-night); color: var(--text); }
  .film-stage { position: relative; display: grid; }
  /* under 1024 px the phone bar (nav.css) covers the bottom 88 px */
  @media (max-width: 1023.98px) { .film { --film-floor: calc(88px + env(safe-area-inset-bottom, 0px)); } }

  /* ── Media: poster (LCP), the three scrubbed clips (film, target, and the ident over them) ── */
  .film-screen { grid-area: 1 / 1; position: relative; min-height: 100svh; overflow: clip; background: var(--color-night); }
  .film-poster, .film-poster img, .film-video { position: absolute; inset: 0; width: 100%; height: 100%; }
  .film-poster img, .film-video { object-fit: cover; object-position: 50% 50%; }   /* live: film.js frames them (style.objectPosition) */
  .film-video { opacity: 0; pointer-events: none; }
  .film-screen::after {
    /* legibility: a soft floor of night under the copy, and a whisper of vignette */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(120% 90% at 50% 45%, transparent 55%, color-mix(in srgb, var(--color-night) 55%, transparent) 100%),
      linear-gradient(180deg, color-mix(in srgb, var(--color-night) 45%, transparent) 0%, transparent 20%, transparent 52%, color-mix(in srgb, var(--color-night) 88%, transparent) 100%);
    opacity: var(--shade, 1);
  }

  /* ── The opening: the Aimlink lockup over the empty range (index.html, .film-open) ──
     Large, in the night of the hall, with a little lime: a glow behind the mark, a hairline that draws itself under the word and ends in
     a lime dot, and the tagline's last line in lime. Its motion is one GSAP timeline seeked by scroll (assets/film/open.js; film.js adds
     .has-open once it is built): until then the lockup waits unseen, and if the timeline never comes (no GSAP) film.js adds .open-static
     and the CSS entrance below plays instead. Before film.js has made the stage live, html.film-auto already shows the range, so the page
     never flashes the shooter poster first. The static page (reduced motion, Save-Data, a small window) has no lockup: the header has the
     brand. */
  .film-open { display: none; position: absolute; inset: 0; overflow: clip; z-index: 1; background: var(--color-night); }
  html.film-auto .film .film-open, .film.is-live .film-open { display: block; }
  html.film-auto .film:not(.is-live) :is(.film-poster, .hero-content) { visibility: hidden; }
  .film-open-bg, .film-open-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .film-open-bg img { object-fit: cover; object-position: 50% 50%; }
  /* a soft night under the lockup, and a breath of lime light on the floor of the hall */
  .film-open::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(52% 38% at 50% 50%, color-mix(in srgb, var(--color-night) 62%, transparent), transparent 100%),
      radial-gradient(46% 30% at 50% 58%, color-mix(in srgb, var(--color-lime) 12%, transparent), transparent 100%);
  }
  .film-open-lockup {
    --open-word: clamp(4.25rem, 2rem + 10.2vw, 9.75rem);
    position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; justify-items: center; gap: clamp(0.9rem, 0.5rem + 1.6vw, 1.75rem);
    padding: 0 var(--gutter); text-align: center; color: var(--color-snow); transform-origin: 50% 50%; visibility: hidden;
  }
  .film.has-open .film-open-lockup, .film.open-static .film-open-lockup { visibility: inherit; }   /* inherit: it goes with .film-open once that has dissolved */
  .film-open-ch { display: inline-block; will-change: transform, opacity, filter; }
  .film-open-brand {
 display: flex; align-items: center; justify-content: center; gap: 0.12em; margin: 0;
 font: 600 var(--open-word)/0.8 var(--font-display); letter-spacing: 0.035em; color: var(--color-snow);
 text-shadow: 0 4px 60px color-mix(in srgb, var(--color-night) 80%, transparent);
 }
  .film-open-mark { position: relative; display: grid; place-items: center; width: 0.8em; height: 0.8em; flex: none; margin-top: -0.05em; }
  .film-open-mark::before {
    content: ""; position: absolute; inset: -34%; border-radius: 50%; pointer-events: none; opacity: var(--open-glow, 0.55);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--color-lime) 46%, transparent), transparent);
  }
  .film-open-ring { position: absolute; inset: -4%; border-radius: 50%; pointer-events: none; opacity: 0; box-shadow: 0 0 0 2px var(--color-lime), 0 0 30px color-mix(in srgb, var(--color-lime) 60%, transparent); }
  .film-open-mark svg { position: relative; display: block; width: 100%; height: 100%; }
  .film-open-word { position: relative; display: block; padding-top: 0.06em; }   /* no overflow clip: it cut the word's soft shadow into a visible box (18 Oct 2026) */
  /* one light that passes over the word once, after it has arrived (ShinyText in React Bits, once, not on a loop) */
  .film-open-word::after {
    content: "Aimlink"; position: absolute; left: 0; top: 0; padding-top: 0.06em; color: #fff; pointer-events: none;
    -webkit-mask-image: linear-gradient(105deg, transparent 0 42%, #000 50%, transparent 58% 100%); mask-image: linear-gradient(105deg, transparent 0 42%, #000 50%, transparent 58% 100%);
    -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-position: var(--open-sx, 110%) 0; mask-position: var(--open-sx, 110%) 0;
  }
  .film-open-rule { position: relative; display: block; width: min(calc(var(--open-word) * 3.9), 78vw); height: 2px; background: color-mix(in srgb, var(--color-snow) 22%, transparent); }
  .film-open-fill { position: absolute; inset: 0; background: var(--color-lime); transform-origin: 0 50%; box-shadow: 0 0 14px color-mix(in srgb, var(--color-lime) 55%, transparent); }
  .film-open-stop { position: absolute; right: 0; top: 50%; width: 9px; height: 9px; margin: -4.5px -4.5px 0 0; }
  .film-open-dot { position: absolute; inset: 0; border-radius: 50%; background: var(--color-lime); box-shadow: 0 0 18px 2px color-mix(in srgb, var(--color-lime) 70%, transparent); }
  .film-open-pulse { position: absolute; inset: 0; border-radius: 50%; opacity: 0; box-shadow: inset 0 0 0 1px var(--color-lime); }
  .film-open-sight { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; overflow: visible; opacity: 0; }
  .film-open-sight circle { fill: none; stroke: var(--color-lime); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .film-open-sight path { fill: none; stroke: color-mix(in srgb, var(--color-snow) 85%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  /* before the timeline: the fill and the dot wait; the static fallback shows them whole */
  .film-open-fill { transform: scaleX(0); }
  .film-open-dot { transform: scale(0); }
  .film.open-static .film-open-fill { transform: none; }
  .film.open-static .film-open-dot { transform: none; }
  .film-open-tag {
 margin: 0; font: 500 clamp(1.25rem, 0.9rem + 1.5vw, 2.25rem)/1 var(--font-display); letter-spacing: 0.06em; color: var(--color-snow);
 text-shadow: 0 2px 30px color-mix(in srgb, var(--color-night) 80%, transparent);
 }
  .film-open-tag > span, .film-open-tag > em { display: inline-block; }
  .film-open-tag em { font-style: italic; color: var(--color-lime); }
  .film-open-tag > span:only-child { letter-spacing: 0.32em; margin-right: -0.32em; }   /* "Introducing": one word, set wide (the trailing space taken back) */
  @media (max-width: 599.98px) { .film-open-tag > span, .film-open-tag > em { display: block; } .film-open-tag { line-height: 1.12; } }
  /* the static fallback (no timeline): one CSS entrance */
  @media (prefers-reduced-motion: no-preference) {
    .film.open-static .film-open-mark, .film.open-static .film-open-logo { animation: film-open-mark 900ms cubic-bezier(0.2, 1.2, 0.3, 1) 120ms both; }
    .film.open-static .film-open-word { animation: film-open-word 900ms var(--ease-out) 260ms both; }
    .film.open-static .film-open-fill { animation: film-open-rule 1100ms var(--ease-out) 700ms both; }
    .film.open-static .film-open-dot { animation: film-open-dot 520ms cubic-bezier(0.2, 1.4, 0.3, 1) 1600ms both; }
    .film.open-static .film-open-tag > span, .film.open-static .film-open-tag > em { animation: film-rise 700ms var(--ease-out) both; animation-delay: calc(900ms + var(--n, 0) * 130ms); }
    .film-open-tag > span:nth-child(2) { --n: 1; }
    .film-open-tag > em { --n: 2; }
  }
  @keyframes film-open-mark { 0% { opacity: 0; transform: scale(0.82); } 100% { opacity: 1; transform: none; } }
  @keyframes film-open-word { 0% { opacity: 0; transform: translateY(0.14em) scale(1.03); } 100% { opacity: 1; transform: none; } }
  @keyframes film-open-rule { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }
  @keyframes film-open-dot { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: none; } }

  /* ── Opening copy (the page's H1) ── */
  /* .hero-content's grid, gap and padding come from site.css (and nav.css clears the phone bar) */
  .film .hero-content { grid-area: 1 / 1; align-self: end; position: relative; z-index: 2; }
  .film .h1 { max-width: 12ch; }
  .film .film-title { margin: 0; }
  .film-title em, .film-card .h2 em { font-style: normal; }
  .film .w { display: inline-block; animation: rise var(--duration-reveal) var(--ease-out) both; animation-delay: calc(120ms + var(--i) * var(--motion-stagger)); }
  /* live: the title is set by scroll (film.js), word by word, once the camera is through the lens */
  .film.is-live .w { animation: none; opacity: 0; }

  /* ── After the film: the landing, in two groups, centred ──
        1 the vision: the page's H1 and the sentence under it,
        2 the two routes: "I shoot" to GO, "I run a club" to CLUB and TARGET.
     (The brand lockup and the two buttons left the landing: the lockup opens the film, .film-open below.)
     Groups sit 24 to 48 px apart, what is inside a group 8 to 16 px (more than 3 to 1). The H1 is a 33-character sentence, so it
     takes the display L size (the documented fluid size for this page). ── */
  .film-about { --film-gap: clamp(2.25rem, 1.4rem + 2.2vw, 3rem); display: grid; gap: var(--film-gap); justify-items: center; text-align: center; width: min(100%, 64rem); margin-inline: auto; }
  /* the brand (back on the landing 18 Oct 2026): the mark and the word, a size under the H1, and its line */
  .film-id { display: grid; justify-items: center; gap: var(--space-2); }
  .film-brand {
 display: flex; align-items: center; justify-content: center; gap: 0.14em; margin: 0;
 font: 600 clamp(2.5rem, 2.1rem + 1.4vw, 3.5rem)/0.8 var(--font-display); letter-spacing: 0.02em; color: var(--color-snow);
 }
  .film-brand-mark { position: relative; display: grid; place-items: center; width: 0.74em; height: 0.74em; flex: none; margin-top: -0.04em; }
  .film-brand-mark svg { display: block; width: 100%; height: 100%; }
  .film-brand-word { display: block; padding-top: 0.06em; }
  .film-tag {
 margin: 0; font: 500 clamp(1.125rem, 0.9rem + 0.7vw, 1.5rem)/1 var(--font-display); letter-spacing: 0.03em; color: var(--color-snow);
 }
  .film-tag .hl { display: inline-block; }
  .film-tag em { font-style: italic; color: var(--color-lime); }
  .film-vision { display: grid; justify-items: center; gap: clamp(0.75rem, 0.6rem + 0.4vw, 1rem); }
  .film-h1 {
 margin: 0; max-width: none; font: var(--type-display-m-weight) var(--type-display-m-size)/var(--type-display-m-leading) var(--font-display);
 letter-spacing: var(--type-display-m-tracking); text-wrap: balance; color: var(--color-snow);
 }
  .film-h1 .film-lime, .film-h2 .film-lime { color: var(--color-lime); font-style: normal; }
  .film-h1 em { font-style: italic; color: var(--color-lime); }
  .film-h2 {
 margin: 0; max-width: none; font: var(--type-display-m-weight) var(--type-display-m-size)/var(--type-display-m-leading) var(--font-display);
 letter-spacing: var(--type-display-m-tracking); text-wrap: balance; color: var(--color-snow);
 }
  @media (max-width: 1023.98px), ((hover: none) and (pointer: coarse)) {
    .film-h2 { font-size: clamp(1.65rem, 1rem + 4.2vw, 2.15rem); }
  }
  .film-sub { margin: 0; max-width: 50ch; font-size: var(--type-lede-size); line-height: var(--type-lede-leading); color: var(--color-snow); text-wrap: balance; }
  .film-act { display: grid; justify-items: center; gap: var(--film-gap); }
  .film-routes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3) var(--space-6); }
  /* "Watch the film again" (back 18 Oct 2026): a quiet ghost button under the routes, only where there is a film to watch */
  .film-replay { display: none; }
  .film.is-live .film-replay { display: inline-flex; }
  .film.is-acting .film-about .film-replay { pointer-events: auto; }
  .film-act .btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
  .film-routes li { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); }
  .film-route-k { font: 700 var(--type-label-size)/1 var(--font-text); letter-spacing: var(--type-label-tracking); text-transform: uppercase; color: var(--color-snow); }
  .film-route-arrow { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--color-lime); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .film-route-pair { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
  .film-app {
    --accent: var(--color-lime);
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 52px; padding: 6px 20px 6px 7px; border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--color-snow) 8%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-snow) 18%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    color: var(--color-snow); font: 500 1.5rem/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase;
    transition: background-color var(--duration-hover) var(--ease-hover), box-shadow var(--duration-hover) var(--ease-hover), transform var(--duration-hover) var(--ease-hover);
  }
  .film-app img { display: block; width: 38px; height: 38px; border-radius: 11px; }
  .film-app > span { padding-top: 0.08em; }
  @media (hover: hover) and (pointer: fine) {
    .film-app:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--color-snow) 13%, transparent); box-shadow: inset 0 0 0 1.5px var(--accent), 0 8px 28px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
  }
  .film-app:active { transform: scale(var(--motion-press-scale)); }
  .film-app:focus-visible { outline: var(--line-focus) solid var(--color-lime); outline-offset: 3px; }
  /* Phones: each route is a label over its pills; the pills lose their logos on the narrowest screens so the club pair fits one line */
  @media (max-width: 599.98px) {
    .film-routes { flex-direction: column; align-items: center; gap: var(--space-3); }
    .film-routes li { gap: var(--space-2) var(--space-2); }
    .film-app { gap: 0.45rem; min-height: 46px; padding: 5px 14px 5px 5px; font-size: 1.25rem; }
    .film-app img { width: 34px; height: 34px; border-radius: 10px; }
  }
  @media (max-width: 380px) { .film-app img { display: none; } .film-app { padding-left: 16px; } }
  .film-flash { display: none; }

  /* ── The start call: "Ready. Set. Aim." (assets/film/ras.js + ras.css, built and seeked by film.js, T.ras): the empty range
        with one word at a time in the middle of the screen. It lies in the screen under the ident clip, so the logo opens onto
        it. Where it is and how big: at the foot of this file, outside the layers, since ras.css is unlayered. ── */

  /* ── Title cards: real text; in the static page they are read by screen readers only ── */
  .film-cards { list-style: none; margin: 0; padding: 0; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .film-card { display: grid; gap: var(--space-3); }
  .film-card .h2 { display: block; }
  .film-card p { font-size: var(--type-lede-size); line-height: var(--type-lede-leading); color: var(--color-snow); opacity: 0.84; max-width: 26ch; text-wrap: balance; }

  /* ── The pellet picture at rest, behind that copy (static: a still of the scene) ── */
  .film-rest {
    grid-area: 2 / 1; position: relative; isolation: isolate; overflow: clip; display: grid; align-items: center;
    min-height: min(100svh, 52rem); padding: calc(var(--section-hero) + var(--nav-space)) var(--gutter) var(--section-proof); background: var(--color-night); color: var(--text);
  }
  .film-pellets { position: absolute; inset: 0; z-index: -1; }
  .film-pellets-poster, .film-pellets-poster img { display: block; width: 100%; height: 100%; }
  .film-pellets-poster img { object-fit: cover; object-position: 50% 50%; }
  .film-pellets-canvas { display: none; }
  /* (19 Oct 2026) the still is the live landing's own picture without its words: the range at night with GO's phone on the right
     (assets/film/landing-*.webp), so the copy stands left of it, as live; on a tall screen above it, the phone low in the picture */
  @media (min-aspect-ratio: 4/5) {
    .film:not(.is-live) .film-rest .film-about { justify-items: start; text-align: left; margin-inline: max(0px, calc((100% - var(--container)) / 2)) auto; width: min(44rem, 52vw); }
    .film:not(.is-live) .film-about :is(.film-id, .film-vision, .film-act) { justify-items: start; }
    .film:not(.is-live) .film-about :is(.film-brand, .film-routes, .film-routes li) { justify-content: flex-start; }
    .film:not(.is-live) .film-about .film-h1 { max-width: none; }
  }
  @media (max-aspect-ratio: 4/5) {
    .film:not(.is-live) .film-rest { align-items: start; min-height: 100svh; padding-bottom: 46svh; }
    .film:not(.is-live) .film-pellets-poster img { object-position: 50% 100%; }
  }

  /* Coming back to the page (no intro, html.film-skip from the head script): only the landing, from the first paint */
  html.film-skip .film:not(.is-live) .film-screen, html.film-skip .film:not(.is-live) .hero-content { display: none; }
  html.film-skip .film:not(.is-live) .film-rest { min-height: 100svh; }
  html.film-skip .film-pellets { animation: film-fade 900ms var(--ease-out) backwards; }
  @keyframes film-fade { from { opacity: 0; } to { opacity: 1; } }

  .film-bars, .film-ui { display: none; }

  /* ════════════════════════ Live: one sticky stage ════════════════════════ */
  .film.is-live { height: calc(100lvh + var(--film-len)); }
  /* When the three-device scene follows (index.html), the film does not scroll away: the stage stays pinned for
     one more screen while the scene's page slides up over it (devices.css pulls the scene up by that screen).
     film.js reads the pull, keeps it out of the film's own timeline, and lets the stage step back under the page. */
  .film.is-live:has(+ .showcase) { height: calc(200lvh + var(--film-len)); }
  /* .is-done is the skipped landing (a return visit, a link to a section): the long scroll is not there. While the film is live
     it stays at full length, so scrolling up from the landing runs it backwards. */
  .film.is-live.is-done { height: 100svh; }
  .film.is-live.is-done:has(+ .showcase) { height: 200svh; }
  /* 100lvh is the tall, stable screen (bars included). It does not resize when Safari brings the browser back, so the picture
     stays (film.js measures it once, lockFilmHeight). The words are placed in the 100svh band at the top, the part that stays
     visible either way. */
  .film.is-live .film-stage { position: sticky; top: 0; height: 100lvh; overflow: clip; display: block; contain: strict; }
  .film.is-live.is-done .film-stage { height: 100svh; }
  /* (contain: strict: the stage is its own layout root, so a change inside it, a word, a count, a card, is laid out within it and
     not by walking the whole page, polish 2026-10-15; its size is fixed and it clips anyway) */
  .film.is-live .film-screen { position: absolute; inset: 0; min-height: 0; }
  /* the opening copy is only the title; once it has faded it still lies over the stage, so it must not catch the
     clicks meant for the two buttons at the end */
  .film.is-live .hero-content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none; }
  .film.is-live:not(.is-done) .hero-content { bottom: max(0px, calc(100lvh - 100svh)); }
  /* cards: left third on wide screens (the sights sit in the centre), low on phones */
  .film.is-live .film-cards {
    position: absolute; left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 100svh; overflow: visible; clip-path: none; white-space: normal;
    pointer-events: none; z-index: 3;
  }
  .film.is-live .film-card {
    position: absolute; left: max(var(--gutter), calc((100% - var(--container)) / 2));
    --card-lift: 0px;
    bottom: calc(max(var(--bar-h, 0px), var(--film-floor)) + clamp(2rem, 6svh, 4rem) + var(--card-lift)); max-width: min(34rem, 84vw);
    opacity: 0; color: var(--color-snow);
  }
  .film.is-live .film-card::before {
    content: ""; position: absolute; z-index: -1; inset: -45% -40% -45% -30%; pointer-events: none;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--color-night) 66%, transparent), transparent);
  }
  .film.is-live .film-card p:not(.h2) { text-shadow: 0 1px 12px color-mix(in srgb, var(--color-night) 80%, transparent); }
  .film.is-live .film-card .h2 { font-size: var(--type-display-xl-size); line-height: var(--type-display-xl-leading); letter-spacing: var(--type-display-xl-tracking); text-shadow: 0 2px 30px color-mix(in srgb, var(--color-night) 70%, transparent); max-width: none; }
  .film.is-live .film-card em { opacity: 0; }
  @media (min-width: 1024px) {
    .film.is-live .film-card { bottom: auto; top: 50%; translate: 0 -50%; max-width: none; }
    .film.is-live .film-card:nth-child(1) { top: calc(50% + 12svh); }
    .film.is-live .film-card:nth-child(2) { top: calc(50% + 8svh); }
    .film.is-live .film-card:nth-child(3) { top: calc(50% + 4svh); }
    .film.is-live .film-card .h2 { text-wrap: nowrap; white-space: nowrap; }
    .film-card .film-lead { margin-right: 0.28em; }
  }
  @media (max-width: 1023.98px) {
    .film.is-live .film-card:nth-child(1) { --card-lift: 4svh; }
    .film.is-live .film-card:nth-child(2) { --card-lift: 8svh; }
    .film.is-live .film-card:nth-child(3) { --card-lift: 12svh; }
  }

  /* The pellet scene: one canvas over the film (film.js fades it in over the target clip's last frame, where the
     ten holes glow, and draws it while it is on screen). Where WebGL is missing, the still stands in. Nothing in
     this layer is interactive but the two buttons; it must never catch clicks meant for anything else. */
  .film.is-live .film-rest { position: absolute; inset: 0; display: block; padding: 0; min-height: 0; overflow: visible; background: none; color: var(--text); max-width: none; margin: 0; pointer-events: none; }
  .film.is-live .film-pellets { z-index: 1; opacity: 0; visibility: hidden; }
  .film.is-live .film-pellets-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .film.is-live .film-pellets.has-gl .film-pellets-poster { display: none; }
  .film.is-live .film-pellets-poster { visibility: hidden; }   /* the still has pellets in it; live, the landscape alone (setPellets(false)) is the background */

  /* The landing: AIMLINK, what it is, the apps, in the middle of the stage over the scene. It is not scrubbed: when the
     film has landed (film.js adds .is-landed) it clicks in: a flash and a ring from the mark, the mark recoils, the
     word snaps tight, then the lines and the apps rise one after the other. */
  .film.is-live .film-about {
    position: absolute; left: 50%; top: calc(50% - var(--film-floor) / 2); translate: -50% -50%; z-index: 2; visibility: hidden;
    width: min(64rem, calc(100% - 2 * var(--gutter)));
  }
  .film.is-live:not(.is-done) .film-about { top: calc(50svh - var(--film-floor) / 2); }
  /* 19 Oct 2026 (Tinus): the film ends on the range with GO's phone on the right (live.js keeps it there, --lv-left is its left edge),
     and the landing comes in where "Turn target shooting into live data." stood: left of the phone, left-aligned. On a tall screen
     it takes the top of the screen and the phone steps down under it (--lv-top: the phone's top). */
  @media (min-aspect-ratio: 4/5) {
    .film.is-live .film-about {
      --land-x: max(var(--gutter), calc((100% - var(--container)) / 2), 5vw);
      left: var(--land-x); translate: 0 -50%; justify-items: start; text-align: left;
      width: min(44rem, calc(var(--lv-left, 62vw) - var(--land-x) - clamp(1.5rem, 4vw, 4rem)));
    }
    .film.is-live .film-about :is(.film-id, .film-vision, .film-act) { justify-items: start; }
    .film.is-live .film-about .film-brand { justify-content: flex-start; }
    .film.is-live .film-about .film-h1 { max-width: none; text-wrap: balance; }
    .film.is-live .film-about .film-routes { justify-content: flex-start; }
    .film.is-live .film-about .film-routes li { justify-content: flex-start; }
    .film.is-live .film-flash { background: radial-gradient(48% 60% at 28% 50%, color-mix(in srgb, var(--color-lime) 30%, transparent), color-mix(in srgb, var(--color-lime) 6%, transparent) 55%, transparent 80%); }
  }
  @media (max-aspect-ratio: 4/5) {
    .film.is-live .film-about {
      --film-gap: clamp(1.25rem, 3.2svh, 2rem);
      --land-top: max(4.5rem, 8svh);
      top: calc((var(--land-top) + var(--lv-top, 60svh)) / 2);
      translate: -50% -50%;
      max-height: calc(var(--lv-top, 60svh) - var(--land-top) - 0.75rem);
    }
    .film.is-live:not(.is-done) .film-about { top: calc((max(4.5rem, 8svh) + var(--lv-top, 60svh)) / 2); }
  }
  .film.is-live.is-landed .film-about { visibility: visible; }
  .film.is-live .film-brand-mark, .film.is-live .film-brand-word, .film.is-live .film-tag .hl, .film.is-live .film-vision, .film.is-live .film-act { opacity: 0; }
  .film.is-live.is-landed .film-brand-mark,
  .film.is-live.is-landed .film-brand-word,
  .film.is-live.is-landed .film-tag .hl,
  .film.is-live.is-landed .film-vision,
  .film.is-live.is-landed .film-act { opacity: 1; }
  /* the landing's click (DESIGN.md, Impact pulse: the film landing is one of its causes): the mark recoils and a lime ring leaves it */
  .film-brand-mark::after {
    content: ""; position: absolute; inset: -6%; border-radius: 50%; pointer-events: none; opacity: 0;
    box-shadow: 0 0 0 2px var(--color-lime), 0 0 38px color-mix(in srgb, var(--color-lime) 60%, transparent);
  }
  .film.is-acting .film-about a { pointer-events: auto; }
  .film.is-live .film-flash {
    display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
    background: radial-gradient(60% 55% at 50% 46%, color-mix(in srgb, var(--color-lime) 38%, transparent), color-mix(in srgb, var(--color-lime) 8%, transparent) 55%, transparent 80%);
  }
  @media (prefers-reduced-motion: no-preference) {
    .film.is-live.is-landed:not(.is-still) .film-flash { animation: film-flash 620ms var(--ease-out) both; }
    .film.is-live.is-landed:not(.is-still) .film-brand-mark { animation: film-mark 640ms cubic-bezier(0.2, 1.3, 0.3, 1) both; }
    .film.is-live.is-landed:not(.is-still) .film-brand-mark::after { animation: film-ring 760ms var(--ease-out) both; }
    .film.is-live.is-landed:not(.is-still) .film-brand-word { animation: film-snap 480ms var(--ease-out) both; }
    .film.is-live.is-landed:not(.is-still) .film-tag .hl { animation: film-rise 560ms var(--ease-out) both; animation-delay: calc(240ms + var(--n, 0) * 90ms); }
    .film.is-live .film-tag .hl:nth-child(2) { --n: 1; }
    .film.is-live .film-tag .hl:nth-child(3) { --n: 2; }
    .film.is-live.is-landed:not(.is-still) .film-vision { animation: film-rise 600ms var(--ease-out) 460ms both; }
    .film.is-live.is-landed:not(.is-still) .film-act { animation: film-rise 600ms var(--ease-out) 680ms both; }
  }
  /* with GSAP the landing's text has its own entrance (film.js: the H1 letter by letter from a blur, the sentence word by word, the
     routes one after the other); the two groups then only need to be there */
  .film.has-gsap.is-live.is-landed .film-vision, .film.has-gsap.is-live.is-landed .film-act { animation: none; }
  .film-h1 .fl-w, .film-h2 .fl-w, .film-sub .fl-w { display: inline-block; white-space: nowrap; }
  /* ... and wait for it: each piece is hidden until its own tween takes it (GSAP writes the rest inline; a staggered tween that has not
     started yet would otherwise show its piece and then snap it away) */
  .film.has-gsap.is-live .film-h1 .fl-c, .film.has-gsap.is-live .film-h2 .fl-w, .film.has-gsap.is-live .film-sub .fl-w,
  .film.has-gsap.is-live .film-routes :is(.film-route-k, .film-app, .film-route-arrow), .film.has-gsap.is-live .film-act .film-replay { opacity: 0; }
  .film-h1 .fl-c { display: inline-block; }
  .film-h1 em .fl-c { padding-right: 0.02em; }   /* the slanted letters keep their overhang */
  @keyframes film-flash { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes film-mark { 0% { opacity: 0; transform: scale(1.45); } 30% { opacity: 1; } 55% { transform: scale(0.88); } 100% { opacity: 1; transform: scale(1); } }
  @keyframes film-ring { 0% { opacity: 0.95; transform: scale(0.7); } 100% { opacity: 0; transform: scale(2.6); } }
  @keyframes film-snap { 0% { opacity: 0; transform: scale(1.035); } 55% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
  /* beside the phone the brand comes in from its side too: AIMLINK slides in tracked wide and out of a blur, and pulls tight */
  @keyframes film-sweep { 0% { opacity: 0; transform: translateX(1.4em); letter-spacing: 0.32em; filter: blur(10px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: none; letter-spacing: 0.02em; filter: none; } }
  @media (prefers-reduced-motion: no-preference) and (min-aspect-ratio: 4/5) {
    .film.is-live.is-landed:not(.is-still) .film-brand-word { animation: film-sweep 820ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  }
  @keyframes film-rise { 0% { opacity: 0; transform: translateY(0.45em); } 100% { opacity: 1; transform: none; } }

  /* letterbox: scope 2.39:1 on wide screens, none on tall ones */
  .film.is-live .film-bars { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
  .film.is-live .film-bars::before, .film.is-live .film-bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: var(--bar-h); background: #05080B;
    transform: scaleY(var(--bars, 0));   /* --bars is set on .film-bars itself (film.js), so only these two inherit it */
  }
  .film.is-live .film-bars::before { top: 0; transform-origin: 50% 0; }
  .film.is-live .film-bars::after { bottom: 0; transform-origin: 50% 100%; }
  .film.is-live .film-stage { --bar-h: 0px; }
  @media (min-aspect-ratio: 4/3) { .film.is-live .film-stage { --bar-h: max(0px, calc((100svh - 100vw / 2.39) / 2)); } }

  /* loader line + sound toggle */
  .film.is-live .film-ui { display: block; position: absolute; inset: 0; z-index: 4; pointer-events: none; }
  .film-load { position: absolute; left: 0; right: 0; bottom: var(--film-floor); height: 2px; background: var(--color-lime); transform-origin: 0 50%; transform: scaleX(var(--loaded, 0)); transition: opacity 600ms var(--ease-out); }
  .film-load.is-done { opacity: 0; }
  .film-sound {
    pointer-events: auto; position: relative;   /* in the row at the top right (auto.css, .film-chrome) */
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0 16px; margin: 0;
    border: 0; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--color-night) 55%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-snow) 28%, transparent);
    color: var(--color-snow); font: 500 0.875rem/1 var(--font-text); cursor: pointer;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: opacity 400ms var(--ease-out), box-shadow var(--duration-hover) var(--ease-hover);
  }
  .film-sound:focus-visible { outline: var(--line-focus) solid var(--color-lime); outline-offset: 3px; }
  @media (hover: hover) and (pointer: fine) { .film-sound:hover { box-shadow: inset 0 0 0 1px var(--color-snow); } }
  .film-sound .eq { display: inline-flex; align-items: end; gap: 2px; height: 12px; }
  .film-sound .eq i { display: block; width: 2px; height: 4px; background: currentColor; border-radius: 1px; }
  .film-sound[aria-pressed="true"] .eq i { background: var(--color-lime); animation: film-eq 900ms var(--ease-out) infinite alternate; }
  .film-sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -300ms; }
  .film-sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -600ms; }
  @keyframes film-eq { from { height: 3px; } to { height: 12px; } }
  .film-sound .speaker { display: none; width: 22px; height: 22px; fill: currentColor; }
  .film-sound .speaker .slash { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .film-sound[aria-pressed="true"] .speaker .slash { display: none; }
  @media (prefers-reduced-transparency: reduce) { .film-sound { background: var(--color-night); -webkit-backdrop-filter: none; backdrop-filter: none; } }

  /* "Scroll for more" (ShinyText from React Bits for the words, a rail with a travelling light under them): over the ident and the start
     call, gone once the film proper rolls (.is-intro, film.js). A press starts or pauses the film (auto.js). It lives in a dock that is
     fixed to the visible screen, not in the stage (the stage is the large viewport, so its bottom edge can lie under Safari's bar); film.js
     (placeDock) moves it only once the bar has stopped moving. No blur and no translate on this layer: both make iOS repaint it a frame late. */
  .film-dock {
    display: none; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; justify-content: center; pointer-events: none;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + 0.75rem);
    opacity: 0; transition: opacity 400ms var(--ease-out);
  }
  .film-dock.is-set { transition: top 450ms var(--ease-out), opacity 400ms var(--ease-out); }
  html:has(.film.is-live) .film-dock { display: flex; }
  html:has(.film.is-live.is-intro:not(.is-done)) .film-dock { opacity: 1; transition: opacity 700ms var(--ease-out) 900ms; }
  html:has(.film.is-live.is-intro:not(.is-done)) .film-dock.is-set { transition: top 450ms var(--ease-out), opacity 700ms var(--ease-out) 900ms; }
  .film-more {
    -webkit-appearance: none; appearance: none; display: grid; justify-items: center; gap: 12px; min-width: 44px; min-height: 44px; margin: 0; padding: 6px 22px 0;
    border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    font: 500 0.75rem/1 var(--font-text); letter-spacing: 0.24em; text-transform: uppercase; color: color-mix(in srgb, var(--color-snow) 62%, transparent);
    pointer-events: none; visibility: hidden; transition: visibility 0s linear 400ms;
  }
  html:has(.film.is-live.is-intro:not(.is-done)) .film-more { pointer-events: auto; visibility: visible; transition: none; }
  .film-more:focus-visible { outline: var(--line-focus) solid var(--color-lime); outline-offset: 4px; border-radius: var(--radius-pill); }
  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .film-more-t {
      background-image: linear-gradient(110deg, transparent 38%, var(--color-white) 50%, transparent 62%), linear-gradient(currentColor, currentColor);
      background-size: 250% 100%, 100% 100%; background-position: 150% 0, 0 0; background-repeat: no-repeat;
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
      animation: film-more-shine 3.4s linear infinite;
    }
  }
  @keyframes film-more-shine { from { background-position: 150% 0, 0 0; } to { background-position: -50% 0, 0 0; } }
  .film-more-rail { position: relative; display: block; width: 1px; height: 40px; overflow: hidden; background: color-mix(in srgb, var(--color-snow) 22%, transparent); }
  .film-more-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 45%; background: linear-gradient(to bottom, transparent, var(--color-lime)); animation: film-more-run 1.9s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
  @keyframes film-more-run { from { transform: translateY(-100%); } to { transform: translateY(230%); } }
  .film-more[data-paused] .film-more-t, .film-more[data-paused] .film-more-rail i { animation-play-state: paused; }   /* the film is held: so is the light */
  /* hidden once the film has played (or was skipped): its two endless loops rest too, instead of being restyled on every frame of
     the rest of the visit (go-live review, 3 Nov 2026: about 280 needless style recalculations in a few seconds of hovering Built for) */
  html:not(:has(.film.is-live.is-intro:not(.is-done))) :is(.film-more-t, .film-more-rail i) { animation-play-state: paused; }
  @media (hover: hover) and (pointer: fine) { .film-more:hover { color: var(--color-snow); } }
  @media (prefers-reduced-motion: reduce) {
    .film-more-t, .film-more-rail i { animation: none; }
    .film-more-rail i { transform: translateY(40%); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .film .w { animation: none; }
}

/* The header waits for the film (film.js sets html.film-veil, and the two bars' own opacity, 0 to 1 as the strips hand over:
   inline, on the bars, never as a property on <html> that the whole page would inherit). Until film.js runs the veil is 0.
   Unlayered on purpose, so it wins over nav.css; a keyboard user who tabs into the bar gets it at once (!important: it must
   beat the inline opacity). */
html.film-veil .site-header, html.film-veil .mtop { opacity: 0; }
html.film-veil .site-header *, html.film-veil .mtop * { pointer-events: none; }
html.film-veil .site-header:focus-within { opacity: 1 !important; }

/* Touch targets: the film's own controls are at least 44 x 44 (review pass) */
.film .film-routes .film-app { min-height: 48px; }

/* The start call's place on the stage (ras.css is unlayered, so this is too; see "The start call" above). The word size is
   the only number ras.css needs. */
.film:not(.is-live) .film-ras { display: none; }
.film.is-live .film-ras { font-size: min(8.4vw, 22svh); visibility: hidden; }   /* the three words stand in one quiet line */
@media (max-aspect-ratio: 4/5) { .film.is-live .film-ras { font-size: min(20vw, 12.5svh); } }   /* ... one under the other on a phone */

/* The green word takes the next line on a phone. A Pixel can report a layout width over 1024, so the cut is the
   phone itself (coarse, no hover), not only the 1024 bar. A wide screen with a mouse keeps one line. */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .film-break { display: none; }
}
@media (max-width: 1023.98px), ((hover: none) and (pointer: coarse)) {
  .film-card .h2, .lv-words { white-space: normal; text-wrap: wrap; }
  .lv-words > span + span { margin-left: 0; }
}
