/* ---------- Tokens ---------- */
:root {
  --bg: #050505;          /* near black */
  --base: #121110;        /* strip */
  --ink: #ece6dc;         /* paper white */
  --muted: #8f877c;
  --line: #222120;
  --red: #e2402f;         /* safelight */
  /* never narrower than the notch when a phone is held sideways */
  --gutter: max(clamp(16px, 5vw, 72px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));

  --f-head: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Source Serif 4", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.2, .7, .1, 1);   /* fast out, long settle */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(64px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono {
  font-family: var(--f-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 200;
}
.skip:focus { left: 8px; }

/* ---------- Top bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  /* extend up under the phone's status bar so page content can't show through it */
  padding: calc(14px + env(safe-area-inset-top, 0px)) var(--gutter) 14px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar__mark {
  font: 600 1rem/1 var(--f-head);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.bar__tc { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar__tc::before { content: "\25CF"; color: var(--red); margin-right: .6em; }
.bar__slate { display: inline-block; margin-right: 1.5em; color: var(--ink); }
.bar__nav { display: flex; gap: clamp(14px, 3vw, 32px); }
.bar__nav a {
  font: 500 .8125rem/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 1px no-repeat;
  transition: background-size .3s var(--ease);
}
.bar__nav a:hover,
.bar__nav a.is-current { background-size: 100% 1px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 9vh, 96px);
  overflow: hidden;   /* the photo drifts down on scroll; keep it inside */
}
/* crew photo behind the type, played like a held showreel shot */
.hero__bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 40%;
  animation: push-in 40s ease-out both;
}
@keyframes push-in { from { transform: scale(1); } to { transform: scale(1.08); } }
/* darken toward the type (left) and fade into the page (bottom) */
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 5, 0) 40%),
    linear-gradient(90deg, rgba(5, 5, 5, .9) 0%, rgba(5, 5, 5, .6) 50%, rgba(5, 5, 5, .3) 100%);
}
.hero__inner { position: relative; }
.hero__credit {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  color: var(--muted); text-decoration: none; font-size: .625rem;
  transition: color .2s, transform .3s var(--ease);
}
.hero__credit:hover { color: var(--ink); transform: translateX(4px); }

.corner {
  position: absolute; width: 28px; height: 28px;
  border: 0 solid var(--muted);
}
.corner--tl { top: 84px; left: calc(var(--gutter) / 2); border-width: 1px 0 0 1px; }
.corner--tr { top: 84px; right: calc(var(--gutter) / 2); border-width: 1px 1px 0 0; }
.corner--bl { bottom: 24px; left: calc(var(--gutter) / 2); border-width: 0 0 1px 1px; }
.corner--br { bottom: 24px; right: calc(var(--gutter) / 2); border-width: 0 1px 1px 0; }

.hero__kicker { color: var(--red); margin: 0 0 1.25rem; }
.hero__name {
  margin: 0;
  font: 600 clamp(4.5rem, min(27vw, 30vh), 19rem)/.9 var(--f-head);
  text-transform: uppercase;
  letter-spacing: -.01em;
}
/* a column, so the intro's mask margins can't collapse and shift the lines */
.hero__name { display: flex; flex-direction: column; }
.hero__name .ln > span { display: block; }
.hero__line {
  max-width: 34ch;
  margin: 2rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
}
.hero__cue {
  display: inline-block; margin-top: 2.5rem;
  text-decoration: none; color: var(--muted);
  transition: color .2s, transform .3s var(--ease);
}
.hero__cue:hover { color: var(--ink); transform: translateX(6px); }

/* ---------- Showreel ---------- */
.reel { padding: 0 var(--gutter) 96px; }
.reel__frame { aspect-ratio: 16 / 9; background: #000; }
.reel__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline; gap: 0 20px;
  padding: 20px var(--gutter) 0;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(32px, 6vw, 64px);
}
.section-head__no { color: var(--red); }
.section-head h2 {
  margin: 0;
  font: 500 clamp(2.5rem, 7vw, 5.5rem)/1 var(--f-head);
  text-transform: uppercase;
}
.section-head__note { color: var(--muted); margin: 0; }

