/* ==========================================================================
   PAUL VAN KAN — Director of Photography
   ========================================================================== */

:root {
  /* colour */
  --bg: #0b0a09;
  --bg-elev: #131210;
  --bg-float: #1b1916;
  --fg: #ece8e1;
  --fg-2: rgba(236, 232, 225, .64);
  --fg-3: rgba(236, 232, 225, .40);
  --line: rgba(236, 232, 225, .12);
  --line-2: rgba(236, 232, 225, .22);
  --accent: #ffc80a;            /* PVK gold, sampled from the new logo */
  --accent-ink: #0b0a09;

  /* type */
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Instrument Serif", "Times New Roman", Georgia, serif;   /* headlines — swap here to change the look */

  /* space — one scale, used everywhere */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --s5: 64px;
  --s6: 104px;
  --s7: 168px;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(var(--s6), 12vw, var(--s7));

  /* motion — spring-like expo out */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-fast: .35s;
  --t: .7s;
  --t-slow: 1.2s;

  /* depth */
  --shadow-float: 0 1px 1px rgba(0,0,0,.25), 0 12px 24px -8px rgba(0,0,0,.45), 0 40px 80px -24px rgba(12, 8, 0, .6);
  --z-header: 50;
  --z-grain: 60;
  --z-cursor: 70;
  --z-overlay: 100;

  /* film emulation for everything gold: chromatic aberration (orange fringe up-left,
     olive fringe down-right — they recombine to the gold) + warm red halation bloom */
  --ca-a: #ff5a00;
  --ca-b: #3caf0a;
  --film-text: -.007em -.0023em 0 var(--ca-a), .007em .0023em 0 var(--ca-b), 0 0 .13em rgba(255, 74, 20, .55), 0 0 .32em rgba(255, 46, 0, .32);
  --film-dot: -.6px -.2px 0 var(--ca-a), .6px .2px 0 var(--ca-b), 0 0 4px 1px rgba(255, 74, 20, .55), 0 0 10px 2px rgba(255, 46, 0, .28);
  --film-line: -.8px -.4px 0 var(--ca-a), .8px .4px 0 var(--ca-b), 0 0 4px rgba(255, 74, 20, .7), 0 0 10px rgba(255, 46, 0, .35);
  --film-disc: -.9px -.3px 0 var(--ca-a), .9px .3px 0 var(--ca-b), 0 0 12px rgba(255, 74, 20, .45), 0 0 30px rgba(255, 46, 0, .25);
  --film-icon: drop-shadow(-.5px -.15px 0 var(--ca-a)) drop-shadow(.5px .15px 0 var(--ca-b)) drop-shadow(0 0 3px rgba(255, 74, 20, .6));
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.locked { overflow: 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; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

/* film grain — sits above the page, below overlays */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .09;
  mix-blend-mode: overlay; /* texture without lifting blacks or tinting footage */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.skip {
  position: fixed; left: var(--s2); top: var(--s2); z-index: 200;
  padding: var(--s1) var(--s2); background: var(--accent); color: var(--accent-ink);
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- shared type */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; line-height: 1; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  font-variation-settings: "wdth" 112;
  color: var(--fg-2);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: var(--film-dot); }

.section { padding: var(--section) var(--gutter) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: var(--s3) var(--s4);
  margin-bottom: clamp(var(--s4), 5vw, var(--s5));
}
.section-head-title { display: grid; gap: var(--s3); }
.section-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(56px, 9vw, 148px); line-height: .86; letter-spacing: -.03em;
}
.section-count {
  font-family: var(--sans); font-size: 12px; letter-spacing: .1em; vertical-align: top;
  position: relative; top: .9em; margin-left: .2em; color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  height: 72px; padding: 0 var(--gutter);
  transition: transform var(--t) var(--ease), background-color var(--t) var(--ease);
}
.site-header::before { /* frosted bar appears after the hero */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 10, 9, .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.site-header.scrolled::before { opacity: 1; }
.site-header.tucked { transform: translateY(-100%); }

.brand { display: inline-flex; align-items: center; gap: 14px; }
/* PVK mark with a film-emulation treatment:
   the gold is split into its red + green channels (screen-blended back together),
   offset a fraction of a pixel for chromatic aberration, over a warm red halation bloom. */
.brand-mark { position: relative; display: inline-block; width: 26px; height: 26px; flex: none; isolation: isolate; }
.brand-mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.bm-halo { color: #ff4a14; opacity: .72; filter: blur(1.4px) drop-shadow(0 0 3.5px rgba(255, 46, 0, .6)); }
/* channel pair chosen so screen(orange, olive) = logo gold #ffc80a */
.bm-r { color: #ff5a00; mix-blend-mode: screen; transform: translate(-.3px, -.1px); }
.bm-g { color: #3caf0a; mix-blend-mode: screen; transform: translate(.3px, .1px); }
.brand:hover .brand-mark { animation: gate-weave .48s steps(4) infinite; }
.brand:hover .bm-r { transform: translate(-.9px, -.25px); }
.brand:hover .bm-g { transform: translate(.9px, .25px); }
.brand:hover .bm-halo { opacity: .9; animation: halation-flicker .36s steps(3) infinite; }
.brand:active .brand-mark { transform: scale(.92); }
@keyframes gate-weave {
  0% { transform: translate(0, 0); }
  25% { transform: translate(.35px, -.25px); }
  50% { transform: translate(-.2px, .3px); }
  75% { transform: translate(.15px, .1px); }
  100% { transform: translate(0, 0); }
}
@keyframes halation-flicker { 0% { opacity: .9; } 50% { opacity: .7; } 100% { opacity: .95; } }
.brand-name {
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  font-variation-settings: "wdth" 118;
}

.nav { display: flex; gap: clamp(var(--s3), 3vw, var(--s4)); }
.nav a, .text-link {
  position: relative; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  font-variation-settings: "wdth" 110; color: var(--fg-2); padding: 6px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav a::after, .text-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); box-shadow: var(--film-line);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t) var(--ease);
}
.nav a:hover, .nav a.active, .text-link:hover { color: var(--fg); }
.nav a:hover::after, .nav a.active::after, .text-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav a:active { opacity: .7; }

.menu-toggle { display: none; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 0; }
.menu-toggle-bars { display: grid; gap: 5px; width: 22px; }
.menu-toggle-bars i { display: block; height: 1px; background: currentColor; transition: transform var(--t) var(--ease); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:last-child { transform: translateY(-3px) rotate(-45deg); }
.menu-toggle:active { opacity: .7; }

.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-header) - 1);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) calc(var(--s4) + env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.mobile-menu.open { opacity: 1; }
.mobile-menu nav { display: grid; gap: var(--s1); }
.mobile-menu nav a {
  font-family: var(--display); font-size: clamp(56px, 16vw, 96px); line-height: 1; letter-spacing: -.03em;
  transform: translateY(24px); opacity: 0;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease), color var(--t-fast) var(--ease);
}
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: .05s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: .1s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: .15s; }
.mobile-menu nav a:active { color: var(--accent); }
.mobile-menu-foot { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: #000 center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s var(--ease), transform 3s var(--ease);
}
.hero-video.ready { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(90% 80% at 0% 100%, rgba(11,10,9,.7) 0%, rgba(11,10,9,0) 70%),
    linear-gradient(to bottom, rgba(11,10,9,.5) 0%, rgba(11,10,9,0) 18%, rgba(11,10,9,0) 32%, rgba(11,10,9,.45) 55%, rgba(11,10,9,.88) 100%);
}
.hero-inner {
  position: absolute; inset: auto 0 0; z-index: 2;
  display: grid; gap: var(--s3);
  padding: 0 var(--gutter) clamp(var(--s4), 5vw, var(--s5));
}
.hero-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(48px, 10vw, 200px); line-height: .82; letter-spacing: -.035em;
  margin-left: -.04em; white-space: nowrap; /* one line: "Paul van Kan" is ~4.2em wide */
  /* Film emulation to match the PVK mark: logo gold, chromatic aberration
     (orange fringe left, olive fringe right) and a warm red halation bloom. */
  color: var(--accent);
  text-shadow: var(--film-text);
}
.hero-title em { font-style: italic; }
/* padding/negative margin give the halation room inside the reveal mask without shifting layout */
.hero-title .line { display: inline-block; vertical-align: top; overflow: hidden; padding: .35em; margin: -.35em; }
.hero-title .line > span { display: inline-block; transform: translateY(170%); transition: transform 1.4s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-eyebrow, .hero-foot { opacity: 0; transform: translateY(12px); transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s; }
.is-loaded .hero-title .line > span { transform: none; }
.is-loaded .hero-eyebrow, .is-loaded .hero-foot { opacity: 1; transform: none; }
.hero-eyebrow { color: var(--fg); }

.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3);
  padding-top: var(--s3); border-top: 1px solid var(--line-2);
}
.hero-disciplines { display: flex; flex-wrap: wrap; gap: 6px 0; }
.hero-disciplines li {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  font-variation-settings: "wdth" 110; color: var(--fg-2);
}
.hero-disciplines li + li::before { content: "/"; margin: 0 14px; color: var(--fg-3); }

