/* ── Tokens ─────────────────────────────────────────────────
   One warm-neutral grey family, one accent (tungsten), dark only. */
:root {
  --bg: #0d0c0b;
  --surface: #161412;
  --surface-2: #1f1c19;
  --line: #2e2a25;
  --ink: #ece7df;
  --muted: #9b958b;
  --accent: #e0a552;
  --accent-ink: #1a1307;
  --media: #0a0908;          /* letterbox behind photos */
  --shade: rgba(13, 12, 11, 0.92);
  --frame-a: #24201c;
  --frame-b: #12100e;

  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --radius: 6px;             /* images, cards, buttons; round icon controls are circles */
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
/* Film grain over everything (static, so it is fine with reduced motion) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 35; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mono { font-family: var(--mono); font-size: 0.8rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: var(--radius); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: 500 0.92rem var(--sans); text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: transparent; color: var(--accent); }

.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line); }

/* ── Image frame with a drawn fallback ─────────────────── */
.frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--empty { background: radial-gradient(ellipse at 30% 30%, var(--frame-a), var(--frame-b)); }
.frame__label { position: absolute; inset: auto 0 0 0; padding: 12px 14px; color: var(--muted); font-size: .85rem; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  background: linear-gradient(to bottom, var(--shade), transparent);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.nav--solid { background: var(--bg); border-bottom-color: var(--line); }
.nav__name { font: 600 1.05rem var(--sans); letter-spacing: -.01em; text-decoration: none; }
.nav__links { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.75rem); }
.nav__links a { position: relative; font-size: .88rem; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; min-height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 0 var(--gutter) clamp(56px, 11vh, 120px);
  overflow: hidden;
}
.hero__frame { position: absolute; inset: 0; will-change: transform; }
.hero__frame .frame img { filter: saturate(.85) contrast(1.05); transform: scale(1.04); }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, transparent 55%),
    linear-gradient(to right, var(--shade) 0%, transparent 65%);
}
.hero__content { position: relative; z-index: 2; max-width: 820px; }
.status { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; margin: 0 0 1.1rem; font-size: .92rem; color: var(--ink); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #6fcf8f; box-shadow: 0 0 0 4px rgba(111,207,143,.16); }
.hero__name { font: 600 clamp(3.2rem, 10vw, 7.5rem)/.95 var(--sans); letter-spacing: -.045em; margin: 0; }
.hero__name .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-right: .22em; }
.hero__name .word:last-child { margin-right: 0; }
.hero__name .word > span { display: inline-block; }
.hero__role { font: 400 clamp(1.2rem, 2.6vw, 1.6rem)/1.3 var(--sans); letter-spacing: -.01em; color: var(--accent); margin: .7rem 0 2.1rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ── Sections ───────────────────────────────────────────── */
.section { padding: clamp(72px, 13vh, 140px) var(--gutter) 0; max-width: 1400px; margin: 0 auto; }
.section__head { position: relative; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; margin-bottom: 2.75rem; }
.section__title { font: 600 clamp(2rem, 4.6vw, 3.25rem)/1.02 var(--sans); letter-spacing: -.035em; margin: 0; }
.section__title--big { font-size: clamp(2.6rem, 8vw, 5.5rem); letter-spacing: -.045em; }
.section__subtitle { font: 600 clamp(1.4rem, 2.6vw, 1.9rem)/1.1 var(--sans); letter-spacing: -.025em; margin: 0 0 1.25rem; }
.section__subtitle--gap { margin-top: clamp(3.5rem, 8vw, 5.5rem); }

/* ── Work: full / half / half rhythm ───────────────────── */
.films { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.films > li:nth-child(3n + 1) { grid-column: 1 / -1; }
.film { all: unset; display: block; width: 100%; cursor: pointer; }
.film:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }
.film__media { position: relative; aspect-ratio: 2.39 / 1; border-radius: var(--radius); overflow: hidden; }
.film__media .frame { background: var(--media); }
.film__media .frame img { filter: saturate(.85); transition: transform .8s var(--ease), filter .6s ease; }
.film:hover .film__media .frame img { transform: scale(1.03); filter: saturate(1); }
.film__cycle { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.film__cycle.is-on { opacity: 1; }
.film__play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; translate: -50% -50%;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.7); background: rgba(13,12,11,.4);
  opacity: 0; transition: opacity .3s, background .2s, border-color .2s;
}
.film__play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 16px solid #fff; border-block: 11px solid transparent; }
.film:hover .film__play, .film:focus-visible .film__play { opacity: 1; }
.film__info { padding-top: 1.1rem; }
.film__title { font: 600 clamp(1.3rem, 2.2vw, 1.65rem)/1.15 var(--sans); letter-spacing: -.02em; margin: 0; }
.film__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: .45rem 0 0; color: var(--muted); font-size: .9rem; }
.film__award { margin: .5rem 0 0; color: var(--accent); font-size: .9rem; font-weight: 500; }

