/* ────────────────────────────────────────────────────────────────
   HUNTER BUCHANAN · DIRECTOR OF PHOTOGRAPHY
   Black · flood red · high-contrast display serif.
   Images stay clean; type arrives on hover.
   ──────────────────────────────────────────────────────────────── */

:root {
  --black: #000;
  --red: #d60001;
  --ink: #ece8e1;          /* long-form reading colour — red on black doesn't scan */

  --fg: var(--red);
  --bg: var(--black);

  --display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, "Arial Nova", Arial, sans-serif;

  --gutter: clamp(16px, 3.2vw, 46px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-roll: cubic-bezier(0.76, 0, 0.24, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: var(--black); }
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── type primitives ──────────────────────────────────── */
.t {
  font-family: var(--sans);
  font-size: clamp(10px, 0.76vw, 12px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.t--dim { opacity: 0.6; }

/* Bodoni Moda carries an optical-size axis: LOW opsz is drawn for small text,
   so its hairlines stay thick. Pinning it low while the type is set huge is
   what keeps the thin strokes of U / N / A from disappearing. */
.d, .menu__item .roll, .film__title, .series__title,
.pager .big, .log, .bio__lede, .tlt-quote {
  font-variation-settings: "opsz" 11;
  font-optical-sizing: none;
}
.d {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 0.94;
  letter-spacing: 0.005em;
}


/* The name and the structural headings share one grotesque voice; the serif is
   kept as the accent — menu, film titles, pull quotes and editorial copy. */
.hero__mark, .contact__mark, .foot__mark, .ph h1, .proj h1, .contact__lead, .fig b {
  font-family: var(--sans);
  font-weight: 700;
  font-variation-settings: normal;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

/* ── flood ────────────────────────────────────────────── */
.flood {
  --fg: var(--black);
  --bg: var(--red);
  background: var(--red);
  color: var(--black);
}
.flood ::selection { background: var(--black); color: var(--red); }

/* ═══ ANIMATION SYSTEM ═══════════════════════════════════ */

/* 1 · character roll-up on hover (the Il Capo signature) */
.roll { display: inline-flex; white-space: nowrap; vertical-align: top; }
.roll__c {
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 0 0.09em;              /* keeps serif overhangs from clipping */
  margin: 0 -0.09em;
}
.roll__c > i {
  display: block;
  font-style: inherit;
  transition: transform 0.62s var(--ease-roll);
  transition-delay: calc(var(--i, 0) * 17ms);
}
.roll__c > i + i {
  position: absolute;
  inset: 0;
  transform: translateY(110%);
}
.roll-host:hover .roll__c > i { transform: translateY(-110%); }
.roll-host:hover .roll__c > i + i { transform: translateY(0); }

/* 2 · curtain reveal for media.
   NB: this used to be clip-path on the element itself, which zeroed its
   intersection area — IntersectionObserver then never fired, so the reveal
   could never un-clip it and every image stayed invisible. The curtain is a
   separate overlay, so the observed box keeps its real geometry. */
.wipe { position: relative; }
.wipe::before {
  content: "";
  position: absolute; inset: 0; z-index: 3;
  background: var(--bg);
  transform-origin: bottom;
  transition: transform 1.15s var(--ease);
  pointer-events: none;
}
.wipe.in::before { transform: scaleY(0); }

/* 3 · per-character reveal for display headings — blur + lift + a little 3D */
.ch { display: inline-block; }
.split { perspective: 900px; }
.split .ch {
  opacity: 0;
  filter: blur(9px);
  transform: translateY(0.4em) rotateX(-42deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, filter, opacity;
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1.15s var(--ease);
  transition-delay: calc(var(--i, 0) * 18ms);
}
.split.in .ch { opacity: 1; filter: blur(0); transform: none; }

/* 4 · plain fade-rise */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv, .split .ch { opacity: 1; transform: none; transition: none; }
  .wipe { clip-path: none; transition: none; }
  .wipe > video, .wipe > img { transform: none; transition: none; }
  .roll__c > i { transition: none; }
  .hero__cue { animation: none; }
}

/* ── nav ──────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(14px, 1.8vw, 22px) var(--gutter);
  mix-blend-mode: difference;
  color: var(--red);
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
/* The nav blends against whatever is underneath, which reads beautifully over
   footage but muddies when body copy scrolls beneath it. A short scrim sits
   under the nav (outside its blend context) to keep it legible either way. */
.nav-scrim {
  position: fixed; top: 0; left: 0; right: 0;
  height: clamp(64px, 9vh, 104px);
  z-index: 190;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.9) 42%, rgba(0, 0, 0, 0.45) 72%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.nav-scrim.on { opacity: 1; }
.nav__burger {
  background: none; border: 0; cursor: pointer;
  color: inherit; font: inherit; padding: 0;
}

/* ── fullscreen menu · centred roll navigation ────────── */
.menu {
  position: fixed; inset: 0; z-index: 300;
  background: var(--red); color: var(--black);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: clamp(6px, 1vw, 14px);
  padding: 84px var(--gutter) 64px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s var(--ease);
  visibility: hidden;
}
.menu.open { clip-path: inset(0 0 0% 0); visibility: visible; }
.menu__item {
  position: relative;
  display: block;
  text-align: center;
  padding: clamp(2px, 0.5vw, 8px) 0;
}
.menu__item .roll {
  font-family: var(--display);
  font-weight: 550;
  font-variation-settings: "opsz" 11;
  font-optical-sizing: none;
  text-transform: uppercase;
  font-size: clamp(34px, 8.4vw, 92px);
  line-height: 0.86;
  letter-spacing: -0.012em;
}
.menu__item .rule {
  display: block;
  height: 1px; width: 0;
  margin: 6px auto 0;
  background: currentColor;
  transition: width 0.45s var(--ease);
}
.menu__item:hover .rule { width: 100%; }
.menu__item .desc {
  display: block;
  margin-top: 5px;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.menu__item:hover .desc { opacity: 0.85; }
.menu__close {
  position: absolute; top: clamp(14px, 1.8vw, 22px); right: var(--gutter);
  background: none; border: 0; cursor: pointer; color: inherit; font: inherit;
}
.menu__contact {
  position: absolute; top: clamp(14px, 1.8vw, 22px); left: var(--gutter);
  color: inherit;
}

/* ── hero ─────────────────────────────────────────────── */
.hero { position: relative; height: 100svh; overflow: hidden; }
/* hero pushes in as you scroll — the page reads as moving into the frame */
.hero__media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.06) brightness(0.8);
  transform: scale(var(--hz, 1.04));
  will-change: transform;
}
.hero__inner {
  position: absolute; inset: 0;
  overflow: hidden;
  transform: scale(var(--hs, 1));
  transform-origin: center 42%;
  will-change: transform;
}
.hero__mark {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(48px, 7.4vh, 104px);
  color: var(--red);
  /* sized so "BUCHANAN" nearly fills the gutter-to-gutter measure at every
     width without ever touching it — checked from 375px to 2560px */
  font-size: clamp(46px, 12.4vw, 226px);
  line-height: 0.88;
}
/* wordmark lifts in behind a mask, one line after the other */
.hero__mark span.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero__mark span.line > b {
  display: block;
  font-weight: inherit;
  transform: translateY(105%);
  animation: liftIn 1.25s var(--ease) forwards;
}
.hero__mark span.line:nth-child(2) > b { animation-delay: 0.13s; }
@keyframes liftIn { to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .hero__mark span.line > b { transform: none; animation: none; }
  .hero__media, .hero__inner { animation: none; transform: none; }
}

/* a brief whole-page fade masks font-swap and media pop on first paint */
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { body { animation: none; } }
.hero__foot {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(16px, 2.4vh, 28px);
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: baseline; gap: 18px;
  color: var(--red);
}
.hero__foot > :last-child { text-align: right; }
.hero__cue { animation: bob 2.4s ease-in-out infinite; }
/* the location repeats in the contact block, so it can go on narrow screens */
@media (max-width: 520px) { .hero__loc { display: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (max-width: 640px) {
  .hero__foot { grid-template-columns: 1fr auto; }
  .hero__foot > :last-child { display: none; }
}

/* ── film blocks ──────────────────────────────────────── */
.film {
  background: var(--bg); color: var(--fg);
  padding: clamp(34px, 5.4vw, 84px) var(--gutter) clamp(40px, 6vw, 96px);
}
.film.flood { padding: clamp(48px, 7.4vw, 120px) var(--gutter); }
.film.flood .film__head,
.film.flood .film__panel,
.film.flood .film__meta { max-width: 76%; margin-inline: auto; }
@media (max-width: 900px) {
  .film.flood .film__head,
  .film.flood .film__panel,
  .film.flood .film__meta { max-width: 100%; }
}
.film__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-bottom: clamp(12px, 1.6vw, 20px);
}
.film__panel {
  position: relative; display: block; width: 100%;
  overflow: hidden; background: #050505;
}
/* scroll-linked push-in: each frame settles from zoomed to natural as it rises */
.film__panel video, .film__panel img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  filter: contrast(1.03);
  transform: scale(var(--z, 1));
  will-change: transform;
}
.film__panel:hover video, .film__panel:hover img {
  transform: scale(calc(var(--z, 1) + 0.04));
  transition: transform 0.9s var(--ease);
}
/* scrim only arrives with the title, so the frame stays clean at rest */
.film__panel::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 70%);
  opacity: 0;
  transition: opacity 0.55s var(--ease);
  pointer-events: none;
}
.film__panel:hover::after { opacity: 1; }
.film__title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 92%; text-align: center;
  color: var(--red);
  font-size: clamp(24px, 5.4vw, 92px);
  pointer-events: none;
  z-index: 2;
}
.film__title .ch {
  opacity: 0;
  transform: translateY(0.34em);
  transition: opacity 0.5s var(--ease), transform 0.62s var(--ease);
  transition-delay: calc(var(--i, 0) * 16ms);
}
.film__panel:hover .film__title .ch { opacity: 1; transform: none; }
.film__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-top: clamp(9px, 1.1vw, 14px);
}
.film__meta .role { text-align: right; }
/* the panel now plays the film, so the credit line carries the link to the
   full project page (credits + behind-the-scenes stills) */
