/* ==========================================================================
   SERGIO NIETO — FILMMAKER / PHOTOGRAPHER
   Design system, v2: the work first.
   --------------------------------------------------------------------------
   Images run close to the edges with tight gutters and are arranged in
   editorial mosaics of rows with different proportions. Type is small, clean
   and quiet, so photographs and films carry the page.
   Palette   paper (off-white), black, greys. No accent colour.
   Type      Archivo for interface and titles, Newsreader for prose.
   ========================================================================== */

:root {
  --paper: #EFEEEA;
  --paper-2: #E3E2DD;
  --ash: #CFCDC7;
  --stone: #86857F;
  --graphite: #3B3B39;
  --ink: #151515;
  --black: #000000;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--stone);
  --line: var(--ash);
  --tile: var(--paper-2);

  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --display: "Instrument Serif", "Times New Roman", Georgia, serif;

  --gutter: clamp(12px, 1.4vw, 22px);   /* page edge */
  --gap: clamp(6px, .6vw, 10px);        /* between images */
  --space: clamp(44px, 6vw, 96px);      /* between sections */
  --header-h: 60px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-film: cubic-bezier(.77, 0, .18, 1);

  --fs-xs: .75rem;      /* 12 */
  --fs-meta: .8125rem;  /* 13 */
  --fs-body: 1rem;
  --fs-lead: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
  --fs-h2: clamp(1.375rem, 1.1rem + .9vw, 2rem);
  --fs-h1: clamp(2.25rem, 1.3rem + 3.2vw, 4.75rem);
}

.theme-dark {
  --bg: var(--black);
  --fg: var(--paper);
  --muted: #8A8984;
  --line: #262625;
  --tile: #0E0E0E;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: var(--fs-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

.nowrap { white-space: nowrap; }
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  background: var(--fg); color: var(--bg); padding: 10px 14px; font-size: var(--fs-meta);
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.link-line {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 1px; transition: background-size .5s var(--ease-out);
}
.link-line:hover { background-size: 0 1px; background-position: 100% 100%; }
.prose {
  font-family: var(--serif); font-weight: 350; font-size: var(--fs-lead);
  line-height: 1.42; max-width: 32em;
}
.prose p + p { margin-top: .9em; }

/* ==========================================================================
   Header (inverts whatever is behind it, so it sits on images too)
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  color: #fff; mix-blend-mode: difference;
  font-size: var(--fs-meta); pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }
.brand__name { font-stretch: 112%; font-weight: 600; letter-spacing: .08em; }
.brand__role { font-weight: 400; opacity: .7; }
.nav { display: flex; gap: clamp(16px, 2vw, 30px); }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.menu-toggle { display: none; padding: 8px 0; }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--black); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 20px) var(--gutter) 28px;
  visibility: hidden; opacity: 0;
  transition: opacity .45s var(--ease-out), visibility 0s linear .45s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease-out); }
.menu__links a {
  display: block; font-weight: 400; letter-spacing: -.03em;
  font-size: clamp(2.4rem, 11vw, 4.5rem); line-height: 1.04;
  transform: translateY(20px); opacity: 0;
  transition: transform .7s var(--ease-out), opacity .7s var(--ease-out);
}
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links li:nth-child(2) a { transition-delay: .04s; }
.menu.is-open .menu__links li:nth-child(3) a { transition-delay: .08s; }
.menu.is-open .menu__links li:nth-child(4) a { transition-delay: .12s; }
.menu.is-open .menu__links li:nth-child(5) a { transition-delay: .16s; }
.menu.is-open .menu__links li:nth-child(6) a { transition-delay: .2s; }
.menu__links a[aria-current="page"] { opacity: .45; }
.menu__foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-meta); color: #8A8984; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .brand__role { display: none; }
}

/* ==========================================================================
   Tiles + mosaic rows
   A row is a grid with fixed proportions; images fill their cell.
   ========================================================================== */
.mosaic { display: grid; gap: var(--gap); }
.mrow {
  display: grid; gap: var(--gap);
  grid-template-columns: var(--cols);
  aspect-ratio: var(--ratio);
}
.mrow > * { min-width: 0; min-height: 0; }
.mstack { display: grid; grid-template-rows: 1fr 1fr; gap: var(--gap); }

.tile {
  position: relative; display: block; width: 100%; height: 100%;
  overflow: hidden; background: var(--tile);
}
.tile > img, .tile > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out), opacity .6s ease, filter .8s var(--ease-out);
}
.tile > video { opacity: 0; }
.tile.is-playing > video { opacity: 1; }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  padding: 40px 14px 12px;
  color: #F5F4F0; font-size: var(--fs-meta); line-height: 1.3;
  background: linear-gradient(to top, rgba(0,0,0,.42), rgba(0,0,0,0));
  pointer-events: none;
}
.tile__t { font-weight: 500; }
.tile__m { opacity: .75; text-align: right; }
a.tile:hover > img, button.tile:hover > img,
a.tile:focus-visible > img, button.tile:focus-visible > img { transform: scale(1.035); }

/* Shutter reveal (image only; the tile stays visible for the observer) */
.js .tile.reveal > img { clip-path: inset(0 0 100% 0); }
.js .tile.reveal.is-in > img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-film), transform 1.2s var(--ease-out), opacity .6s ease, filter .8s var(--ease-out);
}

