/* ==========================================================================
   Rekawt Khalid — Cinematographer & Editor
   ========================================================================== */

:root {
  --ink: #0B0A09;
  --ink-2: #141210;
  --ink-3: #1E1B18;
  --bone: #ECE6DB;
  --bone-dim: #B9B1A4;
  --ash: #948C80;
  --line: rgba(236, 230, 219, .14);
  --clay: #7A6450;
  --olive: #5E5E48;
  --ember: #D08A4E;

  --f-display: "Bebas Neue", "Oswald", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px;
  --s-6: 64px; --s-7: 96px; --s-8: 128px; --s-9: 192px;
  --gutter: clamp(16px, 4vw, 64px);
  --section: clamp(96px, 16vh, 192px);
  --strip: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.05vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.5;
}
.serif { font-family: var(--f-serif); font-weight: 400; }
.serif em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 1000;
  padding: 10px 16px; background: var(--bone); color: var(--ink);
  font-family: var(--f-mono); font-size: 12px;
  transform: translateY(-150%); transition: transform .3s;
}
.skip:focus { transform: none; }

.chapter { color: var(--ash); margin-bottom: var(--s-4); }
.chapter::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); margin-right: 10px; vertical-align: 1px; }

.h2 {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 8vw, 8rem);
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: .9;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

/* split text */
.w, .ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.w > span, .ch > span { display: inline-block; will-change: transform; }

/* ---------- Grain / progress / timecode / cursor ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 900; pointer-events: none;
  background: url("assets/images/grain.png") repeat;
  background-size: 128px;
  opacity: .065;
  animation: grain 1s steps(8) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 12% { transform: translate(-3%, 2%); } 25% { transform: translate(2%, -4%); }
  37% { transform: translate(-4%, -1%); } 50% { transform: translate(3%, 3%); } 62% { transform: translate(-1%, 4%); }
  75% { transform: translate(4%, -2%); } 87% { transform: translate(-2%, -3%); } 100% { transform: translate(0, 0); }
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 1px; z-index: 950; pointer-events: none; }
.progress span { display: block; height: 100%; background: rgba(236, 230, 219, .5); transform-origin: 0 50%; transform: scaleX(0); }
.timecode {
  position: fixed; left: var(--gutter); bottom: 20px; z-index: 800;
  color: var(--ash); font-size: 10px; pointer-events: none;
  font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .6s;
}
.timecode.is-on { opacity: 1; }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; top: 0; left: 0; z-index: 990; pointer-events: none;
    width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
    background: var(--bone); mix-blend-mode: difference;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s;
    opacity: 0;
  }
  .cursor.is-on { opacity: 1; }
  .cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; mix-blend-mode: normal; background: var(--bone); }
  .cursor__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .3s; }
  .cursor.is-big .cursor__label { opacity: 1; }
}

/* ---------- Leader ---------- */
.leader { display: none; }
.show-leader .leader {
  display: grid; place-items: center; align-content: center; gap: 28px;
  position: fixed; inset: 0; z-index: 1001; background: var(--ink);
}
.leader__inner { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.leader__dial { position: absolute; inset: 0; transform: rotate(-90deg); }
.leader__dial circle { fill: none; stroke: var(--line); stroke-width: 1; }
.leader__dial .leader__sweep { stroke: var(--bone); stroke-dasharray: 1; stroke-dashoffset: 1; }
.leader__count { font-family: var(--f-display); font-weight: 300; font-size: 44px; font-variation-settings: "wdth" 80; }
.leader__label { color: var(--ash); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  display: flex; align-items: center; gap: var(--s-4);
  padding: 22px var(--gutter);
  padding-top: max(22px, env(safe-area-inset-top));
  mix-blend-mode: difference;
  transition: transform .5s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { font-size: 12px; font-weight: 500; margin-right: auto; }
.nav__links { display: flex; gap: var(--s-4); }
.nav__links a, .nav__cta { position: relative; padding: 6px 0; }
.nav__links a::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%;
  background: currentColor; opacity: 0; transform: scale(0); transition: .4s var(--ease-out);
}
.nav__links a.is-active::before { opacity: 1; transform: none; }
.nav__links a::after, .nav__cta::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after, .nav__cta:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { margin-left: var(--s-3); border: 1px solid currentColor; padding: 9px 16px; border-radius: 999px; }
.nav__cta::after { display: none; }
.nav__toggle { display: none; padding: 8px 0; }

.menu {
  position: fixed; inset: 0; z-index: 980; background: var(--ink);
  display: flex; flex-direction: column; padding: 22px var(--gutter) max(28px, env(safe-area-inset-bottom));
  padding-top: max(22px, env(safe-area-inset-top));
}
.menu[hidden] { display: none; }
.menu__close { align-self: flex-end; padding: 8px 0; }
.menu__links { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  display: flex; align-items: baseline; gap: 16px;
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: clamp(3.25rem, 16vw, 6rem); line-height: .95; letter-spacing: -.02em;
}
.menu__links a .mono { color: var(--ash); font-weight: 400; }
.menu__foot { margin-top: var(--s-6); display: grid; gap: 10px; color: var(--bone-dim); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out);
}
.btn > span { position: relative; z-index: 1; }
.btn--primary { background: var(--bone); color: var(--ink); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; background: var(--ember); z-index: 0;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.btn--primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--ghost { padding-left: 6px; }
.btn--ghost > span:last-child { position: relative; }
.btn--ghost > span:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(.35); transform-origin: left; transition: transform .6s var(--ease-out);
}
.btn--ghost:hover > span:last-child::after { transform: scaleX(1); }
.btn__play {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(236, 230, 219, .5); transition: background .4s, border-color .4s;
}
.btn__play svg { width: 11px; height: 11px; fill: currentColor; margin-left: 2px; }
.btn--ghost:hover .btn__play { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--lg { min-height: 64px; padding: 0 40px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  overflow: hidden; background: #050505; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
/* The photo: full-frame, graded black & white with deep but detailed blacks */
.hero__photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--focus-d, 72% 26%);
  filter: grayscale(1) contrast(1.18) brightness(.78);
  transform-origin: var(--focus-d, 72% 26%);
  animation: hero-push 26s ease-out both;
}
@keyframes hero-push { from { transform: scale(1.1); } to { transform: scale(1.02); } }
/* Grade: warm split-tone, text-side falloff, poster vignette, extra grain */
.hero__grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 95% at 68% 32%, transparent 38%, rgba(5,5,5,.72) 100%),
    linear-gradient(90deg, rgba(5,5,5,.88) 0%, rgba(5,5,5,.55) 30%, rgba(5,5,5,0) 58%),
    linear-gradient(0deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.5) 26%, rgba(5,5,5,0) 50%),
    linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 18%);
}
.hero__grade::before { content: ""; position: absolute; inset: 0; background: rgba(160,110,70,.16); mix-blend-mode: soft-light; }
.hero__grade::after { content: ""; position: absolute; inset: 0; background: url("assets/images/grain.png"); background-size: 140px; opacity: .1; mix-blend-mode: overlay; }

.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 0 var(--gutter) calc(var(--strip) + clamp(36px, 7vh, 80px));
}
/* Poster title */
.hero__title {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: normal;
  text-transform: uppercase; color: #F2EDE4;
  font-size: clamp(5rem, 11.6vw, 14rem); line-height: .8; letter-spacing: .012em;
  display: flex; flex-wrap: wrap; column-gap: .22em; margin: 0 0 0 -.03em;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero__line { display: block; }
/* Billing line */
.hero__role {
  margin-top: clamp(14px, 2.2vh, 26px);
  font-family: var(--f-body); font-weight: 500; text-transform: uppercase;
  font-size: clamp(.78rem, 1.05vw, 1rem); letter-spacing: .42em; color: rgba(242,237,228,.86);
  display: flex; align-items: center; gap: 18px;
}
.hero__role::before { content: ""; width: clamp(28px, 4vw, 56px); height: 1px; background: rgba(242,237,228,.6); }
/* Understated CTA */
.hero__cta {
  margin-top: clamp(28px, 5vh, 52px);
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--f-body); font-weight: 500; text-transform: uppercase;
  font-size: 11px; letter-spacing: .32em; color: rgba(242,237,228,.7);
  transition: color .5s var(--ease-out);
}
.hero__cta-rule { width: 44px; height: 1px; background: currentColor; transform-origin: left; transition: transform .7s var(--ease-out); }
.hero__cta:hover { color: #F2EDE4; }
.hero__cta:hover .hero__cta-rule { transform: scaleX(1.8); }

/* credits strip */
.credits {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  height: var(--strip); display: flex; align-items: center;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(11,10,9,.6), rgba(11,10,9,0));
}
.credits__label { flex-shrink: 0; padding: 0 var(--s-4) 0 var(--gutter); color: var(--ash); border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; }
.credits__viewport {
  flex: 1; overflow: hidden; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.credits__track { display: flex; width: max-content; height: 100%; will-change: transform; }
.credits__group { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); padding-right: clamp(24px, 3vw, 44px); flex-shrink: 0; }
.credits__group > li { flex-shrink: 0; white-space: nowrap; color: rgba(236, 230, 219, .55); transition: color .5s; }
.credits__group > li:hover { color: var(--bone); }
.credits__logo svg { height: 18px; width: auto; fill: currentColor; }
.credits__dot { color: var(--ash); }
.ink text, .dw { font-family: Arial, Helvetica, sans-serif; font-weight: 700; text-anchor: middle; }
.ink text { font-size: 29px; fill: var(--ink); }
.dw { font-size: 34px; letter-spacing: -2px; fill: currentColor; }

/* ---------- Showreel ---------- */
.reel { position: relative; background: var(--ink); }
.reel__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.reel__word {
  position: absolute; top: 50%; z-index: 1;
  font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 70;
  font-size: clamp(5rem, 17vw, 19rem); line-height: .8; letter-spacing: -.03em;
  transform: translateY(-50%); pointer-events: none; color: var(--bone);
}
.reel__word--l { left: var(--gutter); }
.reel__word--r { right: var(--gutter); }
.reel__frame {
  position: absolute; inset: 0; z-index: 2; overflow: hidden; display: block; background: var(--ink-3);
  clip-path: inset(var(--iy, 22%) var(--ix, 22%));
}
.reel__poster, .reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__poster { filter: brightness(.72) saturate(.9); object-position: 60% 40%; }
.reel__video { opacity: 0; transition: opacity 1s; }
.reel__video.is-ready { opacity: 1; }
.reel__meta {
  position: absolute; left: calc(var(--ix, 22%) + 20px); top: calc(var(--iy, 22%) + 18px);
  display: flex; align-items: center; gap: 10px; color: var(--bone);
}
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); animation: rec 1.6s steps(2) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.reel__play {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(236, 230, 219, .6); color: var(--bone);
  transition: background .4s, color .4s, transform .6s var(--ease-out);
}
.reel__frame:hover .reel__play { background: var(--bone); color: var(--ink); transform: scale(1.06); }
@media (hover: hover) and (pointer: fine) { .reel__frame .reel__play { opacity: 0; } }

/* ---------- Stats ---------- */
.stats { padding: var(--s-7) var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { display: flex; flex-direction: column; gap: 14px; padding: var(--s-2) var(--s-4); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__num {
  font-weight: 300; font-variation-settings: "wdth" 70;
  font-size: clamp(3.5rem, 7vw, 7rem); line-height: .9; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat__num--word { text-transform: uppercase; font-weight: 800; }
.stat__label { color: var(--ash); max-width: 24ch; }

/* ---------- Mission ---------- */
.mission { padding: var(--section) var(--gutter); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.mission__line {
  font-weight: 700; font-variation-settings: "wdth" 80;
  font-size: clamp(2.5rem, 6.4vw, 7rem); line-height: .98; letter-spacing: -.025em;
  max-width: 15ch;
}
.mission__line .w > span { transform: none; }
.js .mission__line .w { opacity: .14; }
.mission__serif { font-size: clamp(2rem, 5vw, 5rem); line-height: 1.05; margin-top: .2em; color: var(--ember); }
.mission__body { margin-top: var(--s-6); max-width: 46ch; color: var(--bone-dim); margin-left: auto; margin-right: 8vw; }

/* ---------- Selected work ---------- */
.work { position: relative; padding: var(--section) var(--gutter); }
.work__head { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: var(--s-6); }
.work__head .chapter { grid-column: 1 / -1; }
.work__sub { color: var(--ash); padding-bottom: 10px; }

/* category cards (home) */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(460px, 74vh, 760px); padding: clamp(24px, 3vw, 44px);
  overflow: hidden; isolation: isolate; background: var(--ink-3);
}
.cat__media { position: absolute; inset: 0; z-index: -1; }
.cat__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,10,9,.92) 0%, rgba(11,10,9,.35) 55%, rgba(11,10,9,.55) 100%); transition: opacity .8s var(--ease-out); }
.cat__img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(.85); transform: scale(1.04); transition: transform 1.6s var(--ease-out), filter 1s var(--ease-out); }
.cat:hover .cat__img { transform: scale(1.1); filter: brightness(.85) saturate(1); }
.cat:hover .cat__media::after { opacity: .8; }
.cat__num { position: absolute; top: clamp(24px, 3vw, 44px); left: clamp(24px, 3vw, 44px); color: var(--bone-dim); }
.cat__count { position: absolute; top: clamp(24px, 3vw, 44px); right: clamp(24px, 3vw, 44px); color: var(--bone-dim); }
.cat__title {
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: clamp(2.5rem, 5vw, 6rem); line-height: .88; letter-spacing: -.025em;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .2em;
}
.cat__arrow { display: inline-block; font-weight: 300; transition: transform .8s var(--ease-out); }
.cat:hover .cat__arrow { transform: translateX(.18em); }
.cat__desc { margin-top: var(--s-2); color: var(--bone-dim); max-width: 40ch; }

