/* unwd.net — /film and /film/<slug>
   Ink #0D0D0D · panel #131311 · paper #EBE6DC · signal #E6431D.
   One ground, the footer's, from the top of the wall to the bottom of the page.
   Same custom-property hooks as discipline.css and video-gallery.css. */

:root{
  --unwd-ink:    #0D0D0D;
  --unwd-panel:  #131311;
  --unwd-paper:  #EBE6DC;
  --unwd-signal: #E6431D;
  --unwd-rule:   rgba(235, 230, 220, .2);
  --unwd-quiet:  rgba(235, 230, 220, .55);
  --unwd-pad:    clamp(20px, 4vw, 64px);
  --unwd-font:   var(--font-sans, "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--unwd-panel);
  color: var(--unwd-paper);
  font-family: var(--unwd-font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.f img, .f video { display: block; max-width: 100%; }
.f a { color: inherit; text-decoration: none; }
.f button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------- type roles */
.f-ui{
  font-size: .75rem; font-weight: 580; font-stretch: 94%;
  line-height: 1.1; letter-spacing: .06em; text-transform: uppercase;
}
.f-micro{
  font-size: .6875rem; font-weight: 520; font-stretch: 96%;
  line-height: 1.25; letter-spacing: .07em; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.f-expanded{
  font-size: .75rem; font-weight: 560; font-stretch: 118%;
  line-height: 1.1; letter-spacing: .12em; text-transform: uppercase;
}

/* the mark, set as it is on every other page */
.f-mark{
  display: inline-flex; align-items: baseline; gap: 3px;
  font-stretch: 78%; font-weight: 800; font-size: 26px; letter-spacing: -.02em;
}
.f-mark__sq { width: 7px; height: 7px; background: var(--unwd-signal); display: inline-block; }

/* ----------------------------------------------------------------- header */
/* Inverted, over the opening film. It belongs to the hero, so the wall covers
   it on the way up and the sticky bar below takes over. */
.f-head{
  position: absolute; top: 0; left: 0; right: 0; z-index: 4;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 30px var(--unwd-pad);
  color: var(--unwd-paper);
}
.f-head .f-mark { color: var(--unwd-paper); }
.f-head nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.f-head nav a { color: rgba(235, 230, 220, .74); }
.f-head nav a:hover { color: var(--unwd-paper); }

/* back on any upward scroll, gone on the next downward one */
.f-nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 22px var(--unwd-pad) 30px;
  color: var(--unwd-paper); pointer-events: none;
  background: linear-gradient(to bottom,
              rgba(8, 8, 8, .88) 0, rgba(8, 8, 8, .6) 58%, rgba(8, 8, 8, 0) 100%);
  transform: translateY(-105%);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.f-nav.is-on { transform: none; pointer-events: auto; }
.f-nav .f-mark { color: var(--unwd-paper); }
.f-nav nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.f-nav nav a { color: rgba(235, 230, 220, .76); }
.f-nav nav a:hover { color: var(--unwd-paper); }

/* ------------------------------------------------------------------- hero */
/* /film pins it and lets the wall ride up over it. */
.f-hero{
  position: fixed; top: 0; left: 0; right: 0;
  height: 100svh; z-index: 0; overflow: hidden; background: #000;
}
.f-hero__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-hero__scrim{
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6, 6, 6, .5) 0, rgba(6, 6, 6, 0) 26%),
              linear-gradient(to top,    rgba(6, 6, 6, .62) 0, rgba(6, 6, 6, 0) 34%);
}
.f-hero__foot{
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0 var(--unwd-pad) clamp(30px, 6vh, 64px);
}
.f-hero__title{
  margin: 0;
  font-weight: 700; font-stretch: 104%;
  font-size: clamp(2.6rem, 11vw, 10rem); line-height: .95;
  letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
/* the sheet that rides up over the pinned hero */
.f-below { position: relative; z-index: 1; margin-top: 100svh; background: var(--unwd-panel); }

/* ------------------------------------------------------------------- wall */
/* The parchment is the ground and the tiles sit on it with a 1px gap, so a
   shared edge stays exactly 1px instead of doubling where two films meet. */
.f-wall { background: var(--unwd-paper); padding: 1px; }
.f-row { display: grid; gap: 1px; }
.f-row + .f-row { margin-top: 1px; }
.f-row--1 { grid-template-columns: 1fr; }
.f-row--2 { grid-template-columns: 1fr 1fr; }

.f-tile{
  position: relative; display: block; overflow: hidden;
  background: #000; aspect-ratio: var(--ar, 16 / 9);
}
.f-tile__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-tile__scrim{
  position: absolute; inset: 0; opacity: 0; transition: opacity .38s ease;
  background: linear-gradient(to top,
              rgba(5, 5, 5, .72) 0, rgba(5, 5, 5, .06) 34%, rgba(5, 5, 5, 0) 56%);
}
.f-tile__t{
  position: absolute;
  left: clamp(18px, 2.6vw, 38px); right: clamp(18px, 2.6vw, 38px);
  bottom: clamp(16px, 2.4vw, 34px);
  font-weight: 700; font-stretch: 88%;
  font-size: clamp(1.15rem, 2.2vw, 2.2rem);
  line-height: 1.02; letter-spacing: .01em; text-transform: uppercase;
  opacity: 0; transform: translateY(9px);
  transition: opacity .38s ease, transform .38s cubic-bezier(.22, 1, .36, 1);
}
.f-tile:hover .f-tile__scrim, .f-tile:focus-visible .f-tile__scrim { opacity: 1; }
.f-tile:hover .f-tile__t,     .f-tile:focus-visible .f-tile__t { opacity: 1; transform: none; }
.f-tile:focus-visible { outline: 2px solid var(--unwd-signal); outline-offset: -2px; }
@media (hover: none){
  .f-tile__scrim { opacity: 1; }
  .f-tile__t { opacity: 1; transform: none; }
}

/* the mark that fills in while the nav bar is away */
.f-badge{
  position: fixed; left: var(--unwd-pad); bottom: 22px; z-index: 20;
  display: inline-flex; align-items: baseline; gap: 3px;
  font-stretch: 78%; font-weight: 800; font-size: 17px; letter-spacing: -.02em;
  color: var(--unwd-paper); mix-blend-mode: difference;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.f-badge.is-on { opacity: .92; pointer-events: auto; }
.f-badge span { width: 5px; height: 5px; background: var(--unwd-signal); display: inline-block; }

/* ------------------------------------------------------------------ stage */
/* A film page is not pinned: you cannot scroll away a film someone is watching. */
.f-stage { position: relative; height: 100svh; min-height: 480px; overflow: hidden; background: #000; }
/* The delivery file carries its letterbox burnt into the frame, so object-fit
   alone still shows the bars. --debar is the film's own shape divided by its
   file's, set per film in film.js; scaling by it pushes the bars outside the
   stage. It is 1 for anything shot full-frame, so this costs nothing there. */
.f-stage__v{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: transparent;
  transform: scale(var(--debar, 1)); transform-origin: center;
}
/* The poster sits under the video rather than on it: it is already cropped, so
   it must not be scaled a second time. */
.f-stage__poster{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.f-stage__v { z-index: 1; }
.f-stage__scrim{
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(6, 6, 6, .46) 0, rgba(6, 6, 6, 0) 24%),
              linear-gradient(to top,    rgba(6, 6, 6, .6) 0, rgba(6, 6, 6, 0) 38%);
}
.f-stage__foot{
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  padding: 0 var(--unwd-pad) clamp(30px, 6vh, 64px);
}
.f-stage__back{
  display: inline-flex; align-items: center; gap: .7em;
  margin: 0 0 clamp(14px, 2vh, 22px); color: rgba(235, 230, 220, .8);
}
.f-stage__back:hover { color: var(--unwd-signal); }
.f-stage__title{
  margin: 0; font-weight: 760; font-stretch: 92%; letter-spacing: .05em;
  font-size: clamp(2rem, 6.6vw, 6rem); line-height: .96; text-transform: uppercase;
}
/* The word, with a speaker beside it. Pinned bottom right for the whole page,
   mirroring the badge on the left, so it never scrolls away. */
.f-stage__sound{
  position: fixed; right: var(--unwd-pad); bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: .5em;
  padding: 0; cursor: pointer; white-space: nowrap;
  color: var(--unwd-paper);
  background: none; border: 0;
  transition: color .25s;
  /* the site's title weight, set lowercase */
  font-family: var(--unwd-font);
  font-size: clamp(1.15rem, 1.5vw, 1.5rem);
  font-weight: 760; font-stretch: 92%; letter-spacing: .01em;
  line-height: 1; text-transform: lowercase;
}
.f-stage__sound svg{
  width: 1.15em; height: 1.15em; display: block; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.f-stage__sound:hover { color: var(--unwd-signal); }
.f-stage__sound:focus-visible { outline: 2px solid var(--unwd-signal); outline-offset: 6px; }
.f-stage__sound .f-sound__off { display: none; }
.f-stage__sound.is-muted .f-sound__on { display: none; }
.f-stage__sound.is-muted .f-sound__off { display: block; }

/* ------------------------------------------------------------------ brief */
/* Everything the page says, in one narrow column. */
.f-brief { padding: clamp(56px, 10vh, 130px) var(--unwd-pad) 0; max-width: 1600px; margin: 0 auto; }
/* The sentence on the left, the credits on the right, tops level. The meta
   line sits above both. Under 960px they stack, sentence first. */
/* The two columns hold the outer edges: the sentence starts where the page
   padding starts, the credits end where it ends. */
.f-brief__inner{
  display: grid; align-items: start; justify-content: space-between;
  grid-template-columns: minmax(0, 54ch) auto;
  column-gap: clamp(32px, 6vw, 104px); row-gap: clamp(20px, 3vh, 32px);
}
.f-brief__meta{
  grid-column: 1 / -1; margin: 0;
  color: var(--unwd-quiet);
  display: flex; flex-wrap: wrap; gap: .5em 1.4em;
}
.f-brief__year { color: var(--unwd-signal); }
.f-brief__text{
  margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.56;
  font-weight: 430; color: rgba(235, 230, 220, .88); white-space: pre-line;
}
/* No explicit column: a page with no sentence puts its credits on the left
   rather than leaving a hole. */
.f-credits { margin: 0; justify-self: end; }
/* No dividers. The space between rows does the separating. */
/* baseline, not center: the role sits on the same line as the first name,
   and a stack of names grows downward from it. */
.f-credits__row{
  display: flex; align-items: baseline; gap: clamp(1.4em, 4vw, 3.2em);
  padding: 7px 0;
}
.f-credits__row dt{
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-wrap: wrap; gap: .4em; align-items: baseline;
}
/* Each role is its own box, in signal. Boxes sit side by side with no
   punctuation between them. */
.f-credits__r{
  border: 2px solid var(--unwd-signal); color: var(--unwd-signal);
  padding: .36em .62em .32em; line-height: 1;
}
/* One name per line. Two people in a role stack; they do not run together. */
.f-credits__row dd{
  margin: 0 0 0 auto; text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: .35em;
  font-weight: 560; font-stretch: 96%; font-size: .8rem;
  letter-spacing: .05em; text-transform: uppercase;
}
/* Featuring closes the list, so it stands off what it follows. */
.f-credits__row--feature { margin-top: clamp(18px, 2.6vh, 30px); }
/* A name is one word as far as wrapping goes. The line breaks between names,
   or between roles, and never through either. */
.f-credits__n, .f-credits__r { white-space: nowrap; }
.f-credits__row dd a{
  color: var(--unwd-signal); border-bottom: 1px solid currentColor; padding-bottom: .15em;
}

/* ----------------------------------------------------------------- stills */
/* One row, scrolled. No frame. Colour arrives on hover. */
.f-stills { position: relative; margin-top: clamp(56px, 9vh, 120px); }
.f-strip{
  display: flex; gap: 0; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.f-strip::-webkit-scrollbar { display: none; }
.f-strip figure { margin: 0; flex: none; overflow: hidden; background: #000; scroll-snap-align: center; }
.f-strip img{
  height: clamp(150px, 26vh, 320px); width: auto;
  filter: grayscale(1); transform: scale(1.001);
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}
.f-strip figure:hover img { transform: scale(1.045); filter: grayscale(0); }
.f-strip__nav{
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: clamp(38px, 3.4vw, 52px); height: clamp(38px, 3.4vw, 52px);
  display: flex; align-items: center; justify-content: center;
  background: var(--unwd-paper); color: var(--unwd-ink);
  transition: background .2s, color .2s, opacity .25s;
}
.f-strip__nav:hover { background: var(--unwd-signal); color: var(--unwd-paper); }
.f-strip__nav[disabled] { opacity: 0; pointer-events: none; }
.f-strip__nav--prev { left: clamp(8px, 1.4vw, 20px); }
.f-strip__nav--next { right: clamp(8px, 1.4vw, 20px); }
.f-chev{
  width: 42%; height: 42%; fill: none; stroke: currentColor;
  stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter;
}

/* ------------------------------------------------------------------ logos */
/* One centred row, every mark at the same height, seven at most. */
.f-logos{
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: clamp(22px, 3.4vw, 58px);
  padding: clamp(64px, 11vh, 150px) var(--unwd-pad) 0;
}
.f-logos img{
  height: clamp(28px, 4vw, 62px); width: auto;
  opacity: .92; filter: grayscale(1); transition: opacity .3s ease, filter .3s ease;
}
.f-logos img:hover { opacity: 1; filter: grayscale(0); }

/* -------------------------------------------------------------- prev/next */
.f-updown{
  margin-top: clamp(64px, 11vh, 150px); background: var(--unwd-panel);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(6px, .7vw, 12px);
}
.f-ud { position: relative; display: block; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.f-ud__m{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.f-ud:hover .f-ud__m { transform: scale(1.045); }
.f-ud__scrim{
  position: absolute; inset: 0; opacity: 0; transition: opacity .38s ease;
  background: linear-gradient(to top,
              rgba(5, 5, 5, .72) 0, rgba(5, 5, 5, .06) 34%, rgba(5, 5, 5, 0) 56%);
}
.f-ud:hover .f-ud__scrim, .f-ud:focus-visible .f-ud__scrim { opacity: 1; }
.f-ud__arrow{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: clamp(52px, 6.6vw, 116px); height: clamp(52px, 6.6vw, 116px);
  color: var(--unwd-paper); opacity: .94;
  transition: color .3s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
}
.f-ud--prev .f-ud__arrow { left: clamp(20px, 4vw, 72px); }
.f-ud--next .f-ud__arrow { right: clamp(20px, 4vw, 72px); }
.f-ud:hover .f-ud__arrow { color: var(--unwd-signal); }
.f-ud--prev:hover .f-ud__arrow { transform: translateY(-50%) translateX(-10px); }
.f-ud--next:hover .f-ud__arrow { transform: translateY(-50%) translateX(10px); }
.f-ud__arrow svg{
  width: 100%; height: 100%; fill: none; stroke: currentColor;
  stroke-width: 2.9; stroke-linecap: square; stroke-linejoin: miter;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .55));
}
.f-ud__t{
  position: absolute;
  left: clamp(18px, 2.6vw, 38px); right: clamp(18px, 2.6vw, 38px);
  bottom: clamp(16px, 2.4vw, 34px);
  font-weight: 700; font-stretch: 88%;
  font-size: clamp(1.15rem, 2.2vw, 2.2rem);
  line-height: 1.02; letter-spacing: .01em; text-transform: uppercase;
  opacity: 0; transform: translateY(9px);
  transition: opacity .38s ease, transform .38s cubic-bezier(.22, 1, .36, 1);
}
.f-ud:hover .f-ud__t, .f-ud:focus-visible .f-ud__t { opacity: 1; transform: none; }
.f-ud:focus-visible { outline: 2px solid var(--unwd-signal); outline-offset: -2px; }
@media (hover: none){
  .f-ud__t { opacity: 1; transform: none; }
  .f-ud__scrim { opacity: 1; }
}

/* ------------------------------------------------------------ rail + foot */
.f-tail { background: var(--unwd-panel); margin-top: clamp(64px, 10vh, 130px); }
.f-below .f-tail { margin-top: 0; }
.f-rail { padding: clamp(56px, 9vh, 110px) var(--unwd-pad) clamp(30px, 4vh, 48px); }
.f-rail__eyebrow { margin: 0 0 clamp(18px, 3vh, 34px); color: var(--unwd-quiet); }
.f-rail__cols{
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0 clamp(24px, 5vw, 80px);
}
.f-rail__row{
  display: flex; align-items: baseline; gap: 14px; padding: 9px 0;
  border-bottom: 1px solid var(--unwd-rule);
}
.f-rail__num { flex: 0 0 2em; color: var(--unwd-quiet); }
.f-rail__name{
  font-size: clamp(1.05rem, 1.6vw, 1.5rem); font-weight: 700; font-stretch: 82%;
  letter-spacing: -.01em; opacity: .4;
  transition: opacity .3s ease, color .3s ease;
}
.f-rail__row:hover .f-rail__name { opacity: 1; }
.f-rail__row--cur .f-rail__name { opacity: 1; color: var(--unwd-signal); }

.f-foot { padding: clamp(24px, 4vh, 44px) var(--unwd-pad) clamp(36px, 6vh, 64px); }
.f-foot__top{
  border-top: 1px solid var(--unwd-rule); padding-top: 24px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 18px;
}
.f-foot__top .f-mark { font-size: 30px; }
.f-foot__top .f-mark__sq { width: 8px; height: 8px; }
.f-foot__note { color: var(--unwd-quiet); }
.f-foot__bio{
  margin: 24px 0 0; max-width: 52ch;
  font-stretch: 98%; font-weight: 450; font-size: 1.1rem; line-height: 1.44;
}
.f-foot__links{
  display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 36px);
  margin-top: 26px; border-top: 1px solid var(--unwd-rule); padding-top: 18px;
}
.f-foot__links a:hover { color: var(--unwd-signal); }
.f-foot__where { margin-left: auto; color: rgba(235, 230, 220, .55); }

/* ------------------------------------------------------------------ empty */
.f-empty{
  padding: clamp(56px, 10vh, 130px) var(--unwd-pad);
  color: var(--unwd-quiet);
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 960px){
  .f-brief__inner { grid-template-columns: minmax(0, 1fr); }
  .f-credits { justify-self: stretch; margin-top: clamp(12px, 2vh, 24px); }
  .f-credits__row dt { flex: 0 0 auto; }
  .f-credits__row dd { margin-left: 0; text-align: left; align-items: flex-start; }
}
@media (max-width: 760px){
  .f-row--2 { grid-template-columns: 1fr; }
  .f-hero__title { letter-spacing: .14em; }
}
@media (max-width: 640px){
  .f-updown { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce){
  .f-nav, .f-strip, .f-stage__sound { transition: none; scroll-behavior: auto; }
  .f-strip img, .f-ud__m, .f-ud__arrow, .f-tile__t, .f-tile__scrim { transition: none; }
  .f-strip figure:hover img, .f-ud:hover .f-ud__m { transform: none; }
  .f-strip figure:hover img { filter: grayscale(0); }
}