.film__more { transition: opacity 0.3s var(--ease); }
.film__more:hover { opacity: 0.55; text-decoration: underline; text-underline-offset: 4px; }
.film__n { font-variant-numeric: tabular-nums; }

/* ── page header ──────────────────────────────────────── */
.ph { padding: clamp(96px, 15vh, 190px) var(--gutter) clamp(20px, 3.4vw, 46px); }
.ph__bar {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding-bottom: 10px;
  border-bottom: 1px solid currentColor;
  margin-bottom: clamp(16px, 2.6vw, 34px);
}
.ph h1 {
  line-height: 0.9;
  font-size: clamp(38px, 9.4vw, 148px);
}

/* ── screens ──────────────────────────────────────────── */
.screen { position: relative; background: #000; width: 100%; }
.screen::before { content: ""; display: block; padding-top: 56.25%; }
.screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Facade: show our own cover art and only load the player on click. Keeps
   YouTube's branding off the page at rest, and saves the embed's weight. */
.screen--facade { display: block; border: 0; padding: 0; cursor: pointer; overflow: hidden; }
.screen--facade > img,
.screen--facade > video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.005);
  transition: transform 1.1s var(--ease), filter 0.5s var(--ease);
}
.screen--facade:hover > img,
.screen--facade:hover > video { transform: scale(1.035); filter: brightness(0.86); }
.screen--facade:hover .screen--facade:hover .screen__label {
  position: absolute; left: clamp(12px, 1.4vw, 20px); bottom: clamp(10px, 1.2vw, 16px);
  color: var(--red);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.screen__cap {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; margin-top: 12px;
}
.stack { padding: 0 var(--gutter) clamp(50px, 8vw, 110px); display: grid; row-gap: clamp(40px, 6vw, 90px); }

/* ── grids ────────────────────────────────────────────── */
.grid {
  padding: 0 var(--gutter) clamp(50px, 8vw, 110px);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(10px, 1.4vw, 22px);
}
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }
.cell {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font: inherit; text-align: left; display: block;
}
.cell .film__title { font-size: clamp(18px, 2.4vw, 40px); }