.reel-btn { display: inline-flex; align-items: center; gap: 14px; padding: 4px 0; }
.reel-btn-icon {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--film-disc);
  transition: transform var(--t) var(--ease);
}
.reel-btn-icon::after { /* halation bloom that swells on hover */
  content: ""; position: absolute; inset: -14px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(255, 74, 20, 0) 66%, rgba(255, 74, 20, .38) 78%, rgba(255, 46, 0, 0) 100%);
  opacity: 0; transform: scale(.85); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}
.reel-btn-icon svg { width: 20px; height: 20px; margin-left: 2px; }
.reel-btn-text { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-variation-settings: "wdth" 112; }
.reel-btn:hover .reel-btn-icon { transform: scale(1.1); }
.reel-btn:hover .reel-btn-icon::after { opacity: 1; transform: none; }
.reel-btn:active .reel-btn-icon { transform: scale(.94); }

/* ---------------------------------------------------------------- work controls */
.work-controls { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.filters { display: flex; flex-wrap: wrap; gap: 4px var(--s3); }
.filters button, .view-toggle button {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  font-variation-settings: "wdth" 108; color: var(--fg-3); padding: 8px 0;
  transition: color var(--t-fast) var(--ease);
}
.filters button sup { font-size: 9px; letter-spacing: .04em; top: -.2em; font-variant-numeric: tabular-nums; }
.filters button::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: var(--film-dot);
  transform: scale(0); transition: transform var(--t-fast) var(--ease);
  margin-right: -14px;
}
.filters button[aria-pressed="true"] { color: var(--fg); }
.filters button[aria-pressed="true"]::before { transform: scale(1); margin-right: 0; }
.filters button:hover, .view-toggle button:hover { color: var(--fg); }
.filters button:active, .view-toggle button:active { opacity: .6; }

