/* ==========================================================================
   NANA NABI — filmmaker portfolio. Dark only.
   Palette : ink (60) · bone (30) · copper (10)
   Type    : Instrument Serif (display) + Inter (UI)
   Spacing : 8px grid
   ========================================================================== */

:root {
  color-scheme: dark;

  /* ---- Ramps ---- */
  --ink-980: #050609;
  --ink-950: #07080b;
  --ink-900: #0a0b0f;
  --ink-850: #0e1015;
  --ink-800: #12141b;
  --ink-700: #191c24;
  --ink-600: #22262f;
  --ink-500: #2d323d;

  --bone-100: #f4f1ea;
  --bone-200: #e3dfd5;
  --bone-300: #c4c0b6;

  --copper-600: #9a4b24;
  --copper-500: #c0632b;
  --copper-400: #d9783a;
  --copper-300: #e8955a;

  /* ---- Semantic ---- */
  --bg: var(--ink-900);
  --bg-alt: var(--ink-850);
  --bg-deep: var(--ink-980);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(244, 241, 234, 0.11);
  --border-strong: rgba(192, 99, 43, 0.42);

  --text: var(--bone-100);          /* 16.4:1 on --bg */
  --text-muted: #9aa0ab;           /*  7.3:1 */
  --text-dim: #6e747f;             /*  4.6:1 — large / decorative only */
  --accent: var(--copper-500);

  /* ---- Type ---- */
  --font-display: "Playfair Display", "Didot", Georgia, serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* ---- Rhythm ---- */
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  /* 11rem top and bottom put 316px of nothing between one block and the
     next heading. Capped at 1.5cm (3.5rem ≈ 56px), which is the gap asked
     for and still reads as a break. */
  --section-y: clamp(2.25rem, 4vw, 3.5rem);
  --maxw: 1480px;
  /* The marquee's exact height. The hero subtracts it from 100svh. */
  --marquee-h: 58px;

  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.65;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* An explicit `display` beats the UA stylesheet's [hidden] rule, so anything
   given display:grid/flex stays visible when hidden. Settle it once here. */
[hidden] { display: none !important; }

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--copper-400);
  outline-offset: 3px;
}

::selection { background: var(--copper-500); color: var(--ink-950); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 50%;
  transform: translate(-50%, -150%);
  z-index: 200;
  padding: 0.65rem 1.25rem;
  background: var(--copper-500);
  color: var(--ink-950);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ==========================================================================
   FILM GRAIN
   ========================================================================== */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 150;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(5) infinite;
  will-change: transform;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 4%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-4%, -2%); }
  80%  { transform: translate(3%, 3%); }
}

/* ==========================================================================
   SHARED TYPE
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow > span:first-child:not(:only-child) { color: var(--accent); }

.eyebrow i {
  display: block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--copper-600);
}

.italic {
  font-style: italic;
  color: var(--copper-300);
}

.section {
  padding: var(--section-y) var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}

.section__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.section__title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.section__lede {
  margin-top: 1.75rem;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.prose p + p { margin-top: 1.25rem; }
.prose { color: var(--text-muted); font-size: 1.025rem; }
.prose strong { color: var(--bone-200); font-weight: 500; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn svg {
  width: 1.05rem; height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.btn--primary { background: var(--copper-500); color: var(--ink-950); font-weight: 600; }
.btn--primary:hover { background: var(--copper-400); }
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface); }

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 11, 15, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.35rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__mark { display: flex; flex-direction: column; line-height: 1.1; }

.nav__mark-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.nav__mark-role {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav__links { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); }

.nav__links a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle { display: none; padding: 0.5rem; }

.nav__toggle-bars {
  position: relative;
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
  transition: background-color 0.2s var(--ease);
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px; height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after  { top: 7px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after  { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 6rem var(--gutter) 3rem;
  background: var(--ink-950);
}

.mobile-menu[hidden] { display: none; }

.mobile-menu nav { display: flex; flex-direction: column; gap: 0.35rem; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 11vw, 3.5rem);
  line-height: 1.25;
  color: var(--text);
}
.mobile-menu a:hover { color: var(--copper-300); font-style: italic; }

.mobile-menu__foot {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ==========================================================================
   HERO
   ========================================================================== */

/* The hero is the screen minus the marquee, so the ring of cities sits on the
   fold at every size rather than one pixel under it. Centred, not bottom-
   aligned: bottom-alignment piled all the leftover height into one empty band
   under the nav. */