/* category page hero */
.cat-hero { padding: clamp(140px, 24vh, 240px) var(--gutter) var(--s-7); border-bottom: 1px solid var(--line); }
.cat-hero__crumbs { display: flex; gap: 12px; color: var(--ash); margin-bottom: var(--s-4); }
.cat-hero__crumbs a:hover { color: var(--bone); }
.cat-hero__title {
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: clamp(3.5rem, 13vw, 14rem); line-height: .84; letter-spacing: -.03em;
}
.cat-hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); margin-top: var(--s-5); }
.cat-hero__intro { font-size: clamp(1.4rem, 2.4vw, 2.25rem); line-height: 1.18; max-width: 30ch; color: var(--bone-dim); }
.cat-hero__meta { display: grid; gap: 6px; text-align: right; color: var(--ash); }

/* project grid (category pages) */
.pgrid-wrap { padding: var(--s-7) var(--gutter) var(--section); }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(24px, 4vw, 72px); row-gap: clamp(56px, 8vw, 120px); }
.pgrid > .pcard:nth-child(even) { margin-top: clamp(80px, 14vw, 220px); }
.pcard__link { display: block; }
.pcard__media { position: relative; overflow: hidden; }
.pcard__media img { transition: transform 1.4s var(--ease-out), filter 1s; filter: brightness(.92); }
.pcard__link:hover .pcard__media img { transform: scale(1.05); filter: brightness(1); }
.pcard__info { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin-top: var(--s-3); }
.pcard__num { color: var(--ash); padding-top: .55em; grid-row: span 2; }
.pcard__title {
  font-weight: 700; font-variation-settings: "wdth" 78; text-transform: uppercase;
  font-size: clamp(1.5rem, 2.6vw, 2.75rem); line-height: .95; letter-spacing: -.02em;
  transition: transform .7s var(--ease-out);
}
.pcard__link:hover .pcard__title { transform: translateX(10px); }
.pcard__meta { color: var(--bone-dim); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pcard__meta .is-role { color: var(--ember); }
.pgrid__empty { display: grid; justify-items: start; gap: var(--s-4); padding: var(--s-6) 0; }
.pgrid__empty[hidden] { display: none; }
.pgrid__empty p { font-size: clamp(1.6rem, 3vw, 2.75rem); line-height: 1.15; max-width: 26ch; color: var(--bone-dim); }
.pgrid__empty .btn--ghost { padding: 0 28px; border: 1px solid var(--line); }

/* switch to the other category */
.switch { display: grid; gap: var(--s-2); padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.switch .mono { color: var(--ash); }
.switch__title {
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: clamp(3rem, 10vw, 10rem); line-height: .86; letter-spacing: -.03em;
  transition: transform .9s var(--ease-out), color .6s;
}
.switch:hover .switch__title { transform: translateX(2vw); color: var(--ember); }

/* placeholder cards (until real frames are supplied) */
.ph {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(122,100,80,.35), transparent 60%),
    radial-gradient(80% 80% at 90% 100%, rgba(94,94,72,.25), transparent 60%),
    var(--ink-3);
}
.ph::after { content: ""; position: absolute; inset: 0; background: url("assets/images/grain.png"); background-size: 128px; opacity: .12; }
.ph__num {
  position: absolute; left: 6%; bottom: 2%;
  font-weight: 800; font-variation-settings: "wdth" 70; font-size: clamp(4rem, 10vw, 9rem); line-height: .8; color: rgba(236,230,219,.12);
}
.ph__mark { position: absolute; right: 6%; top: 8%; color: var(--bone-dim); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* ---------- Project overlay ---------- */
.project { position: fixed; inset: 0; z-index: 960; background: var(--ink); clip-path: inset(0 0 100% 0); }
.project[hidden] { display: none; }
.project__scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.project__close {
  position: sticky; top: 0; display: block; margin-left: auto; z-index: 2;
  padding: 26px var(--gutter); padding-top: max(26px, env(safe-area-inset-top));
}
.project__inner { padding: 0 var(--gutter) var(--s-8); max-width: 1500px; }
.project__num { color: var(--ash); }
.project__title {
  margin-top: var(--s-3);
  font-weight: 800; font-variation-settings: "wdth" 72; text-transform: uppercase;
  font-size: clamp(2.5rem, 7.5vw, 8rem); line-height: .9; letter-spacing: -.025em; max-width: 16ch;
}
.project__meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); margin: var(--s-6) 0; padding: var(--s-3) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project__meta dt { color: var(--ash); margin-bottom: 6px; }
.project__meta dd { font-family: var(--f-display); font-size: 1rem; letter-spacing: 0; text-transform: none; }
.project__media { margin-bottom: var(--s-6); }
.project__media .ph__num { font-size: clamp(6rem, 18vw, 16rem); }
.project__note { position: absolute; left: 6%; top: 8%; color: var(--ash); max-width: 40ch; z-index: 2; }
.project__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
.project__cols h3 { color: var(--ash); margin-bottom: var(--s-2); }
.project__cols p { color: var(--bone-dim); font-size: 1.1rem; max-width: 52ch; }
.project__cols p.serif { font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.2; color: var(--bone); }
.project__media iframe, .project__media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }
.project__videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
.project__videos figcaption { margin-top: 10px; color: var(--ash); }
.project__link { margin-top: var(--s-5); }
.project__nav { display: flex; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-8); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.project__nav button { text-align: left; }
.project__nav button:last-child { text-align: right; }
.project__nav span { display: block; }
.project__nav strong { display: block; margin-top: 8px; font-weight: 700; font-variation-settings: "wdth" 78; text-transform: uppercase; font-size: clamp(1.1rem, 2vw, 1.75rem); letter-spacing: -.01em; line-height: 1; }