.view-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.view-toggle button { padding: 6px 14px; border-radius: 999px; transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.view-toggle button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* ---------------------------------------------------------------- work grid */
.work-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(var(--s2), 2.4vw, var(--s4)); row-gap: clamp(var(--s4), 6vw, var(--s6));
}
.card { grid-column: span 12; display: block; }
@media (min-width: 760px) {
  .card { grid-column: span 6; }
  .card.wide { grid-column: span 12; }
}
.card-media {
  position: relative; overflow: hidden; background: var(--bg-elev);
  aspect-ratio: 16 / 9; border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
}
.card.wide .card-media { aspect-ratio: 2.39 / 1; }
@media (max-width: 759px) { .card.wide .card-media { aspect-ratio: 16 / 9; } }
.card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); opacity: 0;
  transition: transform var(--t-slow) var(--ease), opacity var(--t) var(--ease);
}
.card-media img.loaded { opacity: 1; }
.card-media::after { /* legibility gradient for the duration tag only */
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0));
  pointer-events: none;
}
.card-tag {
  position: absolute; left: var(--s2); bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85);
}
.card-tag svg { width: 12px; height: 12px; }
.card:hover .card-media img { transform: scale(1.04); }
.card:active .card-media img { transform: scale(1.02); }
.card:focus-visible { outline-offset: 8px; }

