/* ==========================================================================
   Elizaveta Ponamarevskaya — portfolio
   Film-first, one continuous scroll-scrubbed take behind the whole page.
   ========================================================================== */

:root {
  --bg: #0d0c0b;
  --fg: #fff;
  --dim: rgb(255 255 255 / .66);
  --faint: rgb(255 255 255 / .44);
  --line: rgb(255 255 255 / .26);
  --accent: #e2623e;              /* rust, sampled from the film's lantern + hair */
  --m: clamp(16px, 2.25vw, 44px); /* outer margin */
  --gap: clamp(4px, .42vw, 8px);  /* grid gutter */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --panel-w: clamp(360px, 34vw, 660px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(15px, 1.02vw, 19px);
  line-height: 1.42;
  letter-spacing: -.012em;
}

img, video, iframe, svg { display: block; max-width: 100%; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; z-index: 120; left: var(--m); top: -80px;
  padding: 12px 16px; background: var(--fg); color: var(--bg); font-weight: 500;
}
.skip:focus { top: var(--m); }

/* serif multiplication sign, the one typographic accent */
.x {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  letter-spacing: 0; padding: 0 .06em; font-size: 1.08em; line-height: 0;
}

/* --------------------------------------------------------------------------
   Film layer
   -------------------------------------------------------------------------- */
.film {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: #1c1b20;
}
.film__still, .film__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.film__still {
  background: center / cover no-repeat;
  opacity: 0; transition: opacity .6s var(--ease);
}
.film__still.is-on { opacity: 1; }
.film__still[data-still="0"] { background-image: url("media/still-s0-1920.jpg"); }
@media (max-width: 899px) {
  .film__still[data-still="0"] { background-image: url("media/still-s0-1440.jpg"); }
}
@media (max-width: 899px) and (orientation: portrait) {
  .film__still[data-still="0"] { background-image: url("media/still-s0-p.jpg?v=6"); }
}
.film__video {
  object-fit: cover;
  opacity: 0; transition: opacity .9s var(--ease);
}
.film.is-ready .film__video { transition: none; } /* app.js dissolves a swap over the copy beneath */
/* upright phones: the film as a run of frames on a canvas, as tall as the screen with the address bar hidden */
.film__seq { position: absolute; left: 0; top: 0; z-index: 2; display: block; width: 100%; height: 100vh; height: 100lvh; }
.film__veil { z-index: 3; }
/* the swing (app.js): a still of the resting frame over the film, dissolving as the swing starts */
.film__snap {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; opacity: 0;
}
.film__snap.is-on { opacity: 1; }
.film__snap.is-on.is-out { opacity: 0; transition: opacity .25s linear; }
@media (max-width: 899px) { .film__snap { object-position: 60% 50%; } }
.film__veil {
  position: absolute; inset: 0; background: #0a0908;
  opacity: var(--veil, .2);
  transition: opacity 1s var(--ease);
}
.film::after { /* lens vignette */
  z-index: 4;
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(125% 95% at 50% 45%, transparent 48%, rgb(0 0 0 / .62) 100%);
}
/* projector life: a faint exposure flicker over the film (the picture itself stays still) */
.film::before {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: #fff8ee; opacity: 0;
  animation: flicker .9s steps(1, end) infinite;
}
@keyframes flicker {
  0% { opacity: .012; } 11% { opacity: .028; } 22% { opacity: .006; } 33% { opacity: .02; }
  44% { opacity: .01; } 55% { opacity: .032; } 66% { opacity: .014; } 77% { opacity: .004; } 88% { opacity: .022; }
}

/* legibility scrims for the fixed header and timecode */
.tint {
  position: fixed; left: 0; right: 0; z-index: 1; height: 18vh; pointer-events: none;
}
.tint--top { top: 0; background: linear-gradient(rgb(8 7 6 / .5), rgb(8 7 6 / 0)); }
.tint--bottom { bottom: 0; background: linear-gradient(rgb(8 7 6 / 0), rgb(8 7 6 / .42)); }

/* animated film grain, frame-stepped like a projector, never smooth.
   It lives on the film only: text, works and the case player sit above it, untouched.
   Soft-light keeps the film's own colour and blacks instead of greying them out;
   it is lighter on the screens where a face carries the frame (hero, contact). */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  opacity: var(--grain, .11);
  transition: opacity 1.2s var(--ease);
}
.grain::before { /* just oversized enough that the jitter (≤ 6 % of its size) never shows an edge; clipped by .grain */
  content: ""; position: absolute; top: -8%; left: -8%; width: 116%; height: 116%;
  background-image: var(--noise);
  background-size: 192px 192px;
  animation: grain .66s steps(1, end) infinite;
}
@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  17%  { transform: translate3d(-4%, 3%, 0); }
  33%  { transform: translate3d(3%, -5%, 0); }
  50%  { transform: translate3d(-6%, -2%, 0); }
  67%  { transform: translate3d(5%, 4%, 0); }
  83%  { transform: translate3d(-2%, 6%, 0); }
}