/* ---------- Craft ---------- */
.craft { position: relative; background: var(--ink); }
.craft__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.craft__media { position: absolute; inset: 0; }
.craft__fallback, .craft__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.craft__fallback { object-position: 26% 72%; transform: scale(1.6); transform-origin: 26% 72%; filter: brightness(.6); }
.craft__video { opacity: 0; transition: opacity 1s; }
.craft__video.is-ready { opacity: 1; }
.craft__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,10,9,.88) 0%, rgba(11,10,9,.45) 50%, rgba(11,10,9,.2) 100%); }
.craft__chapter { position: absolute; top: clamp(96px, 14vh, 140px); left: var(--gutter); z-index: 2; }
.craft__steps { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 2; width: min(640px, 80vw); }
.craft__step { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); }
.craft__title {
  font-weight: 800; font-variation-settings: "wdth" 72; text-transform: uppercase;
  font-size: clamp(3rem, 7vw, 7.5rem); line-height: .9; letter-spacing: -.025em;
  width: 9ch;
}
.craft__step p { margin-top: var(--s-3); font-size: clamp(1.25rem, 2vw, 1.9rem); line-height: 1.2; color: var(--bone-dim); max-width: 24ch; }
.craft__report { position: absolute; right: var(--gutter); bottom: clamp(40px, 8vh, 80px); z-index: 2; text-align: right; color: var(--ash); }
.craft__report li { transition: color .5s; }
.craft__report li.is-active { color: var(--ember); }

