@font-face {
  font-family: Handjet;
  src: url("/fonts/handjet-400-solid.woff2") format("woff2"), url("/fonts/handjet-400-solid.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Handjet;
  src: url("/fonts/handjet-500-solid.woff2") format("woff2"), url("/fonts/handjet-500-solid.ttf") format("truetype");
  font-display: swap;
  font-weight: 500;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono.woff2") format("woff2"), url("/fonts/ibm-plex-mono.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Pixelify;
  src: url("/fonts/pixelify-sans-cyrillic.woff2") format("woff2"), url("/fonts/pixelify-sans-cyrillic.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}
@property --feedback-scale {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
:root {
  --color-bg: #111111;
  --color-surface: #222222;
  --color-white: #eeeeee;
  --color-muted: #dddddd;
  --color-screen: #c7c7c7;
  --color-acid: #ffffff;
  --color-secondary: #eeeeee;
  --motion: 340ms;
  --mobile-bottom-inset: env(safe-area-inset-bottom, 0px);
  --mobile-nav-height: 56px;
  --ease: cubic-bezier(0.2, 0.9, 0.25, 1.12);
  font-family: "IBM Plex Mono", monospace;
  color: var(--color-bg);
  background: var(--film-chrome-color, var(--color-screen));
  font-synthesis: none;
  font-variation-settings:
    "ELGR" 1,
    "ELSH" 2,
    "wght" 400;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--film-chrome-color, var(--color-screen));
}
/* iOS can sample the page background instead of theme-color when rebuilding
   its system chrome. The installed shell matches the opaque black header;
   the screen itself continues to paint the selected palette. */
:root.is-installed-app,
:root.is-installed-app body { background: #000; }
html,
body {
  height: 100%;
  overflow: hidden;
}
@media (any-pointer: coarse) {
  html, body { touch-action: pan-x pan-y; }
}
@media (max-width: 700px), (pointer: coarse) {
  *, *::before, *::after {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
  }
  input, textarea, [contenteditable="true"] {
    -webkit-user-select: text;
    user-select: text;
  }
}
button {
  font: inherit;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-acid);
  outline-offset: 5px;
}
button:disabled:focus-visible {
  outline: none;
}
button img {
  pointer-events: none;
}
/* Keep interaction scaling separate from menu paths and catalog springs. */
button {
  --feedback-scale: 1;
  --feedback-hover: 1.045;
  --feedback-pressed: 0.95;
  transition: --feedback-scale 380ms cubic-bezier(0.22, 1.5, 0.36, 1);
}
button:not(.category):not(.film-option):not(.header-link):not(.brand) {
  transform-origin: center;
  transform: scale(var(--feedback-scale));
}
.category {
  --feedback-hover: 1.075;
  --feedback-pressed: 0.92;
}
.film-option {
  --feedback-hover: 1.035;
  --feedback-pressed: 0.965;
}
@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover {
    --feedback-scale: var(--feedback-hover);
  }
}
button:not(:disabled):focus-visible {
  --feedback-scale: var(--feedback-hover);
}
button:not(:disabled):active {
  --feedback-scale: var(--feedback-pressed);
  transition: --feedback-scale 100ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
::selection {
  background: var(--color-acid);
  color: var(--color-bg);
}
.header {
  height: 36px;
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: repeating-linear-gradient(
    to bottom,
    #bcbcbc80 0 1px,
    #000 1px 5px
  );
  background-color: #000;
  background-size: 100% 26px;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 4px 56px 4px 22px;
  font-family: Handjet, monospace;
  font-size: 26px;
  line-height: 28px;
}
.header nav {
  display: flex;
  gap: 32px;
}
.header-link {
  /* Center the visible Handjet glyphs, accounting for its font metrics. */
  translate: 0 -1px;
}
.header-link {
  padding: 0 4.8px;
  background: #000;
  color: #fff;
  letter-spacing: 2.5px;
  white-space: nowrap;
}
.header-link:not(:disabled):hover {
  color: var(--color-acid);
}
.header-link span,
.brand span {
  display: block;
  transform: scale(var(--feedback-scale));
  transform-origin: center;
}
.brand {
  margin-left: auto;
  background: var(--color-acid);
  padding: 0 6px;
  white-space: nowrap;
}
.brand span {
  display: block;
  /* Latin capitals have different visible bounds from the bracketed labels. */
  translate: 0 0.5px;
}
/* Surface film covers text, images, menus and the moving detail card alike.
   No backdrop-filter or animated noise: scrolling/media keep their own layers. */
:root {
  --eink-surface-image: image-set(url('/assets/eink-surface-desktop-1x.png') 1x, url('/assets/eink-surface-desktop-2x.png') 2x, url('/assets/eink-surface-desktop-3x.png') 3x);
}
:root[data-eink='on'] body::before {
  content: '';
  position: fixed;
  /* Keep the textured composited layer away from Safari's top-edge sampler. */
  inset: 36px 0 0;
  z-index: 100;
  pointer-events: none;
  contain: strict;
  will-change: transform;
  background-image: var(--eink-surface-image);
  background-size: 192px 192px;
}
/* Match a grain speck to a physical phone pixel rather than a CSS pixel.
   Desktop texture keeps its original scale. The pixel lattice is independent. */
@media (max-width: 700px) and (min-resolution: 2dppx) {
  :root { --eink-surface-image: url('/assets/eink-surface-mobile-2x.png'); }
}
@media (max-width: 700px) and (min-resolution: 3dppx) {
  :root { --eink-surface-image: url('/assets/eink-surface-mobile-3x.png'); }
}
:root[data-eink='on'] body,
:root[data-eink='on'] :where(button, h1, h2, h3, h4, p, a, li, dt, dd, figcaption, label, .film-poster-name, .category-label, .mobile-category-label) {
  text-shadow: .35px .7px .35px rgb(0 0 0 / 22%), .7px 1.5px .5px rgb(0 0 0 / 8%);
}
/* Keep moving cards, text and stripes out of offscreen filter surfaces. */
:root[data-eink='on'] .category img {
  filter: drop-shadow(.5px 1px .4px rgb(0 0 0 / 23%));
}
:root[data-eink='on'] .film-window,
:root[data-eink='on'] button:not(.category):not(.film-option):not(.brand):not(.material-all) {
  box-shadow: .7px 1.5px .65px rgb(0 0 0 / 25%);
}
:root[data-eink='on'] .header { box-shadow: 0 1.5px 1px rgb(0 0 0 / 30%); }
:root[data-eink='on'] .film-option {
  overflow: visible;
}
/* Reuse the existing crop/selection contour instead of adding a second moving
   layer. Its outer shadow remains visible on inactive posters too. */
:root[data-eink='on'] .film-option::after {
  --eink-poster-outline: transparent;
  /* Follow the existing spring, rather than starting another transition. */
  --eink-lift: clamp(0, calc((var(--poster-render-scale, 1) - 1) / (var(--poster-selected-scale, 1.616664) - 1)), 1);
  --eink-outline-width: calc(var(--catalog-stroke, 2px) / var(--poster-render-scale, var(--poster-selected-scale, 1.616664)));
  display: block;
  opacity: 1;
  border: 0;
  box-shadow: inset 0 0 0 var(--eink-outline-width) var(--eink-poster-outline),
    calc(.7px + .4px * var(--eink-lift)) calc(1.5px + 1.5px * var(--eink-lift)) calc(.8px + 3.2px * var(--eink-lift)) rgb(0 0 0 / calc(.3 - .12 * var(--eink-lift))),
    1px calc(2px + 2px * var(--eink-lift)) calc(1.5px + 4.5px * var(--eink-lift)) rgb(0 0 0 / 10%);
}
:root[data-eink='on'] .film-option[aria-selected='true']::after {
  --eink-poster-outline: var(--color-acid);
}
:root[data-eink='on'] .is-grid .film-option::after {
  --eink-poster-outline: transparent;
  --eink-lift: 0;
}
@media (max-width: 700px) {
  .film-option .catalog-video.is-ready { opacity: .001; }
  .catalog-video-effect { position: fixed; z-index: 20; pointer-events: none; opacity: 0; transition: opacity 20ms linear; }
  .catalog-video-effect.is-ready { opacity: var(--catalog-effect-alpha, 1); transition: none; }
  .catalog-effect-title { position: fixed; z-index: 21; display: flex; align-items: center; justify-content: center; pointer-events: none; background: #000; border: 1px solid rgba(255,255,255,.9); opacity: 0; font-family: Handjet, monospace; color: #fff; }
  .catalog-effect-title canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .catalog-effect-title span { position: relative; display: block; max-width: 100%; padding: 0 .22em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
  .film-option.has-effect-title .film-poster-name { visibility: hidden; }
  .catalog-effect-title i { position: absolute; z-index: 2; width: 2px; height: 2px; background: #fff; }
  .catalog-effect-title i:nth-of-type(1) { left: -1px; top: -1px; }
  .catalog-effect-title i:nth-of-type(2) { right: -1px; top: -1px; }
  .catalog-effect-title i:nth-of-type(3) { left: -1px; bottom: -1px; }
  .catalog-effect-title i:nth-of-type(4) { right: -1px; bottom: -1px; }
  .catalog-effect-title::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: #fff; }
  .catalog-effect-title.is-ready { opacity: var(--catalog-effect-alpha, 1); animation: catalog-title-enter 280ms cubic-bezier(.16,1,.3,1) both; }
  .catalog-effect-title.is-ready::after { animation: catalog-title-flash 190ms linear both; }
  @keyframes catalog-title-enter { from { transform: scale(1.08); } to { transform: scale(1); } }
  @keyframes catalog-title-flash { 0%, 22% { opacity: .92; } 24%, 44% { opacity: 0; } 46%, 68% { opacity: .85; } 100% { opacity: 0; } }
  .has-open-film .catalog-video-effect, .has-open-film .catalog-effect-title { visibility: hidden; }
  :root[data-eink='on'] .film-option[aria-selected]::after {
    --eink-lift: clamp(0, var(--mobile-activation, 0), 1);
    --eink-outline-width: 2px;
    --eink-poster-outline: color-mix(in srgb, var(--color-acid) calc(var(--mobile-activation, 0) * 100%), transparent);
  }
}
/* The toolbar's full-width opaque mobile background must stay flush with the
   navigation. Only its individual buttons receive a surface shadow. */
:root[data-eink='on'] .catalog-toolbar { filter: none; }
/* The moving dialog carries this exact shadow until the poster is revealed. */
@media (max-width: 700px) {
  body:has(.film-expanded[open]) .film-option[data-film][aria-selected='true']::after { visibility: hidden; }
}
body:has(.film-expanded.from-grid[open]) .film-option[data-film][aria-selected='true']::after { visibility: hidden; }
.screen {
  position: fixed;
  inset: 36px 0 0;
  overflow: hidden;
  background: var(--color-screen);
}
/* Keep the screen vignette above the detail backdrop too. Otherwise its
   mobile bottom edge cuts the soft shadow into a visible horizontal seam. */
body::after {
  content: "";
  position: fixed;
  inset: 36px 0 0;
  z-index: 28;
  pointer-events: none;
  box-shadow:
    inset 0 0 28px 4px rgb(21 21 21 / 38%),
    inset 0 0 7px 1px rgb(21 21 21 / 32%);
}
.mobile-panel-surface { display: none; }
.stage {
  width: 1920px;
  height: var(--stage-height, 1044px);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center;
}
@supports (zoom: 1) {
  @media (min-width: 701px) {
    .stage {
      /* Lay out and rasterize at the displayed size instead of scaling a
         cached artboard texture, which softens text and posters in Chromium. */
      zoom: var(--scale, 1);
      transform: translate(-50%, -50%);
    }
  }
}
.categories {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  perspective: 1000px;
}
.category {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  background: none;
  pointer-events: auto;
  transform-origin: 0 0;
  -webkit-tap-highlight-color: transparent;
}
.category img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mobile-category-label { display: none; }
.category-label {
  position: absolute;
  top: 594px;
  left: var(--label-home-x);
  pointer-events: none;
  transform: translate(-50%, 4px);
  font-family: Pixelify, monospace;
  font-size: 22px;
  opacity: 0;
  white-space: nowrap;
  transition:
    opacity 120ms,
    transform 200ms var(--ease);
}
.category-label small {
  display: block;
  font:
    12px "IBM Plex Mono",
    monospace;
  margin-top: 4px;
  opacity: 0.6;
}
.category:hover + .category-label,
.category:focus-visible + .category-label {
  opacity: 1;
  transform: translate(-50%, 0);
}
.category-label[data-label="cinema"] { --label-home-x: 592px; --label-open-x: 241px; }
.category-label[data-label="video"] { --label-home-x: 776px; --label-open-x: 420px; }
.category-label[data-label="clips"] { --label-home-x: 960px; --label-open-x: 530px; }
.category-label[data-label="advertising"] { --label-home-x: 1144px; --label-open-x: 640px; }
.category-label[data-label="misc"] { --label-home-x: 1328px; --label-open-x: 750px; }
.is-cinema .category-label {
  left: var(--label-open-x);
  top: 187px;
}
.category-cinema {
  width: 144px;
  height: 144px;
  transform: translate(var(--menu-home-cinema-x, 520px), var(--menu-home-cinema-y, 450px)) scale(var(--menu-home-cinema-scale, 1));
}
.category-video {
  width: 144px;
  height: 144px;
  transform: translate(var(--menu-home-video-x, 704px), var(--menu-home-video-y, 450px)) scale(var(--menu-home-video-scale, 1));
}
.category-clips {
  width: 144px;
  height: 144px;
  transform: translate(var(--menu-home-clips-x, 888px), var(--menu-home-clips-y, 450px)) scale(var(--menu-home-clips-scale, 1));
}
.category-advertising {
  width: 144px;
  height: 144px;
  transform: translate(var(--menu-home-advertising-x, 1072px), var(--menu-home-advertising-y, 450px)) scale(var(--menu-home-advertising-scale, 1));
}
.category-misc {
  width: 144px;
  height: 144px;
  transform: translate(var(--menu-home-misc-x, 1256px), var(--menu-home-misc-y, 450px)) scale(var(--menu-home-misc-scale, 1));
}
.category img {
  transform-origin: center;
  transform: scale(var(--feedback-scale));
  transition: opacity 200ms ease;
}
.is-cinema .category:not(.category-cinema) img {
  opacity: 0.5;
}
.is-cinema .category-cinema {
  transform: translate(var(--menu-cinema-cinema-x, 39.24px), var(--menu-cinema-cinema-y, -6.4px)) scale(var(--menu-cinema-cinema-scale, 1.82));
}
@media (min-width: 701px) {
  /* Keep the icon/animation intact; the transparent SVG padding must not
     intercept clicks in the filter toolbar beneath the enlarged cinema icon. */
  .is-cinema .category-cinema { pointer-events: none; }
  .is-cinema .category-cinema::before {
    content: '';
    position: absolute;
    inset: 22px 0;
    pointer-events: auto;
  }
}
.is-cinema .category-video {
  transform: translate(var(--menu-cinema-video-x, 316px), var(--menu-cinema-video-y, 32px)) scale(var(--menu-cinema-video-scale, 0.6));
}
.is-cinema .category-clips {
  transform: translate(var(--menu-cinema-clips-x, 426px), var(--menu-cinema-clips-y, 32px)) scale(var(--menu-cinema-clips-scale, 0.6));
}
.is-cinema .category-advertising {
  transform: translate(var(--menu-cinema-advertising-x, 536px), var(--menu-cinema-advertising-y, 32px)) scale(var(--menu-cinema-advertising-scale, 0.6));
}
.is-cinema .category-misc {
  transform: translate(var(--menu-cinema-misc-x, 646px), var(--menu-cinema-misc-y, 32px)) scale(var(--menu-cinema-misc-scale, 0.6));
}
.is-cinema .category-label[data-label="cinema"] {
  display: none;
}
.cinema {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 180ms ease,
    transform var(--motion) var(--ease),
    visibility 0s 280ms;
}
.is-cinema .cinema {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 65ms, 65ms, 0s;
}
.category-title {
  position: absolute;
  left: 324px;
  top: 160px;
  width: 144px;
  margin: 0;
  text-align: left;
  font:
    50px/50px Pixelify,
    monospace;
  font-weight: 400;
}
.catalog-toolbar {
  position: absolute;
  /* Match the poster rail: 56px viewport offset + 16px inner padding.
     Center the 48px bar between the heading (210px) and poster (305px). */
  left: 72px;
  top: 233.5px;
  z-index: 8;
  width: 682px;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 4px 0 11px;
  background: url('/assets/toolbar/neutral.png') left center / 682px 48px no-repeat;
}
.catalog-filters, .catalog-views { display: flex; align-items: center; }
.catalog-filters { gap: 13px; }
.catalog-views { gap: 8px; }
.catalog-toolbar button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 16px;
  font: 400 24px/27px Handjet, monospace;
  color: var(--color-muted);
  background: rgb(17 17 17 / 50%);
  border: 0;
  white-space: nowrap;
}
.catalog-toolbar button[aria-pressed='true'] { background: var(--color-bg); color: var(--color-white); }
.catalog-toolbar button:focus-visible { outline: 2px solid var(--color-acid); outline-offset: 3px; }
.catalog-views button { width: 36px; padding: 4px 8px; background: transparent; }
.catalog-views button:disabled { opacity: 1; cursor: default; }
.catalog-views img { display: block; width: 20px; height: 20px; filter: grayscale(1); }
.catalog-views button[aria-pressed='true'] img { filter: grayscale(1) brightness(0) invert(1); }
.film-viewport,
.film-detail-viewport {
  position: absolute;
  top: 269px;
  height: calc(var(--stage-height, 1044px) - 269px);
  overflow: hidden;
  mask-image: none;
  mask-size: 8px 100%;
  mask-repeat: repeat-x;
}
@media (min-width: 701px) {
  .film-viewport {
    mask-image:
      linear-gradient(
        to bottom,
        transparent 22px,
        #000 22px,
        #000 calc(100% - 58px),
        transparent calc(100% - 58px)
      ),
      url("/assets/viewport-mask-desktop.svg"),
      url("/assets/viewport-mask-bottom.svg");
    mask-size:
      100% 100%,
      8px 24px,
      8px 60px;
    mask-position: center, top, bottom;
    mask-repeat: no-repeat, repeat-x, repeat-x;
    /* Overlap the solid mask and dither caps by 2px so fractional scaling
       cannot expose an antialiased seam between adjacent mask layers. */
    mask-composite: add;
  }
}
.film-viewport {
  left: 79px;
  width: 340px;
  touch-action: none;
}
@media (min-width: 701px) {
  .film-viewport {
    /* Fade departing posters in the gap below the toolbar (ends at 281.5px). */
    top: 281px;
    /* Keep the lower edge aligned while making room for the toolbar above. */
    height: calc(var(--stage-height, 1044px) - 321px);
    /* Leave room for centered hover growth without moving the poster rail. */
    left: 56px;
    width: 438px;
    padding-inline: 16px;
  }
  .film-detail-viewport {
    /* Keep the whole frame visible during the catalogue's vertical spring. */
    overflow: visible;
  }
}
.film-detail-viewport {
  left: 496px;
  width: 1352px;
}
.film-list {
  position: relative;
  top: 36px;
  transition: none;
}
.film-loop-copy[hidden] { display: none; }
.film-list.is-scrolling {
  transition: none;
}
@media (min-width: 701px) {
  .film-list {
    top: 24px;
  }
  .film-list:not(.is-scrolling) .film-option[data-before-selected="true"] {
    visibility: hidden;
  }
}
.content-ghost {
  pointer-events: none;
}
.film-option {
  display: block;
  position: absolute;
  left: 0;
  top: calc(var(--index) * var(--poster-step, 164px));
  width: var(--poster-width, 251.134px);
  height: var(--poster-height, 141.264px);
  background: var(--color-surface);
  padding: 0;
  transform-origin: 0 0;
  /* Selection grows from its layout anchor; hover/press grows from the center. */
  --feedback-offset: calc((1 - var(--feedback-scale)) * 50%);
  transform: translateY(var(--shift, 0px))
    translate(var(--feedback-offset), var(--feedback-offset))
    scale(var(--feedback-scale));
  scale: 1;
  border-radius: 1.75px;
  outline: 2px solid transparent;
  outline-offset: -2px;
  overflow: hidden;
}
.film-poster-images { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.film-option[hidden] { display: none; }
.poster-preview { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; background: #303031 var(--poster-tiny, none) center / cover no-repeat; image-rendering: pixelated; opacity: 1; }
.poster-preview::before { content: none; }
.film-option[data-poster-state='loading'] .poster-preview::before { animation-play-state: running; }
.film-option[data-poster-state='ready'] .poster-preview { opacity: 0; visibility: hidden; transition: opacity 180ms linear, visibility 0s 180ms; }
@keyframes organic-loading-drift { to { transform: translate3d(24px, -16px, 0); } }
@media (prefers-reduced-motion: reduce) {
  .poster-preview::before { animation: none; }
  .film-option[data-poster-state='ready'] .poster-preview { transition: none; }
}
.carousel-canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.carousel-snapshot { display: none; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.has-carousel-snapshot .carousel-canvas { visibility: hidden; }
.has-carousel-snapshot .carousel-snapshot { display: block; }
@media (max-width: 700px) {
  .has-carousel-canvas .carousel-canvas { display: block; }
  .has-carousel-canvas .film-poster-images { opacity: 0; }
  .has-carousel-canvas .poster-preview { display: none; }
  .has-carousel-canvas .film-poster-images img { visibility: hidden; will-change: auto; }
  .has-carousel-canvas .film-option { will-change: auto; }
  .has-carousel-canvas .film-option[aria-selected]::after { display: none; }
  :root[data-eink='on'] .has-carousel-canvas .film-option[aria-selected]::after { display: none; }
}
.film-poster-name { display: none; }
.card-haptic-switch { display: none; }
.scroll-haptic-switch { position: fixed; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 700px) {
  .card-haptic-switch {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    touch-action: none;
    clip: auto;
  }
}
.film-summary { display: contents; }
.film-option img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-color {
  opacity: 0;
  transition: opacity 140ms ease;
}
.film-option[aria-selected="true"] {
  transform: translateY(var(--shift, 0px))
    translate(var(--feedback-offset), var(--feedback-offset))
    scale(var(--feedback-scale));
  scale: var(--poster-selected-scale, 1.616664);
  z-index: 2;
}
.film-option[aria-selected="true"] .poster-color {
  opacity: 1;
}
.film-option:focus-visible {
  box-shadow: 0 0 0 2px var(--color-bg);
  outline-color: var(--color-acid);
}
.film-window {
  transform-origin: 0 0;
  position: absolute;
  left: 0;
  top: 36px;
  width: 1345px;
  height: calc(var(--stage-height, 1044px) - 345px);
  border: 2px solid var(--color-acid);
  padding: 2px;
  background: var(--color-bg);
  color: var(--color-white);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.titlebar {
  height: 40px;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.titlebar button {
  font:
    24px/27px Handjet,
    monospace;
  padding: 0 16px;
  height: 28px;
  background: var(--color-bg);
  color: var(--color-muted);
  white-space: nowrap;
}
.titlebar button[aria-selected="true"] {
  background: var(--color-acid);
  color: var(--color-bg);
}
.titlebar button:hover {
  color: var(--color-white);
}
.titlebar button[aria-selected="true"]:hover {
  color: var(--color-bg);
}
.window-stripes {
  flex: 1;
  height: 24px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-muted) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.7;
}
.film-hero {
  position: relative;
  height: 662px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.film-scroll { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; scrollbar-gutter: auto; scrollbar-width: thin; }
.hero-images {
  overflow: hidden;
  position: absolute;
  left: 377px;
  top: 0;
  width: 1022px;
  height: 662px;
  background-size: cover;
  background-position: center;
}
.hero-images::before {
  content: none;
  position: absolute;
  left: 0;
  top: 0;
  width: var(--frame-width, 0px);
  height: var(--frame-height, 0px);
  background-image: var(--frame-source, none);
  background-size: 100% 100%;
  transform: var(--frame-transform, none);
  transform-origin: top left;
  will-change: transform;
  pointer-events: none;
}
/* Firefox can invalidate the img surface on a dialog/top-layer handoff.
   Keep an independently painted cover there; Chromium needs no extra layer. */
@supports (-moz-appearance: none) {
  .hero-images::before { content: ""; }
}
.hero-image {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  will-change: transform;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.hero-image.is-active {
  opacity: 1;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 650ms ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-dither {
  position: absolute;
  left: 370px;
  top: 0;
  pointer-events: none;
  mask-image: linear-gradient(to right, #000 10%, rgb(0 0 0 / calc(1 - var(--dither-clear, 0))) 34%);
}
.film-content {
  position: absolute;
  left: 32px;
  top: 32px;
  width: 500px;
  max-height: 510px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-muted) var(--color-bg);
}
.film-content p,
.film-content h2 {
  margin: 0;
  font-weight: 400;
}
.film-title {
  font:
    72px/68px Handjet,
    monospace;
  max-width: 500px;
}
.film-kind {
  font:
    14px/20px "IBM Plex Mono",
    monospace;
  color: var(--color-acid);
}
.film-meta {
  font:
    13px/20px "IBM Plex Mono",
    monospace;
  color: var(--color-muted);
  white-space: pre-wrap;
}
.film-description {
  font:
    16px/26px "IBM Plex Mono",
    monospace;
  width: 338px;
  white-space: pre-line;
}
.film-actions {
  position: absolute;
  left: 15px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.watch,
.more-film {
  height: 54px;
  padding: 15px 21px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--color-acid);
  color: var(--color-bg);
  font:
    21.566px/22px Handjet,
    monospace;
}
.more-film {
  display: grid;
  background: var(--color-bg);
  color: var(--color-acid);
  border: 1px solid var(--color-acid);
}
.more-film > span { grid-area: 1 / 1; white-space: nowrap; }
.more-label-close { visibility: hidden; }
.more-film[aria-expanded="true"] .more-label-open { visibility: hidden; }
.more-film[aria-expanded="true"] .more-label-close { visibility: visible; }
.watch img { flex: 0 0 auto; width: 14px; height: 14px; }
.more-film:hover { background: var(--color-surface); }
.window-stripes-start,
.collapse-film { display: none; }
.watch:disabled {
  opacity: 1;
}
.watch:not(:disabled):hover {
  background: var(--color-white);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.header,
.titlebar button,
.watch,
.film-title {
  font-variation-settings:
    "ELGR" 1,
    "ELSH" 2,
    "wght" 400;
}
/* Keep Handjet, but join its square elements instead of leaving hairline seams. */
.header,
.header-link,
.brand,
.titlebar button,
.watch {
  font-weight: 500;
  font-variation-settings:
    "ELGR" 1,
    "ELSH" 2,
    "wght" 500;
}
.film-option::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-acid);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.film-option[aria-selected="true"]::after {
  opacity: 1;
}
@media (min-width: 701px) {
  .film-option {
    border-radius: 0;
  }
  .film-option::after {
    border: 0;
    /* Keep the same 2px stroke as the detail card as the poster scales. */
    box-shadow: inset 0 0 0 calc(var(--catalog-stroke, 2px) / var(--poster-render-scale, var(--poster-selected-scale, 1.616664))) var(--color-acid);
  }
}
.poster-color {
  object-position: center;
}
@media (min-width: 701px) {
  /* The controls end at the same edge as the active poster, independently
     of browser font metrics and the artboard's fractional zoom. */
  .catalog-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(var(--active-poster-width, 406px) - 106px);
    flex: none;
  }
  .catalog-filters button { min-width: 0; padding-inline: 0; }
  .catalog-views { width: 80px; flex: none; }
  .catalog-views button { flex: none; }
  .catalog-views button[aria-pressed='true'] img { filter: brightness(0) invert(1); }
  .catalog-views button[aria-pressed='false'] img { opacity: .5; }
  .is-grid .film-detail-viewport { display: none; }
  .is-grid .film-viewport {
    left: 56px;
    top: 281px;
    width: 1801px;
    height: calc(var(--stage-height, 1044px) - 321px);
    padding: 24px 16px 60px;
    overflow: hidden auto;
    mask-image: linear-gradient(to bottom, transparent 22px, #000 22px, #000 calc(100% - 58px), transparent calc(100% - 58px)), url('/assets/viewport-mask-desktop.svg'), url('/assets/viewport-mask-bottom.svg');
    mask-size: 100% 100%, 8px 24px, 8px 60px;
    mask-position: center, top, bottom;
    mask-repeat: no-repeat, repeat-x, repeat-x;
    mask-composite: add;
    touch-action: pan-y;
    scrollbar-width: none;
    overscroll-behavior: contain;
  }
  .is-grid .film-viewport::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .is-grid .film-list {
    top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 28px;
    transform: none !important;
  }
  .is-grid .film-loop-copy { display: none !important; }
  .is-grid .film-option {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    background: transparent;
    overflow: visible;
    visibility: visible !important;
    scale: 1 !important;
    transform: scale(var(--feedback-scale));
    transform-origin: center top;
    --feedback-hover: 1.035;
    --feedback-pressed: .985;
    outline: none;
  }
  .is-grid .film-option::after { display: none; }
  .is-grid .film-poster-images {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 225.155 / 126.65;
    flex: 0 0 auto;
  }
  .is-grid .film-poster-name {
    display: block;
    width: 100%;
    padding-top: 12px;
    color: var(--color-bg);
    text-align: left;
    font: 400 28px/32px Handjet, monospace;
  }
  .is-grid .film-option .poster-color { opacity: 0; }
  .is-grid .film-option:is(:hover, :focus-visible) .poster-color { opacity: 1; }
  .is-grid .film-option:focus-visible .film-poster-images { outline: 2px solid var(--color-acid); outline-offset: 3px; }
  .is-grid .film-option:focus-visible { box-shadow: none; }
  body:has(.film-expanded[open]) .is-grid .film-option[aria-selected='true'] .film-poster-images { visibility: hidden; }
}
@media (min-width: 701px) {
  .hero-images {
    width: calc(100% - 220px);
    height: 100%;
  }
  .hero-dither {
    height: 100%;
    width: auto;
  }
  .film-content {
    left: 36px;
    top: 36px;
    max-height: calc(100% - 132px);
    gap: 22px;
  }
  .film-title {
    font-size: 78px;
    line-height: 74px;
  }
  .film-description {
    width: 368px;
    font-size: 17.5px;
    line-height: 28px;
  }
  .is-cinema .category-label {
    top: 118px;
  }
  .category-label[data-label="video"] { --label-open-x: 359px; }
  .category-label[data-label="clips"] { --label-open-x: 469px; }
  .category-label[data-label="advertising"] { --label-open-x: 579px; }
  .category-label[data-label="misc"] { --label-open-x: 689px; }
}
.film-option[data-poster="synapse"] .film-poster-images img {
  width: 110%;
  max-width: none;
  left: -10%;
  object-fit: cover;
}
@media (max-width: 700px) {
  .header {
    padding: 4px 10px;
    gap: 10px;
    font-size: 20px;
  }
  .header nav {
    gap: 10px;
  }
  .header-link {
    letter-spacing: 1px;
    padding: 0 2px;
  }
  .brand {
    padding: 0 4px;
  }
  .screen {
    overflow: hidden;
    overscroll-behavior-y: none;
  }
  .stage {
    width: 100%;
    height: 100%;
    min-height: 0;
    position: relative;
    left: 0;
    top: 0;
    transform: none;
  }
  .categories {
    position: fixed;
    height: calc(82px + var(--mobile-bottom-inset));
    inset: auto 0 0;
    bottom: calc(50dvh - 59px);
    z-index: 8;
    background: var(--color-screen);
    padding: 5px 6px calc(5px + var(--mobile-bottom-inset));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 72px;
    align-items: center;
    transform: none;
    gap: 0;
  }
  .category {
    position: relative !important;
    transform: none !important;
    width: 100% !important;
    height: 65px !important;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: center;
    align-items: center;
    transition: height 660ms var(--ease);
  }
  .category img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    transition: width 660ms var(--ease), height 660ms var(--ease),
      scale 660ms var(--ease), opacity 200ms ease;
  }
  .category-label {
    display: none;
  }
  .mobile-category-label { display: block; font: 16px/18px Pixelify, monospace; white-space: nowrap; transition: font-size 660ms var(--ease), line-height 660ms var(--ease); }
  .category[aria-disabled="true"] img,
  .category[aria-disabled="true"] .mobile-category-label { opacity: .5; }
  .screen:not(.is-cinema) .categories {
    height: calc(106px + var(--mobile-bottom-inset));
    bottom: calc(50dvh - 71px);
    grid-template-rows: 96px;
  }
  .screen:not(.is-cinema) .category {
    height: 96px !important;
  }
  .screen:not(.is-cinema) .category img {
    width: clamp(48px, 14vw, 72px);
    height: clamp(48px, 14vw, 72px);
  }
  .is-cinema .categories {
    top: auto;
    bottom: 0;
    transform: none;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 50px;
    gap: 0;
    inset-inline: 0;
    height: calc(var(--mobile-nav-height) + var(--mobile-bottom-inset));
    padding-block: 3px calc(3px + var(--mobile-bottom-inset));
  }
  .is-cinema .category {
    height: 50px !important;
  }
  .is-cinema .category img { width: 31px; height: 31px; }
  .is-cinema .mobile-category-label { font-size: 14px; line-height: 16px; }
  .is-cinema .category-cinema img {
    scale: 1.1;
  }
  .is-cinema .category:not(.category-cinema) img {
    scale: 0.85;
  }
  .is-cinema .category-label {
    display: none;
  }
  .cinema,
  .is-cinema .cinema {
    top: 0;
    bottom: calc(var(--mobile-nav-height) + var(--mobile-bottom-inset));
    min-height: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    transform: none;
    opacity: 1;
    transition: none;
  }
  .catalog-toolbar {
    left: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 36px;
    gap: 0;
    padding: 2px 12px;
    background: var(--color-screen);
  }
  .catalog-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .catalog-views { display: none; }
  .catalog-toolbar button { width: 100%; min-width: 0; height: 32px; padding-inline: 8px; font-size: 22px; text-align: center; }
  .category-title {
    display: none;
    flex: 0 0 auto;
    position: sticky;
    left: auto;
    top: 0;
    z-index: 6;
    background: var(--color-screen);
    width: auto;
    text-align: left;
    margin: 0;
    padding: 12px 20px;
    font-size: 24px;
    line-height: 30px;
  }
  .film-viewport {
    position: absolute;
    z-index: 7;
    left: 0;
    top: 0;
    bottom: 36px;
    width: 100%;
    height: auto;
    padding: 0;
    background: var(--color-screen);
    mask-image: linear-gradient(to bottom, transparent 30px, #000 30px, #000 calc(100% - 58px), transparent calc(100% - 58px)), url('/assets/viewport-mask.svg'), url('/assets/viewport-mask-bottom.svg');
    mask-size: 100% 100%, 8px 32px, 8px 60px;
    mask-position: center, top, bottom;
    mask-repeat: no-repeat, repeat-x, repeat-x;
    mask-composite: add;
    overflow: hidden;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
    --poster-step: var(--mobile-poster-step, 220px);
  }
  .film-viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  .film-list {
    top: calc(50% - var(--mobile-poster-height, 196px) / 2 - 19px);
    display: block;
    contain: layout style;
    transition: none;
  }
  .film-option {
    position: absolute;
    left: calc(50% - var(--mobile-poster-width, 350px) / 2);
    top: calc(var(--index) * var(--poster-step, 164px));
    width: var(--mobile-poster-width, 350px);
    height: var(--mobile-poster-height, 196px);
    transform: scale(var(--feedback-scale)) !important;
    transform-origin: center;
    border-radius: 0;
    scale: 1 !important;
    opacity: 1;
    translate: 0 0;
    transition: transform 420ms cubic-bezier(0.22, 1.25, 0.36, 1);
    --feedback-hover: 1;
    --feedback-pressed: 0.965;
    overflow: visible;
    -webkit-touch-callout: none;
    background: transparent;
    /* Hit-test the visible mask, rather than overlapping full-size canvases. */
    pointer-events: none;
    will-change: transform;
    contain: layout style;
  }
  .film-option:not(:disabled):active,
  .film-option:not(:disabled)[data-touch-pressed] {
    --feedback-scale: var(--feedback-pressed);
    transition: transform 140ms cubic-bezier(0.22, 0.65, 0.35, 1);
  }
  .film-option > * {
    /* The outline pseudo-element alone consumes the root's frame variables.
       Actual children receive native style properties, so mask updates do not
       cascade into the caption's glyph tree or the iOS switch internals. */
    --mobile-crop-x: 0px;
    --mobile-crop-y: 0px;
    --mobile-activation: 0;
  }
  .film-viewport[data-scroll-press-released] .film-option {
    /* Safari may retain :active until touchend even after the rail moves.
       Release all recycled copies too, and keep them released for this drag. */
    --feedback-scale: 1;
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  }
  .film-option .film-poster-images,
  .film-option .card-haptic-switch {
    clip: rect(var(--mobile-crop-y, 0px), calc(var(--mobile-poster-width, 350px) - var(--mobile-crop-x, 0px)), calc(var(--mobile-poster-height, 196px) - var(--mobile-crop-y, 0px)), var(--mobile-crop-x, 0px));
    pointer-events: auto;
  }
  .film-option[aria-selected="true"] {
    outline-offset: -2px;
  }
  .film-option[aria-selected]::after {
    inset: var(--mobile-crop-y, 0px) var(--mobile-crop-x, 0px);
    opacity: var(--mobile-activation, 0);
    border: 0;
    /* Match the expanded card's 2px border as posters grow and shrink. Shadows
       retain fractional widths; CSS borders round them before scaling. */
    box-shadow: inset 0 0 0 2px var(--color-acid);
  }
  .film-option:focus-visible {
    outline-color: transparent;
    box-shadow: none;
  }
  .film-option .film-poster-name {
    display: block;
    position: absolute;
    top: calc(100% - var(--mobile-crop-y, 0px) + 8px / var(--mobile-selected-scale, 1.3));
    left: 0;
    right: 0;
    margin: 0;
    font: 400 calc(28px / var(--mobile-selected-scale, 1.3)) / calc(30px / var(--mobile-selected-scale, 1.3)) Handjet, monospace;
    color: var(--color-bg);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    opacity: clamp(0, calc((var(--mobile-activation, 0) - .625) / .375), 1);
  }
  .film-option[aria-selected] .poster-color {
    opacity: var(--mobile-activation, 0);
    transition: none;
    will-change: opacity;
  }
  .film-detail-viewport {
    display: none;
  }
  .film-window {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 2px;
    /* Safari can inflate small text when motion changes flex items to
       positioned blocks. Preserve the same text scale across both layouts. */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .titlebar {
    padding: 0 6px;
    gap: 0;
  }
  .titlebar button {
    padding: 0 12px;
    font-size: 22px;
  }
  .film-hero {
    height: auto;
  }
  .hero-images {
    left: 20%;
    width: 100%;
    height: 100%;
    opacity: 0.52;
  }
  .hero-dither {
    left: 30%;
    height: 100%;
    width: auto;
  }
  .film-content {
    left: 18px;
    top: 24px;
    width: calc(100% - 36px);
    max-height: calc(100% - 114px);
    overflow: hidden;
    gap: 16px;
  }
  .film-title {
    font-size: 52px;
    line-height: 52px;
    max-width: 100%;
  }
  .film-description {
    width: min(100%, 338px);
    font-size: 13px;
    line-height: 22px;
    text-shadow: 0 1px 2px var(--color-bg);
  }
  .film-kind {
    font-size: 11px;
  }
  .film-meta {
    font-size: 11px;
  }
  .film-actions {
    left: 16px;
    bottom: 18px;
  }
}
.film-expanded {
  z-index: 30;
  contain: layout style;
  --detail-gradient: 1;
  --dither-clear: 1;
  position: fixed;
  inset: 52px 22px 26px;
  width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--color-white);
  transform-origin: top left;
  box-shadow: none;
}
.film-backdrop {
  position: fixed;
  inset: 36px 0 0;
  z-index: 25;
  background: #000;
}
.film-backdrop[hidden] { display: none; }
/* These controls travel with the card. Hover/focus scaling would change the
   captured endpoint and reappear on top of the closing geometry. */
.film-actions > button { --feedback-hover: 1; --feedback-pressed: 1; }
.film-expanded .film-window {
  box-shadow: none;
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none !important;
  border-color: var(--color-acid);
  overflow: hidden;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-muted) var(--color-bg);
  will-change: auto;
}
.film-expanded .titlebar {
  position: relative;
  top: 0;
  z-index: 3;
  background: var(--color-bg);
  /* Symmetric action slots keep the heading/stripes centered. The close
     control has the same visible gap to the stripes and the outer edge. */
  padding-inline: 40px;
}
.film-expanded .film-scroll { display: block; overflow: hidden auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--color-muted) var(--color-bg); }
.film-expanded #role-tab { display: none; }
.film-expanded #about-tab { background: transparent; color: var(--color-white); pointer-events: none; }
.film-expanded .window-stripes-start { display: block; margin-left: -28px; flex-basis: 28px; }
.film-expanded .collapse-film {
  --feedback-hover: 1;
  position: absolute;
  right: 3px;
  top: 4px;
  display: grid;
  place-items: center;
  color: var(--color-white);
  padding: 0;
  width: 32px;
  height: 32px;
  font: 32px/1 "IBM Plex Mono", monospace;
}
.film-expanded[data-pointer-focus] .collapse-film:focus-visible { outline: none; }
.collapse-film svg { display: block; }
.mobile-poster-bridge { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mobile-poster-bridge img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: top left; will-change: transform; }
.mobile-closing-caption {
  position: absolute;
  left: 0;
  width: 100%;
  color: var(--color-bg);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.film-expanded .film-hero {
  flex: 0 0 auto;
  height: clamp(490px, 60vh, 662px);
  overflow: hidden;
}
.film-expanded .hero-images {
  left: 21%;
  width: 79%;
  height: 100%;
  opacity: 1;
}
.film-expanded .hero-image { object-position: center; }
.film-expanded .hero-dither {
  left: 20%;
  width: auto;
  height: 100%;
}
.hero-bottom-fade {
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  pointer-events: none;
  background: linear-gradient(transparent, var(--color-bg));
  opacity: var(--detail-gradient, 0);
  z-index: 1;
}
.film-expanded .film-content {
  transform: scale(var(--overview-scale, 1));
  transform-origin: top left;
  z-index: 1;
  left: var(--overview-left, 32px);
  top: var(--overview-top, 32px);
  gap: var(--overview-gap, 20px);
  width: var(--overview-width, 500px);
  max-height: calc(100% - 130px);
  overflow-y: auto;
}
.film-expanded .film-title { width: var(--overview-title-width); font-size: var(--overview-title-font, 64px); line-height: var(--overview-title-line, 64px); }
.film-expanded .film-kind { width: var(--overview-kind-width); font-size: var(--overview-kind-font, 14px); line-height: var(--overview-kind-line, 20px); }
.film-expanded .film-meta { width: var(--overview-meta-width); font-size: var(--overview-meta-font, 13px); line-height: var(--overview-meta-line, 20px); }
.film-expanded .film-description { width: min(100%, var(--overview-description-width, 338px)); font-size: var(--overview-description-font, 16px); line-height: var(--overview-description-line, 26px); }
.film-expanded .film-actions { z-index: 1; left: var(--overview-left, 32px); bottom: 32px; }
.film-details { flex: 0 0 auto; padding: 36px 28px 100px; contain: layout style; }
.film-details[hidden] { display: none; }
.details-kicker {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--color-muted);
}
.project-materials {
  --material-height: 246px;
  display: grid;
  grid-template-columns: repeat(4, minmax(250px, 1fr));
  gap: 28px;
  padding: 24px 0 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--color-muted) var(--color-bg);
  scroll-snap-type: x proximity;
}
.material-panel { min-width: 0; scroll-snap-align: start; }
.material-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.material-heading h3 { margin: 0; font: 32px/1 Handjet, monospace; font-weight: 400; }
.material-index { font-size: 11px; color: var(--color-acid); }
.material-empty {
  min-height: var(--material-height);
  height: var(--material-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--color-surface);
  color: var(--color-muted);
  padding: 24px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}
.material-empty p { margin: 0; }
.trailer-play { color: var(--color-acid); font: 42px/1 Handjet, monospace; }
.person-silhouette { font: 36px/1 Handjet, monospace; }
.material-panel video { display: block; width: 100%; height: var(--material-height); object-fit: contain; background: var(--color-surface); }
.gallery-viewer { position: relative; height: var(--material-height); overflow: hidden; background: var(--color-surface); }
.gallery-rail { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-rail figure { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.gallery-rail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-controls { position: absolute; inset: 0; pointer-events: none; }
.gallery-arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: rgb(16 17 15 / 85%); color: var(--color-acid); pointer-events: auto; }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-next svg { transform: scaleX(-1); }
.gallery-arrow:not(:disabled):hover { background: var(--color-acid); color: var(--color-bg); }
.gallery-arrow:disabled { opacity: .35; }
.people-list { list-style: none; margin: 0; padding: 0; height: var(--material-height); overflow-y: auto; scrollbar-width: thin; }
.person { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.person { content-visibility: auto; contain-intrinsic-size: auto 80px; }
.person img, .person-avatar { width: 64px; height: 80px; object-fit: cover; flex-shrink: 0; }
.person-avatar { display: grid; place-items: center; background: var(--color-surface); color: var(--color-muted); font: 36px Handjet, monospace; }
.person p { margin: 0; overflow-wrap: anywhere; }
.person-name { font: 24px/1.2 Handjet, monospace; }
.person-role { color: var(--color-muted); font-size: 11px; line-height: 1.7; margin-top: 6px !important; }
.project-article { max-width: 740px; margin: 8px auto 0; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; font-synthesis: weight style; }
.project-article { content-visibility: auto; contain-intrinsic-size: auto 2600px; }
.project-article > :first-child { margin-top: 0; }
.project-article h1, .project-article h2, .project-article h3 { font-family: Handjet, monospace; font-weight: 400; line-height: 1.2; }
.project-article h1 { font-size: 48px; margin: 0 0 24px; }
.project-article h2 { font-size: 36px; margin: 56px 0 20px; }
.project-article h3 { font-size: 28px; margin: 36px 0 16px; }
.project-article p, .project-article ul, .project-article ol { margin-block: 24px; }
.project-article img, .project-article video { display: block; width: 100%; height: auto; margin-block: 32px; }
.project-article img { aspect-ratio: auto 3 / 2; }
.project-article video { max-height: 620px; background: var(--color-surface); }
.project-article blockquote { margin: 32px 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--color-acid); color: var(--color-muted); }
.project-article a { color: var(--color-acid); text-underline-offset: 4px; }
.project-article strong { color: var(--color-acid); }
.project-article pre { overflow-x: auto; padding: 20px; background: var(--color-surface); }
.project-article code { font-family: inherit; font-size: .9em; }
.project-article hr { margin-block: 48px; border: 0; border-top: 1px solid var(--color-muted); }
.article-table { overflow-x: auto; }
.project-article table { border-collapse: collapse; width: 100%; }
.project-article td, .project-article th { border: 1px solid var(--color-muted); padding: 8px 12px; }
.detail-status { padding: 40px 16px; color: var(--color-muted); font-size: 14px; }
.detail-status[aria-label] span { display: block; height: 1em; width: min(100%, 620px); margin-bottom: 14px; opacity: .3; background: repeating-linear-gradient(0deg, transparent 0 2px, var(--color-acid) 2px 3px, transparent 3px 5px); animation: detail-signal 1.2s steps(8, end) infinite alternate; }
.detail-status[aria-label] span:first-child { width: min(54%, 340px); height: 1.8em; margin-bottom: 30px; }
.detail-status[aria-label] span:nth-child(3) { width: min(86%, 530px); animation-delay: -.3s; }
.detail-status[aria-label] span:nth-child(4) { width: min(62%, 400px); animation-delay: -.6s; }
@keyframes detail-signal { from { clip-path: inset(0 35% 0 0); opacity: .2; } to { clip-path: inset(0); opacity: .48; } }
@media (prefers-reduced-motion: reduce) { .detail-status[aria-label] span { animation: none; } }

.detail-retry { background: var(--color-acid); padding: 12px 20px; }
@media (max-width: 700px) {
  .film-actions { gap: 8px; }
  .watch, .more-film { height: 48px; padding: 12px 14px; font-size: 21px; }
  .film-expanded { inset: 46px 8px calc(var(--mobile-nav-height) + 4px + var(--mobile-bottom-inset)); }
  .film-backdrop {
    bottom: calc(var(--mobile-nav-height) + var(--mobile-bottom-inset));
    background: #000;
    opacity: 0;
    visibility: visible;
    transition: opacity 260ms ease-in-out;
  }
  .is-film-panel-open .film-backdrop:not([hidden]) { opacity: 1; }
  .film-backdrop[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
  .film-expanded .titlebar { gap: 0; padding-inline: 40px; }
  .film-expanded .titlebar button { font-size: 19px; padding-inline: 9px; }
  .film-expanded .window-stripes-start { margin-left: -36px; flex-basis: 36px; }
  .film-expanded .film-hero {
    --mobile-cover-height: clamp(280px, 90vw, 400px);
    height: auto;
    padding: calc(var(--mobile-cover-height) - 48px) 18px 0;
  }
  .film-expanded .film-content { position: relative; inset: auto; width: 100%; max-height: none; overflow: visible; align-items: stretch; gap: 16px; transform: none; }
  .film-expanded .film-content .film-title { font-size: var(--overview-title-font, 52px); line-height: var(--overview-title-line, 52px); }
  .film-expanded .film-content .film-title { width: 100%; max-width: none; text-align: center; order: 0; }
  .film-expanded .hero-images { left: 0; width: 100%; height: var(--mobile-cover-height); opacity: 1; }
  .film-expanded .mobile-poster-bridge { bottom: auto; height: var(--mobile-cover-height); }
  .film-expanded .hero-dither { display: none; }
  .film-expanded .film-actions { position: relative; inset: auto; justify-content: center; align-self: center; order: 1; margin-bottom: 12px; }
  .film-expanded .more-film { display: none; }
  .film-expanded .film-kind { order: 2; width: 100%; }
  .film-expanded .film-meta { order: 3; width: 100%; }
  .film-expanded .film-summary { display: flex; flex-direction: column; gap: 16px; order: 2; }
  .film-expanded .film-description { order: 4; width: 100%; font-size: 13px; line-height: 22px; }
  .film-expanded .hero-bottom-fade { top: calc(var(--mobile-cover-height) - 180px); bottom: auto; height: 180px; background: var(--color-bg); mask: url('/assets/hero-bottom-dither.svg') center bottom / 8px 180px repeat-x; }
  body:has(.film-expanded[open]) .film-option[aria-selected="true"] { visibility: hidden; }
  .film-details { padding: 20px 18px 64px; }
  .details-kicker { font-size: 9px; letter-spacing: .3px; }
  .project-materials { --material-height: clamp(170px, 52vw, 246px); grid-template-columns: minmax(0, 1fr); gap: 32px; overflow: visible; }
  .people-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, 80px);
    grid-auto-columns: minmax(240px, 85%);
    gap: 16px;
    height: auto;
    padding-bottom: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
  }
  .people-list .person { margin: 0; scroll-snap-align: start; }
  .project-article { font-size: 13px; line-height: 1.9; }
  .project-article h1 { font-size: 38px; }
  .project-article h2 { font-size: 30px; margin-top: 40px; }
}
.detail-pending { opacity: 0; translate: 0 -24px; }
.story-frame.detail-pending:has(img), .project-article > p.detail-pending:has(> img:first-child) { translate: none; }
@media (max-width: 360px) {
  .catalog-filters { gap: 6px; }
  .catalog-toolbar button { padding-inline: 8px; font-size: 20px; }
}
@media (max-width: 700px) {
  /* Only installed apps need extra space beyond the system's safe area. */
  :root.is-installed-app { --mobile-bottom-inset: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Catalogue preview sits above the canvas poster and below the existing chrome. */
.catalog-video { z-index: 1; }
@media (max-width: 700px) {
  .film-option .catalog-video { border-radius: 0; }
  /* The GPU poster's stroke sits below opaque video. Keep the same selector
     above its live/held frame, including while the decoder is warming. */
  .has-carousel-canvas .film-option:has(.catalog-video)::after,
  :root[data-eink='on'] .has-carousel-canvas .film-option:has(.catalog-video)::after {
    display: block;
    /* The canvas already owns the original outer shadow. This overlay only
       replaces the stroke hidden under opaque video, at the identical crop. */
    box-shadow: inset 0 0 0 2px var(--color-acid);
    opacity: var(--mobile-activation, 0);
  }
  .catalog-video.is-retiring { opacity: 0; transition: opacity 260ms ease-in-out; }
  .has-open-film .catalog-video { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .hero-video { transition: none; } }
.catalog-folder-paper, .folder-tab-shape, .folder-label, .folder-bottom-fade, .folder-top-fade { display: none; }
.catalog-chrome-paper { display:none; pointer-events:none; }
:root { --catalog-editor-paper:var(--color-bg); }
@media (min-width:701px) {
  .folder-exit { display:none !important; }
  .catalog-filters button { transform: none !important; }
  .catalog-filters button { mask-image:none !important; }
  .catalog-filters button::after { content: attr(data-original-label); }
}
@media (max-width:700px) {
  /* Folder edges are rendered by the GPU or the folder CSS mask. The older
     gray 60px cover must not paint over either implementation. */
  .cinema:not(.is-grid) .film-viewport::before,
  .cinema:not(.is-grid) .film-viewport::after { content:none; display:none; }
  .cinema .film-viewport { background: transparent; bottom:0; }
  .screen.is-cinema .categories { z-index:12; }
  .catalog-folder-paper { display:block; position:absolute; inset:0 0 calc(-1 * (var(--mobile-nav-height) + var(--mobile-bottom-inset))); z-index:6; overflow:hidden; pointer-events:none; }
  .catalog-folder-paper { background:var(--catalog-editor-paper); }
  .catalog-folder-paper { opacity:1; transition:opacity 260ms ease-in-out; }
  :root.is-film-panel-open .catalog-folder-paper { opacity:0; }
  .catalog-folder-base { position:absolute; inset:0; background:#dedede; will-change:opacity; }
  .catalog-folder-sheet { position:absolute; top:0; left:0; right:0; height:calc(100% + 36px); transform-origin:top; will-change:transform,opacity; }
  .catalog-paper-footer {
    position:absolute; left:0; right:0; bottom:0; z-index:2; background:var(--catalog-editor-paper);
  }
  .catalog-paper-footer-light { position:absolute; inset:0; background:#dedede; will-change:opacity; }
  /* Solid sheets begin below the SVG's shaped cap. No gradient or fade. */
  .catalog-folder-sheet::before { content:''; position:absolute; inset:36px 0 0; background:var(--folder-paper); }
  .folder-director { --folder-paper:#dedede; }
  .folder-editor { --folder-paper:var(--catalog-editor-paper); }
  /* The footer already carries the same translucent paper below this edge.
     Extending the tab into it composites the incoming alpha twice. */
  .cinema .catalog-toolbar { inset:0; width:100%; height:100%; padding:0; background:none; pointer-events:none; z-index:8; }
  .cinema .catalog-filters { display:block; height:100%; }
  .cinema .catalog-filters button { position:absolute; inset:0 0 auto; height:36px; width:100%; padding:0; background:none; color:var(--color-bg); pointer-events:none; transition:none; will-change:transform; }
  /* Overlap the SVG's bottom edge with the adjacent paper. Fractional GPU
     translations can otherwise expose an antialiased row between surfaces.
     Only opaque tabs may overlap: during a dissolve this would apply alpha
     twice and create a differently colored seam. */
  .cinema .catalog-filters button[data-paper-opaque]::before { content:''; position:absolute; left:0; right:0; top:35px; height:2px; background:#dedede; }
  .cinema .catalog-filters button[data-paper-opaque][data-film-role='editor']::before { background:var(--catalog-editor-paper); }
  .folder-tab-shape { display:block; position:absolute; inset:0; width:100%; height:36px; overflow:visible; filter:none; }
  .folder-tab-outline { will-change:opacity; }
  .folder-tab-shape polygon { fill:#dedede; }
  :is([data-film-role='editor'],[data-exit-role='editor']) .folder-tab-shape polygon { fill:var(--catalog-editor-paper); }
  .cinema .catalog-filters button[data-film-role='editor'] { color:var(--color-white); }
  [data-film-role='editor'] .folder-tab-shape polyline { stroke:var(--color-white); }
  .folder-tab-shape polyline { fill:none; stroke:var(--color-bg); stroke-width:1; vector-effect:non-scaling-stroke; }
  .cinema .folder-label { display:flex; position:absolute; left:0; top:0; bottom:0; width:42%; align-items:center; padding-left:10px; font:400 20px/28px Handjet,monospace; white-space:nowrap; pointer-events:auto; }
  .cinema :is([data-film-role='editor'],[data-exit-role='editor']) .folder-label { left:auto; right:0; width:40%; padding-left:4px; }
  .cinema .folder-exit, .cinema .folder-exit .folder-label { pointer-events:none; }
  .cinema .catalog-filters button:focus-visible .folder-label { outline:2px dashed currentColor; outline-offset:-3px; }
  :is(.cinema .film-option .film-poster-name, .mobile-closing-caption) { height:26px; line-height:26px; font-size:22px; z-index:4; color:#fff; background-color:#0005; background-image:radial-gradient(circle,#ffffff70 .65px,transparent .9px),radial-gradient(circle,#ffffff70 .65px,transparent .9px); background-size:4px 4px; background-position:0 0,2px 2px; text-shadow:0 1px 2px #000; }
  .cinema .film-option .film-poster-name { margin:0 2px; }
}

@media (max-width:700px) {
  :root:not(.is-film-panel-open) .is-cinema .categories { background:transparent; transition:none; }
  :root:not(.is-film-panel-open) .is-cinema .categories::before { background:transparent; }
  :root.safari-document-underlay:has(.screen.is-cinema) .mobile-panel-surface { background:var(--catalog-paper, var(--color-screen)); }
  :root.safari-document-underlay:has(.screen.is-cinema) .catalog-chrome-paper {
    display:block; position:absolute; inset:0; will-change:opacity; transition:none;
  }
  /* Folder paper participates in Safari's extended document painting too.
     Ending it at the app/menu edge exposes a different shade under chrome. */
  :root.safari-document-underlay .catalog-folder-paper {
    bottom:auto;
    height:calc(var(--safari-surface-height) - 36px);
  }
}

@media (max-width:700px) {
  :root[data-eink='on'] .cinema .catalog-filters button[data-film-role] { box-shadow:none !important; }
}

@media (max-width:700px) {
  /* Alpha-only edges reveal the actual paper below, never a gray overlay.
     The upper fade ends at the pinned tab's baseline (36px). */
  .cinema .film-viewport {
    mask-image:linear-gradient(to bottom,transparent calc(var(--folder-top-cut,0px) + 30px),#000 calc(var(--folder-top-cut,0px) + 30px),#000 calc(100% - 30px),transparent calc(100% - 30px)),url('/assets/folder-edge-top.svg'),url('/assets/folder-edge-bottom.svg');
    mask-size:100% 100%,9px 32px,8px 32px;
    mask-position:center,left 0 top var(--folder-top-cut,0px),left 0 bottom 0px;
    mask-repeat:no-repeat,repeat-x,repeat-x;
    mask-composite:add;
  }
}

@media (max-width:700px) {
  .cinema .catalog-toolbar {
    overflow:hidden;
    /* Dissolve the entering tab into the shared paper behind the menu. */
    -webkit-mask-image:none;
    mask-image:none;
  }
  .cinema .folder-label { justify-content:space-between; gap:8px; width:40%; padding-right:6px; }
  .cinema [data-film-role='editor'] .folder-label { padding-right:10px; }
  .screen.is-cinema .categories {
    --catalog-nav-ink:max(var(--film-panel-progress,0),var(--catalog-ink-progress,0));
    color:color-mix(in srgb,var(--color-bg),var(--color-white) calc(100% * var(--catalog-nav-ink)));
  }
  :root .screen.is-cinema .categories .category img {
    filter:invert(var(--catalog-nav-ink)) drop-shadow(.5px 1px .4px rgb(0 0 0 / 23%));
  }
  :root:not(.is-film-panel-open) .screen.is-cinema .categories .category { transition-property:height; }
  :root:not(.is-film-panel-open) .screen.is-cinema .categories .category-cinema { color:inherit; }
  :root:not(.is-film-panel-open) .screen.is-cinema .categories .category img { transition-property:width,height,scale,opacity; }
  /* Folder scrolling disables ink transitions, but while a detail card is
     open its pull uses a timed backdrop fade. Keep the icons on that clock. */
  :root:has(.film-expanded[open]) .screen.is-cinema .categories .category {
    transition:height 660ms var(--ease), color 260ms ease-in-out;
  }
  :root:has(.film-expanded[open]) .screen.is-cinema .categories .category img {
    transition:width 660ms var(--ease), height 660ms var(--ease), scale 660ms var(--ease), opacity 200ms ease, filter 260ms ease-in-out;
  }
  .folder-count { flex:none; position:relative; padding-left:8px; }
  .folder-count::before { content:''; position:absolute; left:0; top:50%; height:14px; width:1px; background:currentColor; transform:translateY(-50%); }
}


@supports not (-webkit-touch-callout: none) {
  @media (max-width:700px) {
    /* The catalog paper remains underneath throughout the transition. A
       single black overlay fades over it, including when a pull reverses. */
    :root:not(.safari-document-underlay) .screen.is-cinema .categories { background:transparent; isolation:isolate; }
    :root:not(.safari-document-underlay) .screen.is-cinema .categories::before {
      background:#000;
      opacity:var(--panel-ink-progress, 0);
      transition:opacity 260ms ease-in-out;
    }
    /* During scroll, the navigation ink follows the same pose as the tabs. */
    :root:not(.safari-document-underlay):has(.film-expanded[open]) .screen.is-cinema .categories .category { transition:color 260ms ease-in-out; }
    :root:not(.safari-document-underlay):has(.film-expanded[open]) .screen.is-cinema .categories .category img { transition:filter 260ms ease-in-out; }
    :root:not(.safari-document-underlay) .mobile-panel-surface { transition:opacity 260ms ease-in-out; }
  }
}
/* The expanded film is a responsive editorial sheet; catalogue geometry stays independent. */
.film-cover-poster, .mobile-cast-panel { display: none; }
.film-expanded .film-cover-poster {
  display: block;
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid #ffffff38;
  border-radius: 0;
}
.watch { width: 54px; padding: 0; gap: 0; justify-content: center; }
.watch img { width: 20px; height: 20px; }
@media (max-width: 700px) { .watch { width: 48px; padding: 0; } }
.film-expanded {
  transform: translate(var(--film-pull-x, 0px), var(--film-pull-y, 0px)) scale(var(--film-pull-scale, 1));
  transform-origin: center top;
  --film-copy-size: clamp(12px, .95vw, 16px);
  --film-expansion: 0;
  inset: calc(48px - 12px * var(--film-expansion)) calc(10px * (1 - var(--film-expansion))) calc(12px * (1 - var(--film-expansion)));
  --detail-gradient: 1;
}
.film-expanded .titlebar { display: none !important; }
.film-expanded .film-window {
  border-color: color-mix(in srgb, var(--color-acid) calc(100% * (1 - var(--film-expansion))), transparent);
  border-width: calc(2px * (1 - var(--film-expansion)));
  padding: calc(2px * (1 - var(--film-expansion)));
}
.film-expanded .film-scroll:focus { outline: none; }
.film-expanded .film-scroll { overflow-anchor: none; }
.film-expanded .film-scroll { container-type: size; }
:root[data-eink='on'] .film-expanded .film-window { box-shadow: none; }
.film-expanded[data-motion][data-stable-close] .film-window::after { display: none; }
.film-expanded[data-composite-reveal] .film-window::after { display: none; }
.brand {
  background: var(--color-acid);
  transition: background-color 260ms ease-in-out;
}
.brand[data-film-accent] { background: var(--film-ui-accent, var(--color-acid)); }
.film-expanded .film-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(240px, 1fr) auto;
  min-height: 100cqh;
  height: auto;
  padding: 0;
  overflow: visible;
}
.film-expanded .hero-images {
  position: relative;
  grid-area: 1 / 1;
  inset: auto;
  width: 100%;
  height: 100%;
  transform: translateY(var(--cover-drift, 0px));
}
.film-expanded .hero-dither { display: none; }
.film-expanded .hero-bottom-fade {
  position: relative;
  grid-area: 1 / 1;
  align-self: end;
  inset: auto;
  height: 192px;
  background: var(--color-bg);
  mask: url('/assets/editorial-dither-fade-v2.svg') center bottom / 64px 192px repeat-x;
}
.film-expanded .film-content {
  grid-area: 2 / 1;
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  max-height: none;
  overflow: visible;
  display: grid;
  grid-template-columns: var(--film-poster-width, 160px) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 22px 32px;
  padding: 28px 32px 40px;
  background: var(--color-bg);
}
.film-info {
  grid-area: 1 / 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .85fr);
  align-items: start;
  gap: 22px 32px;
  min-width: 0;
  min-height: 190px;
}
.film-expanded .film-content .film-title {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: none;
  font-size: clamp(56px, 6.8vw, 136px);
  line-height: .92;
  overflow-wrap: anywhere;
  text-align: left;
}
.film-expanded .film-summary { display: flex; flex-direction: column; gap: 12px; grid-column: 2; grid-row: 1 / 3; }
.film-expanded .film-content .film-kind,
.film-expanded .film-content .film-meta { width: 100%; font-size: var(--film-copy-size); line-height: 1.75; }
.film-expanded .film-content .film-description { width: 100%; font-size: var(--film-copy-size); line-height: 1.75; text-shadow: none; }
.film-expanded .film-actions {
  position: absolute;
  grid-area: 1 / 1 / 2 / 2;
  inset: 0;
  height: auto;
  justify-content: center;
  align-items: center;
  margin: 0;
  pointer-events: none;
}
.film-expanded .watch { pointer-events: auto; }
.film-expanded .more-film { display: none !important; }
.film-facts { grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-width: 0; }
.film-credit { border-left: 1px solid #ffffff24; padding-left: 18px; min-width: 0; }
.film-credit h3 { margin: 0 0 12px; font: 400 var(--film-copy-size)/1.75 "IBM Plex Mono", monospace; color: var(--color-acid); letter-spacing: .03em; }
.film-credit p { margin: 0 0 5px; font: 400 var(--film-copy-size)/1.75 "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.credit-placeholder {
  display: block;
  width: 85%;
  max-width: 15ch;
  height: 1.75em;
  margin-bottom: 5px;
  font-size: var(--film-copy-size);
  background: repeating-linear-gradient(0deg, transparent 0 2px, var(--color-acid) 2px 3px, transparent 3px 5px);
  opacity: .3;
  animation: credit-loading 1.4s ease-in-out infinite alternate;
}
.credit-placeholder:nth-of-type(2) { width: 72%; }
.credit-placeholder:nth-of-type(3) { width: 90%; }
@keyframes credit-loading { to { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-edge { transition: none; }
  .credit-placeholder { animation: none; }
}
.film-expanded .film-details { padding: 12px 32px 90px; }
.project-materials { display: flex; flex-direction: column; gap: 56px; overflow: visible; padding: 28px 0 56px; }
.material-heading { border-top: 1px solid #ffffff38; padding-top: 14px; margin-bottom: 24px; }
.material-heading h3 { font-size: 42px; }
.material-all { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 8px 0 8px 12px; background: transparent; border: 0; color: var(--color-acid); font: 24px/1 Handjet, monospace; cursor: pointer; }
.material-all svg { flex-shrink: 0; }
:root[data-eink='on'] .material-all, .material-all { box-shadow: none; text-shadow: none; filter: none; }
.material-all[aria-expanded='true'] svg { rotate: -90deg; }
.people-panel .material-all { display: none; }
.material-panel video { height: auto; max-height: 65vh; aspect-ratio: 16 / 9; }
.gallery-viewer { height: auto; overflow: visible; background: transparent; }
.gallery-rail { height: auto; gap: 24px; padding-bottom: 12px; }
.gallery-rail figure { flex: 0 0 42%; }
.gallery-rail figure:last-child { margin-right: 0; }
.gallery-rail img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.scroll-edge { position: absolute; inset: 0 0 0 auto; width: 96px; pointer-events: none; isolation: isolate; opacity: 0; visibility: hidden; transition: opacity 160ms ease-out, visibility 0s linear 160ms; }
.scroll-edge[data-visible='true'] { opacity: 1; visibility: visible; transition-delay: 0s; }
.scroll-edge-left { left: 0; right: auto; }
.scroll-edge::before, .scroll-edge::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.scroll-edge::before { background: linear-gradient(to right, transparent, var(--color-bg) 94%); }
.scroll-edge::after { background: var(--color-bg); opacity: .6; mask: url('/assets/gallery-edge-dither.svg') right center / 100% 32px repeat-y; }
.scroll-edge-left::before, .scroll-edge-left::after { transform: scaleX(-1); }
.gallery-edge-left { bottom: 12px; }
.gallery-edge { bottom: 12px; display: grid; align-items: center; justify-items: end; padding-right: 16px; }
.people-viewer { position: relative; min-width: 0; }
.people-edge, .people-edge-left { display: none; }
.gallery-edge .gallery-next { position: static; translate: none; width: 44px; height: 44px; background: var(--color-bg); border: 1px solid #ffffff38; }
.gallery-edge .gallery-next svg { transform: none; }
.material-panel.is-expanded .gallery-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
.material-panel.is-expanded .gallery-rail figure { min-width: 0; }
.people-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; height: auto; overflow: visible; }
.person { margin: 0; align-items: start; align-self: start; gap: 10px; content-visibility: visible; contain-intrinsic-size: none; }
.person-name { font-size: 28px; }
.person-role { font-size: 10px; line-height: 1.5; margin-top: 4px !important; }
.project-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 740px) minmax(0, 1fr);
  max-width: none;
  margin: 0;
  padding-top: 32px;
  border-top: 1px solid #ffffff38;
  content-visibility: visible;
}
.project-article > * { grid-column: 2; min-width: 0; }
.project-article > h1 { grid-column: 1 / -1; max-width: 1050px; font-size: clamp(48px, 5.5vw, 92px); margin-bottom: 32px; }
.project-article > p:has(> img:first-child),
.project-article > video { grid-column: 1 / -1; }
.project-article > p:has(> img:first-child) { margin: 24px 0; }
.project-article > p > img:first-child { margin: 0; max-height: 78vh; object-fit: contain; aspect-ratio: auto; }
.project-article blockquote { grid-column: 1 / -1; max-width: 950px; font: 36px/1.2 Handjet, monospace; padding-left: 28px; margin-block: 40px; }
@media (min-width: 701px) and (max-width: 1100px) {
  .film-expanded .film-content { gap: 24px; padding: 24px; }
  .film-info { grid-template-columns: 1fr 1fr; gap: 24px; }
  .film-expanded .film-content .film-title { font-size: clamp(60px, 9vw, 96px); }
  .film-facts { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(2, 1fr); }
  .film-facts { min-height: 126px; }
  .film-credit:last-child { grid-column: auto; }
  .people-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  /* Keep iOS root rubber-banding out of the non-modal sheet. The internal
     scrollport remains native, while the fixed header/navigation stay put. */
  html:has(.film-expanded[open]) { overscroll-behavior: none; }
  body:has(.film-expanded[open]) { position: fixed; inset: 0; width: 100%; overscroll-behavior: none; }
  .film-expanded { overscroll-behavior: none; }
  .film-expanded .film-details[aria-busy='true'] > .detail-status { min-height: min(240px, 40cqh); }
  /* Grain and the gray screen vignette must not lighten the pure black
     Safari join. Fade only their portion over the bottom navigation. */
  :root[data-eink='on'] body::before,
  body::after {
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--mobile-nav-height) - var(--mobile-bottom-inset)), rgb(0 0 0 / calc(1 - var(--film-panel-progress, 0))) 0);
    mask-image: linear-gradient(to bottom, #000 calc(100% - var(--mobile-nav-height) - var(--mobile-bottom-inset)), rgb(0 0 0 / calc(1 - var(--film-panel-progress, 0))) 0);
  }
  :root.is-installed-app[data-eink='on'] body::before,
  :root.is-installed-app body::after { --film-panel-progress: 0; }
  :root.is-installed-app.is-film-panel-open[data-eink='on'] body::before,
  :root.is-installed-app.is-film-panel-open body::after { --film-panel-progress: 1; }
  .is-cinema .categories {
    --film-panel-progress: 0;
    background: var(--film-panel-color, var(--color-screen));
    transition: background-color 260ms ease-in-out;
    color: color-mix(in srgb, var(--color-bg), var(--color-white) calc(100% * var(--panel-ink-progress, 0)));
  }
  .is-cinema .categories .category { color: inherit; transition: height 660ms var(--ease), color 260ms ease-in-out; }
  :root .is-cinema .categories .category img {
    filter: invert(var(--panel-ink-progress, 0)) drop-shadow(.5px 1px .4px rgb(0 0 0 / 23%));
    transition: width 660ms var(--ease), height 660ms var(--ease), scale 660ms var(--ease), opacity 200ms ease, filter 260ms ease-in-out;
  }
  .is-cinema .categories .category-cinema {
    color: color-mix(in srgb, var(--color-bg), var(--film-ui-accent, var(--color-white)) calc(100% * var(--panel-ink-progress, 0)));
    transition: color 260ms ease-in-out;
  }
  /* One mask owns the icon in both states. Crossfading two differently
     filtered copies produced a pale flash at intermediate accent values. */
  .is-cinema .categories .category-cinema img { opacity: 0; }
  .is-cinema .categories .category-cinema::after {
    content: '';
    position: absolute;
    top: calc(50% - 24.5px);
    left: 50%;
    width: 31px;
    height: 31px;
    transform: translateX(-50%) scale(calc(1.1 * var(--feedback-scale, 1)));
    background: currentColor;
    mask: url('/assets/menu-cinema.svg') center / contain no-repeat;
    filter: drop-shadow(.5px 1px .4px rgb(0 0 0 / 23%));
    opacity: 1;
    pointer-events: none;
  }
  /* Keep the native touch scroller's geometry stable. Only its visual mask
     expands; resizing the scrollport during a gesture interrupts iOS inertia. */
  .film-expanded {
    inset: 36px 0 calc(var(--mobile-nav-height) + var(--mobile-bottom-inset));
    container-type: size;
    /* Keep the same compositor owner through morph, native scroll and pull.
       Scaling a pull must not repeatedly discard and rasterize the sheet. */
    will-change: transform;
  }
  .film-expanded .film-window {
    position: absolute;
    inset: 0;
    border-width: 0;
    padding: 0;
    /* This is a rectangular scrollport, not an alpha effect. Native clipping
       avoids a masked render surface containing the entire scrolling article.
       Container units follow the dialog during the morph without resizing the
       scrollport while its frame expands. */
    clip: rect(calc(10px * (1 - var(--film-expansion))), calc(100cqw - 6px * (1 - var(--film-expansion))), calc(100cqh - var(--film-bottom-gap, 4px) * (1 - var(--film-expansion))), calc(6px * (1 - var(--film-expansion))));
  }
  .film-expanded .film-scroll { touch-action: pan-y pinch-zoom; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; scrollbar-gutter: auto; }
  .film-expanded .film-scroll::-webkit-scrollbar { display: none; }
  .has-open-film .film-option[aria-selected='true'] .film-poster-images,
  .has-open-film .film-option[aria-selected='true']::after { visibility: hidden; }
  .film-expanded .film-window::after {
    --film-expansion: inherit;
    box-sizing: border-box;
    content: '';
    position: absolute;
    z-index: 4;
    inset: calc(10px * (1 - var(--film-expansion))) calc(6px * (1 - var(--film-expansion))) calc(var(--film-bottom-gap, 4px) * (1 - var(--film-expansion)));
    border: 2px solid var(--color-acid);
    opacity: calc(1 - var(--film-expansion));
    pointer-events: none;
  }
  /* The open player scales the whole sheet by fractional device pixels.
     Its expanded window needs neither the reveal clip nor the transparent
     outline; retaining them can leave a flashing seam at the scaled edge. */
  :root:has(.cinema-player-article[open]) .film-expanded .film-window { clip: auto; }
  :root:has(.cinema-player-article[open]) .film-expanded .film-window::after { display: none; }
  /* A dark inset covers WebKit's bright one-device-pixel sampling fringe
     when the textured sheet lands between physical pixels during the zoom. */
  :root.safari-document-underlay:has(.cinema-player-article[open]) .film-expanded .film-window::after {
    display: block; inset: 0; border: 0; opacity: 1;
    background: linear-gradient(to right, #000 0, transparent 3px, transparent calc(100% - 3px), #000 100%);
  }
  .film-expanded[data-motion] .film-window {
    clip: rect(calc(10px * var(--film-motion-mask, calc(1 - var(--film-expansion)))), calc(100cqw - 6px * var(--film-motion-mask, calc(1 - var(--film-expansion)))), calc(100cqh - var(--film-bottom-gap, 4px) * var(--film-motion-mask, calc(1 - var(--film-expansion)))), calc(6px * var(--film-motion-mask, calc(1 - var(--film-expansion)))));
  }
  .film-expanded[data-motion] .film-window::after {
    inset: calc(10px * var(--film-motion-mask, calc(1 - var(--film-expansion)))) calc(6px * var(--film-motion-mask, calc(1 - var(--film-expansion)))) calc(var(--film-bottom-gap, 4px) * var(--film-motion-mask, calc(1 - var(--film-expansion))));
    opacity: var(--film-motion-mask, calc(1 - var(--film-expansion)));
  }
  /* A pull moves the existing compositor surface. Do not simultaneously
     reshape its scroll-tile clip and border underneath the finger. */
  .film-expanded[data-pull-surface][data-pull] .film-window { clip: auto; }
  .film-expanded[data-pull-surface] .film-window::after { display: none; }
  .film-expanded[data-pull][data-stable-pull] .film-window { clip: var(--film-gesture-clip); }
  .film-expanded[data-pull][data-stable-pull] .film-window::after {
    inset: calc(10px * var(--film-gesture-mask)) calc(6px * var(--film-gesture-mask)) calc(var(--film-bottom-gap, 4px) * var(--film-gesture-mask));
    opacity: var(--film-gesture-mask);
  }
  .film-expanded .film-hero { grid-template-rows: auto auto; min-height: 0; padding: 0; }
  .film-expanded .hero-images { height: auto; aspect-ratio: 16 / 9; }
  .film-expanded .hero-bottom-fade {
    --fade-overlap: 2px;
    height: calc(min(96px, 28.125cqw) + var(--fade-overlap));
    margin-bottom: calc(-1 * var(--fade-overlap));
    /* Let the solid end cover the join even when the video and the article
       background snap to different device pixels during the opening. */
    mask: url('/assets/editorial-dither-fade-v2.svg') left 0 bottom var(--fade-overlap) / 32px 96px repeat-x,
      linear-gradient(#000 0 0) left bottom / 100% calc(var(--fade-overlap) + 1px) no-repeat;
  }
  .film-expanded .film-content { display: grid; grid-template-columns: var(--film-poster-width, 112px) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; margin-top: -12px; padding: 0 16px 28px; background: linear-gradient(to bottom, transparent 12px, var(--color-bg) 12px); }
  .film-info { --film-copy-size: clamp(10px, 2.8vw, 12px); display: flex; flex-direction: column; gap: 10px; min-height: 156px; }
  .film-expanded .film-info .film-title { max-width: 12ch; white-space: normal; text-wrap: balance; overflow-wrap: normal; }
  .film-info .film-title { order: 0; }
  .film-info .film-kind { order: 1; }
  .film-info .film-meta { order: 2; }
  .film-info .film-directors { order: 3; }
  .film-expanded .film-info .film-kind,
  .film-expanded .film-info .film-meta,
  .film-info .film-credit p, .film-info .film-credit h3 { line-height: 1.5; }
  .film-info .film-credit h3 { margin-bottom: 6px; }
  .film-info .credit-placeholder { height: 1.5em; }
  .film-expanded .film-content .film-title { font-size: clamp(28px, 8.5vw, 48px); line-height: 1; text-align: left; }
  .film-expanded .film-summary, .film-expanded .film-facts { display: contents; }
  .film-expanded .film-content .film-kind { grid-area: 2 / 2; }
  .film-expanded .film-content .film-meta { grid-area: 3 / 2; }
  .film-expanded .film-directors { grid-area: 4 / 2; }
  .film-expanded .film-cast { display: none; }
  .film-expanded .film-content .film-description { grid-area: 2 / 1 / 3 / -1; margin-top: 0; }
  .film-expanded .film-cover-poster { grid-area: 1 / 1; width: 100%; height: auto; aspect-ratio: 2 / 3; align-self: start; }
  .film-expanded .mobile-cast-panel { display: block; }
  .film-credit { border-left: 0; padding-left: 0; }
  .film-expanded .film-details { padding: 0 16px 64px; }
  .project-materials { gap: 36px; padding-bottom: 36px; }
  .material-heading h3 { font-size: 32px; }
  .gallery-rail { gap: 12px; }
  .gallery-rail figure { flex-basis: 76%; }
  .scroll-edge { width: 64px; }
  .gallery-edge .gallery-next { display: none; }
  .people-edge, .people-edge-left { display: block; bottom: 4px; }
  .material-all { font-size: 22px; }
  .people-panel .material-all { display: inline-flex; }
  .people-list { grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max(200px, calc((100vw - 32px) * .62)); gap: 12px 24px; padding: 0 0 4px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; }
  .people-list::-webkit-scrollbar { display: none; }
  .people-list .person { scroll-snap-align: start; }
  /* One-line character names and two-line crew jobs share the same rhythm. */
  .people-list .person-role { min-height: 3em; }
  .people-panel.is-expanded .people-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
  .material-panel.is-expanded .gallery-rail { grid-template-columns: 1fr; }
  .person-name { font-size: 24px; }
  .project-article { display: block; font-size: 12px; line-height: 1.85; }
  .project-article > h1 { font-size: 44px; }
  .project-article blockquote { font-size: 28px; padding-left: 16px; }
}
.film-expanded .mobile-poster-bridge { grid-area: 1 / 1 / 2 / 2; inset: 0; height: auto; }
@media (max-width: 700px) {
  /* Paint the exact complement of the dither at the two stationary edges.
     The moving catalogue no longer needs a full-viewport alpha-mask pass. */
  .film-viewport { mask-image: none; }
  .film-viewport::before,
  .film-viewport::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    z-index: 5;
    background: var(--color-screen);
    pointer-events: none;
    mask-repeat: repeat-x;
    mask-position: 0 0;
  }
  .film-viewport::before {
    top: 0;
    height: 32px;
    clip: rect(0px, auto, 30px, 0px);
    mask-image: url('/assets/viewport-cover-top.svg');
    mask-size: 8px 32px;
  }
  .film-viewport::after {
    bottom: 0;
    height: 60px;
    clip: rect(2px, auto, auto, 0px);
    mask-image: url('/assets/viewport-cover-bottom.svg');
    mask-size: 8px 60px;
  }
}
@supports not (-webkit-touch-callout: none) {
  @media (max-width: 700px) {
    .film-expanded { --film-bottom-gap: 0px; }
    .film-expanded .film-scroll { will-change: transform, opacity; }
    .is-cinema .categories {
      background: #000;
      isolation: isolate;
    }
    .is-cinema .categories::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: -1;
      background: var(--color-screen);
      pointer-events: none;
      /* Keep this already rasterized even at the black endpoint. The tiny
         nonzero alpha rounds to black while retaining the light GPU surface. */
      opacity: max(.000244140625, calc(1 - var(--panel-ink-progress, 0)));
      transition: opacity 260ms ease-in-out;
      will-change: opacity;
    }
    .is-cinema .categories .category { transition: color 260ms ease-in-out; }
    :root .is-cinema .categories .category img { transition: filter 260ms ease-in-out; }
    /* Prepare only these four small filter surfaces before the first scroll.
       Otherwise their first inversion starts while native scrolling is busy. */
    :root .is-cinema .categories .category:not(.category-cinema) img { will-change: filter; }
    .mobile-panel-surface { transition: opacity 260ms ease-in-out; }
    /* Conservative Chromium paint path: do not force a transparent GPU layer
       for every poster, image and whole-screen grain sheet. The browser can
       still composite actual opacity/transform animations when they run. */
    :root[data-eink='on'] body::before,
    .film-option,
    .film-option[aria-selected] .poster-color,
    .hero-image,
    .mobile-poster-bridge img { will-change: auto; }
    /* The catalogue paints without forced layers. The one open sheet needs
       a stable owner, however: adding/removing its transform at a pull boundary
       can drop independently composited text/image tiles on Android. */
    .film-expanded { will-change: transform; isolation: isolate; }
    /* Chromium does not need Safari's full-canvas sampling mask. Keep grain
       and vignette static above the menu and fade only a menu-sized surface,
       so a panel transition cannot invalidate two screen-sized alpha masks. */
    :root[data-eink='on'] body::before,
    body::after { mask-image: none; }
    :root[data-eink='on'] body::before { bottom: calc(var(--mobile-nav-height) + var(--mobile-bottom-inset)); }
    body::after { clip: rect(0px, 100vw, calc(100dvh - 36px - var(--mobile-nav-height) - var(--mobile-bottom-inset)), 0px); }
    .mobile-panel-surface {
      display: block;
      position: fixed;
      inset: auto 0 0;
      height: calc(var(--mobile-nav-height) + var(--mobile-bottom-inset));
      z-index: 100;
      pointer-events: none;
      overflow: hidden;
      contain: strict;
      opacity: max(.000244140625, calc(1 - var(--film-panel-progress, 0)));
      will-change: opacity;
    }
    :root[data-eink='on'] .mobile-panel-surface::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 1;
      background-image: var(--eink-surface-image);
      background-size: 192px 192px;
      background-position: 0 calc(36px + var(--mobile-nav-height) + var(--mobile-bottom-inset) - 100dvh);
    }
    .mobile-panel-surface::after {
      content: '';
      position: absolute;
      inset: calc(36px + var(--mobile-nav-height) + var(--mobile-bottom-inset) - 100dvh) 0 0;
      box-shadow: inset 0 0 28px 4px rgb(21 21 21 / 38%), inset 0 0 7px 1px rgb(21 21 21 / 32%);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand, .is-cinema .categories, .is-cinema .categories .category,
  :root .is-cinema .categories .category img, .mobile-panel-surface { transition: none; }
  .is-cinema .categories::before { transition: none; }
  .film-expanded .hero-images { transform: none; clip-path: none; }
}
/* Vertical editorial scenes. The reading order is identical at every width. */
.project-article.has-story-scenes {
  --story-gap: clamp(24px, 4vw, 88px);
  display: block;
  counter-reset: story;
  padding-top: clamp(32px, 5vw, 88px);
}
.project-article.has-story-scenes > h1 {
  max-width: 15ch;
  margin: 0 0 clamp(40px, 6vw, 112px);
  font-size: clamp(64px, 8.4vw, 168px);
  line-height: .94;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.project-article.has-story-scenes > :not(.story-scene):not(h1) { max-width: 740px; margin-inline: auto; }
.project-article .story-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--story-gap);
  margin: 0 0 clamp(72px, 10vw, 192px);
  isolation: isolate;
}
.story-scene > * { min-width: 0; }
.story-copy { align-self: center; padding-block: 24px; }
.project-article .story-copy > :first-child { margin-top: 0; }
.project-article .story-copy > :last-child { margin-bottom: 0; }
.project-article .story-copy h2 {
  margin: 16px 0 28px;
  max-width: 16ch;
  font-size: clamp(40px, 4.4vw, 84px);
  line-height: 1.02;
  text-wrap: balance;
}
.story-chapter { display: block; color: var(--color-acid); font: 18px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; }
.project-article .story-copy p, .project-article .story-copy ul { font-size: clamp(14px, 1vw, 18px); line-height: 1.9; }
.project-article .story-copy blockquote { margin: 36px 0; padding-left: 20px; font-size: clamp(28px, 2.6vw, 46px); line-height: 1.2; }
.project-article .story-copy blockquote p { font: inherit; }
.story-media { display: grid; gap: 32px; min-width: 0; }
.project-article .story-frame { min-width: 0; margin: 0; }
.project-article .story-frame img, .project-article .story-frame video {
  width: 100%; height: auto; max-height: none; aspect-ratio: auto;
  display: block; margin: 0; object-fit: contain;
  box-shadow: 0 24px 60px -28px #000b;
}
.project-article .story-frame figcaption { margin-top: 12px; color: var(--color-muted); font: 11px/1.7 "IBM Plex Mono", monospace; }
.story-left .story-copy { grid-column: 2; grid-row: 1; padding-right: clamp(0px, 3vw, 64px); }
.story-left .story-media { grid-column: 1; grid-row: 1; }
.story-right .story-copy { padding-left: clamp(0px, 3vw, 64px); }
.story-right .story-media { grid-column: 2; }
.project-article .story-wide, .project-article .story-gallery { display: block; }
.story-wide .story-copy, .story-gallery .story-copy { max-width: 740px; margin: 0 auto 32px; }
.story-wide .story-media { gap: 48px; }
.story-gallery .story-media { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.story-gallery .story-frame:nth-child(even) { margin-top: 72px; }
.project-article .story-depth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 64px); }
.story-depth .story-copy { grid-column: 2; grid-row: 1; padding-block: 64px; }
.story-depth .story-media { display: contents; }
.story-depth .story-frame { grid-column: 1; grid-row: 1; position: sticky; top: 48px; padding-top: 24px; }
.story-depth .story-frame:nth-child(2) { grid-column: 3; padding-top: 160px; }
.story-depth .story-frame:nth-child(n+3) { position: static; grid-column: auto; grid-row: auto; }
.project-article .story-text-only { display: block; max-width: 740px; margin-inline: auto; }
@media (min-width: 1600px) {
  .project-article.has-story-scenes { padding-inline: 24px; }
  .story-left, .story-right { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .project-article .story-depth { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .story-depth .story-copy { grid-column: 2; grid-row: 1 / span 2; padding-block: 0; }
  .story-depth .story-frame, .story-depth .story-frame:nth-child(2) { grid-column: 1; grid-row: auto; position: static; padding: 0; }
}
@media (max-width: 700px) {
  .project-article.has-story-scenes { padding-top: 32px; }
  .project-article.has-story-scenes > h1 { font-size: clamp(44px, 12vw, 72px); margin-bottom: 40px; }
  .project-article .story-scene, .project-article .story-depth { display: flex; flex-direction: column; gap: 24px; margin-bottom: 56px; }
  /* Consecutive image groups form one visual sequence on a narrow screen. */
  .project-article .story-scene:has(> .story-media:last-child):has(+ .story-scene > .story-media:first-child) { margin-bottom: 20px; }
  .project-article .story-copy { padding: 0; width: 100%; }
  .project-article .story-copy h2 { font-size: 36px; margin: 12px 0 24px; max-width: 22ch; }
  .project-article .story-copy p, .project-article .story-copy ul { font-size: 13px; line-height: 1.85; }
  .story-chapter { font-size: 12px; }
  .story-media, .story-depth .story-media { display: grid; width: 100%; gap: 20px; }
  .project-article .story-depth .story-frame { position: static; padding: 0; grid-area: auto; }
  .project-article .story-frame img, .project-article .story-frame video { box-shadow: none; }
  .story-gallery .story-media { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .project-article .story-gallery .story-frame:nth-child(even) { margin-top: 0; }
  .story-gallery .story-copy, .story-wide .story-copy { margin-bottom: 0; }
}
.watch { display: none !important; }
.film-video-trigger { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer; color: inherit; --feedback-hover: 1; --feedback-pressed: 1; transform: none !important; }
.film-video-trigger:focus-visible { outline: 2px solid var(--color-acid); outline-offset: -8px; }
.film-video-inline { position: relative; min-width: 0; width: 100%; aspect-ratio: 3 / 2; background: transparent; }
.project-article .film-video-inline { margin-block: 28px; }
.hero-video-loading { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #202020 center / cover no-repeat; image-rendering: pixelated; }
.hero-video-loading::before { content: ''; position: absolute; inset: 0; background: url('/assets/organic-loading.svg') center / 320px 160px repeat; opacity: .22; mix-blend-mode: screen; animation: organic-loading-drift 4s steps(16, end) infinite alternate; }
.hero-video-loading:has(.imgfx-loading-layer)::before { opacity: 0; }
.hero-video-loading.has-first-frame::before { content: none; }
.hero-video-loading.is-frame-mosaic::before { z-index: 1; opacity: calc(.22 * var(--video-noise-opacity, 1)); animation-play-state: paused; }
@media (max-width: 700px) {
  .film-expanded .hero-images { z-index: 0; }
  .hero-images .film-video-hero { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; opacity: 0; pointer-events: none; }
  .hero-images .film-video-hero.is-ready { opacity: 1; pointer-events: auto; }
  .hero-images .film-video-hero:has(.cinema-player-inline[data-video-loading]),
  .hero-images .film-video-hero:has(.cinema-player-dither-loading.is-revealing) { opacity: 1; }
  .hero-images .film-video-hero .cinema-player-inline { width: 100%; height: 100%; aspect-ratio: auto; }
  .hero-images .film-video-hero .cinema-player-inline .cinema-player-video { object-fit: cover; }
  .hero-images:has(.film-video-hero.is-ready) .hero-image,
.hero-images[data-has-video] .hero-image {
  display: none !important;
}
.hero-images:has(.film-video-hero.is-ready),
.hero-images[data-has-video] {
  background-image: none !important;
}
.hero-images .film-video-hero .cinema-player-inline .cinema-player-bottom,
.hero-images .film-video-hero .cinema-player-inline .cinema-player-compact-progress {
  display: none !important;
}
  .hero-images:has(.film-video-hero.is-ready) .film-video-trigger { pointer-events: none; }
}
/* Safari clips viewport-fixed surfaces at its floating browser controls.
   Keep the app geometry in the visible viewport, but paint the decorative
   document surface past the large viewport's lower edge. Safari's large
   viewport can still end inside the compact toolbar, so it is not a screen
   boundary. Overscan decoration only; controls continue to use 100dvh. */
.cinema-player-safari-underlay { display: none; pointer-events: none; }
.mobile-panel-grain { display: none; pointer-events: none; }
@media (max-width: 700px) {
  /* The player and detail sheet share one black backing, including the real
     document area sampled behind Safari's floating toolbar. Only controls
     and movie pixels move/fade; their backing never reveals the catalog gray. */
  :root:not(.safari-document-underlay).is-film-panel-open:has(.film-expanded[open]),
  :root.is-film-panel-open:has(.film-expanded[open]) body {
    background: #000;
  }
  /* The scaled page exposes the root at the viewport edges. Keep those
     gutters dark without painting the extended Safari toolbar area black. */
  :root.safari-document-underlay:has(.cinema-player-article[open]) {
    background-image: linear-gradient(#000, #000);
    background-size: 100% 100dvh;
    background-repeat: no-repeat;
  }
  /* Safari may replace content behind its controls with a solid sampled
     color when a viewport-fixed element touches that edge. Keep the player
     in document coordinates, as with the existing menu overscan. */
  :root.safari-document-underlay .cinema-player.cinema-player-article,
  :root.safari-document-underlay .cinema-player-article .cinema-player-screen {
    position: absolute;
  }
  /* The page zoom exposes its canvas at both sides, including beneath the
     floating toolbar. Fill only those gutters, below the document surfaces. */
  :root.safari-document-underlay .cinema-player-safari-edges {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--safari-surface-height);
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(to right, #000 0 4vw, transparent 4vw calc(100% - 4vw), #000 calc(100% - 4vw));
  }
  /* The page itself is scaled during the pull. Its composited edge can
     sample a bright subpixel; cover that edge in the same moving layer. */
  :root.safari-document-underlay .cinema-player-safari-edge-cover {
    position: absolute;
    inset: 36px 0 0;
    z-index: 1000;
    pointer-events: none;
  }
  :root.safari-document-underlay .cinema-player-safari-edge-cover::before,
  :root.safari-document-underlay .cinema-player-safari-edge-cover::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #000;
  }
  :root.safari-document-underlay .cinema-player-safari-edge-cover::before { left: -2px; }
  :root.safari-document-underlay .cinema-player-safari-edge-cover::after { right: -2px; }
  /* Android's surface is a transparent grain overlay ABOVE the buttons.
     Only Safari's document backing may become opaque black. */
  :root.has-page-player .film-backdrop { background: #000; }

  :root.safari-document-underlay .cinema-player-safari-underlay {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    /* Start behind the player footer, as the page underlay starts behind its
       navigation. The interactive player remains above this document paint. */
    top: calc(100dvh - 36px - env(safe-area-inset-bottom, 0px));
    bottom: 0;
    z-index: 29;
    background: transparent;
    will-change: opacity;
  }
  /* A real document surface continues the player's footer past the viewport.
     It belongs only to the player; a pull reveals the menu surface beneath. */
  :root.safari-document-underlay .cinema-player-article-underlay {
    bottom: auto;
    height: calc(var(--safari-surface-height) - 100dvh + 36px + env(safe-area-inset-bottom, 0px));
    z-index: 150;
    background-color: #000;
  }
  :root.safari-document-underlay .cinema-player-safari-underlay.has-media-overscan {
    overflow: hidden;
    background-color: #000;
    top: 100dvh;
    z-index: 201;
  }
  :root.safari-document-underlay .cinema-player-article-underlay.has-media-overscan {
    height: calc(var(--safari-surface-height) - 100dvh);
  }
  /* The carousel owns its extension, so Safari composites the shade with the
     actual controls rather than as a separate layer behind the viewer. */
  :root.safari-document-underlay .cinema-player.image-viewer { overflow: visible; }
  :root.safari-document-underlay .image-viewer-underlay.has-media-overscan { z-index: 150; }
  :root.safari-document-underlay .cinema-player-safari-underlay.image-viewer-underlay.has-media-overscan::after { content: none; }
  :root.safari-document-underlay .image-viewer .image-viewer-thumbnails { overflow: visible; background: transparent; }
  :root.safari-document-underlay .image-viewer .image-viewer-thumbnails::before {
    content: ''; position: absolute; z-index: 0; left: 0; right: 0; top: 0;
    height: calc(54px + var(--safari-surface-height)); background: rgb(0 0 0 / 60%); pointer-events: none;
  }
  :root.safari-document-underlay .image-viewer .image-viewer-thumbnail-track { z-index: 1; }
  :root.safari-document-underlay .cinema-player-article .cinema-player-top::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 100%;
    height: calc(120px + env(safe-area-inset-top, 0px)); background-color: rgb(0 0 0 / 60%); pointer-events: none;
  }
  :root.safari-document-underlay[data-eink='on'] .cinema-player-article .cinema-player-top::before {
    background-image: var(--eink-surface-image); background-size: 192px 192px;
  }
  :root.safari-document-underlay .cinema-player.has-article-mask:not([data-player-motion]):not([data-player-pull]) { overflow: visible; }
  :root.safari-document-underlay .cinema-player.has-article-mask:not([data-player-motion]):not([data-player-pull]) .cinema-player-screen {
    overflow: visible; clip-path: inset(-120px 0 0);
  }
  .cinema-player-overscan-media { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  :root.safari-document-underlay .cinema-player-overscan-top {
    position: absolute; left: 0; right: 0; top: calc(-120px - env(safe-area-inset-top, 0px));
    height: calc(120px + env(safe-area-inset-top, 0px)); z-index: 150; overflow: hidden; pointer-events: none; background: #000;
  }
  :root.safari-document-underlay .cinema-player-safari-underlay.has-media-overscan::after,
  :root.safari-document-underlay .cinema-player-overscan-top::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; background-color: rgb(0 0 0 / 60%);
  }
  :root.safari-document-underlay[data-eink='on'] .cinema-player-safari-underlay.has-media-overscan::after,
  :root.safari-document-underlay[data-eink='on'] .cinema-player-overscan-top::after {
    background-image: var(--eink-surface-image); background-size: 192px 192px;
  }
  :root.safari-document-underlay[data-eink='on'] .cinema-player-article-underlay {
    background-image: var(--eink-surface-image);
    background-size: 192px 192px;
    background-position: 0 calc(36px - 100dvh + 36px + env(safe-area-inset-bottom, 0px));
  }
  :root.safari-document-underlay .cinema-player-article-underlay.image-viewer-underlay {
    background: #000;
  }
  :root.safari-document-underlay[data-eink='on'] .cinema-player-article-underlay.image-viewer-underlay {
    background-image: none;
  }
  :root.safari-document-underlay {
    --safari-surface-height: calc(max(100%, 100lvh) + 160px + env(safe-area-inset-bottom, 0px));
    --safari-panel-top: calc(100dvh - var(--mobile-nav-height) - var(--mobile-bottom-inset));
  }

  :root.safari-document-underlay body,
  :root.safari-document-underlay body:has(.film-expanded[open]) {
    position: relative;
    inset: auto;
    height: var(--safari-surface-height);
    overflow: visible;
  }

  :root.safari-document-underlay .screen {
    position: absolute;
    bottom: auto;
    height: calc(100dvh - 36px);
    background: transparent;
    overflow: visible;
  }

  /* Fixed moving cards are clipped AND sampled as a solid toolbar tint by
     Safari. Use document coordinates, retaining the original resting size.
     Inline motion frames can still supply their captured geometry. */
  :root.safari-document-underlay .film-expanded {
    position: absolute;
    bottom: auto;
    height: calc(100dvh - 36px - var(--mobile-nav-height) - var(--mobile-bottom-inset));
  }

  :root.safari-document-underlay .film-backdrop {
    position: absolute;
    bottom: auto;
    height: calc(100dvh - 36px - var(--mobile-nav-height) - var(--mobile-bottom-inset));
  }

  /* Avoid a viewport-constrained opaque bar at the sampled bottom edge.
     The stage has the same dimensions as the old fixed containing block. */
  :root.safari-document-underlay .categories {
    position: absolute;
    background: transparent;
  }

  :root.safari-document-underlay .mobile-panel-surface {
    display: block;
    position: absolute;
    inset: 36px 0 0;
    height: auto;
    z-index: auto;
    opacity: 1;
    contain: none;
    overflow: visible;
    will-change: auto;
    transition: none;
    pointer-events: none;
    background: var(--color-screen);
  }

  :root.safari-document-underlay .mobile-panel-surface::before,
  :root.safari-document-underlay .mobile-panel-surface::after {
    content: none;
  }


  :root.safari-document-underlay .is-cinema .categories {
    /* One backing owns the shade under both controls and Safari's toolbar. */
    background: transparent;
  }
  /* The film shade covers the filter tab above the menu. Paint the same
     shade over the visible menu paper, below its icons and labels. */
  :root.safari-document-underlay .is-cinema .categories { isolation: isolate; }
  :root.safari-document-underlay .is-cinema .categories::before {
    content: ''; position: absolute; left: 0; right: 0; top: 0;
    height: calc(var(--safari-surface-height) - var(--safari-panel-top));
    z-index: -1; pointer-events: none;
    background: #000; opacity: var(--panel-ink-progress, 0);
    transition: opacity 260ms ease-in-out; will-change: opacity;
  }
  :root.safari-document-underlay .is-cinema .categories .category {
    transition: height 660ms var(--ease), color 260ms ease-in-out;
  }
  :root.safari-document-underlay .is-cinema .categories .category img {
    transition: width 660ms var(--ease), height 660ms var(--ease),
      scale 660ms var(--ease), opacity 200ms ease, filter 260ms ease-in-out;
  }

  :root.safari-document-underlay .mobile-panel-surface::after {
    --film-panel-progress: inherit;
    content: '';
    position: absolute;
    z-index: 2;
    inset: calc(var(--safari-panel-top) - 36px) 0 0;
    background: #000;
    box-shadow: none;
    opacity: var(--film-panel-progress, 0);
    transition: opacity 260ms ease-in-out;
    will-change: opacity;
    /* This sits behind the actual cards, not over their path into Safari. */
  }
  /* In the cinema, the menu shade above extends through this same document
     overscan. Suppress the second black layer to avoid doubling its opacity. */
  :root.safari-document-underlay:has(.screen.is-cinema) .mobile-panel-surface::after { content: none; }

  :root.safari-document-underlay[data-eink='on'] body::before,
  :root.safari-document-underlay body::after {
    position: absolute;
    inset: 36px 0 0;
    clip: auto;
    /* The large page texture is static. A separate menu-sized surface below
       carries its lower portion, fading only opacity on the compositor. */
    -webkit-mask-image: linear-gradient(to bottom,
      #000 calc(var(--safari-panel-top) - 36px),
      transparent 0);
    mask-image: linear-gradient(to bottom,
      #000 calc(var(--safari-panel-top) - 36px),
      transparent 0);
  }
  :root.safari-document-underlay .mobile-panel-grain {
    display: block;
    position: absolute;
    inset: var(--safari-panel-top) 0 0;
    z-index: 100;
    overflow: hidden;
    contain: strict;
    opacity: calc(1 - var(--film-panel-progress, 0));
    transition: opacity 260ms ease-in-out;
    will-change: opacity;
  }
  :root.safari-document-underlay[data-eink='on'] .mobile-panel-grain::before {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background-image: var(--eink-surface-image);
    background-size: 192px 192px;
    background-position: 0 calc(36px - var(--safari-panel-top));
  }
  :root.safari-document-underlay .mobile-panel-grain::after {
    content: '';
    position: absolute;
    inset: calc(36px - var(--safari-panel-top)) 0 0;
    box-shadow: inset 0 0 28px 4px rgb(21 21 21 / 38%), inset 0 0 7px 1px rgb(21 21 21 / 32%);
  }
}
@media (prefers-reduced-motion: reduce) {
  :root.safari-document-underlay .mobile-panel-surface::after,
  :root.safari-document-underlay .mobile-panel-grain,
  :root.safari-document-underlay .is-cinema .categories .category,
  :root.safari-document-underlay .is-cinema .categories .category img { transition: none; }
}