.hero {
  position: relative;
  min-height: calc(100svh - var(--marquee-h));
  display: flex;
  align-items: center;
  padding: clamp(6rem, 10vh, 8rem) var(--gutter) clamp(2rem, 5vh, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(110% 80% at 15% 110%, rgba(192, 99, 43, 0.13), transparent 60%),
    radial-gradient(80% 60% at 85% 0%, rgba(96, 112, 150, 0.12), transparent 65%),
    linear-gradient(175deg, var(--ink-950), var(--ink-900) 55%, var(--ink-850));
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(0.7) contrast(1.05);
}

/* Vignette + scanline wash over whatever is behind. */
.hero__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--ink-900) 2%, rgba(10, 11, 15, 0.35) 45%, rgba(10, 11, 15, 0.6)),
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin-inline: auto;
  width: 100%;
}

.hero__eyebrow { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }

/* ---- Private work ----
   Corporate and political work is not online. The two tags read as part of
   the list but carry a lock and a dotted rule, and open a note that asks for
   the portfolio by email. The note floats over the hero rather than pushing
   it down, so the hero still fits the screen. */
.hero__tags { position: relative; }

.hero__private {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-decoration: underline dotted var(--copper-600);
  text-underline-offset: 0.35em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.hero__private svg {
  width: 0.8rem; height: 0.8rem;
  fill: none; stroke: var(--copper-500);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.hero__private:hover,
.hero__private[aria-expanded="true"] { color: var(--copper-300); }

.private-note {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  z-index: 5;
  width: min(27rem, 100%);
  padding: 1.25rem 3rem 1.35rem 1.35rem;
  background: var(--ink-900);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  animation: private-note-in 0.35s var(--ease-out);
}

.private-note[hidden] { display: none; }

@keyframes private-note-in {
  from { opacity: 0; transform: translateY(-6px); }
}

.private-note__text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.private-note__text span { color: var(--text); }

.private-note__cta { margin-top: 1rem; }

/* Address, Copy and Email app on one line. The note's 3rem right padding
   only has to clear the close button at the top, so this row runs into it.
   It still wraps rather than overflow on the narrowest phones. */
.private-note__alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.9rem;
  margin-right: -1.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

.private-note__address {
  color: var(--text);
  user-select: all;
  overflow-wrap: anywhere;
}

/* A 360px Android phone is a few pixels short of one line; tighten it. */
@media (max-width: 374px) {
  .private-note__alt { column-gap: 0.5rem; font-size: 0.74rem; }
}

.private-note__copy,
.private-note__mailapp {
  font: inherit;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-400);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--copper-600);
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.private-note__copy:hover,
.private-note__mailapp:hover { color: var(--copper-300); }

.private-note__close {
  position: absolute;
  top: 0.6rem; right: 0.6rem;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.private-note__close svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round;
}

.private-note__close:hover { color: var(--text); background: var(--surface-strong); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  /* 15rem filled a desktop screen on its own and pushed the marquee off it.
     The cap governs the desktop; the 3.4rem floor is what a phone gets, so
     changing the cap leaves the phone alone. */
  font-size: clamp(3.4rem, 7.5vw, 6.5rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
}

.hero__line { display: block; }
.hero__line--italic { font-style: italic; margin-left: 0.09em; color: var(--copper-300); }

.hero__lede {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  max-width: 46ch;
  color: var(--bone-300);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.6;
}

.hero__actions {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 7vw, 5.5rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll i {
  display: block;
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, var(--copper-500), transparent);
  animation: drip 2.6s var(--ease) infinite;
  transform-origin: top;
}

@keyframes drip {
  0%        { transform: scaleY(0); opacity: 0; }
  35%, 65%  { transform: scaleY(1); opacity: 1; }
  100%      { transform: scaleY(1); opacity: 0; }
}

@media (max-width: 760px) { .hero__scroll { display: none; } }

/* A short phone (an SE at 667px) has 145px less to give than a modern one.
   Below about 480px of usable height the stack no longer fits inside the
   screen-minus-marquee, and the hero would grow and push the marquee back
   under the fold. Trim the gaps rather than let that happen. */
@media (max-width: 760px) and (max-height: 700px) {
  .hero { padding-top: 5rem; }
  .hero__eyebrow { margin-bottom: 1.25rem; }
  .hero__lede { margin-top: 1.25rem; }
  .hero__actions { margin-top: 1.5rem; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */

/* A fixed height, not padding, because the hero subtracts it from the
   viewport to land the ring of cities exactly at the bottom of the first
   screen. Padding would let the figure drift with the font and the hero would
   be subtracting a number that is no longer true. */
.marquee {
  height: var(--marquee-h);
  display: flex;
  align-items: center;
  border-block: 1px solid var(--border);
  background: var(--bg-deep);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  /* The marquee is a flex container now, so the track is a flex item and
     would otherwise be shrunk to the viewport — which wrapped "New York"
     and "Mexico City" onto two lines. */
  flex: 0 0 auto;
  animation: slide 42s linear infinite;
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Each group carries its own trailing space, so a group's box width is
   exactly one repeat. That lets the animation shift by a whole group with no
   half-a-gap drift at the loop point. */
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding-right: 2.25rem;
}

.marquee__group em { color: var(--copper-600); font-style: normal; }

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-shift, -50%)); }
}