/* two series cards side by side, so the page keeps moving instead of
   bottoming out between sections */
.pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3.4vw, 52px);
  padding: 0 var(--gutter) clamp(34px, 5vw, 70px);
}
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair .series { padding: 0; grid-template-columns: minmax(120px, 0.44fr) 1fr; gap: clamp(14px, 1.6vw, 24px); }
.pair .series__title { font-size: clamp(26px, 2.9vw, 46px); }
.pair .series__note { font-size: clamp(13px, 0.94vw, 14.5px); line-height: 1.6; max-width: 34ch; }

/* ── series tile: poster + copy, links to the dedicated page ──── */
.series {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 48px);
  align-items: center;
  padding: 0 var(--gutter) clamp(50px, 8vw, 110px);
}
@media (min-width: 760px) { .series { grid-template-columns: minmax(200px, 0.42fr) 1fr; } }
.series__poster { display: block; overflow: hidden; background: #050505; }
.series__poster img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: grayscale(0.25) contrast(1.04);
}
.series:hover .series__poster img { transform: scale(1.05); filter: grayscale(0) contrast(1.06); }
.series__body { display: block; }
.series__body .t { display: block; opacity: 0.6; }
.series__title {
  display: block;
  font-size: clamp(34px, 6.4vw, 104px);
  line-height: 0.92;
  margin: clamp(10px, 1.6vw, 18px) 0;
  color: var(--fg);
}
.series__note {
  display: block;
  max-width: 46ch;
  color: var(--ink);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.68;
  margin-bottom: clamp(16px, 2.2vw, 26px);
}
.flood .series__note { color: var(--black); opacity: 0.78; }
.series__cta {
  opacity: 1 !important;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  width: fit-content;
  transition: opacity 0.3s;
}
.series:hover .series__cta { opacity: 0.6 !important; }

