/* Version 2: dark, grainy, type-led (PROFILO-ESTETICO.md).
   PROVISIONAL BRAND: revisit --bg, --accent once the real renders exist. */
:root {
  --bg: #181816;
  --bg-2: #222320;
  --ink: #ecebe4;
  --muted: #a3a298;
  --dim: #3b3c37;            /* unlit words, hairlines */
  --accent: #d9f20a;         /* acid yellow */
  --accent-ink: #14150f;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: "Courier Prime", "Courier New", Courier, monospace;   /* the screenplay face, for all small text */
  --gut: clamp(20px, 5.5vw, 80px);
  --bar: 64px;
  --ease: cubic-bezier(.7, 0, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--text); overflow-x: clip; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: var(--gut); top: -80px; z-index: 120; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); font: 700 20px/1 var(--display); text-transform: uppercase; text-decoration: none; }
.skip:focus { top: 8px; }

/* film grain over everything */
.grain { position: fixed; inset: -160px; z-index: 100; pointer-events: none; opacity: var(--grain, .2); animation: grain .8s steps(1) infinite; will-change: transform;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- the bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--bar); padding-inline: var(--gut); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); background: var(--bg); }
.bar a, .lang button, .bar__toggle { font: 700 20px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.bar__name { margin-right: auto; font-weight: 900; }
.bar__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); }
.bar__nav a { display: inline-flex; align-items: center; min-height: 44px; transition: color .2s; }
.bar__nav a:hover, .bar__nav a[aria-current="true"] { color: var(--accent); }
.bar__cta { color: var(--accent); }
.bar__cta:hover { color: var(--ink) !important; }
.lang { display: inline-flex; gap: 2px; }
.lang button { min-width: 44px; height: 44px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--ink); text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
.bar__toggle { display: none; height: 44px; padding: 0 4px; background: none; border: 0; cursor: pointer; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 2px solid var(--ink); background: none; color: var(--ink);
       font: 700 22px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .12s; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: translateY(2px); }
.btn--fill { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--fill:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--xl { width: 100%; min-height: 96px; font-size: clamp(32px, 4.4vw, 64px); font-weight: 900; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font: 700 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; text-decoration: underline 2px var(--accent); text-underline-offset: 6px; }
.textlink:hover { color: var(--accent); }

/* ---------- hero: the title and the showreel window ---------- */
.hero { position: relative; height: 240svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: clip; }
.hero__title { position: absolute; inset: var(--bar) var(--gut) 20px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.hero__word { display: block; width: max-content; font: 900 min(var(--fit, 22vw), 35svh)/.8 var(--display); text-transform: uppercase; color: var(--accent); white-space: nowrap; will-change: transform; }
.hero__word--a { transform: translateY(calc(var(--p, 0) * -75svh)); }
.hero__word--b { align-self: flex-end; position: relative; z-index: 3; transform: translateY(calc(var(--p, 0) * 75svh)); }
.hero__window { --w0: min(36vw, 64svh); --h0: calc(var(--w0) * .5625);
  position: absolute; left: 50%; top: calc(50% + var(--bar) / 2 * (1 - var(--p, 0))); z-index: 2; transform: translate(-50%, -50%);
  width: calc(var(--w0) + (100vw - var(--w0)) * var(--p, 0)); height: calc(var(--h0) + (100svh - var(--h0)) * var(--p, 0)); overflow: hidden; background: var(--bg-2); }
.hero__window > img { width: 100%; height: 100%; object-fit: cover; }
.hero__copy, .hero__facts { position: absolute; z-index: 4; top: calc(50% + var(--bar) / 2); transform: translateY(-50%); opacity: calc(1 - var(--p, 0) * 5); }
.hero__copy { left: var(--gut); width: min(24vw, 360px); display: grid; gap: 20px; }
.hero__lead { font-size: 15px; line-height: 1.5; }
.hero__actions { display: grid; gap: 10px; justify-items: start; }
.hero__facts { right: var(--gut); display: grid; gap: 6px; text-align: right; font: 700 20px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.hero__end { position: absolute; bottom: 100svh; left: 0; }
.hero.is-full .hero__copy, .hero.is-full .hero__facts { visibility: hidden; }

/* a film plays inside its slot */
[data-embed] { position: relative; }
[data-embed] > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 5; }
.play { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.play:hover { transform: translate(-50%, -50%) scale(1.08); }
.play svg { width: 34px; height: 34px; margin-left: 5px; }
.hero__window > .play { opacity: calc(var(--p, 0) * 3 - 2); }

/* ---------- statements lit by the scroll ---------- */
.say { min-height: 100svh; padding: 18svh var(--gut); display: grid; align-items: center; }
.say__text { max-width: 12ch; font: 900 clamp(46px, 10vw, 168px)/.84 var(--display); text-transform: uppercase; }
.say:nth-of-type(odd) .say__text { margin-left: auto; text-align: right; }
.js .say__text .w { color: var(--dim); transition: color .25s; }
.js .say__text .w.on { color: var(--ink); }
.js .say__text .w.on:last-child { color: var(--accent); }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 12vw, 170px) var(--gut); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34ch); gap: 24px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 72px); }
.giant { font: 900 clamp(48px, 9.2vw, 152px)/.84 var(--display); text-transform: uppercase; }
.giant--xl { font-size: clamp(52px, 10.7vw, 184px); color: var(--accent); margin-bottom: clamp(36px, 5vw, 72px); }
.sec__line { max-width: 36ch; color: var(--ink); }