/* ==========================================================================
   CATEGORY PANELS
   ==========================================================================

   The work used to arrive as one 30-tile grid behind a row of filter pills:
   everything at once, and no way to take it in. Each category is now a closed
   panel showing a photograph, a line and a count, and opens to its own grid.
   ========================================================================== */

.cats {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

/* Two columns once there is room for them: seven stacked panels made the
   index itself a scroll. An open panel spans both, so its grid gets the full
   width rather than half of it. */
@media (min-width: 1100px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .catgroup:not(.is-collapsed) { grid-column: 1 / -1; }
  .catgroup__cover { grid-template-columns: 160px 1fr auto; }
  .catgroup:not(.is-collapsed) .catgroup__cover { grid-template-columns: 200px 1fr auto; }
}

.catgroup__cover {
  display: grid;
  grid-template-columns: clamp(96px, 22vw, 200px) 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--ink-850);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.catgroup__cover:hover { border-color: var(--border-strong); }

/* Square, so a poster and a portrait still crop as well as a wide frame. */
.catgroup__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink-900);
}

.catgroup__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.7s var(--ease), filter 0.5s var(--ease);
}

.catgroup__cover:hover .catgroup__thumb img {
  transform: scale(1.05);
  filter: saturate(1) contrast(1.05);
}

.catgroup__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1rem 0;
  min-width: 0;
}

.catgroup__name {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.1rem);
  line-height: 1.1;
  color: var(--text);
}

.catgroup__blurb {
  color: var(--text-muted);
  font-size: clamp(0.78rem, 1.1vw, 0.92rem);
  line-height: 1.45;
  max-width: 48ch;
}

.catgroup__tally {
  margin-top: 0.15rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper-400);
}

.catgroup__chev {
  width: 1.35rem; height: 1.35rem;
  margin-right: clamp(1rem, 2.4vw, 2rem);
  fill: none; stroke: var(--accent);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.35s var(--ease), stroke 0.25s var(--ease);
}

.catgroup__cover:hover .catgroup__chev { stroke: var(--copper-300); }
.catgroup.is-collapsed .catgroup__chev { transform: rotate(-90deg); }

.catgroup__grid { margin-top: clamp(1rem, 1.8vw, 1.75rem); }
.catgroup.is-collapsed .catgroup__grid { display: none; }

/* A panel that is open reads as one object with its grid. */
.catgroup:not(.is-collapsed) .catgroup__cover {
  background: var(--ink-900);
  border-color: var(--border-strong);
}

@media (max-width: 560px) {
  .catgroup__cover { gap: 0.9rem; }
  .catgroup__meta { padding: 0.75rem 0; gap: 0.25rem; }
  .catgroup__blurb { display: none; }
  .catgroup__chev { width: 1.1rem; height: 1.1rem; margin-right: 0.9rem; }
}

/* ==========================================================================
   WORK GRID
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: row dense;
  gap: clamp(1rem, 1.8vw, 1.75rem);
}

/* Each card declares its own span + ratio so the grid reads like a contact
   sheet rather than a uniform tile wall. */
.tile {
  grid-column: span 4;
  display: grid;          /* lets the frame stretch to the row height, so a
                             tall neighbour never leaves a hole beside it */
}
.tile--wide { grid-column: span 8; }
.tile--half { grid-column: span 6; }
.tile--full { grid-column: span 12; }

.tile.is-hidden { display: none; }

.tile__btn {
  display: grid;
  width: 100%;
  height: 100%;
  text-align: left;
}