/* ---------- Editing ---------- */
.edit { padding: var(--section) var(--gutter); }
.edit__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s-6); align-items: end; }
.edit__head .chapter { grid-column: 1 / -1; margin-bottom: 0; }
.edit__body { color: var(--bone-dim); max-width: 52ch; }
.tl { position: relative; margin-top: var(--s-7); padding: 0 0 0 48px; }
.tl__top { display: flex; justify-content: space-between; color: var(--ash); margin-bottom: 12px; }
.tl__tc { color: var(--bone); font-variant-numeric: tabular-nums; }
.tl__ruler {
  height: 14px; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, rgba(236,230,219,.28) 0 1px, transparent 1px 2.5%) bottom / 100% 6px no-repeat,
              repeating-linear-gradient(90deg, rgba(236,230,219,.4) 0 1px, transparent 1px 12.5%) bottom / 100% 14px no-repeat;
}
.tl__tracks { display: grid; gap: 8px; padding-top: 10px; }
.tl__track { position: relative; height: 44px; }
.tl__track--a { height: 30px; }
.tl__name { position: absolute; left: -48px; top: 50%; transform: translateY(-50%); color: var(--ash); }
.tl__clip { position: absolute; top: 0; bottom: 0; border-radius: 2px; border: 1px solid rgba(11,10,9,.6); }
.tl__clip.c1 { background: linear-gradient(180deg, #8a735c, var(--clay)); }
.tl__clip.c2 { background: linear-gradient(180deg, #6e6e56, var(--olive)); }
.tl__clip.ca {
  background: rgba(236,230,219,.08);
  border-color: var(--line);
}
.tl__clip.ca::after {
  content: ""; position: absolute; inset: 20% 6px; opacity: .45;
  background: repeating-linear-gradient(90deg, var(--bone-dim) 0 1px, transparent 1px 4px);
  -webkit-mask: linear-gradient(0deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(0deg, transparent, #000 30%, #000 70%, transparent);
}
.tl__playhead { position: absolute; top: 28px; bottom: -8px; left: 48px; width: 1px; background: var(--ember); pointer-events: none; }
.tl__playhead span { position: absolute; top: -6px; left: -5px; width: 11px; height: 11px; background: var(--ember); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.edit__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-top: var(--s-7); }
.edit__cols h3 { color: var(--bone); margin-bottom: 10px; }
.edit__cols p { color: var(--bone-dim); max-width: 30ch; }

/* ---------- Story ---------- */
.story { position: relative; }
.story__stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.story__media { position: absolute; inset: 0; clip-path: inset(var(--ly, 30%) var(--lx, 6%)); }
.story__fallback, .story__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__fallback { object-position: 20% 30%; filter: brightness(.55) sepia(.18) contrast(1.05); }
.story__video { opacity: 0; transition: opacity 1s; }
.story__video.is-ready { opacity: 1; }
.story__shade { position: absolute; inset: 0; background: radial-gradient(80% 70% at 50% 50%, transparent, rgba(11,10,9,.55)); pointer-events: none; }
.story__chapter { position: absolute; top: clamp(96px, 14vh, 140px); left: var(--gutter); z-index: 2; }
.story__line {
  position: absolute; left: var(--gutter); bottom: clamp(48px, 10vh, 110px); z-index: 2;
  font-weight: 800; font-variation-settings: "wdth" 72; text-transform: uppercase;
  font-size: clamp(3rem, 10vw, 11rem); line-height: .86; letter-spacing: -.03em;
}
.bio { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); padding: var(--section) var(--gutter); align-items: start; }
.bio__portrait { position: sticky; top: 120px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink-3); }
.bio__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 82% 30%; }
.bio__text { display: grid; gap: var(--s-4); font-size: clamp(1.1rem, 1.4vw, 1.4rem); line-height: 1.55; color: var(--bone-dim); max-width: 60ch; }
.bio__text p:first-child { color: var(--bone); font-size: 1.15em; line-height: 1.4; }
.bio__quote { font-size: clamp(1.8rem, 3.2vw, 3.2rem); line-height: 1.12; color: var(--bone); margin: var(--s-4) 0; padding-left: var(--s-4); border-left: 1px solid var(--ember); }
.bio__facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.bio__facts > div { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-2); padding: 14px 0; border-bottom: 1px solid var(--line); }
.bio__facts dt { color: var(--ash); }
.bio__facts dd { color: var(--bone); }

/* ---------- Credits ---------- */
.collab { padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.collab__marks { display: flex; justify-content: center; gap: clamp(48px, 12vw, 200px); margin: var(--s-6) 0 var(--s-8); }
.collab__marks figure { display: grid; justify-items: center; gap: 18px; color: var(--bone); }
.collab__marks figcaption { color: var(--ash); }
.collab__bbc { height: clamp(44px, 6vw, 84px); width: auto; fill: currentColor; }
.collab__dw { height: clamp(52px, 7vw, 98px); width: auto; }
.filmo { width: 100%; max-width: 1100px; margin: 0 auto; border-collapse: collapse; }
.filmo th { text-align: left; color: var(--ash); font-weight: 400; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.filmo td { padding: 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.filmo td:first-child { font-weight: 600; font-variation-settings: "wdth" 85; font-size: clamp(1.05rem, 1.6vw, 1.45rem); line-height: 1.2; padding-right: var(--s-4); }
.filmo td.mono { color: var(--bone-dim); padding-top: 26px; white-space: nowrap; padding-right: var(--s-3); }

/* ---------- Frames ---------- */
.frames { padding: var(--section) var(--gutter); }
.frames__track { display: flex; gap: var(--s-3); margin-top: var(--s-5); overflow-x: auto; }
.frames__item { flex: 0 0 min(70vw, 900px); }
.frames__item figcaption { margin-top: 10px; color: var(--ash); }

/* ---------- Contact ---------- */
.contact { position: relative; padding: var(--section) var(--gutter); min-height: 100vh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); }
.contact__title {
  font-weight: 800; font-variation-settings: "wdth" 72; text-transform: uppercase;
  font-size: clamp(3.4rem, 12.5vw, 14rem); line-height: .84; letter-spacing: -.03em;
}
.contact__line { display: block; }
.contact__line:last-child { padding-left: 8vw; }
.contact__sub { font-size: clamp(1.4rem, 2.4vw, 2.25rem); line-height: 1.2; color: var(--bone-dim); max-width: 34ch; margin: var(--s-5) 0; }
.contact .btn { align-self: flex-start; }
.contact__list { margin-top: var(--s-7); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.contact__list li { display: grid; gap: 10px; }
.contact__list .mono { color: var(--ash); }
.contact__list a {
  font-size: clamp(1.15rem, 1.8vw, 1.7rem); font-weight: 500; font-variation-settings: "wdth" 90;
  justify-self: start; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--ease-out); word-break: break-word;
}
.contact__list a:hover { background-size: 100% 1px; }

/* ---------- Footer ---------- */
.footer { padding: var(--s-5) var(--gutter) 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer__row { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); color: var(--ash); }
.footer__row a:hover { color: var(--bone); }
.footer__row a:last-child { margin-left: auto; }
.footer__mark {
  margin-top: var(--s-6); margin-bottom: -.2em;
  font-weight: 800; font-variation-settings: "wdth" 70; text-transform: uppercase;
  font-size: 15.4vw; line-height: .8; letter-spacing: -.03em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(236,230,219,.25);
}

/* ---------- Lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 970; background: rgba(11,10,9,.97); display: grid; place-items: center; padding: var(--gutter); }
.lightbox[hidden] { display: none; }
.lightbox__close { position: absolute; top: max(24px, env(safe-area-inset-top)); right: var(--gutter); padding: 8px 0; }
.lightbox__body { width: min(100%, calc((100vh - 140px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; position: relative; }
.lightbox__body iframe, .lightbox__body video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox__soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-4); background: var(--ink-2); }
.lightbox__soon p.serif { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.15; max-width: 22ch; }
.lightbox__soon .mono { color: var(--ash); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 995; transform: translate(-50%, 20px);
  background: var(--bone); color: var(--ink); padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: .5s var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Initial reveal states (JS only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-hero-fade] { opacity: 0; }
.js .hero__line .ch > span { transform: translateY(110%); }
.js [data-split-words]:not([data-split-words="scrub"]) .w > span { transform: translateY(110%); }
.js [data-reveal-img] { clip-path: inset(100% 0 0 0); }

/* ==========================================================================
   Tablet & mobile
   ========================================================================== */
@media (max-width: 1023px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }

  .reel__stage { height: auto; padding: var(--s-8) var(--gutter); display: block; }
  .reel__word { position: static; transform: none; display: inline-block; font-size: clamp(4rem, 20vw, 10rem); }
  .reel__word--r { float: right; }
  .reel__frame { position: relative; inset: auto; clip-path: none; width: 100%; aspect-ratio: 16 / 9; margin-top: var(--s-3); clear: both; }
  .reel__meta { left: 16px; top: 14px; }
  .reel__play { opacity: 1; }

  .craft__stage { height: auto; overflow: visible; }
  .craft__media { position: relative; aspect-ratio: 4 / 5; max-height: 80vh; width: 100%; overflow: hidden; }
  .craft__shade { display: none; }
  .craft__chapter { position: static; padding: var(--s-7) var(--gutter) 0; }
  .craft__steps { position: static; transform: none; width: auto; padding: 0 var(--gutter); display: grid; gap: var(--s-6); }
  .craft__step { position: static; transform: none; }
  .craft__report { display: none; }
  .craft__media { margin-top: var(--s-5); }
  .craft { padding-bottom: var(--s-7); }
  .craft__steps { order: 2; }
  .craft__stage { display: flex; flex-direction: column; }
  .craft__chapter { order: 0; }
  .craft__media { order: 1; margin-bottom: var(--s-6); }

  .story__media { clip-path: none; }

  .project__meta { grid-template-columns: repeat(2, 1fr); }
  .project__cols { grid-template-columns: 1fr; gap: var(--s-5); }
}

@media (max-width: 767px) {
  :root { --strip: 56px; }
  .mono { font-size: 10.5px; }

  .btn--ghost { padding-left: 28px; border: 1px solid var(--line); }
  .btn--ghost .btn__play { width: 28px; height: 28px; border: 0; }
  .credits__label { display: none; }
  .credits__logo svg { height: 14px; }

  .stats { padding: var(--s-5) var(--gutter); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: var(--s-3) var(--s-2); border-left: 0; }
  .stat:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: var(--s-3); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .mission { min-height: auto; }
  .mission__body { margin-right: 0; }

  .work__head { grid-template-columns: 1fr; gap: var(--s-2); }
  .cats { grid-template-columns: 1fr; gap: var(--s-2); }
  .cat { min-height: 62svh; }
  .cat-hero { padding-top: 128px; }
  .cat-hero__title { font-size: 13.6vw; }
  .cat-hero__foot { flex-direction: column; align-items: flex-start; }
  .cat-hero__meta { text-align: left; }
  .pgrid { grid-template-columns: 1fr; row-gap: var(--s-7); }
  .pgrid > .pcard:nth-child(even) { margin-top: 0; }
  .pcard__title { font-size: clamp(1.6rem, 7.4vw, 2.2rem); }
  .project__videos { grid-template-columns: 1fr; }
  .switch__title { font-size: 15vw; }

  .craft__media { aspect-ratio: 4 / 5; }
  .craft__fallback { transform: scale(1.25); object-position: 30% 70%; }

  .edit__head { grid-template-columns: 1fr; gap: var(--s-4); }
  .tl { padding-left: 34px; margin-top: var(--s-6); }
  .tl__name { left: -34px; }
  .tl__playhead { left: 34px; }
  .tl__track[data-track="V2"] { display: none; }
  .edit__cols { grid-template-columns: 1fr; gap: var(--s-4); }

  .story__stage { height: 85svh; }
  .story__line { font-size: 15vw; }
  .bio { grid-template-columns: 1fr; }
  .bio__portrait { position: relative; top: 0; aspect-ratio: 4 / 3; }
  .bio__facts > div { grid-template-columns: 1fr; gap: 4px; }

  .collab__marks { gap: 48px; }
  .filmo thead { display: none; }
  .filmo tr { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .filmo td { border: 0; padding: 0 !important; }
  .filmo td:first-child { grid-column: 1 / -1; }
  .filmo td.mono { white-space: normal; }

  .contact__line:last-child { padding-left: 0; }
  .contact .btn { align-self: stretch; justify-content: center; }
  .contact__list { grid-template-columns: 1fr; gap: var(--s-4); }
  .contact__list a { min-height: 44px; display: inline-flex; align-items: center; }

  .footer__row { flex-direction: column; gap: 12px; }
  .footer__row a:last-child { margin-left: 0; }
  .timecode { display: none; }
  .grain { animation: none; }
  .project__meta { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { animation: none; }
  .js [data-reveal], .js [data-hero-fade] { opacity: 1; transform: none; }
  .js .hero__line .ch > span, .js [data-split-words] .w > span { transform: none; }
  .js [data-reveal-img] { clip-path: none; }
  .js .mission__line .w { opacity: 1; }
}

.filmo td a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out); }
.filmo td a:hover { background-size: 100% 1px; }

/* ==========================================================================
   CMS-driven elements
   ========================================================================== */
/* Images chosen in the dashboard replace the default crops */
.reel__poster.is-custom, .story__fallback.is-custom { object-position: center; filter: brightness(.6); }
.craft__fallback.is-custom { object-position: center; transform-origin: center; }
.bio__portrait img.is-custom { object-position: center; }

/* Uploaded logos render as single-colour marks */
.credits__img { height: 18px; width: auto; max-width: 120px; object-fit: contain; filter: grayscale(1) brightness(0) invert(.93); opacity: .8; }
.credits__name { font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; }
.collab__img { height: clamp(44px, 6vw, 84px); width: auto; max-width: 240px; object-fit: contain; filter: grayscale(1) brightness(0) invert(.93); }
.collab__name { font-family: var(--f-display); font-weight: 800; font-variation-settings: "wdth" 75; font-size: clamp(2.5rem, 5vw, 4.5rem); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }

/* Featured projects (homepage) */
.featured { margin-top: var(--s-7); }
.featured__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-4); }
.fcard { display: grid; gap: 10px; }
.fcard__media { overflow: hidden; }
.fcard__media img { transition: transform 1.2s var(--ease-out); }
.fcard:hover .fcard__media img { transform: scale(1.05); }
.fcard__media .ph__num { font-size: clamp(3rem, 6vw, 5rem); }
.fcard__cat { color: var(--ember); }
.fcard__title { font-weight: 700; font-variation-settings: "wdth" 80; text-transform: uppercase; font-size: clamp(1.2rem, 1.6vw, 1.6rem); line-height: 1; letter-spacing: -.01em; transition: transform .6s var(--ease-out); }
.fcard:hover .fcard__title { transform: translateX(6px); }
.fcard__meta { color: var(--ash); }

/* Project cards: video badge */
.pcard__play { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 10px; border-radius: 999px; background: rgba(11,10,9,.65); color: var(--bone); backdrop-filter: blur(6px); }

/* Project detail: external video, links, gallery, credits */
.project__watch { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.project__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-4); }
.project__links .project__link { margin-top: 0; }
.project__links .btn--ghost { padding: 0 24px; border: 1px solid var(--line); }
.pgal { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); margin-top: var(--s-7); }
.pgal__item:first-child:nth-last-child(odd), .pgal__item--video { grid-column: 1 / -1; }
.pgal__img { overflow: hidden; background: var(--ink-3); }
.pgal__img img { width: 100%; height: auto; display: block; }
.pgal__item .ph iframe, .pgal__item .ph video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; background: #000; }
.pgal__item figcaption { margin-top: 10px; color: var(--ash); }
.pgal__ext { display: grid; place-items: center; color: var(--bone); }
.pgal__ext .mono { position: relative; z-index: 2; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.project__credits { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.project__credits h3 { color: var(--ash); margin-bottom: var(--s-3); }
.project__credits dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-3) var(--s-5); margin: 0; }
.project__credits dt { color: var(--ash); margin-bottom: 4px; }
.project__credits dd { margin: 0; font-size: 1.05rem; }