/* trailers: the two formats side by side at one height */
/* the frames slide in from outside the screen: keep them from widening the page */
#trailers { overflow-x: clip; }
.reel { display: grid; grid-template-columns: 1.7778fr .5625fr .5625fr; gap: 12px; align-items: end; }
.ratio { font: 900 clamp(56px, 9.5vw, 160px)/.8 var(--display); color: var(--accent); }
.ratio--tall { grid-column: span 2; }
.shot { overflow: hidden; background: var(--bg-2); }
.shot > img { width: 100%; height: 100%; object-fit: cover; }
.shot--wide { aspect-ratio: 16 / 9; }
.shot--tall { aspect-ratio: 9 / 16; }
.shot .play { width: 72px; height: 72px; }

/* renders: filters as words, pictures as a wall */
.filters { display: flex; flex-wrap: wrap; gap: 4px clamp(16px, 2.6vw, 40px); margin-bottom: 28px; }
.filters button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; font: 900 clamp(26px, 3.2vw, 46px)/1 var(--display); text-transform: uppercase; transition: color .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--accent); }
.wall { columns: 3; column-gap: 12px; }
.wall figure { break-inside: avoid; margin-bottom: 12px; overflow: hidden; background: var(--bg-2); }
.wall figure[hidden] { display: none; }
.wall img { width: 100%; transition: transform .6s var(--ease); }
.wall figure:hover img { transform: scale(1.03); }

/* clients: a row of logo cells (reviews can follow later) */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logos li { aspect-ratio: 3 / 2; display: grid; place-items: center; border: 2px solid var(--dim); }
.logos img { width: 62%; height: 62%; object-fit: contain; }
.reviews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px); margin-top: clamp(36px, 5vw, 72px); }
.review blockquote { margin: 0; font: 900 clamp(30px, 3.4vw, 52px)/1 var(--display); text-transform: uppercase; }
.review figcaption { margin-top: 14px; color: var(--muted); }