.tile__frame {
  display: block;
  position: relative;
  /* Both dimensions must be pinned. With only height set, aspect-ratio would
     derive the WIDTH from the stretched row height and push the tile past its
     grid column. The ratio still sets the row's natural height, because a
     percentage height resolves to auto while that is being measured. */
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-800);
  border: 1px solid var(--border);
  aspect-ratio: var(--ratio, 16 / 9);
}

.tile__media,
.tile__ph {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease);
  filter: saturate(0.85) brightness(0.88);
}

/* Generated poster for projects with no still supplied yet. */
.tile__ph {
  display: grid;
  place-items: center;
  /* Extra bottom padding keeps the watermark clear of the caption on
     short tiles, where the two would otherwise sit on top of each other. */
  padding: 2rem 1.5rem 5.5rem;
  background:
    radial-gradient(120% 100% at 20% 0%, rgba(192, 99, 43, 0.18), transparent 55%),
    linear-gradient(145deg, var(--ink-700), var(--ink-850) 60%, var(--ink-950));
  filter: none;
}

.tile:nth-child(3n+2) .tile__ph {
  background:
    radial-gradient(120% 100% at 80% 10%, rgba(120, 140, 180, 0.2), transparent 55%),
    linear-gradient(145deg, var(--ink-700), var(--ink-900));
}
.tile:nth-child(3n+3) .tile__ph {
  background:
    radial-gradient(130% 100% at 50% 100%, rgba(154, 75, 36, 0.22), transparent 60%),
    linear-gradient(200deg, var(--ink-600), var(--ink-950));
}

.tile__ph span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 2.3rem);
  line-height: 1.15;
  color: rgba(244, 241, 234, 0.24);
  text-align: center;
}

.tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 9, 0.85) 0%, rgba(5, 6, 9, 0.1) 45%, transparent 70%);
  opacity: 0.9;
  transition: opacity 0.5s var(--ease);
}

.tile__play {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.4);
  background: rgba(10, 11, 15, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  scale: 0.85;
  transition: opacity 0.4s var(--ease), scale 0.5s var(--ease-out),
              background-color 0.3s var(--ease);
}

.tile__play svg {
  width: 17px; height: 17px;
  margin-left: 3px;
  fill: var(--bone-100);
}


.tile__badge {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  background: rgba(5, 6, 9, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-300);
}

.tile__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.tile__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.9vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.tile__sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tile__keep { white-space: nowrap; }

.tile__runtime {
  display: block;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* Hover state */
.tile__btn:hover .tile__media,
.tile__btn:hover .tile__ph,
.tile__btn:focus-visible .tile__media { transform: scale(1.045); filter: saturate(1) brightness(1); }
.tile__btn:hover .tile__play,
.tile__btn:focus-visible .tile__play { opacity: 1; scale: 1; }
.tile__btn:hover .tile__play { background: rgba(192, 99, 43, 0.9); }
.tile__btn:hover .tile__play svg { fill: var(--ink-950); }
.tile__btn:hover .tile__scrim { opacity: 1; }

/* Documentary posters carry their own bright lettering, and a long title over
   it was unreadable on a half-width phone tile. A deeper, taller fade gives
   the caption a dark bed of its own. */
.tile[data-category="documentary"] .tile__scrim {
  background: linear-gradient(to top, rgba(5, 6, 9, 0.97) 0%, rgba(5, 6, 9, 0.88) 32%, rgba(5, 6, 9, 0.25) 62%, transparent 80%);
  opacity: 1;
}
.tile__btn:hover .tile__frame { border-color: var(--border-strong); }

.tile__runtime--status { color: var(--copper-400); }

@media (max-width: 1080px) {
  .tile, .tile--wide, .tile--half { grid-column: span 6; }
}
@media (max-width: 640px) {
  .tile, .tile--wide, .tile--half, .tile--full { grid-column: span 12; }

  /* Tall tiles pair up, so fashion and photography don't scroll forever. */
  .tile[data-orient="portrait"] { grid-column: span 6; }

  .tile[data-orient="portrait"] .tile__caption { padding: 0.85rem; }
  .tile[data-orient="portrait"] .tile__name { font-size: 1rem; }
  .tile[data-orient="portrait"] .tile__sub {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
    margin-top: 0.2rem;
  }
  .tile[data-orient="portrait"] .tile__runtime { display: none; }
  .tile[data-orient="portrait"] .tile__badge { font-size: 0.52rem; padding: 0.22rem 0.5rem; top: 0.6rem; left: 0.6rem; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */

.about { background: var(--bg-alt); max-width: none; }

.about__grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.about__portrait { position: sticky; top: 7rem; }

.about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  filter: saturate(0.9);
}

.about__portrait figcaption {
  margin-top: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about__body .section__title { margin-bottom: 2.25rem; }

/* ---- Career highlights ----
   Under the figures grid: the grid is the quick scan, these say what the
   numbers were for. Figure first so the column of numbers still reads down. */
/* One column on phones and tablets, two side by side on the desktop, where
   the about column is wide enough for a figure and its sentence in each. */
.highlights {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 901px) {
  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 2.5vw, 2.25rem);
  }
}

/* A fixed figure column, so the six sentences start at the same edge. With
   `auto` the column was the width of each figure on its own and the text
   began in six different places — fine side by side, ragged in one list.
   6.5rem clears the widest (£100,000, 92px). */
.highlights li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--border);
}