@media (max-width: 767px) {
  .featured__list { grid-template-columns: 1fr; }
  .pgal { grid-template-columns: 1fr; }
  .project__watch { white-space: normal; text-align: center; max-width: 80%; }
}

/* ==========================================================================
   One photo only — light and texture replace the repeated portrait
   ========================================================================== */
@keyframes atmos { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }

/* Logo strip: logos only */
.credits__viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.credits__group { gap: clamp(64px, 9vw, 140px); padding-right: clamp(64px, 9vw, 140px); }
.credits__logo svg { height: 20px; }
.credits__img { height: 20px; }

/* Showreel frame without a poster */
.reel__frame { background: radial-gradient(70% 80% at 50% 45%, #22201d 0%, #121110 70%), var(--ink-3); }
.reel__frame::after { content: ""; position: absolute; inset: 0; background: url("assets/images/grain.png"); background-size: 128px; opacity: .1; pointer-events: none; }

/* Work cards without photos: tonal panels until project covers exist */
.cat__media { background: radial-gradient(90% 70% at 25% 20%, rgba(122,100,80,.38), transparent 65%), radial-gradient(70% 60% at 85% 95%, rgba(94,94,72,.3), transparent 65%), var(--ink-3); }
.cat[data-cat="other-work"] .cat__media { background: radial-gradient(90% 70% at 75% 20%, rgba(94,94,72,.36), transparent 65%), radial-gradient(70% 60% at 15% 95%, rgba(208,138,78,.16), transparent 65%), var(--ink-3); }
.cat__media::before { content: ""; position: absolute; inset: 0; background: url("assets/images/grain.png"); background-size: 128px; opacity: .14; z-index: 1; pointer-events: none; }

/* Cinematography & story: a moving pool of light instead of a photo */
.craft__light, .story__light { position: absolute; inset: -20%; pointer-events: none; }
.craft__light { background: radial-gradient(34% 44% at 62% 48%, rgba(208,138,78,.34), transparent 70%), radial-gradient(50% 60% at 30% 70%, rgba(122,100,80,.14), transparent 75%); }
.story__light { background: radial-gradient(45% 55% at 70% 40%, rgba(208,138,78,.2), transparent 70%), radial-gradient(60% 70% at 25% 75%, rgba(94,94,72,.22), transparent 75%), #121110; animation: atmos 26s ease-in-out infinite alternate; }
.craft__media { background: var(--ink); }

/* Biography: editorial quote column instead of a portrait */
.bio__aside { position: sticky; top: 140px; }
.bio__aside .bio__quote { margin: 0; font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: 1.08; }

@media (max-width: 1023px) {
  .craft__media:not(.has-media) { display: none; }
  .craft__chapter { padding-bottom: var(--s-5); }
}

@media (max-width: 767px) {
  .bio__aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  .story__light { animation: none; }
}
/* No poster yet: keep the play button visible so the frame reads as a showreel */
.reel__frame:not(.has-media) .reel__play { opacity: 1 !important; }
.story__line { text-wrap: balance; max-width: 11ch; }


/* ==========================================================================
   Typography: Bebas Neue for display, Inter for text
   Bebas Neue is a single-weight, all-caps face — keep it at 400 (no faux bold)
   ========================================================================== */
.h2, .reel__word, .stat__num, .mission__line, .cat__title, .cat-hero__title, .pcard__title,
.project__title, .craft__title, .story__line, .contact__title, .footer__mark, .switch__title,
.fcard__title, .collab__name, .credits__name, .menu__links a, .leader__count, .project__nav strong,
.ph__num {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: normal;
  letter-spacing: .01em;
}
.h2 { line-height: .88; }
.mission__line { font-size: clamp(3rem, 7.4vw, 8.2rem); line-height: .92; max-width: 16ch; }
.craft__title { font-size: clamp(3.4rem, 7.6vw, 8.2rem); line-height: .88; }
.pcard__title { font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: .92; }
.project__title { line-height: .88; }
.stat__num { font-size: clamp(4rem, 8vw, 8rem); line-height: .85; }
.fcard__title { font-size: clamp(1.5rem, 2vw, 2rem); line-height: .95; }
.filmo td:first-child { font-family: var(--f-body); font-weight: 600; font-variation-settings: normal; letter-spacing: -.01em; }
.contact__list a { font-family: var(--f-body); font-variation-settings: normal; }
.cat-hero__title { letter-spacing: .005em; }

/* Hero logo strip reads like a poster billing block */
.hero .credits { background: none; border-top-color: rgba(242,237,228,.1); }
.hero .credits__group > li { color: rgba(242,237,228,.42); }

@media (max-width: 767px) {
  .hero { min-height: 560px; }
  .hero__photo { object-position: var(--focus-m, 80% 28%); transform-origin: var(--focus-m, 80% 28%); }
  .hero__grade {
    background:
      radial-gradient(140% 90% at 70% 28%, transparent 35%, rgba(5,5,5,.7) 100%),
      linear-gradient(0deg, rgba(5,5,5,.97) 0%, rgba(5,5,5,.75) 32%, rgba(5,5,5,0) 62%),
      linear-gradient(180deg, rgba(5,5,5,.6) 0%, rgba(5,5,5,0) 20%);
  }
  .hero__title { font-size: 27vw; line-height: .8; flex-direction: column; }
  .hero__role { font-size: 10.5px; letter-spacing: .34em; gap: 12px; }
  .hero__role::before { width: 24px; }
  .hero__content { padding-bottom: calc(var(--strip) + 32px); }
  .mission__line { font-size: 15vw; }
  .stat__num { font-size: 18vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__photo { animation: none; transform: none; }
}

/* ==========================================================================
   Photography — exhibition gallery
   ========================================================================== */
.ph-hero { border-bottom: 0; padding-bottom: var(--s-6); }
.ph-hero__intro { margin-top: var(--s-4); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.2; color: var(--bone-dim); max-width: 34ch; font-style: italic; }
.ph-nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: var(--s-6); }
.ph-nav a { color: var(--ash); padding: 6px 0; position: relative; transition: color .4s; }
.ph-nav a sup { font-size: 8px; margin-left: 2px; color: var(--ash); }
.ph-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--bone); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.ph-nav a:hover, .ph-nav a.is-active { color: var(--bone); }
.ph-nav a.is-active::after { transform: scaleX(1); }

/* Album index: each album is a room of the exhibition */
.ph-index { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(48px, 7vw, 120px) var(--s-4); padding: var(--s-5) var(--gutter) var(--section); }
.ph-room { display: grid; gap: 18px; align-content: start; }
.ph-room--0 { grid-column: 1 / span 7; }
.ph-room--1 { grid-column: 8 / span 5; margin-top: clamp(80px, 14vw, 220px); }
.ph-room--2 { grid-column: 3 / span 8; }
.ph-room__img { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.ph-room--2 .ph-room__img { aspect-ratio: 16 / 9; }
.ph-room__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.9); transform: scale(1.02); transition: transform 1.6s var(--ease-out), filter 1s var(--ease-out); }
.ph-room:hover .ph-room__img img { transform: scale(1.07); filter: brightness(1); }
.ph-room__meta { display: grid; gap: 6px; }
.ph-room__meta .mono { color: var(--ash); }
.ph-room__title { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 5.5rem); line-height: .9; letter-spacing: .01em; text-transform: uppercase; transition: transform .8s var(--ease-out); }
.ph-room:hover .ph-room__title { transform: translateX(12px); }