/* ---------- Works: contact sheet ---------- */
.works { padding-top: 24px; padding-bottom: clamp(64px, 10vw, 140px); }
.roll { margin-bottom: clamp(48px, 7vw, 88px); }
.roll__label {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px;
  padding: 0 var(--gutter);
  margin-bottom: 16px;
}
.roll__no { color: var(--red); }
.roll__title {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 500 clamp(1.75rem, 4vw, 3rem)/1 var(--f-head);
  text-transform: uppercase; text-align: left;
  transition: color .2s;
}
.roll__title:hover { color: var(--red); }
.roll__meta { color: var(--muted); }

.strip {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}
.strip__track {
  --hole: var(--bg);
  position: relative;
  display: flex; gap: 14px;
  width: max-content;
  padding: 40px 18px;
  background: var(--base);
}
/* sprocket holes */
.strip__track::before,
.strip__track::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 8px, var(--hole) 8px 20px, transparent 20px 28px);
}
.strip__track::before { top: 9px; }
.strip__track::after { bottom: 9px; }

.frame {
  position: relative;
  flex: none;
  height: clamp(130px, 14vw, 200px);
  aspect-ratio: var(--ar, 16 / 9);
  padding: 0; border: 0;
  background: var(--tone, #222);
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: opacity .35s ease, transform .45s var(--ease), box-shadow .45s var(--ease);
}
/* hover: lift the frame slightly, like pulling it toward the loupe */
.frame:hover,
.frame:focus-visible {
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .55);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(236, 230, 220, .28);
  font-size: .625rem;
}
.frame__no {
  position: absolute; left: 0; bottom: -21px;
  font: 500 .625rem/1 var(--f-mono);
  letter-spacing: .1em;
  color: var(--red); opacity: .75;
  white-space: nowrap;
  pointer-events: none;
}
@media (hover: hover) {
  .strip__track:hover .frame:not(:hover) { opacity: .5; }
}

/* ---------- Prints: photography wall ---------- */
/* Justified rows: every print keeps its real shape (--r = width / height);
   flex-grow in proportion to --r keeps each row one height. */
.prints { padding-bottom: clamp(64px, 10vw, 140px); }
.print-wall {
  --row: clamp(150px, 17vw, 270px);
  --pad: clamp(5px, .6vw, 8px);
  display: flex; flex-wrap: wrap;
  gap: clamp(10px, 1.4vw, 18px);
  padding: 0 var(--gutter);
}
/* soaks up the last row so it isn't stretched to fill the width */
.print-wall::after { content: ""; flex: 999 1 0; }
.print {
  --r: 1.5;
  /* the side borders are in the basis, so growth scales only the photo and rows stay level */
  flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row) + 2 * var(--pad));
  min-width: 0;
  position: relative;
  /* a paper border, a little deeper at the foot, like a darkroom print */
  padding: var(--pad) var(--pad) clamp(18px, 1.8vw, 24px);
  border: 0;
  background: var(--ink);
  cursor: zoom-in;
  transition: opacity .35s ease, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.print__img {
  position: relative; display: block;
  aspect-ratio: var(--r);
  background: var(--base);
  overflow: hidden;
}
.print__img img { width: 100%; height: 100%; object-fit: cover; }
.print__no {
  position: absolute; left: var(--pad); bottom: clamp(4px, .5vw, 7px);
  font: 500 .625rem/1 var(--f-mono);
  letter-spacing: .1em;
  color: var(--red);
  pointer-events: none;
}
.print:hover,
.print:focus-visible {
  transform: scale(1.03);
  z-index: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .6);
}
@media (hover: hover) {
  .print-wall:hover .print:not(:hover) { opacity: .5; }
}

/* the three stacks */
.albums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  padding: 0 var(--gutter);
}
.album {
  display: block;
  color: inherit; text-decoration: none;
  outline-offset: 12px;
}
.album__stack {
  position: relative; display: block;
  aspect-ratio: 4 / 5;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
/* a print in the pile: paper border, deeper at the foot */
.album__card {
  position: absolute; inset: 6% 8%;
  display: flex; flex-direction: column;
  padding: 4% 4% 12%;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55);
  transition: transform .6s var(--ease);
}
.album__card .print__img { flex: 1; aspect-ratio: auto; }
/* cards are in the DOM bottom-first; the last one is the cover */
.album__card:nth-last-child(3) { transform: rotate(-7deg) translate(-5%, 2%); }
.album__card:nth-last-child(2) { transform: rotate(5deg) translate(5%, 1%); }
.album__card:nth-last-child(1) { transform: rotate(-1deg); }
/* fan the pile out, like spreading prints on a table */
.album:hover .album__card:nth-last-child(3),
.album:focus-visible .album__card:nth-last-child(3) { transform: rotate(-13deg) translate(-16%, 3%); }
.album:hover .album__card:nth-last-child(2),
.album:focus-visible .album__card:nth-last-child(2) { transform: rotate(11deg) translate(16%, 0); }
.album:hover .album__card:nth-last-child(1),
.album:focus-visible .album__card:nth-last-child(1) { transform: rotate(0) translateY(-4%); }
.album__label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.album__title {
  font: 500 clamp(1.75rem, 3vw, 2.5rem)/1 var(--f-head);
  text-transform: uppercase;
  transition: color .2s;
}
.album__count { color: var(--muted); white-space: nowrap; }
.album:hover .album__title,
.album:focus-visible .album__title { color: var(--red); }