.highlights__figure {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.1;
  color: var(--copper-300);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.highlights__figure span { color: var(--accent); }

.highlights__text {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

@media (max-width: 560px) {
  .highlights li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* Two-up on the desktop, the fixed figure column left the sentence a
   110–200px sliver, so each figure sits above its sentence instead. */
@media (min-width: 901px) {
  .highlights li { grid-template-columns: 1fr; gap: 0.3rem; padding-block: 1rem; }
}

.stats {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

/* Labels wrap to two lines at some widths. Pinning the figure to the bottom
   of the cell keeps every number on the same line, whatever the label does. */
.stats > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem;
  background: var(--bg-alt);
}

.stats dt {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stats dd {
  margin-top: 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--bone-100);
}
.stats dd span { color: var(--accent); }

/* Two by two on a phone, one row of four from 600px up — nothing between.
   auto-fit used to land on 3 + 1 at tablet and laptop widths, and on a
   single column under 350px. */
@media (min-width: 600px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats > div { padding: 1.35rem 1rem; }
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 460px; }

  /* Stacked, the 4:5 portrait is a 575px wall of photograph before the text
     starts. Cropped to 4:3 it is 345px. The frame holds the head and the
     camera: `cover` shows 60% of the image's height, and 20% starts that
     band just above her cap rather than at the top of the sky. */
  .about__portrait img {
    aspect-ratio: 4 / 3;
    object-position: 50% 20%;
  }
}

/* ==========================================================================
   FILMSTRIP
   ==========================================================================

   The on-set photographs again, scrolling, as a closing band under the page.
   Built like the magazine covers: fitLoop() clones the group until it is
   wider than the screen and sets --marquee-shift to exactly one group, so
   there is no jump at the loop point. A slower duration than the covers, so
   the two strips do not read as one synchronised thing.
   ========================================================================== */

.filmstrip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: clamp(0.9rem, 2vw, 1.4rem) 0;
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}

.filmstrip__track {
  display: flex;
  width: max-content;
  animation: slide 95s linear infinite;
  will-change: transform;
}

.filmstrip:hover .filmstrip__track { animation-play-state: paused; }

.filmstrip__group {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.85rem);
  padding-right: clamp(0.5rem, 1vw, 0.85rem);
}

/* Height is fixed and width follows the frame, so a portrait and a landscape
   photograph sit at the same scale and neither is cropped. */
.filmstrip__item {
  flex: 0 0 auto;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
  border: 1px solid var(--border);
}

.filmstrip__item img {
  display: block;
  height: clamp(96px, 13vw, 170px);
  width: auto;
  filter: saturate(0.85) brightness(0.82);
  transition: filter 0.4s var(--ease), transform 0.5s var(--ease-out);
}

.filmstrip__item:hover img {
  filter: none;
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .filmstrip__track { animation: none; }
}

/* ==========================================================================
   EVENTS
   ========================================================================== */

.events__list { display: grid; gap: 0; max-width: var(--maxw); margin-inline: auto; }

.event {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--border);
}

.event:last-child { border-bottom: 1px solid var(--border); }

.event__aside { display: grid; gap: 1rem; align-content: start; }

.event__frame {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.event__frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.92);
  transition: transform 0.9s var(--ease-out), filter 0.5s var(--ease);
}

.event:hover .event__frame img { transform: scale(1.03); filter: none; }

/* No photograph yet: a tinted card with the title, same as an unshot tile. */
.event__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background:
    radial-gradient(120% 100% at 30% 0%, rgba(192, 99, 43, 0.16), transparent 58%),
    linear-gradient(150deg, var(--ink-700), var(--ink-950));
}

.event__ph span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.2;
  color: rgba(244, 241, 234, 0.26);
}