/* Album view */
.ph-album { padding: 0 var(--gutter) var(--section); }
.ph-album__head { display: grid; gap: 14px; padding: var(--s-4) 0 var(--s-7); max-width: 900px; }
.ph-album__back { color: var(--ash); justify-self: start; transition: color .4s; }
.ph-album__back:hover { color: var(--bone); }
.ph-album__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(3rem, 8vw, 8.5rem); line-height: .86; letter-spacing: .01em; text-transform: uppercase; }
.ph-album__desc { font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.3; color: var(--bone-dim); max-width: 44ch; font-style: italic; }
.ph-album__count { color: var(--ash); }

/* Editorial masonry */
.ph-gallery { display: grid; gap: clamp(28px, 4vw, 72px); }
.ph-masonry { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.ph-col { display: grid; gap: clamp(28px, 4vw, 72px); align-content: start; }
.ph-feature { width: min(100%, 1400px); margin: 0 auto; }
.ph-item { position: relative; margin: 0; opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out); }
.ph-item.is-in { opacity: 1; transform: none; }
.ph-item__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--ink-2); overflow: hidden; cursor: zoom-in; }
.ph-item__btn img { display: block; width: 100%; height: auto; transform: scale(1.001); transition: transform 1.4s var(--ease-out), filter .8s var(--ease-out); filter: brightness(.94); }
.ph-item__btn:hover img, .ph-item__btn:focus-visible img { transform: scale(1.03); filter: brightness(1.02); }
.ph-item__num { position: absolute; left: 0; bottom: -22px; color: var(--ash); opacity: 0; transition: opacity .5s; }
.ph-item:hover .ph-item__num { opacity: 1; }