.card-meta {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px var(--s2);
  padding-top: var(--s2);
}
.card-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -.015em;
  transition: transform var(--t) var(--ease);
}
.card.wide .card-title { font-size: clamp(30px, 3.4vw, 52px); }
.card-year { font-size: 12px; letter-spacing: .1em; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.card-sub {
  grid-column: 1 / -1;
  font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; line-height: 1.5;
  font-variation-settings: "wdth" 108; color: var(--fg-2);
}
.card-sub span + span::before { content: "—"; margin: 0 10px; color: var(--fg-3); }
.card:hover .card-title { transform: translateX(6px); }

/* entrance */
.card, .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.card.in, .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- work index */
.work-index { border-top: 1px solid var(--line); }
.row {
  position: relative;
  display: grid; align-items: baseline; gap: var(--s3);
  grid-template-columns: 64px minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.2fr) 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: color var(--t-fast) var(--ease);
}
.row::before { /* hover wash */
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--bg-elev); opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.row:hover::before { opacity: 1; }
.row:active::before { opacity: .6; }
.row-year, .row-client, .row-cats {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3);
  font-variation-settings: "wdth" 108; font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.row-client { color: var(--fg-2); }
.row-title {
  font-family: var(--display); font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.015em;
  transition: transform var(--t) var(--ease);
}
.row-arrow { width: 20px; height: 20px; color: var(--accent); filter: var(--film-icon); opacity: 0; transform: translateX(-8px); transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease); align-self: center; }
.row:hover .row-title { transform: translateX(10px); }
.row:hover .row-arrow { opacity: 1; transform: none; }
@media (max-width: 759px) {
  .row { grid-template-columns: 1fr auto; gap: 4px var(--s2); padding: var(--s2) 0; }
  .row-year { grid-column: 2; grid-row: 1; }
  .row-title { grid-column: 1; grid-row: 1; }
  .row-client { grid-column: 1 / -1; }
  .row-cats, .row-arrow { display: none; }
}

.index-preview {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor);
  width: clamp(240px, 22vw, 380px); aspect-ratio: 16 / 9; pointer-events: none;
  overflow: hidden; border-radius: 2px; box-shadow: var(--shadow-float);
  opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.index-preview.on { opacity: 1; }
.index-preview img { width: 100%; height: 100%; object-fit: cover; }

.work-more { display: flex; justify-content: center; padding-top: clamp(var(--s5), 7vw, var(--s6)); }
.work-more[hidden] { display: none; }
.text-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-variation-settings: "wdth" 110;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.text-btn sup { font-size: 9px; color: var(--fg-3); transition: color var(--t-fast) var(--ease); }
.text-btn svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.text-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.text-btn:hover sup { color: var(--bg); }
.text-btn:hover svg { transform: translateX(4px); }
.text-btn:active { transform: scale(.98); }

/* ---------------------------------------------------------------- clients */
.clients-head { margin-bottom: var(--s4); }
.clients-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
@media (min-width: 1200px) { .clients-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.clients-grid li {
  display: grid; place-items: center; height: clamp(96px, 9vw, 132px); padding: var(--s3);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.clients-grid img {
  max-width: min(120px, 78%); max-height: 40px; width: auto; height: auto; object-fit: contain;
  opacity: .55; transform: scale(var(--s, 1));
  transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.clients-grid li:hover img { opacity: 1; transform: scale(calc(var(--s, 1) * 1.06)); }

/* ---------------------------------------------------------------- stills */
.stills-grid { --sg: clamp(var(--s1), 1.4vw, var(--s3)); display: flex; align-items: flex-start; gap: var(--sg); }
.stills-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sg); }
.still {
  position: relative; display: block; width: 100%; overflow: hidden;
  background: var(--bg-elev); border-radius: 2px;
}
.still img { width: 100%; height: auto; opacity: 0; transition: transform var(--t-slow) var(--ease), opacity var(--t) var(--ease); }
.still img.loaded { opacity: 1; }
.still-label {
  position: absolute; left: var(--s2); bottom: var(--s2);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(6px); transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease);
  text-shadow: 0 1px 12px rgba(0,0,0,.6);
}
.still:hover img { transform: scale(1.03); }
.still:hover .still-label { opacity: 1; transform: none; }
.still:active img { transform: scale(1.015); }
.still.is-hidden { display: none; }