/* ── The Little Things — dedicated page intro ─────────── */
.tlt-intro {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(20px, 3.4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 56px) var(--gutter) clamp(30px, 5vw, 70px);
}
@media (min-width: 820px) { .tlt-intro { grid-template-columns: minmax(220px, 0.4fr) 1fr; } }
.tlt-intro__poster { display: block; overflow: hidden; background: #050505; }
.tlt-intro__poster img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tlt-quote {
  font-family: var(--display);
  text-transform: none;
  font-size: clamp(19px, 2.1vw, 30px);
  line-height: 1.32;
  color: var(--red);
  margin: clamp(18px, 2.4vw, 28px) 0 6px;
  max-width: 26ch;
}

/* ── lightbox ─────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0, 0, 0, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 60px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.lb.open { opacity: 1; visibility: visible; }
.lb__in { width: min(1240px, 100%); color: var(--red); }
.lb__bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 10px; }
.lb__x { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }

/* ── project page ─────────────────────────────────────── */
.proj { padding: clamp(90px, 14vh, 170px) var(--gutter) clamp(18px, 2.6vw, 34px); }
.proj h1 {
  line-height: 0.9;
  font-size: clamp(34px, 8vw, 120px);
  margin: clamp(10px, 1.6vw, 20px) 0 clamp(16px, 2.4vw, 30px);
}
.proj__specs {
  display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 64px);
  border-top: 1px solid currentColor; padding-top: 12px;
}
.proj__specs div p { margin-top: 5px; color: var(--ink); }
.proj__body {
  padding: clamp(28px, 4.6vw, 64px) var(--gutter) clamp(40px, 7vw, 100px);
  display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 60px);
}
@media (min-width: 880px) { .proj__body { grid-template-columns: 1.15fr 1fr; } }
.log {
  font-family: var(--display); text-transform: none;
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1.34;
  color: var(--ink);
}
.credits { list-style: none; }
.credits li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px solid rgba(214, 0, 1, 0.35);
}
.credits li:first-child { border-top: 1px solid rgba(214, 0, 1, 0.35); }
.credits .nm { text-align: right; color: var(--ink); letter-spacing: 0.06em; }

/* ── stills / BTS strip at the foot of a project ──────── */
.stills { padding: 0 var(--gutter) clamp(44px, 7vw, 96px); }
.stills__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(214, 0, 1, 0.35);
  margin-bottom: clamp(14px, 2vw, 24px);
}
/* Larger frames on a rail that drifts by itself.
   The motion is a CSS transform on a duplicated track — GPU-composited, so it
   stays smooth. An earlier version animated scrollLeft from rAF, which moved in
   whole pixels (~1px every 4 frames at this speed) and visibly stuttered. */
.stills__grid {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.stills__track {
  display: flex;
  gap: clamp(10px, 1.2vw, 18px);
  width: max-content;
  will-change: transform;
  animation: stillsDrift calc(var(--n, 8) * 13s) linear infinite;
}
.stills__grid:hover .stills__track,
.stills__grid:focus-within .stills__track { animation-play-state: paused; }
@keyframes stillsDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-50% - (clamp(10px, 1.2vw, 18px) / 2)), 0, 0); }
}

.still {
  flex: none;
  width: clamp(280px, 34vw, 560px);
  display: block; position: relative; overflow: hidden;
  background: #060606; border: 0; padding: 0; cursor: zoom-in;
}