/* services: pure type */
.list > li { display: grid; grid-template-columns: 3ch minmax(0, 1fr) minmax(0, 34ch); gap: 12px clamp(16px, 3vw, 40px); align-items: baseline; padding: 20px 0 16px; border-top: 2px solid var(--dim); }
.list > li:last-child { border-bottom: 2px solid var(--dim); }
.list__num { font: 700 22px/1 var(--display); color: var(--accent); }
.list h3 { font: 900 clamp(36px, 6.1vw, 100px)/.86 var(--display); text-transform: uppercase; }
.tools { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; font: 700 24px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.tools li { display: inline-flex; align-items: center; gap: 10px; }
.tools img { width: 36px; height: 36px; padding: 4px; border-radius: 50%; background: var(--ink); }

/* process: four numbered columns */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(16px, 2.4vw, 36px); }
.steps > li { padding-top: 16px; border-top: 2px solid var(--dim); }
.steps__num { display: block; font: 900 clamp(72px, 9vw, 150px)/.8 var(--display); color: var(--accent); }
.steps h3 { margin: 18px 0 8px; font: 900 clamp(30px, 3vw, 44px)/1 var(--display); text-transform: uppercase; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.contact__side { display: grid; gap: 20px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: grid; gap: 6px; }
.field--full, .form > .btn, .form__status { grid-column: 1 / -1; }
.field label { font: 700 18px/1.2 var(--display); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 8px 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; font-size: 18px; }
.field select { background: var(--bg); }
.field textarea { padding: 12px; border: 2px solid var(--ink); resize: vertical; }
.field :is(input, select, textarea):focus-visible { outline: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #ff7a5c; }
.field__error { color: #ff9a82; font-size: 15px; font-weight: 500; }
.field__error[hidden] { display: none; }
.form__status { min-height: 1.5em; }
.form__status:empty { display: none; }

/* footer: the moving strip, then the facts */
.foot { border-top: 2px solid var(--dim); }
.marquee { position: relative; overflow: hidden; padding: 20px 0 52px; }
.marquee__track { display: flex; width: max-content; font: 900 clamp(56px, 9vw, 150px)/.9 var(--display); text-transform: uppercase; color: var(--accent); white-space: nowrap; animation: strip 36s linear infinite; }
.marquee__track > span { padding-right: .25em; }
.marquee__track > span:nth-child(even) { color: var(--ink); }
.marquee.is-paused .marquee__track { animation-play-state: paused; }
@keyframes strip { to { transform: translateX(-50%); } }
.marquee__pause { position: absolute; right: var(--gut); bottom: 4px; min-height: 44px; padding: 0 12px; border: 0; background: var(--bg); color: var(--muted); font: 700 16px/1 var(--display); letter-spacing: .03em; text-transform: uppercase; cursor: pointer; }
.marquee__pause:hover { color: var(--ink); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: 32px; padding: 40px var(--gut) 48px; border-top: 2px solid var(--ink); }
.foot__name { font: 900 32px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
.foot__links { display: grid; gap: 2px; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; font: 700 22px/1 var(--display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
.foot__links a:hover { color: var(--accent); }
.foot__legal { display: grid; gap: 8px; justify-items: end; text-align: right; color: var(--muted); font-size: 15px; }

/* the curtain: a full screen of the accent between sections */
.curtain { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transform: translateY(101%); visibility: hidden; }
.curtain.is-in { visibility: visible; transform: translateY(0); transition: transform .45s var(--ease); }
.curtain.is-out { visibility: visible; transform: translateY(-101%); transition: transform .45s var(--ease); }
.curtain__word { font: 900 clamp(72px, 17vw, 300px)/.84 var(--display); text-transform: uppercase; text-align: center; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1023px) {
  .bar__toggle { display: inline-flex; align-items: center; }
  .bar__nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: var(--bar) var(--gut) 24px; background: var(--accent); visibility: hidden; transform: translateY(-101%); transition: transform .4s var(--ease), visibility 0s .4s; }
  .bar__nav a { color: var(--accent-ink); font-size: clamp(44px, 12vw, 96px); font-weight: 900; min-height: 0; line-height: .95; }
  .bar__nav a:hover, .bar__cta:hover { color: var(--bg) !important; }
  .bar.is-open .bar__nav { visibility: visible; transform: translateY(0); transition: transform .4s var(--ease); }
  .bar.is-open { background: var(--accent); color: var(--accent-ink); }
  .bar.is-open .lang button { color: var(--accent-ink); }
  .sec__head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact, .reviews { grid-template-columns: 1fr; }
  .list > li { grid-template-columns: 3ch minmax(0, 1fr); }
  .list > li > p { grid-column: 2; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__legal { justify-items: start; text-align: left; }
}
/* the pinned hero only on wide screens with motion allowed; elsewhere it is a plain stack */
@media (max-width: 1023px), (prefers-reduced-motion: reduce) {
  .hero { height: auto; padding: calc(var(--bar) + 16px) var(--gut) 48px; }
  .hero__stage { position: static; height: auto; overflow: visible; display: grid; gap: 16px; }
  .hero__title { position: static; display: contents; }
  .hero__word { transform: none !important; font-size: var(--fit, 22vw); }
  .hero__word--a { order: 1; } .hero__window { order: 2; } .hero__word--b { order: 3; justify-self: end; } .hero__copy { order: 4; } .hero__facts { order: 5; }
  .hero__window { position: relative; left: auto; top: auto; transform: none; width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .hero__window > .play { opacity: 1; }
  .hero__copy, .hero__facts { position: static; transform: none; opacity: 1; width: auto; }
  .hero__copy { margin-top: 16px; max-width: 46ch; }
  .hero__lead { font-size: 17px; }
  .hero__facts { text-align: left; margin-top: 8px; color: var(--muted); }
  .hero__end { display: none; }
}
@media (max-width: 639px) {
  .reel { grid-template-columns: 1fr 1fr; }
  .ratio--wide, .shot--wide { grid-column: 1 / -1; }
  .ratio--wide { order: 1; } .shot--wide { order: 2; } .ratio--tall { order: 3; margin-top: 20px; } .shot--tall { order: 4; }
  .wall { columns: 2; column-gap: 8px; } .wall figure { margin-bottom: 8px; }
  .logos { grid-template-columns: 1fr 1fr; gap: 8px; }
  .steps, .form, .foot__grid { grid-template-columns: 1fr; }
  .hero__actions { justify-items: stretch; }
  .say { min-height: 80svh; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__pause { display: none; }
  .js .say__text .w { color: var(--ink); transition: none; }
  .curtain { display: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- production marks ---------- */
/* the timecode in the bar runs with the scroll */
.tc { margin-right: auto; color: var(--muted); font: 400 15px/1 var(--text); white-space: nowrap; }
.bar__name { margin-right: 0; }
/* a slate line over each section: scene number, a rule, a technical note */
.slate { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px, 3vw, 40px); color: var(--muted); font: 400 15px/1 var(--text); text-transform: uppercase; white-space: nowrap; }
.slate i { flex: 1; height: 1px; background: var(--dim); }
.slate span:first-child { color: var(--accent); }
/* media frames: a slate tag, viewfinder corners, and safe-area guides under the pointer */
.mark { position: relative; }
.mark::before { content: attr(data-slate); position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 5px 8px 4px; background: var(--bg); color: var(--ink); font: 400 13px/1 var(--text); white-space: nowrap; pointer-events: none; }
.mark::after { content: ""; position: absolute; inset: 10px; z-index: 3; pointer-events: none; --c: rgba(236, 235, 228, .85); --l: 18px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) 1px, linear-gradient(var(--c), var(--c)) left top / 1px var(--l),
    linear-gradient(var(--c), var(--c)) right top / var(--l) 1px, linear-gradient(var(--c), var(--c)) right top / 1px var(--l),
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px, linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l),
    linear-gradient(var(--c), var(--c)) center / 14px 1px, linear-gradient(var(--c), var(--c)) center / 1px 14px;
  background-repeat: no-repeat; outline: 1px dashed transparent; outline-offset: -6%; transition: outline-color .25s; }
.mark:hover::after { outline-color: rgba(236, 235, 228, .55); }
.wall .mark::after { inset: 8px; --l: 12px; }
.wall .mark::before { left: 8px; bottom: 8px; font-size: 13px; }
.hero__window.mark::before { font-size: 14px; left: 14px; bottom: 14px; }
.hero__window.mark::after { inset: 14px; --l: 26px; }
@media (max-width: 479px) { .tc { display: none; } .bar__name { margin-right: auto; } }

/* ---------- entrances tied to the scroll (site/v2.js sets --t and --r; without script everything is in place) ---------- */
/* trailers: the 16:9 frame comes in from the left, the 9:16 pair from the right, the second from further out */
.js .reel .shot { will-change: transform; }
.js .reel .shot--wide { transform: translateX(calc((1 - var(--t, 1)) * -75vw)); }
.js .reel .shot--tall { transform: translateX(calc((1 - var(--t, 1)) * 60vw)); }
.js .reel .shot--tall:last-child { transform: translateX(calc((1 - var(--t, 1)) * 105vw)); }
/* the ratio numbers rise from behind their baseline while they count */
.js .reel .ratio { clip-path: inset(0 0 calc((1 - var(--t, 1)) * 100%) 0); transform: translateY(calc((1 - var(--t, 1)) * 70%)); font-variant-numeric: tabular-nums; }
/* clients: each box opens left to right, one after the other */
.js .logos li { clip-path: inset(0 calc((1 - var(--r, 1)) * 100%) 0 0); }
.js .logos li img { transform: translateX(calc((1 - var(--r, 1)) * -24px)); }

/* ---------- the two doors on the home page (and the single door on the inner pages) ---------- */
html.arriving::before { content: ""; position: fixed; inset: 0; z-index: 95; background: var(--accent); }
.curtain.is-held { visibility: visible; transform: none; transition: none; }
.gates { display: grid; gap: 12px; padding-block: clamp(40px, 6vw, 96px); }
.gate { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); color: var(--accent); text-decoration: none; }
.js .gate--l { clip-path: inset(0 calc((1 - var(--t, 1)) * 100%) 0 0); }
.js .gate--r { clip-path: inset(0 0 0 calc((1 - var(--t, 1)) * 100%)); }
.gate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.gate:hover > img, .gate:focus-visible > img { transform: scale(1.04); }
.gate__word { position: absolute; left: var(--gut); bottom: 3%; z-index: 2; font: 900 clamp(64px, 21vw, 340px)/.8 var(--display); text-transform: uppercase; transition: color .2s, transform .5s var(--ease); }
.gate--r .gate__word { left: auto; right: var(--gut); }
.gate:hover .gate__word, .gate:focus-visible .gate__word { color: var(--ink); transform: translateX(1.5vw); }
.gate--r:hover .gate__word, .gate--r:focus-visible .gate__word { transform: translateX(-1.5vw); }
.gate__go { position: absolute; top: 14px; right: 14px; z-index: 4; padding: 6px 10px 5px; background: var(--accent); color: var(--accent-ink); font: 700 14px/1 var(--text); text-transform: uppercase; }
.gate__go::after { content: " \2192"; }
.gate.mark::before { left: 14px; top: 14px; bottom: auto; font-size: 14px; }
.gate.mark::after { inset: 14px; --l: 26px; }
.gate:focus-visible { outline-offset: -6px; }

/* ---------- inner pages: the list of works, one work's gallery ---------- */
.sec--page { padding-top: calc(var(--bar) + clamp(40px, 6vw, 90px)); }
.works { border-bottom: 2px solid var(--dim); }
.works > li { border-top: 2px solid var(--dim); }
.work { position: relative; display: grid; grid-template-columns: 3ch minmax(0, 1fr) auto; gap: 8px clamp(16px, 3vw, 40px); align-items: baseline; padding: 14px 0 8px; color: inherit; text-decoration: none; }
.work__num { font: 700 22px/1 var(--display); color: var(--accent); }
.work__title { font: 900 clamp(48px, 9.5vw, 160px)/1 var(--display); text-transform: uppercase; transition: color .2s, transform .4s var(--ease); }
.work__for { font: 400 15px/1.3 var(--text); text-transform: uppercase; color: var(--muted); }
.work__for::after { content: " \2192"; color: var(--accent); }
.work:hover .work__title, .work:focus-visible .work__title { color: var(--accent); transform: translateX(16px); }
.work__peek { position: absolute; right: 16vw; top: 50%; z-index: 2; width: 26vw; aspect-ratio: 16 / 10; object-fit: cover; transform: translateY(-50%) scale(.96); opacity: 0; pointer-events: none; transition: opacity .25s, transform .4s var(--ease); }
.work:hover .work__peek, .work:focus-visible .work__peek { opacity: 1; transform: translateY(-50%) scale(1); }
.facts { display: flex; flex-wrap: wrap; gap: 16px clamp(32px, 6vw, 96px); margin: 0 0 clamp(36px, 5vw, 72px); padding: 16px 0; border-block: 2px solid var(--dim); }
.facts dt { font: 400 14px/1.2 var(--text); text-transform: uppercase; color: var(--muted); }
.facts dd { margin-top: 4px; font: 900 clamp(26px, 2.6vw, 38px)/1 var(--display); text-transform: uppercase; }
[data-work] .ratio { margin-top: clamp(28px, 4vw, 56px); margin-bottom: 12px; }
.films { display: grid; gap: 12px; }
.films--tall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.work-nav { display: grid; gap: 24px; justify-items: start; margin-top: clamp(48px, 7vw, 110px); }
.onward { display: grid; gap: 6px; width: 100%; padding: 16px 0 10px; border-block: 2px solid var(--dim); color: inherit; text-decoration: none; }
.onward__label { font: 400 15px/1 var(--text); text-transform: uppercase; color: var(--muted); }
.onward__title { font: 900 clamp(48px, 9.5vw, 160px)/1 var(--display); text-transform: uppercase; transition: color .2s, transform .4s var(--ease); }
.onward:hover .onward__title, .onward:focus-visible .onward__title { color: var(--accent); transform: translateX(16px); }
.sec--ask { display: grid; gap: clamp(24px, 4vw, 48px); }
.bar__nav a[aria-current="page"] { color: var(--accent); }
@media (max-width: 1023px) {
  .work__peek { display: none; }
  .films--tall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bar__nav a[aria-current="page"] { color: var(--bg); }
}
@media (max-width: 639px) {
  .work { grid-template-columns: 3ch minmax(0, 1fr); }
  .work__for { grid-column: 2; }
  .gate__go { display: none; }
  .gates { gap: 8px; }
}

/* ---------- what I make: four full-screen plates that cover one another ---------- */
/* each plate sticks to the top of the screen; the next one scrolls up over it, and back down on the way up */
.plate { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--bg-2); border-top: 2px solid var(--bg); }
.plate > img, .plate > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* the title stands on its side, larger than the screen, and runs past as the page scrolls (site/v2.js) */
.plate__word { position: absolute; left: var(--gut); top: 0; z-index: 2; margin: 0; writing-mode: vertical-rl; text-orientation: sideways; white-space: nowrap;
  font: 900 clamp(110px, 19vw, 300px)/.78 var(--display); text-transform: uppercase; color: var(--accent); will-change: transform; }
.js .plate__word { transform: translateY(100svh); }
.js .plate--lead .plate__word { transform: translateY(12svh); }
/* the caption stays level and readable */
.plate__note { position: absolute; right: var(--gut); bottom: clamp(20px, 5vw, 64px); z-index: 4; width: min(44ch, calc(100% - 2 * var(--gut))); padding: 22px 24px; background: var(--bg); display: grid; gap: 12px; }
.plate__num { font: 900 44px/.8 var(--display); color: var(--accent); }
.plate__note .tools { margin-top: 4px; gap: 10px 24px; font-size: 20px; }
.plate.mark::before { left: auto; right: 14px; top: calc(var(--bar) + 14px); bottom: auto; font-size: 14px; }
.plate.mark::after { inset: calc(var(--bar) + 14px) 14px 14px; --l: 26px; }
@media (prefers-reduced-motion: reduce) { .plate { position: relative; } }
/* one more screen of scroll, so the last plate holds like the others before the page moves on */
/* the scroll each plate holds for; site/v2.js sets the real height from the length of the title */
.stack__hold { height: 180svh; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .stack__hold { display: none; } }

/* the same plates on trailers.html and renders.html: one per work, the whole plate opens it */
.plate__hit { position: absolute; inset: 0; z-index: 3; }
.plate__meta { text-transform: uppercase; color: var(--muted); }
.plate__note .btn { justify-self: start; }
.plate--lead .plate__num { font-size: 44px; }
.plate:has(.plate__hit:hover) > img { transform: scale(1.03); }
.plate > img { transition: transform .9s var(--ease); }

/* ---------- film grain ----------
   The fine grain above (.grain) is larger than the screen and jumps to a new place eight times in .8s,
   so no two frames show the same pattern, like projected film. A second, coarser layer rides with it.
   Tune here: --grain is the strength (0 = off, .2 now); the vignette is body::after. */
:root { --grain: .2; }
@keyframes grain {
  0% { transform: translate(0, 0); } 12.5% { transform: translate(-70px, 45px); } 25% { transform: translate(55px, -95px); }
  37.5% { transform: translate(-120px, -35px); } 50% { transform: translate(85px, 110px); } 62.5% { transform: translate(-35px, 130px); }
  75% { transform: translate(125px, -55px); } 87.5% { transform: translate(-95px, -120px); }
}
.grain::after { content: ""; position: absolute; inset: 0; opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.42' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E"); }
/* the edges of the screen fall off a little, as in projection */
body::after { content: ""; position: fixed; inset: 0; z-index: 98; pointer-events: none; background: radial-gradient(ellipse at center, transparent 58%, rgba(0, 0, 0, .34) 100%); }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } }
