:root {
  --bg: #000; --ink: #fff; --mute: rgba(255,255,255,.68); --rule: rgba(255,255,255,.5);
  --red: #ff2a14;
  --f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --gut: clamp(16px, 3vw, 40px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--f-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.k { font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }

/* Header: name left, sections right. A soft top shade keeps it legible over bright frames. */
.top { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: 76px; padding: 0 var(--gut); background: linear-gradient(rgba(0,0,0,.62), rgba(0,0,0,0)); }
.name { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.mark { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1 var(--f-sans); letter-spacing: .42em; text-transform: uppercase; }
.mark::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.role { font: 400 13px/1 var(--f-sans); color: var(--mute); }
.nav { display: flex; gap: 28px; }
.nav a { font: 500 13px/1 var(--f-sans); padding: 15px 0; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat; transition: background-size 320ms var(--ease-out); }
.nav a:hover, .nav a[aria-current] { background-size: 100% 1px; }
.menu-btn { display: none; min-height: 44px; padding: 0; background: none; border: 0; color: var(--ink); font: 500 13px/1 var(--f-sans); cursor: pointer; }
.menu { position: fixed; inset: 0; z-index: 9; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 var(--gut); background: #000; }
.menu[hidden] { display: none; }
.menu a { font: 500 clamp(36px, 11vw, 56px)/1.15 var(--f-sans); letter-spacing: -.02em; }

/* Index: one full-screen frame per film. */
.frame { position: relative; display: grid; place-items: center; height: 100svh; min-height: 520px; overflow: clip; isolation: isolate; }
.frame .pic { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.frame img, .hero img, .poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame img { transition: transform 1200ms var(--ease-out), filter 600ms ease; filter: brightness(.86); }
.frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,0,0,.55), rgba(0,0,0,0) 80%); }
.frame .t { text-align: center; padding: 0 var(--gut); text-shadow: 0 0 48px rgba(0,0,0,.45); }
.title { margin: 0; font: 600 clamp(40px, 7vw, 104px)/.98 var(--f-sans); letter-spacing: -.028em; text-wrap: balance; }
.frame hr { width: 100%; height: 1px; margin: 22px 0 16px; border: 0; background: var(--rule); transform: scaleX(.55); transition: transform 700ms var(--ease-out); }
.frame .k { color: var(--ink); }
@media (hover: hover) {
  .frame:hover img { transform: scale(1.035); filter: brightness(1); }
  .frame:hover hr { transform: scaleX(1); }
}
.cue { position: absolute; bottom: 28px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border: solid var(--ink); border-width: 0 1px 1px 0; transform: rotate(45deg) scale(.7); opacity: .8; }

/* Arrival: the first title settles in once. */
.in .t { animation: rise 900ms var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Film page */
.hero { position: relative; height: 88svh; min-height: 480px; overflow: clip; isolation: isolate; display: flex; align-items: flex-end; padding: 0 var(--gut) clamp(32px, 7vh, 72px); }
.hero .pic { position: absolute; inset: 0; z-index: -2; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 55%); }
.hero .title { font-size: clamp(44px, 8vw, 128px); }
.hero .k { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.play { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border: 1px solid var(--ink); background: none; color: var(--ink); font: 500 13px/1 var(--f-sans); cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.play::before { content: ""; border: solid transparent; border-width: 5px 0 5px 8px; border-left-color: currentColor; }
.play:hover { background: var(--ink); color: #000; }
.play:active { transform: scale(.97); }

.watch { padding: clamp(40px, 8vh, 96px) var(--gut) 0; }
.poster { position: relative; width: 100%; max-width: 1400px; max-height: calc(100svh - 120px); margin: 0 auto; background: #0c0c0c; overflow: hidden; }
.poster button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.poster img { filter: brightness(.7); transition: filter 400ms ease; }
.poster button:hover img { filter: brightness(.85); }
.poster .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; }
/* color-scheme matches Vimeo's page so the browser doesn't paint a white backdrop behind letterboxing */
.poster iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; color-scheme: light; }

.credits { max-width: 1400px; margin: 0 auto; padding: clamp(48px, 9vh, 104px) var(--gut); display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 48px; }
.credits dl { margin: 0; display: grid; gap: 14px; align-content: start; }
.credits dt { color: var(--mute); }
.credits dd { margin: 3px 0 0; font-size: 15px; }

.next { height: 62svh; min-height: 420px; }
.next .k { display: block; margin-bottom: 18px; }

/* Info */
.info { min-height: 100svh; padding: 140px var(--gut) 80px; display: grid; gap: 56px; align-content: center; max-width: 1100px; }
.info p { margin: 0; font: 500 clamp(28px, 4vw, 52px)/1.08 var(--f-sans); letter-spacing: -.022em; text-wrap: balance; }
.info ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.info li a { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; border-bottom: 1px solid var(--rule); }
.info li a:hover { border-color: var(--ink); }
.info .bio { display: grid; gap: 22px; max-width: 34em; }
.info .bio p { font: 500 clamp(22px, 2.5vw, 34px)/1.22 var(--f-sans); letter-spacing: -.015em; text-wrap: pretty; }
.info .bio p + p { color: var(--mute); }
.reps .co { margin-top: 10px; }
.reps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 48px; }
.reps > div { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.reps .k { color: var(--mute); margin-bottom: 6px; }
.reps .sub { margin: 6px 0 0; }
.reps a { align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; border-bottom: 1px solid var(--rule); }
.reps a:hover { border-color: var(--ink); }

/* Laurels: under the caption on the index frames (up to three) and on the film page */
.laurels { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; }
.frame .laurels { justify-content: center; margin-top: 18px; }
.laurel { display: inline-flex; align-items: center; gap: 1px; color: var(--ink); }
.laurel svg { height: 46px; width: auto; flex: none; opacity: .92; }
.laurel svg.r { transform: scaleX(-1); }
.laurel .lt { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 132px; }
.laurel b { font: 600 11px/1.15 var(--f-sans); letter-spacing: .07em; text-transform: uppercase; text-wrap: balance; }
.laurel small { margin-top: 3px; font: 400 10px/1.25 var(--f-mono); letter-spacing: .03em; text-wrap: balance; opacity: .85; }
@media (max-width: 719px) { .frame .laurel:nth-child(n+3) { display: none; } }

/* Film page: festivals and awards, between the player and the credits */
.awards { max-width: 1400px; margin: 0 auto; padding: clamp(48px, 9vh, 104px) var(--gut) 0; }
.awards ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px 48px; }
.awards li { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.awards .k { color: var(--mute); }

.page-end { padding: 28px var(--gut) 36px; color: var(--mute); }

/* Stills: the site turns to paper and reads like a photobook, one spread per screen. */
.paper { --bg: #eeebe4; --ink: #141414; --mute: rgba(20,20,20,.7); color-scheme: light; }
.paper .top { background: none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
.top.tuck { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.paper .menu { background: var(--bg); }
.spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); height: 100svh; min-height: 560px;
  padding: max(92px, 11vh) 0 max(64px, 8vh);
  /* the gutter: a faint fold down the middle */
  background: linear-gradient(to right, transparent calc(50% - 22px), rgba(0,0,0,.028) 50%, transparent calc(50% + 22px)); }
.spread .pg { display: flex; align-items: center; justify-content: center; min-height: 0; height: 100%; padding: 0 clamp(24px, 6vw, 96px); }
.spread .pg img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.spread.C .whole { grid-column: 1 / -1; place-self: center; width: min(34vw, 560px); height: auto; max-height: 100%; object-fit: contain; }
.spread.B { padding: 0; }
.spread.B .whole { grid-column: 1 / -1; width: 100%; height: 100%; object-fit: cover; }
.spread.B::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, transparent calc(50% - 22px), rgba(0,0,0,.1) 50%, transparent calc(50% + 22px)); }
.spread.B .folio { display: none; }
.folio { position: absolute; bottom: 26px; color: var(--mute); }
.folio.l { left: var(--gut); }
.folio.r { right: var(--gut); }
.spread.title .pg:last-child, .spread.end .pg:last-child { flex-direction: column; align-items: flex-start; gap: 14px; }
.spread.title h1 { margin: 0; font: 500 clamp(36px, 4vw, 56px)/1 var(--f-sans); letter-spacing: -.02em; }
.spread.title p, .spread.end p { margin: 0; color: var(--mute); }
.spread.end a { border-bottom: 1px solid currentColor; padding: 12px 0 2px; }
/* Each plate develops in as its page arrives, the way a print comes up in the tray. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .spread img { animation: develop linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes develop { from { opacity: 0; } }
  }
}
@media (max-width: 899px) {
  /* Phone: the book becomes a run of single pages; blank pages drop out. */
  .spread { display: block; height: auto; min-height: 0; padding: 12vh 0 0; background: none; }
  .spread .pg { display: block; height: auto; padding: 0 var(--gut); }
  .spread.title .pg:last-child, .spread.end .pg:last-child { display: flex; }
  .spread .pg:empty, .folio { display: none; }
  .spread .pg + .pg:not(:empty) { margin-top: 12vh; }
  .spread.C .whole { width: 72%; margin: 0 auto; display: block; }
  .spread.B { padding-top: 12vh; }
  .spread.B .whole { height: auto; }
  .spread.B::after { display: none; }
  .spread.title { min-height: 70svh; display: grid; align-content: end; }
  .spread.end { padding-bottom: 18vh; }
}

@media (max-width: 719px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .role { display: none; }
  .mark { letter-spacing: .32em; }
}
/* Half-speed parallax (as on mikaaltskan.com): the frame moves with the page, the picture inside sits at
   half the frame's position, so the cut line sweeps over two slow pictures. Scroll-linked, so linear.
   Picture offset = -frameTop / 2: -50svh as the frame enters at the bottom, +50% of its height as it leaves the top. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .frame, .hero { view-timeline: --frame; }
    .frame .pic, .hero .pic { animation: drift linear both; animation-timeline: --frame; animation-range: cover; }
    @keyframes drift { from { transform: translateY(-50svh); } to { transform: translateY(50%); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .frame .pic, .hero .pic { transform: none !important; }
}