/* Touch has no hover to pause with, and native momentum scrolling is already
   perfectly smooth there — so on touch the rail scrolls by hand instead. */
@media (hover: none) {
  .stills__grid {
    overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: none; mask-image: none;
    padding-bottom: 10px;
  }
  .stills__track { animation: none; width: max-content; }
  .stills__dup { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stills__track { animation: none; }
  .stills__grid { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .stills__dup { display: none; }
}
.still img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  filter: contrast(1.02);
  transform: scale(1.01);
  transition: transform 0.9s var(--ease), filter 0.5s var(--ease);
}
.still:hover img { transform: scale(1.05); filter: contrast(1.06); }
.still__n {
  position: absolute; left: 10px; top: 9px;
  color: rgba(255, 255, 255, 0.85);
  mix-blend-mode: difference;
  pointer-events: none;
}

/* full-bleed viewer for a still */
.sv {
  position: fixed; inset: 0; z-index: 420;
  background: rgba(0, 0, 0, 0.96);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(14px, 4vw, 56px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
  cursor: zoom-out;
}
.sv.open { opacity: 1; visibility: visible; }
.sv img { max-width: 100%; max-height: 88vh; object-fit: contain; }
.sv__bar {
  position: absolute; top: clamp(14px, 2vw, 24px); left: var(--gutter); right: var(--gutter);
  display: flex; justify-content: space-between; align-items: baseline;
  color: var(--red);
}
.sv__x { background: none; border: 0; cursor: pointer; color: inherit; font: inherit; }

.pager {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: clamp(26px, 4vw, 54px) var(--gutter);
  border-top: 1px solid rgba(214, 0, 1, 0.35);
}
.pager .big {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(18px, 3.2vw, 46px); line-height: 1;
  display: block; margin-top: 8px;
}
.pager .fwd { text-align: right; }

/* ── bio ──────────────────────────────────────────────── */
.bio {
  padding: 0 var(--gutter) clamp(40px, 6vw, 90px);
  display: grid; grid-template-columns: 1fr; gap: clamp(24px, 3.6vw, 56px);
}
@media (min-width: 880px) { .bio { grid-template-columns: 0.8fr 1fr; } }
.bio__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.bio__lede {
  font-family: var(--display);
  text-transform: none;
  font-size: clamp(21px, 2.3vw, 34px);
  line-height: 1.3;
  color: var(--red);
  margin-bottom: clamp(20px, 2.8vw, 32px);
}
/* long-form copy reads in warm off-white, not red — red stays for accents */
.bio__copy p {
  max-width: 60ch;
  margin-bottom: 17px;
  font-size: clamp(15px, 1.12vw, 16.5px);
  line-height: 1.75;
  color: var(--ink);
  letter-spacing: 0.004em;
}
.bio__copy .note { color: var(--red); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ── client logos · infinite side-to-side marquee ─────── */
.logos {
  padding: 0 0 clamp(50px, 8vw, 110px);
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.logos__track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
  animation: logoMarquee 52s linear infinite;
}
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes logoMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo {
  flex: none;
  width: clamp(112px, 11vw, 168px);
  height: clamp(52px, 5.4vw, 78px);
  margin-inline: clamp(18px, 2.6vw, 46px);
  background-color: var(--red);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease);
}
.logo:hover { opacity: 1; transform: scale(1.07); }
/* marks that read better with a little more room */
.logo--tall { width: clamp(58px, 5.6vw, 84px); }

@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .logos { -webkit-mask-image: none; mask-image: none; }
}

/* ── contact (lives at the foot of the bio page) ──────── */
.contact {
  background: var(--red); color: var(--black);
  padding: clamp(46px, 7.4vw, 110px) var(--gutter) clamp(20px, 3vw, 34px);
}
.contact__lead {
  font-size: clamp(32px, 6.8vw, 100px);
  line-height: 0.92;
  margin-bottom: clamp(28px, 4.4vw, 60px);
}
.contact__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 44px);
  padding-bottom: clamp(30px, 5vw, 70px);
}
@media (min-width: 700px) { .contact__grid { grid-template-columns: repeat(3, 1fr); } }
.contact__grid .t { display: block; margin-bottom: 9px; opacity: 0.65; }
/* sans, not display serif — these are details you read, not a headline */
.contact__val {
  font-family: var(--sans);
  font-size: clamp(13px, 1.05vw, 15px);
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: none;
  display: inline-block;
}
a.contact__val { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity 0.3s; }
a.contact__val:hover { opacity: 0.6; }
.contact__base {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid currentColor; padding-top: 14px;
}
.contact__mark {
  font-size: clamp(28px, 8.6vw, 132px); line-height: 0.86;
  display: block; margin-bottom: clamp(10px, 1.6vw, 18px);
}