/* album view: one category, full screen (also a .loupe) */
.album-view__title {
  margin: 0 0 clamp(24px, 4vw, 48px);
  font: 500 clamp(2.5rem, 7vw, 5.5rem)/1 var(--f-head);
  text-transform: uppercase;
}
.album-view__wall { padding: 0; }

/* ---------- About ---------- */
.about { padding-bottom: clamp(64px, 10vw, 140px); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px);
  padding: 0 var(--gutter);
  align-items: start;
}
.portrait { margin: 0; }
.portrait__img {
  aspect-ratio: 4 / 5;
  background: var(--base);
  border: 10px solid var(--base);
  outline: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--muted); text-align: center;
}
.portrait__img img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { margin-top: 12px; color: var(--muted); font-size: .625rem; }

.about__text { max-width: 60ch; }
.about__text p { margin: 0 0 1.1em; }
.lede { font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.35; }
.about__ask { border-left: 2px solid var(--red); padding-left: 16px; }
.about__ask strong { font-weight: 400; font-style: italic; }

.pipeline {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  padding: 0 var(--gutter);
  margin-top: clamp(56px, 8vw, 112px);
}
.pipeline__col { border-top: 1px solid var(--muted); padding-top: 14px; }
.pipeline__col--main { border-top: 3px solid var(--red); padding-top: 12px; }
.pipeline h3 { margin: 0 0 18px; color: var(--muted); font-weight: 500; }
.pipeline__col--main h3 { color: var(--red); }
.pipeline ul { list-style: none; margin: 0; padding: 0; }
.pipeline li {
  font: 400 clamp(1.15rem, 1.8vw, 1.45rem)/1.25 var(--f-head);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.pipeline li span {
  display: block; margin-top: 4px;
  font: italic 400 .9375rem/1.3 var(--f-body);
  text-transform: none; color: var(--muted);
}

.specs {
  margin: clamp(48px, 6vw, 80px) var(--gutter) 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}
.specs div {
  display: flex; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); width: 8.5em; flex: none; }
.specs dd { margin: 0; text-transform: none; letter-spacing: .02em; }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(64px, 10vw, 140px); }
.contact > *:not(.section-head) { margin-inline: var(--gutter); }
.contact__intro {
  font-size: clamp(1.2rem, 2vw, 1.5rem); font-style: italic;
  max-width: 36ch; margin-top: 0;
}
.email {
  display: block;
  background: none; border: 0; padding: 0;
  text-align: left; cursor: copy;
  margin-block: clamp(24px, 4vw, 48px) 0;
}
.contact__also { margin-block: 28px clamp(56px, 8vw, 96px); }
.contact__also a {
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 3px;
  transition: border-color .25s;
}
.contact__also a:hover { border-color: var(--red); }
.email__addr {
  display: inline-block;
  font: 500 clamp(1.9rem, 7.5vw, 6.5rem)/1 var(--f-head);
  overflow-wrap: anywhere;
  background: linear-gradient(var(--red), var(--red)) left bottom / 0 3px no-repeat;
  padding-bottom: 6px;
  transition: background-size .35s ease;
}
.email:hover .email__addr,
.email:focus-visible .email__addr { background-size: 100% 3px; }
.email__hint { display: block; margin-top: 14px; color: var(--muted); }
.email.is-copied .email__hint { color: var(--red); }