@media (max-width: 700px) {
  .mrow { grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
  .mstack { display: contents; }
  .mrow > *, .mstack > * { aspect-ratio: 4 / 5; height: auto; }
  .mrow[data-n="1"] > * { grid-column: 1 / -1; aspect-ratio: var(--m-ratio, 16 / 10); }
  .mrow[data-n="2"][data-wide] > * { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .mrow .is-big { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .tile__cap { padding: 32px 10px 9px; font-size: var(--fs-xs); }
  .tile__m { display: none; }
}

/* Justified rows (photographs keep their proportions) */
.justified { display: grid; gap: var(--gap); }
.jrow {
  display: flex; gap: var(--gap);
  width: min(100%, calc(var(--sum) * 80svh));
}
.jrow.is-right { margin-left: auto; }
.jrow .tile { height: auto; min-width: 0; }
@media (max-width: 700px) {
  .jrow { width: 100%; flex-wrap: wrap; }
  .jrow[data-n="3"] > :first-child, .jrow[data-n="4"] > :first-child { flex-basis: 100% !important; }
}

/* ==========================================================================
   Section + page heads (compact)
   ========================================================================== */
.section { padding-top: var(--space); }
.shead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding-bottom: 14px; font-size: var(--fs-meta);
}
.shead h2 { font-size: var(--fs-h2); font-weight: 450; letter-spacing: -.02em; line-height: 1.1; }

.phead {
  padding-top: calc(var(--header-h) + clamp(28px, 5vw, 72px));
  padding-bottom: clamp(16px, 2vw, 24px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
}
.phead h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
.phead__meta { font-size: var(--fs-meta); color: var(--muted); padding-bottom: .35em; }

/* Filters */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 30;
  display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px; margin-bottom: 2px;
  background: var(--bg);
  font-size: var(--fs-meta);
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  transition: color .3s, border-color .3s, background .3s;
}
.filters button:hover { color: var(--fg); border-color: var(--fg); }
.filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filters sup { font-size: .72em; margin-left: 3px; opacity: .7; }
.views { display: flex; gap: 16px; }
.views button { color: var(--muted); padding: 6px 0; }
.views button[aria-pressed="true"] { color: var(--fg); }
@media (max-width: 700px) {
  .toolbar { position: static; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { white-space: nowrap; }
}

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 520px;
  background: var(--black); color: #F5F4F0; overflow: hidden;
}
.hero__screen { position: absolute; inset: 0; }
.hero__screen img, .hero__screen video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
}
.hero__screen .is-current { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 55% 0 0 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.js .hero__screen { transform: scale(1.06); opacity: 0; }
.is-ready .hero__screen { transform: none; opacity: 1; transition: transform 2.2s var(--ease-out), opacity 1.2s ease; }

.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding: 0 var(--gutter) clamp(16px, 2.2vw, 30px);
}
.hero__name {
  font-stretch: 108%; font-weight: 450; text-transform: uppercase;
  font-size: clamp(2.5rem, .8rem + 6.4vw, 8.5rem); line-height: .84; letter-spacing: -.04em;
}
.hero__role { margin-top: 12px; font-size: var(--fs-meta); }
.hero__side { display: grid; justify-items: end; gap: 8px; text-align: right; font-size: var(--fs-meta); }
.hero__now { opacity: .72; min-height: 1.3em; }
.hero__now a:hover { opacity: 1; }
.hero__tc { font-variant-numeric: tabular-nums; opacity: .6; letter-spacing: .04em; }
.play-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; margin-top: 4px; }
.play-btn__icon {
  width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%;
  display: grid; place-items: center; transition: background .4s var(--ease-out), color .4s var(--ease-out);
}
.play-btn__icon::before {
  content: ""; margin-left: 2px;
  border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.play-btn:hover .play-btn__icon { background: #F5F4F0; color: #000; }
.js .hero__bar { opacity: 0; transform: translateY(12px); }
.is-ready .hero__bar { opacity: 1; transform: none; transition: opacity 1s ease .5s, transform 1.2s var(--ease-out) .5s; }
@media (max-width: 700px) {
  .hero { height: 88svh; }
  .hero__bar { grid-template-columns: 1fr; }
  .hero__side { justify-items: start; text-align: left; grid-template-columns: 1fr auto; align-items: center; }
  .hero__tc { display: none; }
}

.intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px var(--gap);
  padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(8px, 1vw, 16px);
  align-items: end;
}
.intro__text {
  grid-column: 1 / span 7;
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.01em;
  text-wrap: balance;
}
.intro__links { grid-column: 9 / -1; display: grid; gap: 6px; font-size: var(--fs-meta); justify-items: end; text-align: right; }
.intro__links a { display: flex; gap: 10px; }
@media (max-width: 860px) {
  .intro__text, .intro__links { grid-column: 1 / -1; justify-items: start; text-align: left; }
}

/* Film / Photography doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); padding-top: var(--space); }
.door { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 92svh; width: 100%; overflow: hidden; background: var(--tile); color: #F5F4F0; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.door:hover img { transform: scale(1.04); }
.door__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px clamp(14px, 2vw, 28px) clamp(14px, 2vw, 26px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0));
}
.door__label strong { font-weight: 400; font-size: clamp(2rem, 1rem + 3.4vw, 4.5rem); letter-spacing: -.035em; line-height: .95; }
.door__label span { font-size: var(--fs-meta); opacity: .8; text-align: right; }
@media (max-width: 700px) { .doors { grid-template-columns: 1fr; } .door { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   WORK (index view)
   ========================================================================== */
.index { border-top: 1px solid var(--line); }
.index__row {
  display: grid; grid-template-columns: 96px repeat(12, minmax(0, 1fr)); column-gap: 16px;
  align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line);
  transition: opacity .4s var(--ease-out);
}
.index__thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); }
.index__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.index__title { grid-column: 2 / span 5; font-size: clamp(1.25rem, 1rem + 1vw, 1.875rem); letter-spacing: -.025em; line-height: 1.1; }
.index__cat { grid-column: 7 / span 4; font-size: var(--fs-meta); color: var(--muted); }
.index__type { grid-column: 11 / span 2; font-size: var(--fs-meta); color: var(--muted); }
.index__year { grid-column: 13; text-align: right; font-size: var(--fs-meta); color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .index:hover .index__row { opacity: .35; } .index .index__row:hover { opacity: 1; } }
@media (max-width: 860px) {
  .index__row { grid-template-columns: 76px 1fr auto; }
  .index__title { grid-column: 2; font-size: 1.2rem; }
  .index__cat { grid-column: 2; grid-row: 2; }
  .index__thumb { grid-row: span 2; }
  .index__type { display: none; }
  .index__year { grid-column: 3; grid-row: 1; }
}

/* ==========================================================================
   PHOTOGRAPHY series blocks
   ========================================================================== */
.series { padding-top: clamp(28px, 3.5vw, 56px); }
.series:first-child { padding-top: 6px; }
.series[hidden] { display: none; }
.series__head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  align-items: baseline; padding-bottom: 12px; font-size: var(--fs-meta);
}
.series__title { grid-column: 1 / span 4; font-size: var(--fs-h2); font-weight: 450; letter-spacing: -.02em; line-height: 1.1; }
.series__loc { grid-column: 5 / span 3; color: var(--muted); }
.series__cats { grid-column: 8 / span 2; color: var(--muted); }
.series__count { grid-column: 10 / span 2; color: var(--muted); white-space: nowrap; }
.series__link { grid-column: 12; justify-self: end; white-space: nowrap; }
@media (max-width: 860px) {
  .series__head { grid-template-columns: 1fr auto; row-gap: 2px; }
  .series__title { grid-column: 1; }
  .series__link { grid-column: 2; grid-row: 1; }
  .series__loc { grid-column: 1 / -1; }
  .series__cats, .series__count { display: none; }
}
.empty { padding: 60px 0; color: var(--muted); font-size: var(--fs-meta); }

/* ==========================================================================
   PROJECT pages
   ========================================================================== */