/* ── Lightplot ──────────────────────────────────────────── */
.lp { max-width: 760px; }
.lp__lead { font: 500 clamp(1.4rem, 2.8vw, 2rem)/1.25 var(--sans); letter-spacing: -.02em; margin: 0 0 1.25rem; }
.lp p:not(.lp__lead) { max-width: 62ch; font-size: 1.05rem; color: #cdc7bd; }

.case { margin-top: clamp(3rem, 7vw, 4.5rem); }
.case__title { font: 600 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--sans); letter-spacing: -.015em; margin: 0 0 1.1rem; }
.case__row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: center; }
.case__step { all: unset; cursor: zoom-in; display: flex; flex-direction: column; gap: .6rem; }
.case__step:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.case__img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--media); }
.case__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.case__step:hover .case__img img { transform: scale(1.03); }
.case__label { font-size: .95rem; font-weight: 500; }
.case__arrow { color: var(--muted); font-size: 1.3rem; padding-bottom: 2rem; }

/* Features as a quiet spec list, not a card grid */
.lp__features { list-style: none; margin: clamp(3rem, 7vw, 4.5rem) 0 0; padding: 0; max-width: 980px; display: grid; gap: 1.6rem; }
.lp__feature { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: .4rem 2rem; align-items: baseline; }
.lp__feature h4 { font: 600 1.1rem/1.3 var(--sans); letter-spacing: -.01em; margin: 0; }
.lp__feature p { margin: 0; color: var(--muted); max-width: 60ch; }

/* Lighting plots: horizontal strip */
.diagrams {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 660px); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.diagram { all: unset; cursor: zoom-in; scroll-snap-align: start; }
.diagram .frame { aspect-ratio: 2 / 1; border-radius: var(--radius); background: #f3efe6; }
.diagram .frame img { object-fit: contain; transition: transform .7s var(--ease); }
.diagram:hover .frame img { transform: scale(1.03); }
.diagram:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.diagrams--empty { display: block; }
.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; }
.empty p { margin: .3rem 0; }