.event__when { display: grid; gap: 0.4rem; align-content: start; }

.event__when time {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  line-height: 1.05;
  color: var(--copper-300);
  font-variant-numeric: tabular-nums;
}

.event__kind {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.event__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.event__place {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.event__note {
  margin-top: 1rem;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 0.97rem;
  text-wrap: pretty;
}

.event__links {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.event__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease);
}

.event__links svg {
  width: 0.72rem; height: 0.72rem;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.event__links a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}
.event__links a:hover svg { transform: translate(2px, -2px); }

@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; gap: 1rem; }
  .event__aside { gap: 0.75rem; }
  .event__frame { aspect-ratio: 16 / 9; }
  .event__when { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 0.8rem; }
}

/* ==========================================================================
   PRESS
   ========================================================================== */

.press { background: var(--bg-alt); max-width: none; }
.press > .section__head,
.press__groups { max-width: var(--maxw); margin-inline: auto; }

.press__groups { display: grid; gap: clamp(2rem, 3.5vw, 3rem); }

/* ---- Magazine covers, drifting past ---- */
.covers {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.covers__track {
  display: flex;
  width: max-content;
  animation: slide 70s linear infinite;
  will-change: transform;
}

.covers:hover .covers__track { animation-play-state: paused; }

.covers__group {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-right: 1rem;
}

.cover {
  flex: 0 0 auto;
  width: clamp(116px, 11vw, 158px);
}

.cover img {
  width: 100%;
  aspect-ratio: 308 / 401;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  filter: saturate(0.9) brightness(0.9);
  transition: filter 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease-out);
}

.cover:hover img {
  filter: none;
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.cover__label { display: block; padding-top: 0.6rem; }

.cover__outlet {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.cover__issue {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* No animation means no reason to clip it — let it scroll by hand instead. */
@media (prefers-reduced-motion: reduce) {
  .covers { overflow-x: auto; mask-image: none; }
  .covers__track { animation: none; }
}


/* ---- Watchable interviews ----
   min(320px, 100%): on a phone narrower than 320px plus the page gutters, a
   flat 320px minimum pushed the card past the screen edge. */
.press__videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin-inline: auto;
}

.interview__btn { display: block; width: 100%; text-align: left; }

.interview__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.interview__frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.85);
  transition: transform 0.8s var(--ease-out), filter 0.5s var(--ease);
}

.interview__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 6, 9, 0.6), transparent 60%);
}

.interview__play {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 234, 0.45);
  background: rgba(10, 11, 15, 0.45);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s var(--ease), scale 0.4s var(--ease-out);
}

.interview__play svg { width: 16px; height: 16px; margin-left: 3px; fill: var(--bone-100); }

.interview__btn:hover .interview__frame img,
.interview__btn:focus-visible .interview__frame img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.interview__btn:hover .interview__play { background: var(--copper-500); scale: 1.06; }
.interview__btn:hover .interview__play svg { fill: var(--ink-950); }
.interview__btn:hover .interview__frame { border-color: var(--border-strong); }

.interview__meta { display: block; padding-top: 0.9rem; }

.interview__outlet {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.interview__title {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.25;
  color: var(--bone-200);
}

.interview__btn:hover .interview__title { color: var(--bone-100); }

.press__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.35rem 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.press__head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.1;
}