/* Each player takes the format of its piece (--r = width / height). */
.player { position: relative; width: 100%; background: #000; overflow: hidden; }
.player__frame {
  position: relative; margin: 0 auto; overflow: hidden;
  width: min(100%, calc(100svh * var(--r, 1.778))); aspect-ratio: var(--r, 1.778);
}
.player__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.78); }
.player__frame > iframe, .player__frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* The lead player sits below the header, so the header never covers the film. */
.player:not(.player--more) { padding-top: var(--header-h); }
.player:not(.player--more) .player__frame { width: min(100%, calc((100svh - var(--header-h)) * var(--r, 1.778))); }
.player--vertical { padding: calc(var(--header-h) + 2vh) 0 4vh; }
.player.player--vertical .player__frame { width: min(100%, calc(80svh * var(--r))); }
.player--more { margin-top: var(--gap); }
.player--more.player--vertical { padding: 4vh 0; }
.player__label {
  position: absolute; left: 0; bottom: 0; padding: 14px 16px; z-index: 1; pointer-events: none;
  font-size: var(--fs-meta); color: #F5F4F0;
}
.player__btn { position: absolute; inset: 0; display: grid; place-items: center; color: #F5F4F0; }
.player__btn span {
  width: clamp(76px, 7vw, 104px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(245,244,240,.75);
  display: grid; place-items: center; font-size: var(--fs-meta); font-weight: 500;
  transition: background .5s var(--ease-out), color .5s var(--ease-out), transform .8s var(--ease-out);
}
.player__btn:hover span { background: #F5F4F0; color: #000; transform: scale(1.06); }
.player__note {
  position: absolute; inset: auto 0 0 0; padding: 16px var(--gutter);
  font-size: var(--fs-meta); color: #F5F4F0; background: linear-gradient(transparent, rgba(0,0,0,.6));
}

.pinfo {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 24px;
  padding-top: clamp(24px, 3vw, 44px); padding-bottom: clamp(24px, 3vw, 44px);
  align-items: start;
}
.pinfo--top { padding-top: calc(var(--header-h) + clamp(24px, 4vw, 60px)); }
.pinfo h1 { grid-column: 1 / span 6; font-size: var(--fs-h1); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
.pinfo__side { grid-column: 7 / -1; display: grid; gap: 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: var(--fs-meta); }
.facts dt { color: var(--muted); }
.facts dd { margin: 1px 0 0; }
.pinfo .prose { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); }
@media (max-width: 860px) { .pinfo h1, .pinfo__side { grid-column: 1 / -1; } }

.next { position: relative; display: block; margin-top: var(--gap); aspect-ratio: 21 / 8; overflow: hidden; background: var(--tile); color: #F5F4F0; }
.next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: transform 1.4s var(--ease-out), filter .8s; }
.next:hover img { transform: scale(1.03); filter: brightness(.85); }
.next__label { position: absolute; left: var(--gutter); bottom: clamp(14px, 2vw, 28px); right: var(--gutter); }
.next__label span { display: block; font-size: var(--fs-meta); opacity: .8; margin-bottom: 6px; }
.next__label strong { font-weight: 400; font-size: clamp(2rem, 1rem + 3.4vw, 4.5rem); letter-spacing: -.035em; line-height: .95; }
@media (max-width: 700px) { .next { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   ABOUT / CONTACT (split screen)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.split__media { position: relative; }
.split__media .tile { position: sticky; top: 0; height: 100svh; }
.split__body {
  padding: calc(var(--header-h) + clamp(28px, 5vw, 72px)) clamp(20px, 4vw, 72px) clamp(40px, 5vw, 72px);
  display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px);
}
.split__body h1 { font-size: var(--fs-h1); font-weight: 400; letter-spacing: -.035em; line-height: .95; }
/* About without a portrait: one column of text */
.split--text { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.split--text .split__body { max-width: 52rem; padding-bottom: var(--space); }
.links { display: grid; gap: 8px; font-size: var(--fs-meta); }
.links > div, .links > a { display: grid; grid-template-columns: 100px 1fr; }
.links dt, .links .k { color: var(--muted); }
.big-email {
  font-weight: 400; letter-spacing: -.03em; line-height: 1.05;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); word-break: break-word;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media .tile { position: relative; height: auto; aspect-ratio: 4 / 5; }
  .split__body { padding-top: 36px; }
  .split--text .split__body { padding-top: calc(var(--header-h) + 28px); }
  .split--contact .split__media { order: 2; }
  .split--contact .split__media .tile { aspect-ratio: 16 / 10; }
  .split--contact .split__body { padding-top: calc(var(--header-h) + 28px); }
}

.form { display: grid; gap: 22px; max-width: 560px; }
.field { display: grid; gap: 4px; }
.field label { font-size: var(--fs-meta); color: var(--muted); }
.field input, .field textarea {
  font: inherit; font-size: 1.125rem; color: var(--fg); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 8px 0 10px; outline: none; resize: vertical; transition: border-color .3s;
}
.field textarea { min-height: 120px; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--fg); }
.form-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; padding: 13px 24px;
  background: var(--fg); color: var(--bg); border-radius: 999px;
  font-size: var(--fs-meta); font-weight: 500; transition: opacity .3s;
}
.btn:hover { opacity: .82; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: var(--space); background: var(--black); color: #F5F4F0;
  padding-top: clamp(40px, 5vw, 72px); padding-bottom: 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px 24px; align-items: end;
}
.theme-dark .site-footer { border-top: 1px solid var(--line); }
.footer__lead { font-size: var(--fs-meta); color: #8A8984; margin-bottom: 8px; }
.footer__email { font-weight: 400; letter-spacing: -.03em; font-size: clamp(1.625rem, 1rem + 2.4vw, 3.25rem); line-height: 1.05; word-break: break-word; }
.footer__links { display: flex; gap: 20px; font-size: var(--fs-meta); }
.footer__row { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; font-size: var(--fs-xs); color: #8A8984; }
.footer__links a, .footer__row a { color: #8A8984; transition: color .3s; }
.footer__links a:hover, .footer__row a:hover { color: #F5F4F0; }
@media (max-width: 700px) { .site-footer { grid-template-columns: 1fr; } }

/* ==========================================================================
   Lightbox / reel modal
   ========================================================================== */
.lightbox, .modal {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.97); color: #F5F4F0;
  display: grid; grid-template-rows: var(--header-h) 1fr auto;
  visibility: hidden; opacity: 0;
  transition: opacity .4s var(--ease-out), visibility 0s linear .4s;
}
.lightbox.is-open, .modal.is-open { visibility: visible; opacity: 1; transition: opacity .4s var(--ease-out); }
.lightbox__top, .modal__top { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); font-size: var(--fs-meta); }
.lightbox__close, .modal__close { font-weight: 500; padding: 8px 0; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: calc(100svh - var(--header-h) - 64px); object-fit: contain; transition: opacity .3s ease; }
.lightbox__prev, .lightbox__next { position: absolute; top: 0; bottom: 0; width: 50%; }
.lightbox__prev { left: 0; } .lightbox__next { right: 0; }
.lightbox__bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); font-size: var(--fs-meta); color: #8A8984; }
.lightbox__count { font-variant-numeric: tabular-nums; }
.lightbox__arrows { display: flex; gap: 22px; }
.lightbox__arrows button { color: #F5F4F0; }
.modal__stage { display: grid; place-items: center; padding: 0 var(--gutter) 36px; }
.modal__screen { width: min(100%, calc((100svh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; background: #0A0A0A; position: relative; display: grid; place-items: center; }
.modal__screen iframe, .modal__screen video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__empty { font-size: var(--fs-meta); color: #8A8984; text-align: center; padding: 24px; }

/* ==========================================================================
   Cursor label + page curtain
   ========================================================================== */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none;
  width: 78px; height: 78px; margin: -39px 0 0 -39px;
  display: grid; place-items: center; color: #000;
  font-size: var(--fs-xs); font-weight: 500;
  transform: translate3d(-200px, -200px, 0); will-change: transform;
}
.cursor::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #F5F4F0; z-index: -1;
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.cursor span { transform: scale(0); opacity: 0; transition: transform .4s var(--ease-out), opacity .25s; }
.cursor.is-active::before, .cursor.is-active span { transform: scale(1); opacity: 1; }
.has-cursor [data-cursor], .has-cursor [data-cursor] * { cursor: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  pointer-events: none; opacity: 1; transition: opacity .6s var(--ease-out);
}
.is-home .curtain { background: #000; }
.is-ready .curtain { opacity: 0; }
.is-leaving .curtain { opacity: 1; transition: opacity .32s ease-in; }

/* ==========================================================================
   FILM — scroll-driven 3D wheel
   A sticky stage holds the scene; the section's height provides the scroll.
   Card positions are set per frame in main.js (renderFilm).
   ========================================================================== */
html.is-film-wheel { scroll-snap-type: y proximity; }
.wheel { position: relative; background: var(--bg); }
.wheel__snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
.wheel__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  color: #F5F4F0;
}
/* Ambient light: the active frame, blurred, glowing behind the wheel */
.wheel__ambient { position: absolute; inset: 0; pointer-events: none; }
.wheel__ambient img {
  position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover;
  filter: blur(80px) saturate(1.05); opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.wheel__ambient img.is-on { opacity: .26; }
.wheel__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 42%, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%),
    linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 34%);
}

.wheel__head {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--header-h) + 6px);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.wheel__head h1 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1; }
.wheel__head p { font-size: var(--fs-meta); color: #8A8984; }

/* 3D scene */
.wheel__space {
  position: absolute; inset: 0; z-index: 1;
  perspective: 1400px; perspective-origin: var(--card-cx) var(--card-cy);
}
.wheel__ring { position: absolute; left: var(--card-cx); top: var(--card-cy); width: 0; height: 0; transform-style: preserve-3d; }
.wheel__card {
  position: absolute; display: block;
  left: calc(var(--card-w) / -2); top: calc(var(--card-h) / -2);
  width: var(--card-w); height: var(--card-h);
  background: #0c0c0c; overflow: hidden;
  backface-visibility: hidden; will-change: transform, opacity;
  outline-offset: 6px;
}
.wheel__media img, .wheel__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.wheel__media img { transition: transform 2.4s var(--ease-out); }
.wheel__media video { opacity: 0; transition: opacity .9s ease; }
.wheel__card.is-playing video { opacity: 1; }
.wheel__card.is-active { box-shadow: 0 50px 120px -30px rgba(0,0,0,.9); }
.wheel__card.is-active:hover .wheel__media img, .wheel__card.is-active:hover .wheel__media video { transform: scale(1.02); }
.wheel__shade { position: absolute; inset: 0; background: #000; pointer-events: none; }

/* Credits of the centred film: a left column on desktop, below the drum on mobile */
.wheel__info {
  position: absolute; z-index: 3; left: 0; top: var(--card-cy); transform: translateY(-50%);
  width: min(36vw, 520px);
  display: grid; gap: 18px; justify-items: start;
}
.wheel__count { font-size: var(--fs-meta); color: #8A8984; font-variant-numeric: tabular-nums; }
.wheel__count span { color: #F5F4F0; }
.wheel__text { transition: opacity .5s var(--ease-out), transform .7s var(--ease-out); }
.wheel__info.is-changing .wheel__text { opacity: 0; transform: translateY(10px); transition-duration: .2s, .2s; }
.wheel__title { font-size: clamp(2.25rem, 1rem + 2.7vw, 4.5rem); font-weight: 400; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
.wheel__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin-top: 22px; font-size: var(--fs-meta); }
.wheel__meta > div { display: contents; }
.wheel__meta dt { color: #8A8984; }
.wheel__meta dd { margin: 0; }
.wheel__open { font-size: var(--fs-meta); padding-bottom: 2px; white-space: nowrap; }

/* Film index: one number per film */
.wheel__index {
  position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 50px);
  display: flex; gap: 4px; font-size: var(--fs-xs);
}
.wheel__index li { position: relative; }
.wheel__index button { color: #6F6E6A; padding: 4px 6px; font-variant-numeric: tabular-nums; transition: color .3s; }
.wheel__index button:hover, .wheel__index button[aria-current="true"] { color: #F5F4F0; }
.wheel__index button { font-size: 0; }
.wheel__index .wheel__num { font-size: var(--fs-xs); }
.wheel__index button[aria-current="true"] .wheel__num { border-bottom: 1px solid currentColor; }

.wheel__progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(245,244,240,.14); }
.wheel__progress span { display: block; height: 100%; background: #F5F4F0; transform-origin: 0 50%; transform: scaleX(0); }
.wheel__hint {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 26px;
  display: flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs); color: #8A8984; letter-spacing: .02em; pointer-events: none;
}
.wheel__hint::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .6; }

@media (max-width: 760px) {
  .wheel__info {
    top: auto; bottom: clamp(20px, 4vh, 36px); transform: none; width: auto; right: 0;
    grid-template-columns: 1fr auto; align-items: end; gap: 10px 16px;
  }
  .wheel__count { grid-column: 1 / -1; }
  .wheel__title { font-size: clamp(2rem, 9vw, 3rem); }
  .wheel__meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
  .wheel__meta > div { display: block; }
  .wheel__index { top: calc(var(--header-h) + 44px); }
  .wheel__head p, .wheel__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html.is-film-wheel { scroll-snap-type: none; }
}

/* ==========================================================================
   PHOTOGRAPHY — archive wall
   Positions and sizes are computed in main.js (renderPhotography → pack).
   ========================================================================== */
.archive { padding-bottom: var(--space); }
.wall { position: relative; margin-top: clamp(10px, 2vw, 28px); }
.wall__item { position: absolute; will-change: transform; }
.wall__frame { display: block; }
.js .wall .tile.reveal { opacity: 0; transform: translate3d(0, 34px, 0); }
.js .wall .tile.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 1.2s ease, transform 1.5s var(--ease-out);
}
/* Photo transform = entrance × scroll dolly (--zoom, set in JS) × hover */
.js .wall .tile.reveal > img {
  clip-path: none; --enter: 1.07;
  filter: saturate(0) brightness(1.06);
  transform: scale(calc(var(--zoom, 1) * var(--hz, 1) * var(--enter)));
  transition: transform 1.8s var(--ease-out), filter 1.8s ease, opacity .5s ease;
}
.js .wall .tile.reveal.is-in > img {
  --enter: 1; filter: none;
  transition: transform .7s var(--ease-out), filter 1.8s ease, opacity .5s ease;
}
.wall__frame:hover > img, .wall__frame:focus-visible > img { --hz: 1.035; }
.wall:has(.wall__frame:hover) .wall__frame:not(:hover) > img { opacity: .7; }
.wall__item { transition: opacity .25s linear; }
.archive.is-switching .wall, .archive.is-switching .band { opacity: 0; }
.archive .wall, .archive .band { transition: opacity .32s ease; }
.wall__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  padding: 48px 14px 12px; pointer-events: none;
  color: #F5F4F0; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.3;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .6s var(--ease-out);
}
.wall__t { font-weight: 600; }
.wall__n { margin-left: auto; opacity: .75; font-variant-numeric: tabular-nums; }
.wall__frame:hover .wall__cap, .wall__frame:focus-visible .wall__cap { opacity: 1; transform: none; }
@media (hover: none) {
  .wall__cap { opacity: 1; transform: none; font-size: .625rem; letter-spacing: .1em; padding: 26px 8px 7px; gap: 2px 10px; }
  .wall__cap span:not(.wall__t) { display: none; }
}
.filters button:disabled { opacity: .35; cursor: default; }
.filters button:disabled:hover { color: var(--muted); border-color: var(--line); }

/* ==========================================================================
   PHOTOGRAPHY — cinematic series view (project.html for photo series)
   ========================================================================== */
.sx-hero { position: relative; color: #F5F4F0; }
.sx-hero--full { height: 100vh; height: 100svh; overflow: hidden; }
.sx-hero--full .sx-hero__media { position: absolute; inset: 0; will-change: transform; }
.sx-hero--full .sx-hero__frame { width: 100%; height: 100%; }
.sx-hero--full::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 46%);
}
.sx-hero__cap {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(26px, 6vh, 64px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.sx-hero__cap h1 { font-size: clamp(2.75rem, 1rem + 5.4vw, 7.5rem); font-weight: 400; letter-spacing: -.045em; line-height: .88; }
.sx-hero__cap p { font-size: var(--fs-meta); line-height: 1.5; text-align: right; opacity: .82; padding-bottom: .3em; }
.sx-hint {
  position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: var(--fs-xs); color: rgba(245,244,240,.6); letter-spacing: .02em;
}
.sx-hero--tall {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px clamp(24px, 4vw, 64px);
  padding-top: calc(var(--header-h) + 20px); padding-bottom: clamp(26px, 6vh, 64px);
}
.sx-hero--tall .sx-hero__cap { position: static; display: grid; gap: 14px; }
.sx-hero--tall .sx-hero__cap p { text-align: left; }
.sx-hero--tall .sx-hero__frame { width: auto; height: calc(100svh - var(--header-h) - 12vh); max-width: 60vw; }
.sx-hero--tall .sx-hint { bottom: 8px; }

.sx-seq { display: grid; gap: clamp(12px, 1.4vw, 22px); padding-top: clamp(12px, 1.4vw, 22px); }
.sx-block { position: relative; will-change: transform; }
.sx-block .sx-frame { width: 100%; height: auto; }
.sx-full .sx-frame { height: min(calc(100vw / var(--r)), 100vh); height: min(calc(100vw / var(--r)), 100svh); }
.sx-wide { width: min(calc(100vw - 2 * var(--gutter)), calc(90svh * var(--r))); }
.sx-single { width: min(60vw, calc(90svh * var(--r))); }
.sx-pair { display: flex; gap: clamp(10px, 1.2vw, 20px); width: min(calc(100vw - 2 * var(--gutter)), calc(84svh * var(--sum))); }
.sx-pair .sx-frame { min-width: 0; }
.sx-wide.is-left, .sx-pair.is-left { margin-left: var(--gutter); }
.sx-wide.is-right, .sx-pair.is-right { margin-left: auto; margin-right: var(--gutter); }
.sx-single.is-left { margin-left: var(--gutter); }
.sx-single.is-right { margin-left: auto; margin-right: var(--gutter); }
.sx-hud {
  position: fixed; z-index: 50; left: var(--gutter); bottom: 16px;
  display: flex; gap: 18px; align-items: baseline;
  font-size: var(--fs-meta); color: #fff; mix-blend-mode: difference;
  opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.sx-hud.is-on { opacity: 1; }
.sx-hud__n { font-variant-numeric: tabular-nums; opacity: .7; }
.sx-next { padding: clamp(80px, 16vh, 180px) var(--gutter) 0; }
.sx-next .next { margin-top: 0; }

/* Series band: covers glide sideways while you scroll down (no horizontal scrolling) */
.band { --band-h: clamp(220px, 46vh, 540px); padding: clamp(28px, 5vh, 56px) 0; }
.band[hidden] { display: none; }
.band__head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: clamp(14px, 2vh, 22px); }
.band__head h2 { font-size: var(--fs-h2); font-weight: 450; letter-spacing: -.02em; line-height: 1.1; }
.band__meta { font-size: var(--fs-meta); color: var(--muted); }
.band__viewport { overflow: hidden; }
.band__track { display: flex; gap: clamp(12px, 1.6vw, 24px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.band__item { display: block; flex: none; width: calc(var(--band-h) * var(--r)); transition: opacity .45s ease; }
.band__frame { position: relative; display: block; height: var(--band-h); }
.band__frame > img { transition: transform 1s var(--ease-out); }
.band__item:hover .band__frame > img, .band__item:focus-visible .band__frame > img { transform: scale(1.035); }
.band__track:has(.band__item:hover) .band__item:not(:hover) { opacity: .7; }
.band__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 10px; font-size: var(--fs-meta); }
.band__t { font-weight: 500; }
.band__cap span + span { color: var(--muted); }
@media (max-width: 700px) { .band { --band-h: 36vh; } .band__cap { flex-direction: column; gap: 2px; } }

/* Opening a photograph: it expands to fill the screen before the series loads */
.expand { position: fixed; inset: 0; z-index: 120; pointer-events: none; background: rgba(0,0,0,0); transition: background .6s ease; }
.expand.is-on { background: #000; }
.expand img {
  position: absolute; object-fit: cover; max-width: none;
  transition: left .68s var(--ease-film), top .68s var(--ease-film), width .68s var(--ease-film), height .68s var(--ease-film);
}

/* Series motion: hero settles in, full-bleed photos dolly, wide ones glide (JS) */
.js .sx-hero--full .sx-hero__frame.tile > img { transform: scale(1.08); }
.is-ready .sx-hero--full .sx-hero__frame.tile > img { transform: scale(1); transition: transform 2.6s var(--ease-out), clip-path 1.1s var(--ease-film); }
.js .sx-full .sx-frame.tile > img { transform: scale(var(--zoom, 1)); transition: clip-path 1.1s var(--ease-film), transform .6s var(--ease-out), opacity .6s ease; }

@media (max-width: 700px) {
  .sx-hero__cap { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sx-hero__cap p { text-align: left; }
  .sx-hero--tall { grid-template-columns: 1fr; }
  .sx-hero--tall .sx-hero__media { order: -1; }
  .sx-hero--tall .sx-hero__frame { height: auto; width: 100%; max-width: none; }
  .sx-wide, .sx-single { width: auto; margin-left: var(--gutter) !important; margin-right: var(--gutter) !important; }
  .sx-pair { width: auto; margin-left: var(--gutter) !important; margin-right: var(--gutter) !important; }
  .sx-seq { gap: 10px; padding-top: 10px; }
}

/* ==========================================================================
   HOME — opening, selected work sequence, two paths
   ========================================================================== */
/* Opening: a 2.39:1 frame on black that opens to full screen as you scroll (JS sets clip-path) */
.opening { position: relative; height: 175vh; background: #000; color: #F5F4F0; }
.opening__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.opening__screen { position: absolute; inset: 0; background: #0a0a0a; will-change: clip-path; }
.opening.is-intro .opening__screen { transition: clip-path 1.6s var(--ease-film) .15s; }
.opening__screen img, .opening__screen video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0;
}
.opening__screen .is-current { opacity: 1; animation: opening-settle 4.2s var(--ease-out) both; }
@keyframes opening-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.opening__shade {
  position: absolute; inset: 0; pointer-events: none; opacity: var(--open, 0);
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 42%);
}
.opening__id {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4.5vh, 44px); z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px;
}
.opening__name {
  font-stretch: 108%; font-weight: 450; text-transform: uppercase;
  font-size: clamp(2.6rem, .8rem + 6.4vw, 8.5rem); line-height: .84; letter-spacing: -.04em;
}
.opening__side { display: grid; justify-items: end; gap: 8px; text-align: right; font-size: var(--fs-meta); padding-bottom: .3em; }
.opening__now { opacity: .72; min-height: 1.3em; }
.opening__now a:hover { opacity: 1; }
.opening__hint {
  position: absolute; z-index: 2; left: 50%; top: calc(var(--frame-bottom, 70vh) + 18px); transform: translateX(-50%);
  font-size: var(--fs-xs); color: rgba(245,244,240,.6); opacity: calc(1 - var(--open, 0) * 3);
}
.js .opening__id { opacity: 0; transform: translateY(14px); }
.is-ready .opening__id { opacity: 1; transform: none; transition: opacity 1.2s ease 1.1s, transform 1.4s var(--ease-out) 1.1s; }
@media (max-width: 700px) {
  .opening { height: 150vh; }
  .opening__id { flex-direction: column; align-items: flex-start; }
  .opening__name { font-size: clamp(2.4rem, 13vw, 4rem); }
  .opening__side { justify-items: start; text-align: left; grid-template-columns: 1fr auto; align-items: center; width: 100%; }
  .opening__side .opening__role { grid-column: 1 / -1; }
  .opening__hint { display: none; }
}

/* Selected work: one- or two-piece rows, each piece at its own scale */
.works { padding-top: clamp(28px, 3vw, 48px); padding-bottom: var(--space); }
.works__row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 1.6vw, 24px);
  align-items: start; margin-top: clamp(20px, 2.6vw, 40px);
}
.works .shead + .works__row { margin-top: 8px; }
.work { will-change: transform; }
.work__link { display: block; }
.work__media { display: block; height: auto; }
.work:nth-child(even) .work__link { margin-left: auto; }
.work__media > img, .work__media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work__media > video { opacity: 0; transition: opacity .8s ease, transform 1.2s var(--ease-out); }
.work__media.is-playing > video { opacity: 1; }
.work__link:hover .work__media > img, .work__link:hover .work__media > video,
.work__link:focus-visible .work__media > img { transform: scale(1.03); }
.work__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; font-size: var(--fs-meta); }
.work__t { font-weight: 500; }
.work__m { color: var(--muted); text-align: right; }
@media (max-width: 700px) {
  .works__row { row-gap: 20px; margin-top: 20px; }
  .work { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .work--small { grid-column: 3 / -1 !important; }
  .works__row .work--small:first-child { grid-column: 1 / span 10 !important; }
}

/* Two paths: Film / Photography. The one you point at widens a little. */
.paths { display: flex; gap: 4px; height: 88vh; height: 88svh; min-height: 480px; }
.path { position: relative; flex: 1 1 0; overflow: hidden; background: #000; color: #F5F4F0; transition: flex-grow .9s var(--ease-out); }
.path > img, .path > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease-out), opacity .8s ease; }
.path > video { opacity: 0; }
.path.is-playing > video { opacity: 1; }
.path:hover { flex-grow: 1.35; }
.path:hover > img, .path:hover > video { transform: scale(1.06); }
.path::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0) 45%); }
.path__label {
  position: absolute; z-index: 2; left: clamp(16px, 2.4vw, 36px); right: clamp(16px, 2.4vw, 36px); bottom: clamp(18px, 3vh, 36px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.path__label strong { font-weight: 400; font-size: clamp(2.5rem, 1rem + 4vw, 5.5rem); letter-spacing: -.04em; line-height: .9; }
.path__label span { font-size: var(--fs-meta); opacity: .82; text-align: right; padding-bottom: .4em; }
@media (max-width: 700px) {
  .paths { flex-direction: column; height: auto; min-height: 0; }
  .path { flex: none; height: 62svh; }
  .path__label { flex-direction: column; align-items: flex-start; gap: 6px; }
  .path__label span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .tile.reveal > img { clip-path: none; }
  .js .hero__screen, .js .hero__bar { transform: none; opacity: 1; }
  .js .opening__id { transform: none; opacity: 1; }
  .opening__screen .is-current { animation: none; }
}

/* ==========================================================================
   SLATE: stands in for a film poster that is not connected yet
   ========================================================================== */
.slate {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: clamp(12px, 1.6vw, 22px);
  background: radial-gradient(120% 90% at 28% 18%, #2a2a29 0%, #121212 62%, #0b0b0b 100%);
  color: #F5F4F0; overflow: hidden;
}
.slate__t { font-size: clamp(1.1rem, .8rem + 1.2vw, 1.9rem); letter-spacing: -.025em; line-height: 1; }
.slate__m { font-size: var(--fs-meta); opacity: .5; }
.tile .slate__t, .next .slate__t { display: none; }        /* these already carry a caption */
.index__thumb .slate > * { display: none; }
.player__frame .slate { justify-content: center; align-items: center; text-align: center; }
.player__frame .slate__t, .player__frame .slate__m { display: none; }

/* ==========================================================================
   VIDEO PLAYER (the site's own, for hosted films)
   ========================================================================== */
.vp { background: #000; }
.vp > video { object-fit: contain; cursor: pointer; }
.vp.is-on:not(.is-ui) > video { cursor: none; }
.vp__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px);
  padding: 36px clamp(14px, 1.6vw, 22px) clamp(12px, 1.2vw, 16px);
  font-size: var(--fs-meta); color: #F5F4F0; font-variant-numeric: tabular-nums;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.vp.is-ui .vp__bar, .vp:focus-within .vp__bar { opacity: 1; transform: none; }
.vp__bar button { color: inherit; white-space: nowrap; padding: 6px 0; opacity: .85; transition: opacity .3s; }
.vp__bar button:hover, .vp__bar button:focus-visible { opacity: 1; }
.vp__play { min-width: 4.6em; text-align: left; }
.vp__track { position: relative; flex: 1; height: 18px; cursor: pointer; touch-action: none; }
.vp__track::before, .vp__buf, .vp__prog {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px;
  transform-origin: 0 50%;
}
.vp__track::before { background: rgba(245,244,240,.22); }
.vp__buf { background: rgba(245,244,240,.4); transform: scaleX(0); }
.vp__prog { background: #F5F4F0; height: 2px; margin-top: -1px; transform: scaleX(0); }
.vp__track:hover .vp__prog { height: 3px; margin-top: -1.5px; }
.vp__time { opacity: .75; }
.vp__spin {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; z-index: 1;
  border: 1px solid rgba(245,244,240,.25); border-top-color: #F5F4F0; border-radius: 50%;
  opacity: 0; transition: opacity .3s; animation: vp-spin 1s linear infinite; pointer-events: none;
}
.vp.is-waiting .vp__spin { opacity: 1; transition-delay: .4s; }
@keyframes vp-spin { to { transform: rotate(360deg); } }
.vp:fullscreen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; }
.vp:-webkit-full-screen { width: 100%; height: 100%; max-width: none; aspect-ratio: auto; }
.player--vertical .vp__bar { flex-wrap: wrap; row-gap: 4px; }
.player--vertical .vp__track { order: -1; flex-basis: 100%; }
@media (max-width: 600px) {
  .vp__bar { flex-wrap: wrap; row-gap: 4px; }
  .vp__track { order: -1; flex-basis: 100%; }
  .vp__time { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) { .vp__spin { animation-duration: 3s; } }

/* ==========================================================================
   FILM COVERS — the title set inside the frame (serif), one line of credits
   ========================================================================== */
.fc { position: absolute; inset: 0; z-index: 1; pointer-events: none; container-type: size; color: #F3F1EC; }
.fc__in { position: absolute; display: grid; gap: 1.8cqh; text-shadow: 0 0 1.6em rgba(0,0,0,.35); }
.fc__n { font-family: var(--sans); font-size: max(9px, 3.1cqh); letter-spacing: .16em; font-variant-numeric: tabular-nums; opacity: .75; }
.fc__t { font-family: var(--display); font-weight: 400; font-size: 15cqh; line-height: .9; letter-spacing: -.005em; }
.fc__t i { font-style: italic; }
.fc__c { font-family: var(--sans); font-size: max(9px, 3.1cqh); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.fc--br .fc__in { right: 4.5cqw; bottom: 9cqh; text-align: right; justify-items: end; }
.fc--bl .fc__in { left: 4.5cqw; bottom: 9cqh; }
.fc--ml .fc__in { left: 6cqw; top: 50%; transform: translateY(-50%); }
@container (max-height: 160px) { .fc__n, .fc__c { display: none; } .fc__t { font-size: 18cqh; } }

/* vertical pieces stand upright in a dark frame */
.is-vert { background: #0E0D0C !important; }
.is-vert > img, .is-vert > video { left: auto !important; right: 7%; width: auto !important; height: 100% !important; aspect-ratio: 9 / 16; object-fit: cover; }

/* where the covers sit */
.player__frame .fc { z-index: 0; }
.player__frame .player__btn { z-index: 2; }
/* in the Film wheel the title steps aside once the loop is playing */
.wheel__card .fc { transition: opacity .8s ease; }
.wheel__card.is-playing .fc { opacity: 0; }

/* ==========================================================================
   PHOTOGRAPHY — folders (disciplines) and series lists
   ========================================================================== */
.crumb { font-size: var(--fs-meta); color: var(--muted); margin-bottom: 14px; flex-basis: 100%; }
.crumb a { color: var(--fg); }
.crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sx-crumb { display: block; font-size: var(--fs-meta); letter-spacing: 0; line-height: 1.4; margin-bottom: 16px; opacity: .8; font-weight: 400; }
.sx-crumb:hover { opacity: 1; }

.folders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); padding-bottom: var(--space); }
.folder { display: block; min-width: 0; }
.folder__media { display: block; position: relative; aspect-ratio: 4 / 5; max-height: 86svh; width: 100%; height: auto; container-type: size; }
.folder__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.folder:hover .folder__media > img, .folder:focus-visible .folder__media > img { transform: scale(1.03); }
.folder__in { position: absolute; left: 5cqw; bottom: 5cqw; display: grid; gap: 1.2cqh; color: #F3F1EC; text-shadow: 0 0 1.6em rgba(0,0,0,.4); z-index: 1; }
.folder__n { font-size: max(10px, 1.6cqh); letter-spacing: .16em; opacity: .8; font-variant-numeric: tabular-nums; }
.folder__t { font-family: var(--display); font-weight: 400; font-size: min(11cqw, 9cqh); line-height: .9; }
.folder__c { font-size: max(10px, 1.6cqh); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.folder__list { display: flex; flex-wrap: wrap; gap: 4px 0; margin-top: 12px; font-size: var(--fs-meta); color: var(--muted); }
.folder__list span + span::before { content: "·"; margin: 0 .55em; }
.folders-foot { padding-bottom: var(--space); margin-top: calc(var(--space) * -.5); font-size: var(--fs-meta); }

.disc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; }
.disc-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: var(--fs-meta); padding-bottom: 22px; }
.disc-nav a { color: var(--muted); padding: 4px 0; }
.disc-nav a:hover, .disc-nav a[aria-current="page"] { color: var(--fg); }
.disc-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 currentColor; }
.disc-nav sup { font-size: .7em; margin-left: 2px; }
.disc-nav__all { margin-left: auto; }
.series-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) var(--gap); padding-bottom: var(--space); }
.sitem { display: block; min-width: 0; }
.sitem__media { display: block; position: relative; aspect-ratio: 3 / 2; width: 100%; height: auto; }
.sitem__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.sitem:hover .sitem__media > img { transform: scale(1.03); }
.sitem__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 12px; }
.sitem__t { font-family: var(--display); font-size: clamp(1.6rem, 1.1rem + 1.2vw, 2.4rem); line-height: 1; }
.sitem__m { font-size: var(--fs-meta); color: var(--muted); text-align: right; }
@media (max-width: 700px) {
  .folders, .series-list { grid-template-columns: minmax(0, 1fr); }
  .folder__media { aspect-ratio: 4 / 5; }
  .disc-nav__all { margin-left: 0; }
  .sitem__cap { flex-direction: column; gap: 4px; }
  .sitem__m { text-align: left; }
}

/* ==========================================================================
   WORK — Film chapter (dark) and Photography chapter (paper)
   ========================================================================== */
.wk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; font-size: var(--fs-meta); }
.wk-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.2rem + 2.4vw, 3.6rem); line-height: 1; }
.wk-film { background: #121110; color: #F3F1EC; padding: clamp(36px, 5vw, 72px) 0; --tile: #1C1A18; }
.wk-film .link-line { color: #F3F1EC; }
.wk-films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.wk-film__item { aspect-ratio: 2.39 / 1; height: auto; }
.wk-film__item > img, .wk-film__item > video { transition: transform 1.4s var(--ease-out), opacity .8s ease; }
.wk-film__item:hover > img, .wk-film__item:hover > video { transform: scale(1.025); }
.wk-film__item.is-playing .fc { opacity: 0; }
.wk-film__item .fc { transition: opacity .6s ease; }
.wk-photo { padding-top: clamp(36px, 5vw, 72px); padding-bottom: var(--space); }
.wk-folders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.wk-folders .folder__media { max-height: none; }
@media (max-width: 1100px) { .wk-folders { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .wk-films { grid-template-columns: minmax(0, 1fr); }
  .wk-folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   ATMOSPHERE — film grain, ambient light, split headings, Work mosaic
   ========================================================================== */
/* Film grain over dark pages (very subtle, moves like projected film) */
.theme-dark::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  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='.85' 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 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* Ambient light: a huge blurred copy of the work under the pointer */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient img {
  position: absolute; left: 50%; top: 50%; width: 120vw; height: 120vh; object-fit: cover;
  transform: translate(-50%, -50%) scale(1.1); filter: blur(90px) saturate(1.35); opacity: 0;
  transition: opacity 1.6s ease;
}
.ambient img.is-on { opacity: .34; }
.is-work #main, .is-work .site-footer { position: relative; z-index: 1; }
.is-work .wk-film { background: transparent; }
.is-work { background: #0C0B0A; }

/* Split headings: each word rises from behind a mask */
.rise .sw, .phead h1 .sw, .disc-head h1 .sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.sw > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); }
.is-in .sw > span { transform: none; }

/* Work hero: drifting mosaic of every film and photograph, giant title */
.wk-hero { position: relative; height: 92svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.wk-hero__mosaic { position: absolute; inset: -10% -4%; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 10px; transform: rotate(-6deg) scale(1.12); opacity: .55; }
.wk-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(120% 90% at 30% 85%, rgba(12,11,10,.92) 0%, rgba(12,11,10,.55) 45%, rgba(12,11,10,.15) 100%),
  linear-gradient(0deg, #0C0B0A 0%, rgba(12,11,10,0) 30%); }
.mosaic-col { overflow: hidden; }
.mosaic-col__in { display: flex; flex-direction: column; gap: 10px; animation: drift var(--d, 50s) linear infinite; animation-delay: var(--o, 0s); }
.mosaic-col__in.is-down { animation-direction: reverse; }
.mosaic-col img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; filter: grayscale(.25) contrast(1.05); }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wk-hero__in { position: relative; z-index: 2; padding-bottom: clamp(36px, 7vh, 80px); width: 100%; }
.wk-hero__t { font-family: var(--display); font-weight: 400; font-size: clamp(5.5rem, 3rem + 13vw, 17rem); line-height: .82; letter-spacing: -.01em; color: #F3F1EC; }
.wk-hero__m { margin-top: 18px; font-size: var(--fs-meta); letter-spacing: .16em; text-transform: uppercase; color: rgba(243,241,236,.75); }
.wk-hero__hint { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(36px, 7vh, 80px); font-size: var(--fs-meta); color: rgba(243,241,236,.6); }
.is-work .wk-photo { padding-top: clamp(28px, 4vw, 56px); }
.is-work .wk-head h2 { color: #F3F1EC; }
.is-work .wk-film { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(20px, 3vw, 40px); }
.is-work .folder__media { box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.is-work .wk-film__item { box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
@media (max-width: 700px) {
  .wk-hero { height: 78svh; min-height: 460px; }
  .wk-hero__mosaic { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mosaic-col:nth-child(n+6) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-dark::after, .mosaic-col__in { animation: none; }
  .sw > span { transform: none; transition: none; }
}

/* ==========================================================================
   HOME — dark, like Work: statement + counters, film index, photo strips
   ========================================================================== */
.is-home .opening { background: #0C0B0A; }
.is-home .opening__name {
  font-family: var(--display); font-weight: 400; font-stretch: normal; text-transform: none;
  font-size: clamp(3.6rem, 1rem + 9vw, 11.5rem); line-height: .84; letter-spacing: -.01em;
}

/* One short line and the numbers, then straight into the films */
.hm-intro { padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 80px); color: #F3F1EC; }
.hm-intro__t {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 1rem + 4.4vw, 6rem); line-height: .98; letter-spacing: -.005em; max-width: 15em; text-wrap: balance;
}
.hm-intro__m {
  margin-top: 22px; font-size: var(--fs-meta); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(243,241,236,.7); font-variant-numeric: tabular-nums;
}
.js .hm-intro__m { opacity: 0; transform: translateY(10px); transition: opacity 1s ease .3s, transform 1.2s var(--ease-out) .3s; }
.hm-intro__m.is-in { opacity: 1; transform: none; }

/* Film: the same frames as on Work */
.hm-film { color: #F3F1EC; padding-bottom: clamp(64px, 8vw, 120px); }
.hm-film .link-line, .hm-photo .link-line { color: #F3F1EC; }
.is-home .wk-head h2 { color: #F3F1EC; }
.hm-film .wk-film__item { box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
/* Loops play on their own here, so the title stays in the frame; it steps aside on hover. */
.hm-film .wk-film__item.is-playing .fc { opacity: 1; }
.hm-film .wk-film__item:hover .fc { opacity: 0; }

/* Photography: two strips drifting in opposite directions, then the disciplines */
.hm-photo { color: #F3F1EC; padding-bottom: clamp(56px, 7vw, 110px); overflow: hidden; }
.hm-strips { display: grid; gap: var(--gap); margin-top: 6px; transform: rotate(-2deg) scale(1.04); }
.hm-strip { overflow: hidden; }
.hm-strip.is-a { height: clamp(190px, 24vw, 380px); }
.hm-strip.is-b { height: clamp(140px, 16vw, 260px); }
.hm-strip__in { display: flex; gap: var(--gap); height: 100%; width: max-content; animation: marquee 90s linear infinite; animation-play-state: paused; }
.hm-strip.is-b .hm-strip__in { animation-direction: reverse; animation-duration: 75s; }
.hm-strip.is-run .hm-strip__in { animation-play-state: running; }
.hm-strips:hover .hm-strip__in { animation-play-state: paused; }
.hm-ph { display: block; height: 100%; flex: none; overflow: hidden; background: #161513; }
.hm-ph img { height: 100%; width: auto; min-width: 120px; object-fit: cover; filter: grayscale(.35) brightness(.82); transition: filter .7s ease, transform 1.2s var(--ease-out); }
.hm-ph:hover img { filter: none; transform: scale(1.04); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hm-discs { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 3vw, 48px); margin-top: clamp(36px, 5vw, 72px); }
.hm-discs a {
  font-family: var(--display); font-size: clamp(2rem, 1rem + 2.8vw, 4rem); line-height: 1.1;
  color: rgba(243,241,236,.55); transition: color .4s ease;
}
.hm-discs a:hover, .hm-discs a:focus-visible { color: #F3F1EC; font-style: italic; }
.hm-discs sup { font-family: var(--sans); font-style: normal; font-size: var(--fs-xs); letter-spacing: .08em; margin-left: 4px; vertical-align: super; opacity: .7; }
.is-home .paths { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .hm-strips { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-strip { overflow-x: auto; }
  .hm-strip__in { animation: none; }
  .js .hm-intro__m { opacity: 1; transform: none; }
}
