/* Book of Images: the Squarespace site, rebuilt. White page, black type, wide-tracked lowercase.
 * The original set everything in Futura PT (Adobe); Jost is the free Futura-style face used here. */

@font-face {
  font-family: 'Jost';
  src: url('/assets/fonts/jost-latin.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #000000;
  --lead: #595959;
  --line: #e4e4e4;
  --gut: clamp(16px, 6.2vw, 90px);
  --max: 1440px;
  --frame: #f0f0f0;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif; font-weight: 400; font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { top: 8px; }
/* The original's thin grey frame around the window (Squarespace "site border"). */
body::after { content: ''; position: fixed; inset: 0; border: 8px solid var(--frame); pointer-events: none; z-index: 15; }
html.has-player body::after { display: none; }

/* ── Header: the wordmark, the tagline, the three links ─────────────────── */
.hd { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 4.4vw, 63px) var(--gut) clamp(22px, 2.1vw, 30px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.wm { display: block; text-decoration: none; text-transform: lowercase; font-weight: 400; font-size: clamp(28px, 3.55vw, 51px); letter-spacing: .33em; line-height: 1.2; margin-right: -.33em; color: #131516; }
.wm span { display: inline-block; }
.tag { margin: 4px 0 0; text-transform: uppercase; font-size: clamp(13px, 1.25vw, 18px); letter-spacing: .04em; line-height: 1.4; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px clamp(22px, 3.4vw, 50px); }
.nav a { text-decoration: none; text-transform: lowercase; font-size: clamp(17px, 1.75vw, 25px); letter-spacing: .25em; margin-right: -.25em; padding: 4px 0; white-space: nowrap; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.page-h { font-weight: 400; text-transform: lowercase; font-size: clamp(20px, 2vw, 26px); letter-spacing: .25em; margin: 0 0 clamp(24px, 3vw, 40px); }

/* ── The films: three across, a play mark, the title below ──────────────── */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 2vw, 30px) 20px; }
@media (max-width: 999px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid { grid-template-columns: 1fr; } }
.tile__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: center; }
.tile__img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #111; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2, .7, .2, 1), filter 300ms; }
.tile__play { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: -22px 0 0 -14px; border-style: solid; border-width: 22px 0 22px 36px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); transition: transform 200ms; }
.tile__t { display: block; margin-top: 10px; font-size: 14px; letter-spacing: .32em; margin-right: -.32em; line-height: 1.4; }
.tile__btn:hover .tile__img img, .tile__btn:focus-visible .tile__img img { transform: scale(1.04); filter: brightness(.92); }
.tile__btn:hover .tile__play { transform: scale(1.12); }

/* ── Bio ───────────────────────────────────────────────────────────────── */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px clamp(16px, 2vw, 26px); }
@media (max-width: 899px) { .team { grid-template-columns: 1fr; max-width: 560px; } }
.person img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.person__n { font-weight: 400; text-transform: lowercase; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: .3em; margin: 18px 0 4px; line-height: 1.3; }
.person__r { margin: 0; text-transform: lowercase; letter-spacing: .25em; color: var(--lead); font-size: 15px; }

/* ── Contact ───────────────────────────────────────────────────────────── */
.contact { max-width: 40ch; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.6; margin: 0; }
.contact a { text-underline-offset: 4px; }

/* ── Next projects: the deck, the treatment ───────────────────────────── */
.deck__stage { position: relative; background: #000; aspect-ratio: 16 / 9; }
.deck__slide { margin: 0; position: absolute; inset: 0; }
.deck__slide img { width: 100%; height: 100%; object-fit: contain; }
.deck__slide[hidden] { display: none; }
.deck__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; border: 0; background: rgba(0, 0, 0, .25); color: #fff; font-size: 44px; line-height: 1; cursor: pointer; }
.deck__arrow:hover { background: rgba(0, 0, 0, .5); }
.deck__arrow--prev { left: 0; }
.deck__arrow--next { right: 0; }
.deck__thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
.deck__thumbs button { display: block; width: 120px; padding: 0; border: 0; background: #000; cursor: pointer; opacity: .55; transition: opacity 200ms; }
.deck__thumbs button[aria-current="true"], .deck__thumbs button:hover { opacity: 1; }
.deck__thumbs img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; }
.cta { text-align: center; margin: 36px 0; }
.btn { display: inline-block; padding: 16px 28px; border: 1px solid var(--ink); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-size: 15px; }
.btn:hover { background: var(--ink); color: var(--paper); }
.treatment { margin: clamp(40px, 5vw, 72px) auto 0; max-width: 760px; }
.np-video { margin: clamp(40px, 5vw, 72px) 0 0; }
.np-video video { width: 100%; background: #000; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.ft { max-width: var(--max); margin: clamp(64px, 8vw, 120px) auto 0; padding: 28px var(--gut) 48px; text-align: center; font-size: 13px; letter-spacing: .12em; color: var(--lead); }
.ft p { margin: 4px 0; }
.ft a { text-decoration: none; }
.ft a:hover { text-decoration: underline; }

/* ── Player (lightbox) ─────────────────────────────────────────────────── */
.player { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: #fff; }
.player::backdrop { background: rgba(0, 0, 0, .94); }
.player[open] { display: grid; grid-template-rows: auto 1fr; }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gut); }
.player__title { margin: 0; font-weight: 400; font-size: 15px; letter-spacing: .32em; text-transform: none; }
.player__controls { display: flex; gap: 6px; }
.player__btn { width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, .35); background: none; color: #fff; font-size: 20px; cursor: pointer; }
.player__btn:hover { border-color: #fff; }
.player__btn[hidden] { display: none; }
.player__stage { display: grid; place-items: center; padding: 0 var(--gut) var(--gut); min-height: 0; }
.player__frame { position: relative; aspect-ratio: var(--ar, 16 / 9); width: min(100%, calc((100dvh - 110px) * (var(--ar, 16 / 9)))); background: #000; }
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
html.has-player { overflow: hidden; }

@media (max-width: 859px) {
  .hd { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 1ms !important; } .tile__btn:hover .tile__img img { transform: none; } }