.press__head p {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.press__tally {
  grid-row: 1;
  grid-column: 2;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.16em;
  color: var(--accent);
}

/* ---- Collapsible headings (phones only) ---- */
.press__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.press__chev {
  display: block;
  margin-left: auto;
  flex: 0 0 auto;
  width: 1rem; height: 1rem;
  fill: none; stroke: var(--accent);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.press__group.is-collapsed .press__items { display: none; }
.press__group.is-collapsed .press__chev { transform: rotate(-90deg); }
.press__toggle:hover .press__chev { stroke: var(--copper-300); }

/* Closed, a group is just its heading — keep the rule tight to it. */
.press__group.is-collapsed .press__head { border-bottom: 0; padding-bottom: 0.4rem; }

.press__items {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 0;
}

/* Outlet on its own line above the headline. Inline, the outlet names run
   from "MUBI" to "BREAKING TV FILM FESTIVAL", so every headline started at a
   different place and the column read as a ragged mess. Stacked, they all
   begin at the same edge. */
.press__items a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 0.3rem 0.6rem;
  padding: 0.9rem 0.6rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.25s var(--ease), padding-left 0.3s var(--ease);
}

/* Row 1: outlet left, date right. Row 2: headline, language, arrow. */
.press__outlet { grid-column: 1; grid-row: 1; }

.press__date {
  grid-column: 2 / -1;
  grid-row: 1;
  justify-self: end;
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}

.press__items a:hover {
  background: var(--surface);
  padding-left: 1rem;
}

.press__outlet {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.press__title {
  grid-column: 1;
  grid-row: 2;
  text-wrap: pretty;
  /* Ukrainian and Serbian headlines carry long unbreakable words. In a narrow
     grid column their min-content sets the floor, which was pushing the whole
     press block wider than a phone screen. Let them break. */
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.3;
  color: var(--bone-200);
}

.press__lang {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-dim);
}

.press__arrow {
  width: 0.85rem; height: 0.85rem;
  fill: none; stroke: var(--text-dim);
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.25s var(--ease), transform 0.3s var(--ease);
}

.press__items a:hover .press__arrow { stroke: var(--copper-300); transform: translate(2px, -2px); }
.press__items a:hover .press__title { color: var(--bone-100); }

/* ---- Dense group ----
   More links to a row and smaller type, so a long run of coverage reads as a
   reference list rather than a feature. 2 / 3 / 4 across as width allows. */
/* 290px lands on 4 columns at desktop rather than 5 — five was too fine a
   grind for the headlines. Narrower windows fall to 3, then 2. */
/* Multi-column rather than grid. In a grid every row is as tall as its
   tallest cell, so a one-line entry beside a four-line one leaves a hole —
   which is what made these groups look blown out, badly so on a phone where
   the columns are narrow and headlines wrap to four lines. Columns pack each
   item at its own height instead. */
.press__items--dense {
  display: block;
  column-count: 4;
  column-gap: 1.5rem;
}

.press__items--dense li {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

@media (max-width: 1180px) { .press__items--dense { column-count: 3; } }
@media (max-width: 880px)  { .press__items--dense { column-count: 2; } }

.press__items--dense a {
  /* The row gap was inheriting 0.55rem on BOTH axes, pushing the headline well
     clear of its outlet. These are two halves of one label, so close them up
     and trim the padding — ~20% off the height of every row. */
  gap: 0.1rem 0.5rem;
  padding: 0.45rem 0.5rem;
  align-items: baseline;
}

.press__items--dense .press__outlet { font-size: 0.54rem; letter-spacing: 0.1em; line-height: 1.3; }
.press__items--dense .press__title { font-size: 0.83rem; line-height: 1.22; }
.press__items--dense .press__lang { font-size: 0.52rem; padding: 0.1rem 0.3rem; }
.press__items--dense .press__date { font-size: 0.56rem; }
.press__items--dense .press__arrow { width: 0.7rem; height: 0.7rem; }

@media (max-width: 560px) {
  .press__items { grid-template-columns: 1fr; }

  /* Two columns on a phone are ~160px wide. At the desktop size a headline
     wrapped to four or five lines and every entry became a tall block; sizing
     the type to the column keeps most of them to two or three. */
  .press__items--dense .press__title { font-size: 0.72rem; line-height: 1.3; }
  .press__items--dense .press__outlet { font-size: 0.48rem; letter-spacing: 0.08em; }
  .press__items--dense a { padding: 0.35rem 0.35rem; }
  .press__items--dense .press__arrow { width: 0.62rem; height: 0.62rem; }
  /* Long outlet names ("BREAKING TV FILM FESTIVAL") may wrap down here too. */
  .press__outlet { white-space: normal; }
  .press__arrow { align-self: center; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact {
  max-width: none;
  background:
    radial-gradient(90% 70% at 50% 120%, rgba(192, 99, 43, 0.16), transparent 60%),
    var(--bg-deep);
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact__inner { max-width: 70ch; margin-inline: auto; }
.contact__inner .eyebrow { justify-content: center; }

.contact__title {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact__lede {
  margin: 1.75rem auto 0;
  max-width: 48ch;
  color: var(--text-muted);
}

.contact__email {
  display: inline-block;
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 2.5rem);
  letter-spacing: -0.01em;
  color: var(--copper-300);
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact__email:hover { color: var(--bone-100); border-color: var(--bone-100); }

.contact__agent {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.contact__agent a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.contact__agent a:hover { color: var(--copper-300); }

.contact__social {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.contact__social a {
  display: block;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
.contact__social a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer { border-top: 1px solid var(--border); background: var(--ink-980); }

.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: end;
}

.footer__mark {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1;
}

.footer__meta {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-dim);
  text-align: right;
}

.footer__copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

@media (max-width: 680px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__meta { grid-column: 1; grid-row: auto; text-align: left; }
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */

.lightbox {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(5, 6, 9, 0.94);
  color: var(--text);
}

.lightbox::backdrop { background: rgba(5, 6, 9, 0.9); backdrop-filter: blur(8px); }

.lightbox[open] { display: grid; place-items: center; }

.lightbox__shell {
  position: relative;
  width: min(1240px, 100% - clamp(1rem, 8vw, 7rem));
}

.lightbox__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox__stage iframe,
.lightbox__stage video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---- Carousel ----
   A photo series runs across rather than down. Its own arrows sit inside the
   frame; the player's outer arrows keep meaning "next project". */
.lightbox__stage.is-gallery { background: var(--ink-950); }

.carousel { position: absolute; inset: 0; overflow: hidden; }

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.65s var(--ease-out);
  will-change: transform;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  background: var(--ink-980);
}

/* Pinned to the slide's edges, and object-fit does the fitting. Sized as a
   grid item instead, a percentage height resolved against a row sized by the
   image itself, so a portrait frame rendered at full height and the stage's
   overflow cropped it to a horizontal strip. */
.carousel__slide img,
.carousel__slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ink-980);
}

/* On a video slide the frame counter moves up, clear of the video controls. */
.carousel.is-video .carousel__count { bottom: auto; top: 12px; }

.carousel__nav {
  position: absolute;
  top: calc(50% - 22px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 11, 15, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.carousel__nav svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

.carousel__nav:hover { border-color: var(--border-strong); background: rgba(192, 99, 43, 0.3); }
.carousel__nav--prev { left: 12px; }
.carousel__nav--next { right: 12px; }

.carousel__count {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 2;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(10, 11, 15, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.lightbox__out-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-300);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 0.2rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.lightbox__out-link[hidden] { display: none; }
.lightbox__out-link svg { width: 0.85rem; height: 0.85rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__out-link:hover { color: var(--bone-100); border-color: var(--bone-100); }

.lightbox__missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(160deg, var(--ink-800), var(--ink-980));
}

.lightbox__missing strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--bone-300);
}

.lightbox__missing span { font-size: 0.8rem; color: var(--text-dim); }

.lightbox__out { justify-self: center; margin-top: 0.75rem; }
.lightbox__out svg { width: 0.95rem; height: 0.95rem; }
.lightbox__out:hover svg { transform: translate(2px, -2px); }

.lightbox__meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.4rem;
}

.lightbox__cat {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.lightbox__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.1;
}

.lightbox__credits { font-size: 0.88rem; color: var(--text-muted); }

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 11, 15, 0.7);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.lightbox__close svg,
.lightbox__nav svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__close:hover,
.lightbox__nav:hover { border-color: var(--border-strong); background: rgba(192, 99, 43, 0.2); }

.lightbox__close { top: -58px; right: 0; }
.lightbox__nav--prev { top: calc(50% - 22px); left: clamp(-56px, -4vw, -16px); }
.lightbox__nav--next { top: calc(50% - 22px); right: clamp(-56px, -4vw, -16px); }

@media (max-width: 860px) {
  .lightbox__nav { top: auto; bottom: -56px; }
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { left: 52px; right: auto; }
  .lightbox__meta { margin-top: 4.5rem; }
}

/* ==========================================================================
   REVEAL + MOTION
   ========================================================================== */

/* Only hide when JS is running to show them again — see the note in <head>. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Appearances: a longer rise, and the photo side lands a beat before the
   text, so each entry is seen arriving rather than just being there. */
.js .event.reveal {
  transform: translateY(48px);
  transition-duration: 1.1s;
}
.js .event.reveal .event__aside,
.js .event.reveal .event__body {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js .event.reveal .event__body { transition-delay: 0.18s; }
.js .event.reveal.is-in .event__aside,
.js .event.reveal.is-in .event__body { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal,
  .js .event.reveal .event__aside,
  .js .event.reveal .event__body { opacity: 1; transform: none; }
  .grain { animation: none; }
  .marquee__track { animation: none; }
}

/* Touch screens have no hover, so the dimmed resting state would be the only
   state a phone ever sees: show every cover in its original colour there. */
@media (hover: none) {
  .catgroup__thumb img,
  .tile__media,
  .filmstrip__item img,
  .event__frame img,
  .cover img,
  .interview__frame img,
  .about__portrait img { filter: none; }
}