/* Full-screen viewer */
.viewer { position: fixed; inset: 0; z-index: 980; background: #050505; display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .45s var(--ease-out); touch-action: pan-y; }
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; }
.viewer__top { display: flex; justify-content: space-between; align-items: center; padding: 22px var(--gutter); padding-top: max(22px, env(safe-area-inset-top)); color: var(--bone-dim); z-index: 2; }
.viewer__close { padding: 8px 0; color: var(--bone); }
.viewer__stage { position: relative; min-height: 0; margin: 0 clamp(16px, 7vw, 120px); }
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateX(var(--from, 0px)) scale(.985); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.viewer__img.is-in { opacity: 1; transform: none; }
.viewer__img.is-out { opacity: 0; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: clamp(48px, 7vw, 110px); height: 50%; display: grid; place-items: center; color: var(--bone-dim); font-size: 22px; transition: color .3s; z-index: 2; }
.viewer__nav:hover { color: var(--bone); }
.viewer__nav--prev { left: 0; }
.viewer__nav--next { right: 0; }
.viewer__info { display: grid; justify-items: center; gap: 6px; padding: 18px var(--gutter) max(26px, env(safe-area-inset-bottom)); text-align: center; min-height: 72px; }
.viewer__caption { font-size: clamp(1rem, 1.4vw, 1.25rem); font-style: italic; color: var(--bone); max-width: 60ch; }
.viewer__meta { color: var(--ash); }

/* Homepage band */
.ph-teaser { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 62vh, 640px); margin: 0 var(--gutter) var(--section); overflow: hidden; background: var(--ink-2); isolation: isolate; }
.ph-teaser[hidden] { display: none; }
.ph-teaser__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(.6); transform: scale(1.03); transition: transform 1.8s var(--ease-out), filter 1s var(--ease-out); }
.ph-teaser:hover .ph-teaser__img { transform: scale(1.08); filter: brightness(.72); }
.ph-teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,10,9,.85), rgba(11,10,9,0) 60%); }
.ph-teaser__body { display: grid; gap: 10px; padding: clamp(24px, 3vw, 44px); }
.ph-teaser__body .mono { color: var(--bone-dim); }
.ph-teaser__title { font-family: var(--f-display); font-size: clamp(3rem, 7vw, 7.5rem); line-height: .86; text-transform: uppercase; letter-spacing: .01em; }
.ph-teaser__text { color: var(--bone-dim); font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-style: italic; }

@media (max-width: 900px) {
  .ph-index { grid-template-columns: 1fr; }
  .ph-room--0, .ph-room--1, .ph-room--2 { grid-column: auto; margin-top: 0; }
}
@media (max-width: 767px) {
  .ph-nav { gap: 8px 20px; margin-top: var(--s-5); }
  .viewer__stage { margin: 0; }
  .viewer__nav { display: none; }
  .ph-item__num { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-item { opacity: 1; transform: none; }
}
.ph-index[hidden], .ph-album[hidden], .ph-nav[hidden], .ph-hero__intro[hidden], .ph-album__desc[hidden] { display: none; }

/* ==========================================================================
   Logo sizing — one standard logo height (the BBC/DW logos are the reference).
   Uploaded logos are trimmed of empty padding and given a --logo-scale based on
   their shape, so wide and compact logos carry the same visual weight.
   ========================================================================== */
.credits { --logo-h: clamp(17px, 4.8vw, 20px); }
.credits__logo svg { height: var(--logo-h); }
.credits__img { height: calc(var(--logo-h) * var(--logo-scale, 1)); width: auto; max-width: calc(var(--logo-h) * 7); }
.collab { --logo-h: clamp(44px, 6vw, 84px); }
.collab__img { height: calc(var(--logo-h) * var(--logo-scale, 1)); width: auto; max-width: calc(var(--logo-h) * 6); }

/* ==========================================================================
   Hero buttons — same shapes and motion, stronger type and contrast.
   DIN Condensed (built into Apple devices) with Bebas Neue as the fallback.
   ========================================================================== */
:root { --f-ui: "DIN Condensed", "DIN Alternate", "Bebas Neue", "Oswald", "Arial Narrow", sans-serif; }

/* The colour-inverting blend made the bar turn mid-grey over bright areas */
.nav { mix-blend-mode: normal; color: #F2EDE4; }
.nav__links a, .nav__cta, .nav__toggle, .hero__cta {
  font-family: var(--f-ui);
  font-weight: 700;
  font-synthesis: none;              /* never fake-bold the fallback face */
  font-size: 15px;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 14px rgba(0,0,0,.45);
}
.nav__links a { padding: 7px 0 5px; }
.nav__links a::before { background: #F2EDE4; }

/* Pill: a whisper of tinted glass behind the text, not a solid button */
.nav__cta {
  padding: 10px 18px 8px;
  border-color: rgba(242,237,228,.75);
  background: rgba(8,8,8,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out);
}
.nav__cta:hover { background: rgba(8,8,8,.45); border-color: #F2EDE4; }

/* Hero link */
.hero__cta { font-size: 16px; letter-spacing: .2em; color: rgba(242,237,228,.94); }
.hero__cta-rule { height: 1px; box-shadow: 0 0 6px rgba(0,0,0,.5); }

@media (max-width: 767px) {
  .nav__toggle { font-size: 15px; padding: 9px 14px 7px; border-radius: 999px; background: rgba(8,8,8,.28); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .hero__cta { font-size: 15px; }
}