/* ── outbound links ───────────────────────────────────── */
.more-link, .arch-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--red);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: opacity 0.3s;
}
.arch-more { margin-top: 8px; }
.more-link:hover, .arch-more:hover { opacity: 0.6; }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: clamp(112px, 11vw, 142px);
  padding: clamp(9px, 1vw, 12px) clamp(16px, 1.8vw, 22px);
  border: 1px solid currentColor;
  font-family: var(--sans);
  font-size: clamp(9.5px, 0.7vw, 11px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.btn:hover { background: currentColor; }
.btn:hover > * { mix-blend-mode: difference; }

/* ── footer ───────────────────────────────────────────── */

.foot { background: var(--red); color: var(--black); padding: clamp(36px, 6vw, 90px) var(--gutter) clamp(16px, 2.4vw, 26px); }
.foot__grid {
  display: grid; grid-template-columns: 1fr; gap: clamp(20px, 3vw, 44px);
  margin-bottom: clamp(36px, 6vw, 90px);
}
@media (min-width: 700px) { .foot__grid { grid-template-columns: repeat(3, 1fr); } }
.foot__grid .t { display: block; margin-bottom: 9px; opacity: 0.65; }
.foot__val {
  font-family: var(--sans);
  font-size: clamp(13px, 1.05vw, 15px);
  letter-spacing: 0.05em; line-height: 1.6;
  display: inline-block;
}
a.foot__val { border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: opacity 0.3s; }
a.foot__val:hover { opacity: 0.6; }
.foot__mark {
  font-size: clamp(28px, 8.6vw, 132px); line-height: 0.86;
  display: block; margin-bottom: clamp(10px, 1.6vw, 18px);
}
.foot__base {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid currentColor; padding-top: 14px;
}

/* minimal variant — must follow the generic .foot rules to override them */
.foot--min {
  background: var(--black);
  color: var(--red);
  border-top: 1px solid rgba(214, 0, 1, 0.3);
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(18px, 2.4vw, 28px);
}
.foot__actions {
  display: flex; gap: clamp(10px, 1.4vw, 18px); flex-wrap: wrap;
  justify-content: center;
  margin-bottom: clamp(30px, 5vw, 60px);
}
.foot--min .foot__base {
  justify-content: center;
  border-top: 1px solid rgba(214, 0, 1, 0.25);
  padding-top: 16px;
  text-align: center;
}


/* ── cursor ───────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .cur {
    position: fixed; top: 0; left: 0; z-index: 500;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--red); mix-blend-mode: difference;
    pointer-events: none; transform: translate(-100px, -100px);
    transition: width 0.35s var(--ease), height 0.35s var(--ease);
  }
  .cur.big { width: 44px; height: 44px; }
}

/* ── responsive ───────────────────────────────────────── */
/* On touch there is no hover, so titles would be stranded on top of the
   artwork. Keep the frames clean and let the caption underneath do the work. */
@media (hover: none), (max-width: 780px) {
  .film__title { display: none; }
  .film__panel::after { opacity: 0; }
  .film__meta { margin-top: 10px; }
  .film__meta .role { text-align: right; }
/* the panel now plays the film, so the credit line carries the link to the
   full project page (credits + behind-the-scenes stills) */
.film__more { transition: opacity 0.3s var(--ease); }
.film__more:hover { opacity: 0.55; text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 780px) {
  .series { padding-bottom: clamp(40px, 9vw, 70px); }
  .series__title { font-size: clamp(30px, 12vw, 56px); }
  .proj__body { gap: 26px; }
  .credits li { font-size: 12.5px; }
  .foot__grid, .contact__grid { gap: 22px; }
}

.ph__lede {
  max-width: 54ch; margin-top: clamp(14px, 2vw, 22px);
  color: var(--ink); font-size: clamp(14px, 1.15vw, 16.5px); line-height: 1.7;
}
a.ln { color: var(--red); border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .3s; }
a.ln:hover { opacity: .6; }