/* ── Film photography ───────────────────────────────────── */
.photo-intro { max-width: 760px; margin-bottom: 2.75rem; }
.photo-meta { margin: 0 0 1rem; color: var(--muted); font-size: .92rem; }
.photo-intro p:not(.photo-meta) { font-size: 1.05rem; max-width: 62ch; }
.photo-quote { margin: 1.5rem 0 0; padding-left: 1.1rem; border-left: 2px solid var(--accent); font: 500 1.25rem/1.4 var(--sans); letter-spacing: -.01em; }
/* One swipeable row; each photo keeps its own shape at a fixed height */
.photos {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.photo { all: unset; flex: none; display: block; height: clamp(220px, 40vh, 400px); scroll-snap-align: start; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.photo img { height: 100%; width: auto; max-width: none; transition: transform .7s var(--ease), opacity .3s; }
.photo:hover img { transform: scale(1.03); }
.photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Credits ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.credits { width: 100%; border-collapse: collapse; min-width: 620px; }
.credits th { text-align: left; font: 500 .85rem var(--sans); color: var(--muted); padding: 0 1rem .9rem 0; border-bottom: 1px solid var(--line); }
.credits td { padding: 1.05rem 1rem 1.05rem 0; vertical-align: top; }
.credits tbody tr { transition: background .2s; }
.credits tbody tr:hover { background: var(--surface); }
.credits td.mono { color: var(--muted); }
.credits__title { font-weight: 600; letter-spacing: -.01em; }

/* ── On set ─────────────────────────────────────────────── */
.skills { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.skill__group { font: 600 .95rem var(--sans); color: var(--accent); margin: 0 0 .8rem; }
.skill ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.skill li { font-size: .95rem; color: #cdc7bd; }

/* ── About ──────────────────────────────────────────────── */
.about { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.about__portrait .frame { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.about__photo { all: unset; display: block; cursor: zoom-in; width: 100%; }
.about__photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.about__photo .frame img { transition: transform .7s var(--ease); }
.about__photo:hover .frame img { transform: scale(1.03); }
.about__photo--extra { margin-top: 1.5rem; }
.about__photo--extra .frame { aspect-ratio: 4 / 3; }
.about__caption { display: block; margin-top: .6rem; font-size: .85rem; color: var(--muted); }
.about__text .section__title { margin-bottom: 1.5rem; }
.about__text p { max-width: 62ch; font-size: 1.05rem; }
.about__study { color: var(--muted); font-size: .95rem !important; }

/* ── Contact ────────────────────────────────────────────── */
.contact { padding-bottom: clamp(72px, 13vh, 140px); }
.contact__lede { max-width: 52ch; font-size: 1.1rem; margin: 1.25rem 0 0; color: var(--muted); }
.contact__email {
  display: inline-block; margin-top: 1.75rem;
  font: 500 clamp(1.4rem, 4.2vw, 2.5rem)/1.2 var(--sans); letter-spacing: -.025em;
  color: var(--accent); text-decoration: none; word-break: break-all;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .35s ease;
}
.contact__email:hover { background-size: 0 1px; }
.contact__links { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem; }
.contact__links a { text-decoration: none; color: var(--muted); transition: color .2s; }
.contact__links a:hover { color: var(--ink); }

.footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 24px var(--gutter) 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ── Modal ──────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 9, 8, .9); }
.modal__panel {
  position: relative; width: min(1100px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: var(--surface); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(5, 4, 3, .6);
}
.modal__close { position: absolute; right: 10px; top: 10px; z-index: 3; background: var(--shade); }
.modal__info { padding: clamp(1.25rem, 3vw, 2rem); }
.modal__meta { margin: 0 0 .5rem; color: var(--muted); font-size: .9rem; }
.modal__title { font: 600 clamp(1.7rem, 3.6vw, 2.4rem)/1.08 var(--sans); letter-spacing: -.03em; margin: 0 0 .9rem; }
.modal__award { display: inline-block; margin: 0 0 1rem; color: var(--accent); font-weight: 500; text-decoration: none; }
a.modal__award:hover { text-decoration: underline; }
.modal__logline { max-width: 65ch; margin: 0 0 1.25rem; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.modal__gallery .car__stage { aspect-ratio: auto; height: calc(100svh - 110px); max-height: none; }
.modal__panel:has(.modal__gallery) { width: min(1400px, 100%); background: var(--media); }

/* ── Carousel ───────────────────────────────────────────── */
.car { background: var(--media); }
.car__stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-height: calc(100svh - 190px); width: 100%; touch-action: pan-y; user-select: none; cursor: grab; }
.car--single .car__stage { cursor: default; }
.car__stage:active { cursor: grabbing; }
.car__track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.22, .8, .2, 1); will-change: transform; }
.car__slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.car__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.car__slide iframe { width: 100%; height: 100%; border: 0; display: block; }
.car__play { all: unset; position: relative; width: 100%; height: 100%; cursor: pointer; display: grid; place-items: center; background: var(--media); }
.car__play img, .car__play .frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.car__play:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.film__play--on { opacity: 1 !important; width: 74px; height: 74px; z-index: 1; }
.film__play--on::after { left: 29px; top: 23px; border-left-width: 20px; border-block-width: 14px; }
.car__play:hover .film__play--on { background: var(--accent); border-color: var(--accent); }
.car__nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(13,12,11,.5); color: #fff; font-size: 1.1rem; cursor: pointer;
  backdrop-filter: blur(6px); transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.car__nav:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.car__nav:active { transform: scale(.94); }
.car__nav--prev { left: 14px; }
.car__nav--next { right: 14px; }
.car__bar { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: var(--bg); }
.car__count { color: var(--muted); flex: none; min-width: 64px; font-variant-numeric: tabular-nums; }
.car__thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.car__thumbs::-webkit-scrollbar { display: none; }
.car__thumb { all: unset; position: relative; flex: none; width: 74px; height: 46px; border-radius: 4px; overflow: hidden; cursor: pointer; opacity: .45; outline: 2px solid transparent; outline-offset: 1px; transition: opacity .2s, outline-color .2s; background: var(--surface-2); display: grid; place-items: center; color: #fff; }
.car__thumb img { width: 100%; height: 100%; object-fit: cover; }
.car__thumb:hover { opacity: .8; }
.car__thumb.is-active { opacity: 1; outline-color: var(--accent); }
.car__thumb:focus-visible { outline-color: var(--accent); opacity: 1; }
.car__thumb-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .8rem; background: rgba(13,12,11,.35); }

/* Progress line */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 720px) {
  .nav__links a:not(:last-of-type) { display: none; }
  .films { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { max-width: 340px; }
  .case__row { grid-template-columns: 1fr; }
  .case__arrow { transform: rotate(90deg); justify-self: center; padding: 0; }
  .lp__feature { grid-template-columns: 1fr; }
  .car__nav { width: 38px; height: 38px; }
  .car__nav--prev { left: 8px; }
  .car__nav--next { right: 8px; }
  .car__thumb { width: 58px; height: 38px; }
}

/* ── Motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* Entrance: the hero image pushes in from dark, the name rises word by word */
  .hero__frame .frame img { transform: scale(1.14); filter: saturate(.85) contrast(1.05) brightness(.55); transition: transform 2.8s var(--ease), filter 2.2s ease; }
  .loaded .hero__frame .frame img { transform: scale(1.04); filter: saturate(.85) contrast(1.05) brightness(1); }
  .hero__name .word > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(.35s + var(--i) * .12s); }
  .loaded .hero__name .word > span { transform: none; }
  .hero .status, .hero__role, .hero__actions { opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s var(--ease); }
  .hero .status { transition-delay: .2s; }
  .hero__role { transition-delay: .75s; }
  .hero__actions { transition-delay: .95s; }
  .loaded .hero .status, .loaded .hero__role, .loaded .hero__actions { opacity: 1; transform: none; }
  .nav { opacity: 0; transition: opacity 1s ease .9s, background .3s, border-color .3s; }
  .loaded .nav { opacity: 1; }

  /* A soft beam of light sweeps across the hero now and then */
  .hero::after {
    content: ""; position: absolute; inset: -20% -60%; pointer-events: none; z-index: 1;
    background: linear-gradient(105deg, transparent 42%, rgba(224,165,82,.09) 49%, rgba(255,255,255,.05) 50%, transparent 57%);
    transform: translateX(-60%); animation: sweep 9s ease-in-out 1.6s infinite;
  }
  @keyframes sweep { 0% { transform: translateX(-60%); } 35%, 100% { transform: translateX(60%); } }

  /* Scroll reveals (only when JS has opted in) */
  .motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--ease); transition-delay: var(--d, 0ms); }
  .motion .reveal.in { opacity: 1; transform: none; }
  .motion .section__head.reveal::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease) .15s; }
  .motion .section__head.reveal.in::after { transform: scaleX(1); opacity: 0; transition: transform 1.2s var(--ease) .15s, opacity .8s ease 1.4s; }

  /* Film cards: the frame wipes open as it arrives */
  .motion #films > li.reveal .film__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--d, 0ms) + 120ms); }
  .motion #films > li.reveal.in .film__media { clip-path: inset(0 0 0 0); }

  /* Modal */
  .modal:not([hidden]) .modal__backdrop { animation: fade .35s ease; }
  .modal:not([hidden]) .modal__panel { animation: rise .45s var(--ease); }
  @keyframes fade { from { opacity: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: translateY(1px) scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Strip headers and arrow buttons */
.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.strip-head .section__subtitle { margin: 0; }
.strip-head--end { justify-content: flex-end; margin-bottom: 1rem; }
.strip-nav { display: flex; gap: .5rem; }
.strip-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: 1rem; cursor: pointer; transition: background .2s, border-color .2s, color .2s, opacity .2s, transform .2s;
}
.strip-btn:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.strip-btn:active:not(:disabled) { transform: scale(.94); }
.strip-btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 720px) { .photo { height: 240px; } }