/* ---------------------------------------------------------------- about */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s5) clamp(var(--s3), 3vw, var(--s5)); align-items: start; }
.about-intro { grid-column: 1 / span 10; display: grid; gap: var(--s3); }
.about-lead { font-family: var(--display); font-size: clamp(32px, 3.6vw, 64px); line-height: 1.04; letter-spacing: -.025em; max-width: 32ch; }
.about-photo { grid-column: 1 / -1; overflow: hidden; border-radius: 2px; background: var(--bg-elev); }
.about-photo img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 35%;
  transform: scale(1.04); transition: transform 2.4s var(--ease);
}
.about-photo.in img { transform: none; }
.about-body { grid-column: 1 / span 7; display: grid; gap: var(--s3); max-width: 62ch; color: var(--fg-2); font-size: 17px; }
.about-body p:first-child { color: var(--fg); }
.about-facts { grid-column: 9 / -1; display: grid; grid-template-columns: max-content 1fr; gap: 14px var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.about-facts dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); padding-top: 4px; font-variation-settings: "wdth" 110; }
.about-facts dd { font-size: 15px; }
.about-facts a { border-bottom: 1px solid var(--line-2); transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.about-facts a:hover { border-color: var(--accent); color: var(--accent); text-shadow: var(--film-text); }
@media (max-width: 899px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: var(--s4); } /* single column: 11 grid gaps alone were wider than a phone */
  .about-intro, .about-body, .about-facts { grid-column: 1 / -1; }
  .about-photo img { aspect-ratio: 3 / 2; }
}

/* ---------------------------------------------------------------- contact */
.contact { display: grid; gap: var(--s4); padding-bottom: var(--section); }
.contact-title { font-family: var(--display); font-weight: 400; font-size: clamp(56px, 10vw, 168px); line-height: .9; letter-spacing: -.035em; }
.contact-title em { font-style: italic; color: var(--accent); text-shadow: var(--film-text); }
.contact-cta a {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--display); font-size: clamp(28px, 4vw, 60px); line-height: 1.1; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line-2); padding-bottom: 6px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  overflow-wrap: anywhere;
}
.contact-cta a svg { width: .7em; height: .7em; flex: none; transition: transform var(--t) var(--ease); }
.contact-cta a:hover { color: var(--accent); border-color: var(--accent); text-shadow: var(--film-text); }
.contact-cta a:hover svg { transform: translateX(8px); }
.contact-cta a:active { opacity: .7; }
.contact-cta { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); }
/* email text is generated by CSS from two halves, never present as page text */
.email-link { flex-wrap: wrap; gap: .1em .38em; }
.email-link .em-lead { color: var(--fg); }
.email-link svg { color: var(--fg-2); }
.email-link .em-addr { color: var(--accent); text-shadow: var(--film-text); }
.contact-cta a.email-link:hover { color: var(--fg); text-shadow: none; border-color: var(--accent); }
.em-u::before { content: attr(data-t); }
.em-d::before { content: "\0040" attr(data-t); }
.contact-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2);
  padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}
.footer-left { display: flex; align-items: center; gap: 12px; }
.footer-left .brand-mark { width: 18px; height: 18px; }
.footer-top { display: inline-flex; align-items: center; gap: 10px; transition: color var(--t-fast) var(--ease); }
.footer-top svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform var(--t) var(--ease); }
.footer-top:hover { color: var(--fg); }
.footer-top:hover svg { transform: rotate(-90deg) translateX(3px); }