/* Loader: the word for "frame" melts between Chinese, Russian and English */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg);
  transition: opacity .9s var(--ease), filter .9s var(--ease), visibility 0s linear .9s;
}
.loader.is-out { opacity: 0; filter: blur(18px); visibility: hidden; }
.loader.is-out .loader__word span { animation-play-state: paused; } /* "frame" stays while the loader dissolves */
.loader__word {
  position: relative; margin: 0; width: 4.2em; height: 1.1em;
  font-size: clamp(64px, 12vw, 190px); font-weight: 600; line-height: 1.1; letter-spacing: -.07em;
  filter: url(#melt);
}
.loader__word span {
  position: absolute; inset: 0; text-align: center;
  opacity: 0; animation: melt 2.7s var(--ease) infinite;
}
/* a classic Song (serif) face so 画 reads as a written character, not as an icon */
.loader__word span[lang="zh"] {
  font-family: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  font-weight: 400; letter-spacing: 0;
}
.loader__word span:nth-child(2) { animation-delay: .9s; }
.loader__word span:nth-child(3) { animation-delay: 1.8s; }
@keyframes melt {
  0% { opacity: 0; filter: blur(10px); transform: scale(.97); }
  9%, 33% { opacity: 1; filter: blur(0); transform: none; }
  42%, 100% { opacity: 0; filter: blur(10px); transform: scale(1.02); }
}
.loader__tc {
  margin: 0; font-size: 13px; letter-spacing: .04em; color: var(--dim); font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Header + timecode
   -------------------------------------------------------------------------- */
.header {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: max(10px, calc(var(--m) * .55)) var(--m);
  font-size: clamp(15px, 1.02vw, 19px);
  letter-spacing: -.04em;
}
.logo { display: flex; align-items: baseline; gap: .55em; min-height: 44px; align-items: center; }
.logo__mark { font-weight: 600; }
.logo__name { color: var(--dim); font-weight: 500; transition: color .4s var(--ease); }
.logo:hover .logo__name { color: var(--fg); }
.header__right { display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); }
.nav { display: flex; align-items: center; }
.lang { display: flex; align-items: center; color: var(--faint); }
.lang button {
  min-width: 30px; min-height: 44px; color: var(--dim); letter-spacing: .02em;
  transition: color .4s var(--ease);
}
.lang button:hover, .lang button[aria-pressed="true"] { color: var(--fg); }
.lang button[aria-pressed="true"] { font-weight: 500; }
.nav span { color: var(--dim); margin-right: .38em; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--dim); transition: color .4s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--fg); }
.nav a[aria-current="true"] { font-weight: 500; }

/* edit-timeline corner: timecode, the sections as clips, a red playhead you can scrub */
.tc {
  --track: clamp(120px, 10vw, 190px);
  position: fixed; z-index: 50; right: var(--m); bottom: max(6px, calc(var(--m) * .55 - 7px));
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .02em; color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.tc__time { margin: 0; }
.tc__track {
  position: relative; width: var(--track); height: 30px;
  cursor: ew-resize; touch-action: none;
}
.tc__track:focus-visible { outline: 1px solid var(--fg); outline-offset: 2px; }
.tc__seg, .tc__buf {
  position: absolute; top: 50%; height: 4px; margin-top: -2px; pointer-events: none;
}
.tc__seg { background: rgb(255 255 255 / .2); transition: background .4s var(--ease); }
.tc__seg.is-on { background: rgb(255 255 255 / .62); }
.tc__buf {
  left: 0; right: 0; background: rgb(255 255 255 / .5);
  transform: scaleX(0); transform-origin: 0 50%;
  opacity: 0; transition: opacity .6s var(--ease);
}
.tc__track.is-loading .tc__buf { opacity: 1; }
.tc__head {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: 1px; margin-left: -.5px;
  background: var(--accent); pointer-events: none;
}
.tc__head::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top: 5px solid var(--accent); border-bottom: 0;
}
.tc__tip {
  position: absolute; bottom: 100%; margin-bottom: 2px; transform: translateX(-50%);
  white-space: nowrap; font-size: 12px; color: var(--fg);
  opacity: 0; transition: opacity .25s var(--ease); pointer-events: none;
}
.tc__track.is-scrubbing .tc__tip { opacity: 1; }
@media (hover: hover) { .tc__track:hover .tc__tip { opacity: 1; } }

/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */
main { position: relative; z-index: 2; overflow-x: clip; } /* soft text shades reach past the edges; clip (unlike hidden) keeps sticky sections working */
section { position: relative; }

.label {
  margin: 0 0 1.4em;
  font-size: clamp(14px, .95vw, 17px); font-weight: 500; letter-spacing: -.02em;
  color: var(--dim);
}

.status::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: .65em; vertical-align: .12em; background: var(--accent);
}

/* text that develops like film: blur → focus, through a liquid threshold */
[data-goo] .gw {
  display: inline-block;
  opacity: 0; filter: blur(14px); transform: translate3d(0, .14em, 0);
  transition:
    opacity .9s var(--ease) calc(var(--i, 0) * 75ms),
    filter 1.25s var(--ease) calc(var(--i, 0) * 75ms),
    transform 1.25s var(--ease) calc(var(--i, 0) * 75ms);
}
[data-goo].is-in .gw { opacity: 1; filter: blur(0); transform: none; }
[data-goo].is-developing { filter: url(#goo); }
/* developed: no filter left at all (Safari kept drawing the invisible blur(0) on every frame) */
[data-goo].is-in:not(.is-developing) .gw { filter: none; transition: none; }
/* Safari draws the liquid threshold (an SVG filter) without the graphics card, on every frame of the
   develop: there the words come into focus through the blur alone */
.is-safari [data-goo].is-developing { filter: none; }

/* letters of the big lines, moved by the cursor (app.js) with relative offsets so kerning survives */
.ch { position: relative; }

/* Legibility without darkening the whole film: the veil stays light and each block of text
   carries its own soft shade, so the picture around it keeps its colour. */
.scrim { position: relative; isolation: isolate; text-shadow: 0 1px 24px rgb(0 0 0 / .38); }
.scrim::before {
  content: ""; position: absolute; z-index: -1; inset: -22% -14%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(10 9 8 / .6), rgb(10 9 8 / .3) 60%, rgb(10 9 8 / 0));
}
.hero::before, .contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(110% 85% at 0% 100%, rgb(8 7 6 / .55), rgb(8 7 6 / .18) 45%, rgb(8 7 6 / 0) 70%);
}
/* the hero shade sits low, behind the title, so it must fade out before the section ends — no visible edge when it scrolls away */
.hero::before {
  background: radial-gradient(115% 70% at 0% 72%, rgb(8 7 6 / .5), rgb(8 7 6 / .16) 46%, rgb(8 7 6 / 0) 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 0, #000 62%, transparent 98%);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--m) * 3.2) var(--m) max(14px, calc(var(--m) * .55));
  text-shadow: 0 0 60px rgb(0 0 0 / .25);
}
.hero__main { align-self: end; padding-bottom: 7vh; }
/* the hero text, its wide soft shadow included, is drawn once into its own layer and only moved after
   that: Safari otherwise redrew the shadowed title while the film ran under it (a fifth of the frames) */
.hero__main { will-change: transform; }
.hero__display {
  font-size: clamp(44px, 6.8vw, 132px);
  font-weight: 600; line-height: .86; letter-spacing: -.08em;
}
.hero__display > span { display: block !important; width: max-content; }
/* Russian runs longer: the big lines get a touch more size, still clear of her face */
html[lang="ru"] .hero__display { font-size: clamp(44px, 7.2vw, 140px); }
html[lang="ru"] .contact__title { font-size: clamp(44px, 7.2vw, 140px); }
html[lang="ru"] .approach__text { font-size: clamp(32px, 4.9vw, 92px); }
html[lang="ru"] .caps__title, html[lang="ru"] .about__lead { font-size: clamp(36px, 5.6vw, 108px); }
.js [data-goo]:not(.is-split) { visibility: hidden; }
/* role and one line under the slogan, with air between them so the three don't read as one lump */
.hero__role {
  margin: 1.4em 0 0;
  font-size: clamp(18px, 1.65vw, 31px);
  font-weight: 500; line-height: 1.12; letter-spacing: -.035em;
}
.hero__sub {
  max-width: 34em; margin: .6em 0 0;
  font-size: clamp(15px, 1.15vw, 20px); line-height: 1.3; letter-spacing: -.025em; color: rgb(255 255 255 / .84);
}
/* quiet text links in place of buttons: underline, an arrow, orange on hover */
.cta { display: flex; flex-wrap: wrap; gap: 0 clamp(22px, 2.2vw, 40px); margin: 1em 0 0; }
.cta__a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: clamp(15px, 1.05vw, 19px); font-weight: 500; letter-spacing: -.02em;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .32em;
  transition: color .4s var(--ease);
}
.cta__a::after { content: "→"; margin-left: .45em; text-decoration: none; display: inline-block; transition: transform .4s var(--ease); }
.cta__a:hover { color: var(--accent); }
.cta__a:hover::after { transform: translateX(4px); }
.hero__foot {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  font-size: clamp(13px, .9vw, 16px); color: var(--dim); letter-spacing: -.02em;
}
.cue {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 44px; justify-content: flex-end;
  transition: color .4s var(--ease);
}
.cue:hover { color: var(--fg); }
.cue svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1;
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }


/* --------------------------------------------------------------------------
   Approach — a statement that lights up word by word with the scroll
   -------------------------------------------------------------------------- */
.approach { height: 270vh; }
.approach__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--m);
}
.approach__text {
  margin: 0;
  font-size: clamp(36px, 5.7vw, 108px);
  font-weight: 500; line-height: .98; letter-spacing: -.06em;
}
.approach__sub {
  max-width: 29em; margin-top: 1.6em;
  font-size: clamp(17px, 1.45vw, 26px);
  line-height: 1.3; letter-spacing: -.025em;
}
[data-words] .w { opacity: var(--o, .22); transition: opacity .2s linear; }
@media (hover: none) and (pointer: coarse) { [data-words] .w { transition: none; } }
.approach__sub .para { display: block; }
.approach__sub .para + .para { margin-top: .55em; }

/* --------------------------------------------------------------------------
   Work
   -------------------------------------------------------------------------- */
.work {
  min-height: 100vh;
  padding: calc(var(--m) * 3.6) var(--m) calc(var(--m) * 2.4);
}
.work__head {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-bottom: calc(var(--m) * .9);
}
.work__head .label { margin: 0; }
.work__count { color: var(--faint); font-variant-numeric: tabular-nums; }
.work__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px clamp(20px, 2.4vw, 48px);
}
.filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 clamp(12px, 1.1vw, 20px);
  font-size: clamp(16px, 1.1vw, 20px); letter-spacing: -.05em;
}
.filters button {
  min-height: 44px; color: var(--dim);
  transition: color .4s var(--ease);
}
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--fg); }
.filters button[aria-pressed="true"] { font-weight: 500; }
.filters sup { font-size: .6em; color: var(--faint); margin-left: .15em; letter-spacing: 0; }
.views { display: flex; }
.views button {
  width: 44px; height: 44px; display: grid; place-items: center;
  color: var(--dim); transition: color .4s var(--ease);
}
.views button:hover, .views button[aria-pressed="true"] { color: var(--fg); }
.views svg { width: 22px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.views svg * { vector-effect: non-scaling-stroke; }
.work__all {
  display: inline-flex; align-items: center; gap: .35em; min-height: 44px;
  font-size: 13px; letter-spacing: .01em; color: var(--dim); transition: color .4s var(--ease);
}
.work__all:hover { color: var(--fg); }
.motion {
  min-height: 44px; font-size: 13px; letter-spacing: .01em; color: var(--dim);
  transition: color .4s var(--ease);
}
.motion:hover { color: var(--fg); }
.motion { display: inline-flex; align-items: center; gap: 10px; }
.motion__switch { /* the state lives here: orange and right = playing */
  position: relative; width: 30px; height: 16px; border-radius: 8px;
  border: 1px solid rgb(255 255 255 / .45); transition: background .3s var(--ease), border-color .3s var(--ease);
}
.motion__switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%;
  background: rgb(255 255 255 / .7); transition: transform .3s var(--ease), background .3s var(--ease);
}
.motion[aria-pressed="true"] .motion__switch { background: var(--accent); border-color: var(--accent); }
.motion[aria-pressed="true"] .motion__switch::after { transform: translateX(14px); background: #fff; }
.work__note { text-align: center; color: var(--dim); font-size: 14px; margin: -8px 0 16px; }
.work__note a { text-decoration: underline; text-underline-offset: .2em; }

/* justified, gapless video grid; every tile keeps its film's own aspect ratio */
.grid {
  position: relative; list-style: none; margin: 0; padding: 0;
  column-gap: var(--gap);
  transition: opacity .28s var(--ease);
}
.grid.is-fading { opacity: 0; }
.tile {
  position: absolute; top: 0; left: 0;
  overflow: hidden; background: #121110;
  transition: opacity .5s var(--ease);
}
.tile[hidden] { display: none; }
.work:not(.is-strip) .grid.is-hovering .tile:not(.is-hover) { opacity: .5; }
.tile__btn { position: absolute; inset: 0; width: 100%; height: 100%; display: block; text-align: left; }
.tile__btn:focus-visible { outline: 2px solid var(--fg); outline-offset: -2px; }
.tile img, .tile iframe {
  position: absolute; top: -1px; left: -1px;
  width: calc(100% + 2px); height: calc(100% + 2px);
  object-fit: cover; border: 0;
}
.tile iframe { opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.tile.is-playing iframe { opacity: 1; }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 28px 12px 10px;
  font-size: clamp(13px, .86vw, 15px); letter-spacing: -.025em; line-height: 1.2;
  background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .62));
  opacity: 0; transform: translateY(6px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.tile__title { font-weight: 500; }
.tile__cat { color: rgb(255 255 255 / .78); white-space: nowrap; }
.tile__btn:hover .tile__cap, .tile__btn:focus-visible .tile__cap { opacity: 1; transform: none; }
@media (hover: none) { .tile__cap { opacity: 1; transform: none; } }

/* strip view — an endless ring after pivenilya.com, drawn with WebGL (app.js). The section is
   pinned while the page scroll turns the ring a few films; then the page moves on. */
.reel__frame, .strip__caption, .reel__live, .reel__arrow, .reel__continue { display: none; }
.work.is-strip { padding: 0; }
.work.is-strip .work__pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; overflow: clip;
}
.work.is-strip .work__head {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--m) * 3.3);
  margin: 0; padding: 0 var(--m);
}
.work.is-strip .work__note {
  position: absolute; z-index: 3; left: var(--m); right: var(--m); bottom: calc(var(--m) * 3.4); margin: 0;
}
.work.is-strip .reel {
  --cy: 54%;
  position: absolute; inset: 0;
  touch-action: pan-y; cursor: grab;
  -webkit-user-select: none; user-select: none;
}
.work.is-strip .reel.is-dragging { cursor: grabbing; }
.reel__canvas { display: none; }
.work.is-strip .reel__canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
/* the list stays for keyboards and screen readers; the ring is the picture */
.work.is-strip .grid {
  position: absolute !important; width: 1px; height: 1px !important; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.work.is-strip .reel__live {
  display: block; position: absolute; overflow: hidden; pointer-events: none;
  background: transparent;
}
.reel__live iframe {
  position: absolute; top: -2px; left: -2px; width: calc(100% + 4px); height: calc(100% + 4px); border: 0;
  opacity: 0; transition: opacity .6s var(--ease);
}
.reel__live.is-playing iframe { opacity: 1; }
.reel__live.is-moving iframe { opacity: 0; transition-duration: .12s; }
.work.is-strip .reel__frame {
  display: block; position: absolute; left: 50%; top: var(--cy); pointer-events: none;
  border: 1px solid rgb(255 255 255 / .13);
  transition: border-color .3s var(--ease);
}
.reel.is-focus .reel__frame { border-color: var(--accent); }
.reel__frame i { position: absolute; width: 13px; height: 13px; }
.reel__frame i::before, .reel__frame i::after { content: ""; position: absolute; background: var(--fg); }
.reel__frame i::before { left: 0; right: 0; top: 6px; height: 1px; }
.reel__frame i::after { top: 0; bottom: 0; left: 6px; width: 1px; }
.reel__frame i:nth-child(1) { left: -7px; top: -7px; }
.reel__frame i:nth-child(2) { right: -7px; top: -7px; }
.reel__frame i:nth-child(3) { left: -7px; bottom: -7px; }
.reel__frame i:nth-child(4) { right: -7px; bottom: -7px; }
.work.is-strip .strip__caption {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  position: absolute; left: 0; right: 0; top: var(--cy); margin: 0;
  text-align: center; letter-spacing: -.05em; pointer-events: none;
}
.strip__title { font-size: clamp(19px, 1.35vw, 26px); font-weight: 500; }
.strip__cat { color: var(--dim); font-size: clamp(14px, .95vw, 17px); }
/* reach of the loudest films, one quiet line under the year; the numbers stay white */
.strip__reach { margin-top: 3px; color: var(--faint); font-size: 13px; letter-spacing: -.01em; white-space: nowrap; }
.strip__reach:empty { display: none; }
.strip__reach b { color: rgb(255 255 255 / .9); font-weight: 500; }
/* sideways arrows browse the ring; they sit at the sides, level with the films */
.work.is-strip .reel__arrow {
  display: grid; place-items: center; position: absolute; z-index: 4; top: var(--cy);
  width: 58px; height: 58px; margin-top: -29px; border-radius: 50%;
  color: var(--fg); background: rgb(13 12 11 / .38); border: 1px solid rgb(255 255 255 / .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.reel__arrow--prev { left: calc(var(--m) * 1.4); }
.reel__arrow--next { right: calc(var(--m) * 1.4); }
.work.is-strip .reel__arrow:hover { background: rgb(255 255 255 / .14); border-color: var(--fg); }
.work.is-strip .reel__arrow:active { transform: scale(.94); }
.reel__arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
/* "Continue" + a down arrow: the way on down the page, kept apart from the sideways arrows */
.work.is-strip .reel__continue {
  display: flex; flex-direction: column; align-items: center; gap: 6px; position: absolute; z-index: 4;
  left: 50%; bottom: calc(var(--m) * 1.5); transform: translateX(-50%); min-height: 44px; justify-content: flex-end;
  font-size: 13px; letter-spacing: .02em; color: var(--dim); transition: color .4s var(--ease);
}
.work.is-strip .reel__continue:hover { color: var(--fg); }
.reel__continue svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.2;
  animation: cue 2.4s var(--ease) infinite;
}
@media (max-width: 899px) {
  .work.is-strip .reel__arrow { width: 44px; height: 44px; margin-top: -22px; }
  .reel__arrow--prev { left: 8px; }
  .reel__arrow--next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .reel__continue svg { animation: none; } }

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.about { min-height: 150vh; padding: 26vh var(--m) 18vh; }
.about__text {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m);
  align-content: start;
}
.about .label { grid-column: 1 / -1; }
.about__lead {
  grid-column: 1 / span 10;
  font-size: clamp(36px, 5.4vw, 104px);
  font-weight: 500; line-height: .98; letter-spacing: -.06em;
}
/* one paragraph, set at a reading size and measure, left under the lead */
.about__body {
  grid-column: 1 / span 7; margin: 2.2em 0 0; max-width: 34em;
  font-size: clamp(17px, 1.3vw, 23px); line-height: 1.38; letter-spacing: -.02em; color: rgb(255 255 255 / .88);
}

/* --------------------------------------------------------------------------
   Brands — opening credits over the fall (app.js switches the cards with the scroll)
   -------------------------------------------------------------------------- */
.brands { padding: 0 var(--m); }
.clients { /* a tall track: the screen is pinned while she lets go and falls through the towers */
  min-height: 210vh; min-height: 210svh; margin-top: 6vh; margin-inline: calc(var(--m) * -1);
  display: flex; flex-direction: column;
}
.clients__pin { /* title in the upper third, logos in the lower: the middle stays free for the fall */
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; padding: 23vh var(--m) 15vh;
}
.clients__title {
  position: relative; z-index: 1; margin: 0 auto; padding: 0 var(--m); max-width: 15em; text-align: center;
  font-size: clamp(30px, 3.6vw, 66px); font-weight: 500; line-height: .98; letter-spacing: -.06em;
  text-shadow: 0 2px 34px rgb(0 0 0 / .5), 0 0 3px rgb(0 0 0 / .18);
}
/* one full-width column, so every card centres on the screen, not on the widest card */
.clients__stage { --lh: clamp(34px, 3.3vw, 58px); position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; height: calc(var(--lh) * 2.4); }
.clients__card {
  grid-area: 1 / 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px clamp(40px, 5.5vw, 104px);
  opacity: 0; filter: blur(10px); transform: translateY(10px);
  transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease);
}
.clients__card.is-on { opacity: 1; filter: none; transform: none; }
.clients__logo { display: flex; align-items: center; justify-content: center; }
.clients__logo img { /* white marks with a soft shadow of their own, no shade band behind them */
  display: block; width: auto; max-width: none; height: calc(var(--lh) * var(--k, 1));
  filter: brightness(0) invert(1) drop-shadow(0 1px 16px rgb(0 0 0 / .4));
}
.clients__word {
  font-size: calc(var(--lh) * .5); font-weight: 600; letter-spacing: .06em; white-space: nowrap;
  text-shadow: 0 1px 16px rgb(0 0 0 / .4);
}
/* the name beside a mark (Adobe), in Adobe's own Source Sans, a near twin of its wordmark face */
.clients__wm {
  margin-left: calc(var(--lh) * var(--k, 1) * .42);
  font-family: "Source Sans 3", var(--font); font-size: calc(var(--lh) * var(--k, 1) * 1.25); font-weight: 600;
  line-height: 1; letter-spacing: -.01em; white-space: nowrap; text-shadow: 0 1px 16px rgb(0 0 0 / .4);
}
@media (max-width: 899px) {
  .clients__pin { padding: 21vh var(--m) 17vh; }
  .clients__stage { --lh: 30px; }
  /* three per card on a phone never fit one line: every card is the same small pyramid, two over one */
  .clients__card { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 20px 34px; }
  .clients__card > :nth-child(3) { grid-column: 1 / -1; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) { .clients__card { transition: opacity .3s linear; filter: none; transform: none; } }

/* --------------------------------------------------------------------------
   Viewfinder cursor (fine pointers only; app.js moves it)
   -------------------------------------------------------------------------- */
html.has-vf, html.has-vf * { cursor: none !important; }
html.has-vf iframe { cursor: auto !important; }
.vf, .vf-dot { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease); mix-blend-mode: difference; }
.vf.is-on, .vf-dot.is-on { opacity: 1; }
.vf { width: 22px; height: 22px; }
.vf i { position: absolute; width: 7px; height: 7px; border: 0 solid #fff; transition: border-color .2s var(--ease); }
.vf i:nth-child(1) { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.vf i:nth-child(2) { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.vf i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.vf i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.vf.is-down i { width: 10px; height: 10px; }
.vf__label {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #fff;
  opacity: 0; transition: opacity .2s var(--ease);
}
.vf.has-label .vf__label { opacity: 1; }
.vf-dot { width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
.vf.has-label ~ .vf-dot { opacity: 0; }

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */
.caps { min-height: 130vh; padding: 26vh var(--m) 18vh; }
.caps__title {
  margin-bottom: .6em;
  font-size: clamp(44px, 7.4vw, 142px);
  font-weight: 600; line-height: .9; letter-spacing: -.075em;
}
/* each row: what the client needs on the left, big enough to catch in passing; my answer on the right */
.caps__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.caps__list li {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); align-items: baseline;
  padding: clamp(14px, 2.3vh, 26px) 0; border-top: 1px solid var(--line);
}
.caps__list h3 {
  grid-column: 1 / span 6; margin: 0;
  font-size: clamp(24px, 2.5vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -.05em;
}
.caps__list p { grid-column: 7 / span 5; margin: 0; max-width: 30em; color: var(--dim); font-size: clamp(15px, 1.1vw, 19px); line-height: 1.38; }

/* --------------------------------------------------------------------------
   Process — an edit timeline the scroll plays through
   -------------------------------------------------------------------------- */
.process { height: 280vh; }
/* Pinned blocks (app.js, "pins"): fixed to the window like the header, and moved in and out by the
   script exactly where position: sticky would put them. Safari shook sticky text by a pixel on every
   few frames of scrolling (the fixed header never moved); while a block is pinned nothing moves it now.
   Without the script (no .has-pins) they stay sticky. */
.has-pins .approach__sticky, .has-pins .clients__pin, .has-pins .process__sticky {
  position: fixed; top: 0; left: 0; right: 0;
  visibility: hidden; will-change: transform;
}
.process__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; grid-template-rows: 1fr auto; padding: calc(var(--m) * 4) var(--m) calc(var(--m) * 3.4);
}
.process__now { align-self: center; max-width: 52rem; }
.process__num { margin: 0; font-size: 14px; letter-spacing: .06em; color: var(--accent); font-variant-numeric: tabular-nums; }
.process__title {
  margin: .15em 0 .25em; font-size: clamp(44px, 6.6vw, 128px); font-weight: 600; line-height: .92; letter-spacing: -.065em;
}
.process__text { margin: 0; max-width: 30em; font-size: clamp(17px, 1.4vw, 25px); line-height: 1.3; letter-spacing: -.025em; color: rgb(255 255 255 / .9); }
.process__now.is-swap .process__title, .process__now.is-swap .process__text, .process__now.is-swap .process__num {
  animation: procIn .7s var(--ease) both;
}
.process__now.is-swap .process__text { animation-delay: .08s; }
@keyframes procIn { from { opacity: 0; transform: translate3d(0, .4em, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.nle {
  --pad: 40px;
  position: relative; padding: 26px 0 0 var(--pad);
  border-top: 1px solid rgb(255 255 255 / .16);
  background: linear-gradient(rgb(13 12 11 / .62), rgb(13 12 11 / .5));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  cursor: ew-resize; touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.nle.is-scrubbing { cursor: grabbing; }
.nle.is-scrubbing .nle__clip { pointer-events: none; }
.nle__ruler {
  position: absolute; left: var(--pad); right: 0; top: 0; height: 24px;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .28) 0 1px, transparent 1px calc(100% / 48));
  -webkit-mask-image: linear-gradient(#000 0 40%, transparent 40%); mask-image: linear-gradient(#000 0 40%, transparent 40%);
}
.nle__ruler span {
  position: absolute; top: 10px; transform: translateX(4px);
  font-size: 10px; letter-spacing: .04em; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.nle__ruler span:last-child { transform: translateX(calc(-100% - 4px)); }
.nle__track { position: relative; height: 54px; border-top: 1px solid rgb(255 255 255 / .08); }
.nle__track--a { height: 30px; }
.nle__tag { position: absolute; left: -32px; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--faint); letter-spacing: .06em; }
.nle__clips { position: absolute; inset: 6px 0; }
.nle__clip {
  position: absolute; top: 0; bottom: 0; border-radius: 4px; overflow: hidden; text-align: left;
  background: color-mix(in srgb, var(--c) 55%, #0d0c0b); border: 1px solid color-mix(in srgb, var(--c) 80%, #fff 0%);
  opacity: .55; transition: opacity .4s var(--ease), background .4s var(--ease);
}
.nle__clip span {
  display: block; padding: 6px 8px; font-size: 12px; letter-spacing: -.01em; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.nle__clip.is-past { opacity: .85; }
.nle__clip.is-on { opacity: 1; background: var(--c); }
.nle__clip:hover { opacity: 1; }
.nle__wave { position: absolute; inset: 4px 0; width: 100%; height: calc(100% - 8px); }
.nle__wave path { stroke: #7fc8a9; stroke-width: .6; opacity: .75; }
.nle__head {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #ff3b30; pointer-events: none;
  transform: translateX(-50%);
}
.nle__head::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top: 9px solid #ff3b30; border-bottom: 0;
}
.nle__tc {
  position: absolute; top: -26px; left: 10px; font-size: 12px; color: #fff; font-variant-numeric: tabular-nums;
  background: #ff3b30; padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}
@media (max-width: 899px) {
  .process { height: 240vh; }
  .nle { --pad: 0px; }
  .nle__tag { display: none; }
  .nle__clip span { font-size: 10px; padding: 4px 5px; }
}
@media (prefers-reduced-motion: reduce) { .process__now.is-swap * { animation: none !important; } }

/* --------------------------------------------------------------------------
   Reviews — one quote at a time, developing like the titles
   -------------------------------------------------------------------------- */
.reviews { min-height: 100vh; min-height: 100svh; padding: 26vh var(--m) 18vh; display: flex; align-items: center; }
.reviews__inner { width: 100%; }
.reviews__stage { display: grid; }
.review {
  grid-area: 1 / 1; margin: 0;
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s;
}
.review.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.review blockquote {
  margin: 0; max-width: 17em;
  font-size: clamp(30px, 4.2vw, 80px); font-weight: 500; line-height: 1.02; letter-spacing: -.055em;
}
.review .rw {
  display: inline-block; opacity: 0; transform: translate3d(0, .4em, 0);
  transition: opacity .6s var(--ease) calc(var(--i, 0) * 30ms), transform .8s var(--ease) calc(var(--i, 0) * 30ms);
}
.review blockquote.is-shown .rw { opacity: 1; transform: none; }
.review figcaption { margin-top: 1.2em; font-size: clamp(14px, 1vw, 18px); color: var(--dim); letter-spacing: -.01em; }
.reviews__nav { display: flex; align-items: center; gap: 14px; margin-top: 4vh; color: var(--dim); }
.reviews__nav button {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .28); color: var(--fg); transition: border-color .3s var(--ease), background .3s var(--ease);
}
.reviews__nav button:hover { border-color: var(--fg); background: rgb(255 255 255 / .08); }
.reviews__nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.reviews__count { font-size: 13px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) {
  .reviews__stage { gap: 8vh; }
  .review { grid-area: auto; opacity: 1; visibility: visible; }
  .review .rw { opacity: 1; transform: none; transition: none; }
  .reviews__nav { display: none; }
}

/* Four facts on their own screen, spread across the width */
.facts-sec { min-height: 140vh; display: flex; align-items: center; padding: 0 var(--m); }
.facts-sec .facts { width: 100%; margin: 0; grid-auto-flow: row; grid-template-columns: repeat(4, auto); justify-content: space-between; }
.facts-sec .facts li { padding-right: var(--m); }
.facts-sec .facts__k { font-size: clamp(15px, 1.1vw, 19px); }

/* Facts */
.facts {
  grid-column: 1 / -1; list-style: none; margin: 7vh 0 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--m);
}
.facts li { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 6px; }
.facts__v { font-size: clamp(28px, 3.2vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.facts__k { color: var(--dim); font-size: clamp(14px, 1vw, 18px); }
@media (max-width: 899px) { .facts { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 6vh; } }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { /* tall: her turn to the camera plays out over a long stretch of scroll before the page ends */
  min-height: 170vh; min-height: 170svh;
  padding: 24vh var(--m) max(14px, calc(var(--m) * .55));
  display: flex; flex-direction: column; justify-content: flex-end;
}
.contact__title {
  margin-bottom: .32em;
  font-size: clamp(54px, 10vw, 196px);
  font-weight: 600; line-height: .86; letter-spacing: -.08em;
}
.contact__lead {
  max-width: 24em; margin: 0 0 .6em;
  font-size: clamp(17px, 1.4vw, 25px); line-height: 1.3; letter-spacing: -.025em; color: rgb(255 255 255 / .92);
}
.contact .cta { margin: 0 0 1.6em; }
/* the details sit on their own, bottom right, out of the way of the call to action */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18em); column-gap: var(--m); align-items: end; }
.contact__open {
  margin: 0 0 14px; font-size: clamp(14px, .95vw, 17px); line-height: 1.42; letter-spacing: -.015em;
  color: var(--dim); text-shadow: 0 1px 18px rgb(0 0 0 / .5);
}
.contact__open span { color: var(--accent); }
.contact__mailrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.contact__mail {
  font-size: clamp(22px, 2.7vw, 52px); font-weight: 500; letter-spacing: -.05em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .06em;
  transition: background-size .6s var(--ease);
}
.contact__mail:hover { background-size: 0 1px; background-position: 100% 100%; }
.copy { min-height: 44px; font-size: 14px; color: var(--dim); transition: color .4s var(--ease); }
.copy:hover { color: var(--fg); }
/* the networks: one row of round line icons, the same thin white strokes as the rest of the site */
.contact__links {
  list-style: none; margin: 2em 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.contact__links a {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  color: var(--fg); background: rgb(13 12 11 / .28); border: 1px solid rgb(255 255 255 / .38);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.contact__links svg {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.contact__links a:hover, .contact__links a:focus-visible { color: var(--accent); border-color: var(--accent); background: rgb(13 12 11 / .42); }
.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 14vh; padding-right: calc(var(--track, 190px) + 140px);
  font-size: 13px; color: var(--dim);
}

/* --------------------------------------------------------------------------
   Case
   -------------------------------------------------------------------------- */
.case { position: fixed; inset: 0; z-index: 80; }
.case[hidden] { display: none; }
.case__backdrop {
  position: absolute; inset: 0; background: rgb(11 10 9 / .94);
  opacity: 0; transition: opacity .6s var(--ease);
}
.case.is-in .case__backdrop { opacity: 1; }
.case__stage { position: absolute; top: 0; bottom: 0; left: 0; right: var(--panel-w); pointer-events: none; }
.case__frame {
  position: absolute; overflow: hidden; background: #000; pointer-events: auto;
  opacity: 0; transition: opacity .5s var(--ease);
}
.case.is-in .case__frame { opacity: 1; }
.case__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: var(--panel-w);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: max(10px, calc(var(--m) * .55)) var(--m) var(--m) 0;
  opacity: 0; transform: translate3d(40px, 0, 0);
  transition: opacity .6s var(--ease) .12s, transform .9s var(--ease) .12s;
}
.case__panel::-webkit-scrollbar { display: none; }
.case__panel.has-more { /* more text below: the bottom edge fades out */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 96px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 96px), transparent);
}
.case.is-in .case__panel { opacity: 1; transform: none; }
.case__nav {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; letter-spacing: -.02em;
}
.case__back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--dim); font-weight: 500; transition: color .4s var(--ease);
}
.case__back:hover { color: var(--fg); }
.case__back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1; }
.case__count { color: var(--faint); font-variant-numeric: tabular-nums; }
.case__cat { margin-top: 9vh; color: var(--dim); font-size: 15px; letter-spacing: -.02em; }
.case__title {
  margin: .2em 0 0;
  font-size: clamp(40px, 3.9vw, 76px); font-weight: 600; line-height: .98; letter-spacing: -.065em;
}
.case__meta { margin: .7em 0 0; color: var(--dim); font-size: 15px; line-height: 1.35; letter-spacing: -.02em; }
.case__facts { margin: 2.2em 0 0; display: grid; gap: 14px; }
/* "My role" by stage: a small stage name over what she did in it */
.case__phase { margin: 0; }
.case__phase + .case__phase { margin-top: .7em; }
/* big numbers of a case, right under its meta line */
.case__stats { display: flex; flex-wrap: wrap; gap: 8px clamp(28px, 3vw, 48px); margin: 1.5em 0 0; }
.case__stats[hidden] { display: none; }
.case__stat { margin: 0; }
.case__stat-v { display: block; font-size: clamp(36px, 3.2vw, 56px); font-weight: 300; line-height: 1; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.case__stat-k { display: block; margin-top: .35em; font-size: 13px; color: var(--dim); }
/* a fact from the set, set apart with the accent colour */
.case__fact {
  margin: 1.1em 0 0; padding: 9px 14px; border-left: 2px solid var(--accent); background: rgb(255 255 255 / .045);
  font-size: 14px; line-height: 1.4; color: rgb(255 255 255 / .86);
}
.case__fact[hidden] { display: none; }
.case__fact-k { margin-right: .7em; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); }
.case__phase-k { display: block; margin-bottom: .1em; font-size: 13px; color: var(--faint); letter-spacing: 0; }
.case__facts div {
  display: grid; grid-template-columns: minmax(96px, 30%) 1fr; gap: 16px;
  padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .14);
  font-size: clamp(14px, .92vw, 16px); line-height: 1.4;
}
.case__facts dt { color: var(--faint); }
.case__facts dd { margin: 0; color: rgb(255 255 255 / .86); }
.case__facts .ph { color: var(--faint); }
.case__pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 6vh; padding-top: 16px; border-top: 1px solid var(--line);
}
.case__pager[hidden] { display: none; } /* a section with one film has nowhere to step */
.case__pager button {
  display: flex; flex-direction: column; gap: 2px; min-height: 44px; text-align: left;
  letter-spacing: -.03em; transition: color .4s var(--ease);
}
.case__pager button + button { text-align: right; align-items: flex-end; }
.case__pager button:hover { color: var(--accent); }
.case__pager-dir { font-size: 13px; color: var(--faint); letter-spacing: 0; }
.case__ghost {
  position: fixed; z-index: 85; top: 0; left: 0; overflow: hidden;
  pointer-events: none; visibility: hidden; transform-origin: 0 0;
}
.case__ghost.is-on { visibility: visible; }
.case__ghost img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   Tablet / phone
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .hero__display { font-size: max(34px, 10.2vw); }
  html[lang="ru"] .hero__display { font-size: max(34px, 10.8vw); }
  html[lang="ru"] .contact__title { font-size: max(38px, 10.6vw); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__open { margin: 1.4em 0 0; max-width: 26em; font-size: 13px; }
  /* phones: the whole contact block has to fit under the header when the page ends */
  .contact__links { margin-top: 1.2em; }
  .contact .cta { margin-bottom: .9em; }
  .footer { margin-top: 5vh; }
  .hero__foot { grid-template-columns: 1fr auto; }
  /* phones: the slogan must sit below her face, so the hero keeps the slogan and the role */
  .hero__sub { display: none; }
  .hero__main { padding-bottom: 2vh; }
  .hero__foot > span { display: none; }
  .hero__foot .status { max-width: 14em; }
  /* the timecode gets its own band along the bottom edge on small screens */
  .tc { --track: 76px; gap: 10px; font-size: 12px; }
  .hero { padding-bottom: 46px; }
  .contact { padding-bottom: 46px; }
  .footer { padding-right: 0; }
  .about { min-height: 110vh; padding-top: 22vh; padding-bottom: 12vh; }
  .about__text { grid-template-columns: minmax(0, 1fr); }
  .about__lead, .about__body { grid-column: 1 / -1; }
  .caps { min-height: 120vh; padding-top: 22vh; }
  .caps__list li { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .caps__list h3, .caps__list p { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-flow: row !important; }
  .facts-sec { min-height: 110vh; }
  /* the three countries get a full row so they stay on one line */
  .facts-sec .facts li:nth-child(4) { grid-column: 1 / -1; }
  .work__bar { gap: 0 16px; }
  .reel { --cy: 57%; }
  /* portrait screens: keep the girl (right of centre in the film) in frame */
  .film__video { object-position: 60% 50%; }
  .film__still { background-position: 60% 50%; }

  .case { overflow-y: auto; overscroll-behavior: contain; }
  .case__backdrop { position: fixed; }
  .case__stage { position: relative; right: auto; padding: 64px 0 0; }
  .case__frame { position: relative; margin: 0 auto; }
  .case__panel {
    position: relative; width: auto; overflow: visible;
    padding: 0 var(--m) 120px;
  }
  .case__nav {
    position: fixed; z-index: 3; left: var(--m); bottom: max(16px, env(safe-area-inset-bottom));
  }
  .case__back {
    padding: 0 18px 0 12px; border-radius: 22px; color: var(--fg);
    background: rgb(20 19 18 / .92); border: 1px solid rgb(255 255 255 / .18);
  }
  .case__count { display: none; }
  .case__cat { margin-top: 24px; }
}
@media (max-width: 520px) {
  .logo__name { display: none; }
  .filters { gap: 0 12px; }
  .case__facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* --------------------------------------------------------------------------
   Reduced motion: the film becomes stills, nothing moves on its own
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain::before, .cue svg, .film::before, .film__video, .film__still, .film__seq { animation: none; }
  .loader__word { filter: none; }
  .loader__word span { animation: none; }
  .loader__word span[lang="en"] { opacity: 1; }
  [data-goo] .gw { opacity: 1; filter: none; transform: none; transition: none; }
  [data-goo].is-developing { filter: none; }
  .case__panel { transform: none; transition: opacity .2s linear; }
  .film__still { transition: opacity .25s linear; }
}
.nle__head.is-end .nle__tc { left: auto; right: 10px; }

/* --------------------------------------------------------------------------
   Try-on: hand (grip.js, open with ?hero=hand). Her hand on the crane is the first frame;
   a tap makes it slip and the film takes over. Delete this block with grip.js to drop the idea.
   -------------------------------------------------------------------------- */
.grip { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: #2a2630; pointer-events: none; }
.grip__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 50%; transform-origin: 70% 40%;
}
.grip::after { /* the same lens vignette as the film, plus a touch of veil */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(125% 95% at 50% 45%, transparent 48%, rgb(0 0 0 / .55) 100%), rgb(10 9 8 / .06);
}
.is-grip .cue { visibility: hidden; }
.grip__hit {
  position: absolute; z-index: 3; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  display: grid; place-items: center; cursor: pointer; transition: opacity .25s var(--ease);
}
.grip__ring {
  position: relative; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .92); box-shadow: 0 0 22px rgb(0 0 0 / .22), inset 0 0 22px rgb(0 0 0 / .12);
}
.grip__ring::after { /* a slow pulse, like a held breath */
  content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #fff;
  animation: grip-pulse 2.2s var(--ease) infinite;
}
@keyframes grip-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.grip__hint {
  position: absolute; top: calc(100% - 18px); left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 13px; letter-spacing: .02em; text-shadow: 0 1px 14px rgb(0 0 0 / .55);
}
.is-slip .grip__hit { opacity: 0; pointer-events: none; }
.is-slip .grip__img { animation: grip-slip 1.25s cubic-bezier(.55, 0, .85, .35) forwards; }
.is-slip .grip { animation: grip-out .45s .85s var(--ease) forwards; }
@keyframes grip-slip {
  0% { transform: none; filter: none; }
  14% { transform: translate(.5%, .8%) rotate(.5deg); }   /* the grip strains */
  24% { transform: translate(-.3%, .2%) rotate(-.3deg); }
  32% { transform: translate(0, 1.4%); }                  /* the fingers give way */
  100% { transform: translateY(-60%) scale(1.25); filter: blur(18px); } /* she drops, the world rushes up */
}
@keyframes grip-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .grip__ring::after { animation: none; } }

/* --------------------------------------------------------------------------
   Touch screens (mobile Safari): the same look without the costliest effects.
   Blur-based transitions become plain fades, the titles skip the liquid threshold,
   and nothing blurs the film behind it (that was redone on every film frame).
   -------------------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
  [data-goo] .gw, [data-goo].is-in .gw { filter: none; }
  [data-goo] .gw {
    transition: opacity .9s var(--ease) calc(var(--i, 0) * 75ms), transform 1.25s var(--ease) calc(var(--i, 0) * 75ms);
  }
  [data-goo].is-developing { filter: none; }
  .clients__card { filter: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .process__now.is-swap .process__title, .process__now.is-swap .process__text, .process__now.is-swap .process__num { animation-name: procFade; }
  .nle { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(rgb(13 12 11 / .8), rgb(13 12 11 / .72)); }
  .work.is-strip .reel__arrow { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(13 12 11 / .55); }
}
@keyframes procFade { from { opacity: 0; transform: translate3d(0, .4em, 0); } to { opacity: 1; transform: none; } }