.form { max-width: 760px; }
.form__label { color: var(--muted); margin: 0 0 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form label { display: block; margin-bottom: 24px; }
.form label > span { display: block; color: var(--muted); margin-bottom: 6px; }
.form input,
.form textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--muted);
  color: var(--ink);
  font: 400 1.0625rem/1.5 var(--f-body);
  padding: 8px 0;
  border-radius: 0;
}
.form textarea { resize: vertical; }
.form input:focus,
.form textarea:focus { outline: none; border-bottom-color: var(--red); }
.form [aria-invalid="true"] { border-bottom-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__status { margin: 0; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.form__status.is-ok { color: var(--ink); }
.form__status.is-err { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  background: transparent;
  font: 500 .8125rem/1 var(--f-mono);
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn[download]:hover span { transform: translateY(3px); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ---------- Footer ---------- */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot a {
  text-decoration: none;
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: color .2s, background-size .3s var(--ease);
}
.foot__links { display: flex; gap: 24px; }
.foot a:hover { color: var(--ink); background-size: 100% 1px; }

/* ---------- Loupe (project dialog) ---------- */
.loupe {
  width: 100vw; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--bg); color: var(--ink);
}
.loupe::backdrop { background: #000; }
.loupe[open] { animation: fade-in .3s ease-out; }
.loupe__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 var(--gutter) 64px;
  outline: none;
}
.loupe__head {
  position: sticky; top: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 0 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.loupe__roll { margin: 0; color: var(--red); }
.loupe__close {
  background: none; border: 1px solid var(--line);
  padding: 8px 14px; cursor: pointer;
  transition: border-color .2s;
}
.loupe__close:hover { border-color: var(--ink); }
.loupe__body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.loupe__screen {
  aspect-ratio: 16 / 9;
  background: #000;
  display: grid; place-items: center;
  color: var(--muted); text-align: center;
}
.loupe__screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.loupe__screen p { margin: 0; padding: 16px; }
.loupe__info h2 {
  margin: 0 0 16px;
  font: 500 clamp(2rem, 4.5vw, 3.75rem)/.95 var(--f-head);
  text-transform: uppercase;
}
.loupe__blurb { margin: 0 0 28px; font-size: 1.125rem; }

/* call sheet: label ...... value */
.callsheet { margin: 0; }
.callsheet div { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.callsheet dt { color: var(--muted); flex: none; }
.callsheet .leader { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-3px); min-width: 16px; }
.callsheet dd { margin: 0; text-align: right; text-transform: none; letter-spacing: .02em; }

.loupe__frames {
  display: flex; flex-wrap: wrap;
  gap: 14px;
  margin-top: 48px;
}
.loupe__frames figure {
  margin: 0; position: relative;
  height: clamp(140px, 18vw, 240px);
  aspect-ratio: var(--ar, 16 / 9);
  background: var(--tone, #222);
}
.loupe__frames img { width: 100%; height: 100%; object-fit: cover; }
.loupe__frames figcaption {
  position: absolute; left: 8px; bottom: 6px;
  font: 500 .625rem/1 var(--f-mono); letter-spacing: .1em;
  color: rgba(236, 230, 220, .45);
}

/* ---------- Enlarger (one print, full size); also a .loupe ---------- */
.enlarger__inner {
  display: flex; flex-direction: column;
  height: 100dvh;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.enlarger .loupe__head { margin-bottom: 16px; }
.enlarger__fig {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  margin: 0;
}
.enlarger__easel {
  flex: 1; min-height: 0;
  display: grid; place-items: center;
  touch-action: pan-y;
  user-select: none;
}
.enlarger__easel img {
  max-width: 100%;
  max-height: calc(100dvh - 160px);
  object-fit: contain;
  -webkit-user-drag: none;
}
.enlarger__ph {
  display: grid; place-items: center;
  aspect-ratio: var(--r);
  width: min(100%, calc((100dvh - 160px) * var(--r)));
  background: var(--base);
  color: rgba(236, 230, 220, .28);
  font-size: .625rem;
}
.enlarger__foot {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 16px;
  padding-top: 16px;
}
.enlarger__cap { margin: 0; text-align: center; color: var(--muted); }
.enlarger__nav {
  background: none; border: 1px solid var(--line);
  padding: 8px 14px; cursor: pointer;
  transition: border-color .2s;
}
.enlarger__nav:hover { border-color: var(--ink); }

/* ---------- Motion (html.motion is set in <head> unless reduced motion is on) ---------- */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes rise { from { transform: translateY(130%); } }

/* grain shifts a few times a second, like projected film */
.motion body::after {
  inset: -160px;
  will-change: transform;
  animation: grain .64s steps(1) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-53px, 71px); }
  50%  { transform: translate(89px, -37px); }
  75%  { transform: translate(-27px, -101px); }
}

/* REC light */
.motion .bar__tc::before { animation: rec 2.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .2; } }
.bar__slate.is-flip { animation: slate-flip .45s var(--ease); }
@keyframes slate-flip { from { opacity: 0; transform: translateY(-70%); } }

.motion .hero__bg img { will-change: transform, translate; }

/* opening titles: first visit per session (html.intro, removed by JS once played) */
.intro .hero__name .ln { overflow: hidden; padding: .1em 0; margin: -.1em 0; }
.intro .hero__bg { animation: fade-in 1.4s ease-out both; }
.intro .hero__kicker { animation: fade-in .6s .2s both; }
.intro .hero__name .ln > span { animation: rise .9s .35s var(--ease) both; }
.intro .hero__name .ln + .ln > span { animation-delay: .5s; }
.intro .hero__line { animation: fade-up .7s 1s var(--ease) both; }
.intro .hero__cue,
.intro .hero__credit,
.intro .corner { animation: fade-in .6s 1.3s both; }

/* rolls feed in sideways as they reach the gate; section titles rise */
.roll.pending .roll__label { opacity: 0; transform: translateY(16px); }
/* move the whole strip, not the film inside it, or scroll-snap fights the slide */
.roll.pending .strip { opacity: 0; transform: translateX(96px); }
.roll.pending .frame__no { opacity: 0; }
.roll.pending .roll__label { transition: opacity .7s ease-out, transform .9s var(--ease); }
.roll.pending .strip { transition: opacity .8s ease-out .08s, transform .95s cubic-bezier(.16, 1, .3, 1) .08s; }
.roll.pending .frame__no { transition: opacity .3s; transition-delay: calc(.45s + var(--i, 0) * 70ms); }
.roll.pending.is-in .roll__label,
.roll.pending.is-in .strip { opacity: 1; transform: none; }
.roll.pending.is-in .frame__no { opacity: .75; }

/* stacks rise into place as they come into view; an album's prints rise when it opens */
.album.pending { opacity: 0; }
.album.pending.is-in { opacity: 1; animation: print-in .9s var(--ease) var(--d, 0ms) backwards; }
.album-view[open] .print { animation: print-in .7s var(--ease) calc(.15s + var(--d, 0ms)) backwards; }
@keyframes print-in { from { opacity: 0; transform: translateY(28px); } }

.section-head.pending > * { opacity: 0; transition: opacity .6s ease-out .15s; }
.section-head.pending h2 {
  transform: translateY(.35em);
  transition: opacity .6s ease-out, transform .8s var(--ease);
}
.section-head.pending.is-in > * { opacity: 1; transform: none; }

/* a still flying between the sheet and the project view */
.loupe__fly {
  position: fixed; z-index: 3;
  margin: 0;
  object-fit: cover;
  pointer-events: none;
}
@keyframes loupe-bg-in { from { background-color: rgba(5, 5, 5, 0); } }
@keyframes loupe-bg-out { to { background-color: rgba(5, 5, 5, 0); } }
.loupe.is-flying { animation: loupe-bg-in .48s ease-out; }
.loupe.is-flying::backdrop { animation: fade-in .48s ease-out; }
.loupe.is-flying .loupe__inner { animation: fade-in .4s .2s both; }
.loupe.is-leaving { animation: loupe-bg-out .48s ease-in forwards; }
.loupe.is-leaving::backdrop { animation: fade-out .48s ease-in forwards; }
.loupe.is-leaving .loupe__inner { animation: fade-out .2s forwards; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .bar__tc { display: none; }
  .section-head { grid-template-columns: auto 1fr; }
  .section-head__note { grid-column: 1 / -1; margin-top: 8px; }
  .frame { height: 46vw; }
  .hero__credit { bottom: 30px; right: calc(var(--gutter) + 20px); }
  .loupe__frames figure { height: auto; width: 100%; }
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
  .pipeline { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .loupe__body { grid-template-columns: 1fr; }
  .print-wall { --row: 38vw; }
  .albums { grid-template-columns: 1fr; max-width: 290px; margin: 0 auto; gap: 40px; }
  .enlarger__foot { grid-template-columns: 1fr 1fr; }
  .enlarger__cap { grid-column: 1 / -1; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