/* ---------------------------------------------------------------- player */
.player, .lightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(6, 6, 5, .97);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.player.open, .lightbox.open { opacity: 1; }
.player {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 0 var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom));
}
.player[hidden], .lightbox[hidden] { display: none; }
.player-bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.player-count { font-size: 11px; letter-spacing: .16em; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.player-close, .lightbox-close {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
  padding: 10px 0; transition: color var(--t-fast) var(--ease);
}
.player-close svg, .lightbox-close svg { width: 22px; height: 22px; transition: transform var(--t) var(--ease); }
.player-close:hover, .lightbox-close:hover { color: var(--fg); }
.player-close:hover svg, .lightbox-close:hover svg { transform: rotate(90deg); }
.player-close:active, .lightbox-close:active { opacity: .6; }

.player-stage { display: grid; place-items: center; min-height: 0; }
.player-frame {
  --ar: 1.7778;
  position: relative; width: min(100%, calc((100svh - 300px) * var(--ar)), 1600px);
  aspect-ratio: var(--ar); background: #000; box-shadow: var(--shadow-float);
  transform: translateY(24px) scale(.98); opacity: 0;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}
.player.open .player-frame { transform: none; opacity: 1; }
.player-frame iframe, .player-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.player-info {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: var(--s3) var(--s5);
  width: min(100%, 1600px); margin: 0 auto; padding-top: var(--s3);
}
.player-title { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 3vw, 44px); line-height: 1; letter-spacing: -.02em; }
.player-client { margin-top: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); }
.player-credits { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.player-credits div { display: grid; gap: 2px; }
.player-credits dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.player-credits dd { font-size: 13px; }
.player-nav { display: flex; gap: var(--s3); }
.player-prev, .player-next {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2);
  padding: 10px 0; transition: color var(--t-fast) var(--ease);
}
.player-prev svg, .player-next svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); }
.player-prev svg { transform: rotate(180deg); }
.player-next-title { font-family: var(--display); font-size: 18px; letter-spacing: 0; text-transform: none; color: var(--fg); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-prev:hover, .player-next:hover { color: var(--fg); }
.player-prev:hover svg { transform: rotate(180deg) translateX(4px); }
.player-next:hover svg { transform: translateX(4px); }
.player-prev:active, .player-next:active { opacity: .6; }
.player.is-reel .player-info { display: none; }
.player.is-reel .player-frame { width: min(100%, calc((100svh - 140px) * var(--ar)), 1800px); }
@media (max-width: 899px) {
  .player-info { grid-template-columns: 1fr; gap: var(--s2); }
  .player-nav { justify-content: space-between; border-top: 1px solid var(--line); padding-top: var(--s1); }
  .player-frame { width: min(100%, calc((100svh - 360px) * var(--ar))); }
  .player-next-label { display: none; }
}

/* ---------------------------------------------------------------- lightbox */
.lightbox { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; padding: 72px var(--gutter) var(--s4); }
.lightbox-close { position: absolute; top: var(--s2); right: var(--gutter); }
.lightbox-figure { display: grid; justify-items: center; gap: var(--s2); }
.lightbox-figure img {
  max-width: 100%; max-height: calc(100svh - 170px); width: auto; height: auto; box-shadow: var(--shadow-float);
  transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.lightbox-figure img.swap { opacity: 0; transform: scale(.985); }
.lightbox-figure figcaption { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.lightbox-prev, .lightbox-next { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); justify-self: center; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t) var(--ease); }
.lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-prev svg { transform: rotate(180deg); }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--fg); color: var(--bg); }
.lightbox-prev:active, .lightbox-next:active { transform: scale(.94); }
@media (max-width: 759px) {
  .lightbox { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto; padding-inline: var(--s2); }
  .lightbox-figure { grid-column: 1 / -1; grid-row: 1; }
  .lightbox-prev, .lightbox-next { grid-row: 2; }
}

/* ---------------------------------------------------------------- cursor label */
.cursor {
  position: fixed; left: 0; top: 0; z-index: var(--z-cursor); pointer-events: none;
  display: grid; place-items: center; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--film-disc);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transform: translate3d(-200px, -200px, 0) scale(0); will-change: transform;
}
@media (hover: none), (pointer: coarse) { .cursor, .index-preview { display: none; } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 759px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero-foot { gap: var(--s2); }
  .hero-title { font-size: clamp(44px, 15vw, 64px); }
  .hero-disciplines { gap: 8px 16px; }
  .hero-disciplines li { font-size: 10px; letter-spacing: .14em; }
  .hero-disciplines li + li::before { content: none; }
  .reel-btn-icon { width: 48px; height: 48px; }
  .work-controls { width: 100%; justify-content: space-between; }
  .filters { gap: 0 var(--s2); }
  .section-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .card, .reveal { opacity: 1; transform: none; }
}
