/* ============================================================
   MOVEMENT HOUSE — STYLES
   Brand palette (from MH brand set)
     charcoal  #262527   ground
     panel     #2B2926   logo charcoal / surfaces
     bone      #EDEBE4 -> #EAE9E3 brand bone, text
     smoke     #8E8B84   muted metadata
     rust      #A74F1E   brand rust (accent, live states)
     camel     #B38650   brand camel (tags, secondary)
     olive     #565338   brand olive (reserved)
   Type (brand: Interstate + New Spirit)
     Interstate Bold  — display + labels (fallback: Overpass)
     New Spirit       — bios, mission, briefs (fallback: Fraunces)
   Drop licensed woff2 files into assets/fonts/ and the
   @font-face rules below pick them up automatically.
   ============================================================ */

@font-face {
  font-family: "Interstate";
  src: url("assets/fonts/Interstate-Bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "New Spirit";
  src: url("assets/fonts/NewSpirit-Medium.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "New Spirit";
  src: url("assets/fonts/NewSpirit-SemiBold.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}

:root {
  --ink: #262527;
  --panel: #2b2926;
  --bone: #eae9e3;
  --smoke: #8e8b84;
  --rust: #a74f1e;
  --tally: #a74f1e;
  --camel: #b38650;
  --olive: #565338;
  --graphite: #2b2926;
  --hair: rgba(234, 233, 227, 0.16);
  --nav-h: 64px;
  --pad: clamp(20px, 4vw, 56px);
  --display: "Interstate", "Overpass", sans-serif;
  --serif: "New Spirit", "Fraunces", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }
ul { list-style: none; }

.mono {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.65;
}
.serif p + p { margin-top: 1.1em; }

::selection { background: var(--tally); color: var(--bone); }

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

/* ============================ INTRO ============================ */
/* The lockup assembles from 8 black puzzle pieces (badge quadrants
   + split text lines) flying in from scattered positions, then the
   whole panel slides out LEFT (Fancy-style) to reveal the reel. */
#intro {
  position: fixed; inset: 0; z-index: 100;
  background: var(--camel);
  display: flex; align-items: center; justify-content: center;
  transform: translateX(0);
}
#intro.done {
  transform: translateX(-102%);
  transition: transform 0.65s cubic-bezier(0.7, 0, 0.18, 1);
}
#intro.gone { display: none; }

.intro-lockup {
  width: clamp(220px, 34vh, 340px);
  aspect-ratio: 1200 / 1467;
  position: relative;
  animation: lockPulse 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) 1.90s;
}
@keyframes lockPulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.016); }
  100% { transform: scale(1); }
}
.intro-lockup .piece {
  position: absolute; inset: 0;
  background-color: var(--panel);
  -webkit-mask: url("assets/brand/lockup.png") center / contain no-repeat;
  mask: url("assets/brand/lockup.png") center / contain no-repeat;
  clip-path: var(--clip);
  transform: var(--from);
  opacity: 0;
  animation: assemble var(--dur) var(--ease) var(--d) forwards;
  will-change: transform, opacity;
}
@keyframes assemble {
  0%   { opacity: 0; transform: var(--from); }
  30%  { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}

.piece.badge {
  --clip: inset(0% 0% 31% 0%);
  animation: badgeFocus 1.2s cubic-bezier(0.3, 0.8, 0.3, 1) 0.15s forwards;
}
@keyframes badgeFocus {
  0%   { opacity: 0; filter: blur(18px); transform: scale(1.04); }
  35%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
.piece:nth-child(2) { --clip: inset(78.3% 88.8% 12.799999999999997% 0.2%); --from: translate(15%, 36%) rotate(-3.2deg); --dur: 0.60s; --ease: cubic-bezier(0.34, 1.56, 0.56, 1); --d: 0.52s; }
.piece:nth-child(3) { --clip: inset(78.3% 75.5% 12.799999999999997% 13.9%); --from: translate(39%, 33%) rotate(2.5deg); --dur: 0.68s; --ease: cubic-bezier(0.30, 1.42, 0.48, 1); --d: 0.58s; }
.piece:nth-child(4) { --clip: inset(78.3% 63.3% 12.799999999999997% 26.2%); --from: translate(-45%, -3%) rotate(3.0deg); --dur: 0.68s; --ease: cubic-bezier(0.26, 1.30, 0.52, 1); --d: 0.57s; }
.piece:nth-child(5) { --clip: inset(78.3% 51.7% 12.799999999999997% 39.8%); --from: translate(-38%, -3%) rotate(-4.5deg); --dur: 0.72s; --ease: cubic-bezier(0.30, 1.42, 0.48, 1); --d: 0.60s; }
.piece:nth-child(6) { --clip: inset(78.3% 37.1% 12.799999999999997% 51.9%); --from: translate(-1%, 53%) rotate(4.5deg); --dur: 0.67s; --ease: cubic-bezier(0.30, 1.42, 0.48, 1); --d: 0.71s; }
.piece:nth-child(7) { --clip: inset(78.3% 24.8% 12.799999999999997% 66.8%); --from: translate(18%, 41%) rotate(-3.1deg); --dur: 0.66s; --ease: cubic-bezier(0.34, 1.56, 0.56, 1); --d: 0.76s; }
.piece:nth-child(8) { --clip: inset(78.3% 11.4% 12.799999999999997% 78.9%); --from: translate(-39%, -2%) rotate(4.3deg); --dur: 0.78s; --ease: cubic-bezier(0.30, 1.42, 0.48, 1); --d: 0.85s; }
.piece:nth-child(9) { --clip: inset(78.3% 0.0% 12.799999999999997% 91.4%); --from: translate(-1%, 51%) rotate(-4.3deg); --dur: 0.68s; --ease: cubic-bezier(0.30, 1.42, 0.48, 1); --d: 0.87s; }
.piece:nth-child(10) { --clip: inset(91.7% 94.4% 0.0% 0.3%); --from: translate(45%, -1%) rotate(-5.7deg); --dur: 0.71s; --ease: cubic-bezier(0.30, 1.42, 0.48, 1); --d: 0.89s; }
.piece:nth-child(11) { --clip: inset(91.7% 86.9% 0.0% 7.0%); --from: translate(-10%, 25%) rotate(-4.5deg); --dur: 0.69s; --ease: cubic-bezier(0.30, 1.42, 0.48, 1); --d: 0.94s; }
.piece:nth-child(12) { --clip: inset(91.7% 70.3% 0.0% 20.2%); --from: translate(-46%, 4%) rotate(5.7deg); --dur: 0.78s; --ease: cubic-bezier(0.26, 1.30, 0.52, 1); --d: 1.00s; }
.piece:nth-child(13) { --clip: inset(91.7% 56.5% 0.0% 32.8%); --from: translate(-1%, 42%) rotate(5.1deg); --dur: 0.79s; --ease: cubic-bezier(0.30, 1.42, 0.48, 1); --d: 1.08s; }
.piece:nth-child(14) { --clip: inset(91.7% 43.8% 0.0% 46.6%); --from: translate(32%, 45%) rotate(-5.1deg); --dur: 0.62s; --ease: cubic-bezier(0.26, 1.30, 0.52, 1); --d: 1.15s; }
.piece:nth-child(15) { --clip: inset(91.7% 31.0% 0.0% 59.5%); --from: translate(52%, 9%) rotate(2.6deg); --dur: 0.74s; --ease: cubic-bezier(0.34, 1.56, 0.56, 1); --d: 1.13s; }
.piece:nth-child(16) { --clip: inset(91.7% 19.6% 0.0% 72.0%); --from: translate(-34%, 18%) rotate(-2.8deg); --dur: 0.73s; --ease: cubic-bezier(0.26, 1.30, 0.52, 1); --d: 1.14s; }
.piece:nth-child(17) { --clip: inset(91.7% 7.2% 0.0% 87.5%); --from: translate(6%, 45%) rotate(-4.0deg); --dur: 0.75s; --ease: cubic-bezier(0.34, 1.56, 0.56, 1); --d: 1.27s; }
.piece:nth-child(18) { --clip: inset(91.7% 0.0% 0.0% 94.3%); --from: translate(-41%, 9%) rotate(2.9deg); --dur: 0.61s; --ease: cubic-bezier(0.26, 1.30, 0.52, 1); --d: 1.31s; }

.intro-meta {
  position: absolute; bottom: 32px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between;
  color: var(--panel);
  opacity: 0;
  animation: metaSnap 0.3s ease 2.17s forwards;
}
@keyframes metaSnap { to { opacity: 1; } }

.intro-skip {
  position: absolute; top: 24px; right: var(--pad);
  color: var(--panel);
  opacity: 0.6;
  padding: 8px;
}
.intro-skip:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .pressed { animation: none !important; }
  .intro-lockup { animation: none; }
  .intro-lockup .piece { animation: none; opacity: 1; transform: none; }
  .intro-meta { animation-delay: 0.1s; }
  #intro.done { transition-duration: 0.01s; }
}

/* ============================ NAV ============================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  color: var(--bone);
  text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 0 18px rgba(0,0,0,0.35);
}
/* a scrim that fades down from the top edge so the bar reads over any reel;
   it runs well past the bar's own height and never takes the pointer */
#nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: calc(var(--nav-h) * 2.4);
  background: linear-gradient(to bottom, rgba(14,14,15,0.82) 0%, rgba(14,14,15,0.55) 38%, rgba(14,14,15,0.22) 70%, transparent 100%);
  pointer-events: none; z-index: -1;
}
/* the zine project pages are paper: the bar goes to ink over a paper fade */
body[data-page="project"] #nav { color: #141414; text-shadow: none; }
body[data-page="project"] #nav::before {
  background: linear-gradient(to bottom, rgba(232,226,211,0.92) 0%, rgba(232,226,211,0.6) 45%, transparent 100%);
}
body[data-page="project"] .nav-badge { background-color: #141414; }
.nav-mark {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.24em;
  white-space: nowrap;
}
.nav-badge {
  width: 30px; height: 30px; flex: none;
  background-color: var(--bone);
  -webkit-mask: url("assets/brand/badge-black.png") center / contain no-repeat;
  mask: url("assets/brand/badge-black.png") center / contain no-repeat;
}
.nav-links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-links a { position: relative; padding: 6px 0; color: inherit; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

/* press feedback: a control answers the click before the page moves.
   .pressed is added on pointerdown (app.js) and cleared after the pulse */
.nav-links a, .mobile-links a, .person-name, .tile, .zine-back, .zine-next, .box-tab, .back-link, .still { -webkit-tap-highlight-color: transparent; }
.nav-links a:active, .mobile-links a:active { color: var(--camel); }
.nav-links a.pressed { animation: navPress 0.5s ease-out; }
.nav-links a.pressed::after { transform: scaleX(1); transition: none; background: var(--camel); }
.mobile-links a.pressed { animation: navPress 0.5s ease-out; }
@keyframes navPress { 0% { color: var(--camel); transform: translateY(2px); } 35% { color: var(--camel); } 100% { transform: none; } }
.person-name:active { color: var(--camel); transform: translateX(6px); }
.person-name.pressed { animation: namePress 0.5s ease-out; }
.person-name.pressed::after { opacity: 1; }
@keyframes namePress { 0% { color: var(--camel); transform: translateX(6px) scale(0.985); } 100% { transform: none; } }
.tile:active img, .tile:active video { transform: scale(0.985); }
.tile.pressed { animation: tilePress 0.5s ease-out; }
@keyframes tilePress { 0% { box-shadow: inset 0 0 0 5px var(--bone); transform: scale(0.985); } 100% { box-shadow: inset 0 0 0 0 transparent; transform: none; } }
.zine-back:active, .zine-back.pressed { background: var(--red); color: var(--paper); }
.zine-next:active, .zine-next.pressed { background: var(--red); }
.box-tab:active { background: var(--red); color: var(--paper); }
.box-tab.pressed { animation: tabPress 0.4s ease-out; }
@keyframes tabPress { 0% { background: var(--red); color: var(--paper); } 100% { } }
.still:active, .still.pressed { transform: translateY(2px); }

.nav-burger { display: none; width: 40px; height: 40px; position: relative; }
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: var(--bone); transition: transform 0.3s ease, top 0.3s ease;
}
.nav-burger span:first-child { top: 15px; }
.nav-burger span:last-child { top: 23px; }
body.menu-open .nav-burger span:first-child { top: 19px; transform: rotate(45deg); }
body.menu-open .nav-burger span:last-child { top: 19px; transform: rotate(-45deg); }

#mobileMenu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
body.menu-open #mobileMenu { opacity: 1; visibility: visible; }
.mobile-links { display: flex; flex-direction: column; gap: 8px; }
.mobile-links a {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1.15;
}
.mobile-menu-foot {
  position: absolute; bottom: 40px; left: var(--pad);
  display: flex; gap: 28px; color: var(--smoke);
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* ============================ PAGES ============================ */
.page { display: none; min-height: 100svh; }
.page.on { display: block; }

/* ---- page push (see swapPages in app.js); --dir is 1 forward, -1 back ----
   The new page slides in over the old one across the full width and settles
   with a long ease-out; the old page drifts a third of the way in the same
   direction underneath and dims, like a card being pushed off a stack.
   No opacity on the pages themselves, so nothing double-exposes and the
   dark body never shows through mid-move. */
main { position: relative; }
.page.leaving, .page.entering {
  will-change: transform; backface-visibility: hidden;
}
.page.leaving {
  /* !important: #page-work / #page-mission / #page-person set position:
     relative by id, which would otherwise win and keep the leaving page in
     flow, pushing the entering page below the fold for the whole move. */
  position: absolute !important; inset: 0; z-index: 1; pointer-events: none;
  animation: pageLeave 0.72s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
.page.leaving::after {
  content: ""; position: absolute; inset: 0; z-index: 5;
  background: var(--ink);
  animation: pageDim 0.72s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
.page.entering {
  position: relative; z-index: 2; pointer-events: none;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.55);
  animation: pageEnter 0.72s cubic-bezier(0.32, 0.72, 0, 1) both;
}
@keyframes pageEnter {
  from { transform: translate3d(calc(var(--dir, 1) * 100%), 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
@keyframes pageLeave {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(var(--dir, 1) * -32%), 0, 0); }
}
@keyframes pageDim {
  from { opacity: 0; }
  to   { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  .page.leaving, .page.entering, .page.leaving::after { animation: none; }
}

/* desktop: every page locks to one viewport, no scrolling */
@media (min-width: 761px) {
  body { overflow: hidden; }
  .page.on { height: 100svh; overflow: hidden; }
}

.page-head { padding: calc(var(--nav-h) + 48px) var(--pad) 32px; }
.page-eyebrow { color: var(--camel); margin-bottom: 14px; }
.page-title {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(48px, 10vw, 120px);
  line-height: 0.95;
}
.back-link {
  display: inline-block; color: var(--smoke);
  margin: calc(var(--nav-h) + 28px) var(--pad) 20px;
}
.back-link:hover { color: var(--bone); }

/* ============================ HOME ============================ */
#page-home.on { display: flex; }
#page-home {
  position: relative;
  flex-direction: column; justify-content: center;
  min-height: 100svh;
}

.home-bg { position: absolute; inset: 0; overflow: hidden; }
.home-bg-layer {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.8s ease;
}
.home-bg-layer.show { opacity: 1; }
.home-bg-layer video, .home-bg-layer iframe, .home-bg-layer .bg-media video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100vh; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(var(--zoom, 1));
  border: 0; object-fit: cover; pointer-events: none;
}
.home-bg-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to left, rgba(38,37,39,0.78), rgba(38,37,39,0.22) 55%, rgba(38,37,39,0.5)),
    linear-gradient(to top, rgba(38,37,39,0.8), transparent 35%);
}

.bg-media { position: absolute; inset: 0; }
.bg-media video { opacity: 0; transition: opacity 0.6s ease; }
.bg-media video.ready { opacity: 1; }

/* animated placeholder for missing reels */
.ph-reel {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at var(--phx, 30%) 40%, var(--ph1, #2a2f38) 0%, transparent 60%),
    radial-gradient(100% 100% at 75% 70%, var(--ph2, #1a1c22) 0%, var(--ink) 70%);
  animation: phDrift 14s ease-in-out infinite alternate;
}
.ph-reel::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.10; mix-blend-mode: overlay;
}
@keyframes phDrift { from { --phx: 25%; filter: brightness(1); } to { --phx: 70%; filter: brightness(1.25); } }
@media (prefers-reduced-motion: reduce) { .ph-reel { animation: none; } }

.roster {
  position: relative; z-index: 2;
  padding: calc(var(--nav-h) + 24px) var(--pad) 90px;
  display: flex; justify-content: flex-end;
}
.roster-list { text-align: right; }

.roster-list li a {
  display: block;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(14px, 2.2vw, 26px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--bone);
  transition: color 0.35s ease, letter-spacing 0.5s ease;
  padding: 3px 0;
}
.roster-list li a .r-name { display: block; }
.roster-list li a.hot {
  color: var(--camel);
  letter-spacing: 0.055em;
}
.roster-list li a .r-role {
  display: block;
  font-family: var(--display); font-weight: 700;
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--camel);
  max-height: 0; overflow: hidden;
  opacity: 0; transform: translateY(-4px);
  transition: max-height 0.35s ease, opacity 0.3s ease 0.05s, transform 0.35s ease;
}
.roster-list li a.hot .r-role {
  max-height: 22px; opacity: 1; transform: translateY(0);
  padding-top: 2px;
}


/* ============================ PERSON ============================ */
#page-person { position: relative; }
.person-hero {
  position: relative;
  height: 100svh; min-height: 480px;
  overflow: hidden;
}
.person-hero-media { position: absolute; inset: 0; }
.person-hero-media video, .person-hero-media iframe, .person-hero-media .bg-media video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(var(--zoom, 1));
  border: 0; object-fit: cover; pointer-events: none;
}
.person-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.85), rgba(10,10,11,0.1) 55%);
}
.person-hero-text {
  position: absolute; left: var(--pad); right: var(--pad);
  bottom: clamp(160px, 24svh, 220px);
}
.person-role { color: var(--camel); margin-bottom: 10px; }
.person-name {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(34px, 7vw, 88px);
  line-height: 0.95;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
  cursor: pointer;
  display: inline-block;
  transition: color 0.3s ease;
}
.person-name:hover, .person-name:focus-visible { color: var(--camel); }
.person-name::after {
  content: "BIOGRAPHY";
  font-family: var(--display);
  font-size: 10px; letter-spacing: 0.22em;
  vertical-align: super;
  margin-left: 16px;
  color: var(--camel);
  opacity: 0; transition: opacity 0.3s ease;
}
.person-name:hover::after, .person-name:focus-visible::after { opacity: 1; }
.person-hero-title { color: var(--smoke); }
.person-hero-play {
  position: absolute; top: calc(var(--nav-h) + 18px); right: var(--pad);
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em;
  border: 1px solid var(--hair); padding: 10px 16px;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s, color 0.3s;
}
.person-hero-play:hover { border-color: var(--tally); color: var(--tally); }

.person-sub {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; z-index: 3;
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: nowrap;
}
/* solo collaborator (fewer than two projects): no row, name drops low */
#page-person.solo .person-sub { display: none; }
#page-person.solo .person-hero-text { bottom: clamp(56px, 9svh, 96px); }

.person-grid {
  display: flex; gap: 14px; min-width: 0;
}
.person-grid .tile {
  flex: none;
  width: clamp(150px, 15vw, 210px);
}
.tile {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--graphite);
  cursor: pointer;
  border: 0; padding: 0; text-align: left;
}
.tile .tile-media { position: absolute; inset: 0; }
.tile img, .tile video, .tile .bg-media video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.tile:hover img, .tile:hover video { transform: scale(1.04); }
.tile .tile-label {
  position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 2;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.tile .tile-client {
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--smoke);
  display: block; margin-bottom: 4px;
}
.tile .tile-title {
  font-weight: 700; text-transform: uppercase;
  font-size: 17px;
  color: var(--bone);
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,11,0.7), transparent 45%);
}
.tile .tile-play {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: 10px;
  letter-spacing: 0.14em; color: var(--bone);
  opacity: 0; transition: opacity 0.3s;
}
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; }

/* ============================ WORK GRID ============================ */
/* Wall-to-wall marquee: rows of playing videos drifting in alternating
   directions, no gaps, titles on hover only. */
#page-work { position: relative; }
.work-rows {
  --rows: 4;
  --rowH: calc((100svh - var(--nav-h)) / var(--rows));
  position: absolute;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--ink);
}
.work-row { flex: 1; min-height: 0; overflow: hidden; }
.work-track {
  display: flex; height: 100%; width: max-content;
  animation: rowDrift var(--speed, 40s) linear infinite;
  animation-direction: reverse; /* base row: content moves left→right */
  will-change: transform;
}
.work-row.rev .work-track { animation-direction: normal; } /* next row: right→left */
@keyframes rowDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .work-track { animation: none; } }

.work-row .tile {
  --tileW: calc(100vw / var(--n));
  flex: none;
  width: var(--tileW);
  height: 100%;
  aspect-ratio: auto;
}
.work-row .tile iframe {
  --ar: 1.7778;
  position: absolute; top: 50%; left: 50%;
  width: max(var(--tileW), calc(var(--rowH) * var(--ar)));
  height: max(var(--rowH), calc(var(--tileW) / var(--ar)));
  transform: translate(-50%, -50%) scale(var(--zoom, 1));
  border: 0; pointer-events: none;
}
.work-row .tile video { transform-origin: center; }
.work-row .tile .bg-media { position: absolute; inset: 0; }
/* titles only on hover */
.work-row .tile .tile-label { opacity: 0; transition: opacity 0.3s ease; }
.work-row .tile:hover .tile-label, .work-row .tile:focus-visible .tile-label { opacity: 1; }
.work-row .tile::after { opacity: 0; transition: opacity 0.3s ease; }
.work-row .tile:hover::after, .work-row .tile:focus-visible::after { opacity: 1; }

/* ============================ PROJECT (zine) ============================ */
#page-project {
  position: relative; overflow: hidden;
  --paper: #e8e2d3; --inkblk: #141414; --red: #d8271a; --scrap: #f4f1e8; --card: #eef0ea; --rule: rgba(70,120,170,0.3); --credit-dim: #4a4740;
  background: var(--paper); color: var(--inkblk);
  /* where the collage starts under the title; --head-h is measured in renderProject */
  --zine-top: calc(var(--nav-h) + 34px + var(--head-h, 200px) + 26px);
}
#page-project.on { display: block; }
.type { font-family: "Courier Prime", "Courier New", monospace; }

/* --- paper, print, shapes, grain --- */
.zine-paper {
  position: absolute; inset: 0; z-index: 0;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='200'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.04 0.5' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.15  0 0 0 0 0.08  0 0 0 0.12 0'/></filter><rect width='600' height='200' filter='url(%23f)'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch' seed='5'/><feColorMatrix type='saturate' values='0'/></filter><rect width='260' height='260' filter='url(%23n)'/></svg>");
  background-blend-mode: multiply, soft-light;
}
.zine-xerox {
  position: absolute; z-index: 1; overflow: hidden;
  top: 0; right: 0; width: 58vw; height: 100%;
  background: var(--scrap);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='900' viewBox='0 0 600 900' preserveAspectRatio='none'><filter id='t' x='-10%' y='-5%' width='120%' height='110%'><feTurbulence type='fractalNoise' baseFrequency='0.006 0.02' numOctaves='4' seed='21'/><feDisplacementMap in='SourceGraphic' scale='70' xChannelSelector='R' yChannelSelector='G'/></filter><rect x='40' y='-40' width='700' height='980' fill='white' filter='url(%23t)'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='900' viewBox='0 0 600 900' preserveAspectRatio='none'><filter id='t' x='-10%' y='-5%' width='120%' height='110%'><feTurbulence type='fractalNoise' baseFrequency='0.006 0.02' numOctaves='4' seed='21'/><feDisplacementMap in='SourceGraphic' scale='70' xChannelSelector='R' yChannelSelector='G'/></filter><rect x='40' y='-40' width='700' height='980' fill='white' filter='url(%23t)'/></svg>");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.zine-xerox video {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%) scale(1.04);
  object-fit: cover; opacity: 0; transition: opacity 0.9s ease;
  filter: grayscale(1) contrast(2.1) brightness(1.08);
  mix-blend-mode: multiply;
}
.zine-xerox video.ready { opacity: 1; }
.zine-xerox::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, rgba(20,20,20,0.55) 0.55px, transparent 1.15px) 0 0 / 3px 3px;
  mix-blend-mode: overlay; opacity: 0.9;
}
.zine-shapes { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
/* shapes print like ink layers: a grain mask for coverage, a low-frequency
   blotch for uneven ink, both intersected, so they sit in the paper instead of on it */
.shape {
  position: absolute; display: block;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.4 0 0 0 -0.55'/></filter><rect width='320' height='320' filter='url(%23k)'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='700'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1.6 0 0 0 0.1'/></filter><rect width='700' height='700' filter='url(%23b)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch' seed='9'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  2.4 0 0 0 -0.55'/></filter><rect width='320' height='320' filter='url(%23k)'/></svg>"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='700'><filter id='b'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='3' stitchTiles='stitch' seed='4'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  1.6 0 0 0 0.1'/></filter><rect width='700' height='700' filter='url(%23b)'/></svg>");
  -webkit-mask-composite: source-in; mask-composite: intersect;
  -webkit-mask-size: 320px 320px, 700px 700px; mask-size: 320px 320px, 700px 700px;
}
.shape.circle, .shape.ring, .shape.half { border-radius: 50%; }
.shape.ring { background: transparent !important; border: 1.2vw solid var(--c); }
.shape.half { border-radius: 50% 50% 0 0 / 100% 100% 0 0; aspect-ratio: 2 / 1 !important; }
.zine-grain {
  position: absolute; inset: 0; z-index: 12; pointer-events: none;
  opacity: 0.16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch' seed='5'/><feColorMatrix type='saturate' values='0'/></filter><rect width='260' height='260' filter='url(%23n)'/></svg>");
}

.zine-back { position: absolute; z-index: 13; top: 0; left: 0; margin: calc(var(--nav-h) + 14px) var(--pad) 0; color: var(--inkblk); background: var(--paper); padding: 4px 8px 3px; }
.zine-back:hover { background: var(--inkblk); color: var(--paper); }

/* --- the collage --- */
.zine-sheet { position: absolute; inset: 0; z-index: 5; }
.zine-head {
  position: absolute; z-index: 7; pointer-events: none;
  top: calc(var(--nav-h) + 34px); left: var(--pad); width: 66vw;
}
.zine-issue { font-size: 12px; letter-spacing: 0.18em; margin-bottom: 10px; display: inline-block; border-bottom: 2px solid var(--inkblk); padding-bottom: 2px; }
.zine-title {
  position: relative; white-space: nowrap;
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(54px, 8.6vw, 150px);
  line-height: 0.84; letter-spacing: -0.025em;
  color: var(--inkblk);
  /* paper halo so the letters read as pasted over the print */
  text-shadow:
    2px 2px 0 var(--paper), -2px 2px 0 var(--paper), 2px -2px 0 var(--paper), -2px -2px 0 var(--paper),
    4px 0 0 var(--paper), -4px 0 0 var(--paper), 0 4px 0 var(--paper), 0 -4px 0 var(--paper),
    4px 4px 0 var(--paper), -4px 4px 0 var(--paper), 4px -4px 0 var(--paper), -4px -4px 0 var(--paper);
}
.zine-title.long { font-size: clamp(42px, 6.4vw, 112px); }
.zine-title .red {
  display: inline-block; position: relative; color: var(--paper); text-shadow: none;
  padding: 0.02em 0.1em 0.04em 0.08em; margin-left: -0.04em;
  background: var(--red);
}
.zine-labels { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 16px; pointer-events: auto; }
.label {
  display: inline-block; background: var(--inkblk); color: var(--paper);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 9px 4px;
}

.zine-player-outer {
  position: absolute; z-index: 8;
  top: var(--zine-top);
  left: var(--pad);
  /* as wide as the column allows, but never so tall the strip can't fit under it */
  width: min(52vw, calc((100svh - var(--zine-top) - 176px) * 1.7778));
}
.zine-player-wrap {
  background: var(--scrap); padding: 12px;
  border-radius: 26px;
  box-shadow: 14px 14px 0 var(--inkblk);
}
.zine-player {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: var(--inkblk); overflow: hidden; border-radius: 16px;
}
.zine-player .loopv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-disc {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: clamp(64px, 7vw, 96px); border: 0; background: transparent; padding: 0; cursor: pointer;
  display: block; color: var(--paper);
  filter: drop-shadow(5px 5px 0 rgba(20,20,20,0.9));
}
.play-disc svg { width: 100%; height: auto; display: block; }
.play-disc circle { fill: var(--red); }
.play-disc path { fill: #f4f1e8; }
.play-disc:hover circle { fill: var(--inkblk); }
.play-disc:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
/* WORK[i].play = "tr" | "br" | "bl" | "tl" ("corner" = "tr"): the disc sits in that corner of the frame */
.zine-player.play-tr .play-disc, .zine-player.play-br .play-disc, .zine-player.play-bl .play-disc, .zine-player.play-tl .play-disc {
  transform: none; width: clamp(52px, 5.4vw, 76px); }
.zine-player.play-tr .play-disc { left: auto; top: 14px; right: 14px; }
.zine-player.play-tl .play-disc { left: 14px; top: 14px; }
.zine-player.play-br .play-disc { left: auto; top: auto; right: 14px; bottom: 14px; }
.zine-player.play-bl .play-disc { left: 14px; top: auto; bottom: 14px; }
/* WORK[i].play = "ghost": a transparent ring over the picture, no ink */
.zine-player.play-ghost .play-disc { filter: none; }
.zine-player.play-ghost .play-disc circle { fill: rgba(244,241,232,0.16); stroke: #f4f1e8; stroke-width: 2.5; }
.zine-player.play-ghost .play-disc:hover circle { fill: rgba(244,241,232,0.34); }
.zine-player.preview::after {
  content: "PREVIEW"; position: absolute; left: 10px; top: 10px; z-index: 2; pointer-events: none;
  font-family: "Courier Prime", monospace; font-size: 10px; letter-spacing: 0.14em;
  background: var(--inkblk); color: var(--paper); padding: 4px 7px 3px;
}
.zine-player.standin::after {
  content: "EXCERPT · FULL FILM TO COME"; position: absolute; left: 10px; top: 10px; z-index: 2; pointer-events: none;
  font-family: "Courier Prime", monospace; font-size: 10px; letter-spacing: 0.12em;
  background: var(--inkblk); color: var(--paper); padding: 4px 7px 3px;
}
.zine-player iframe, .zine-player video, .zine-player .ph-reel {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.zine-side {
  position: absolute; z-index: 9;
  top: calc(var(--zine-top) + 4px);
  right: var(--pad); width: clamp(270px, 31vw, 420px);
  display: flex; flex-direction: column; gap: 16px;
  max-height: calc(100svh - var(--zine-top) - 4px - 34px);
  filter: drop-shadow(0 12px 22px rgba(20,20,20,0.3));
}
.zine-box {
  position: relative; color: var(--inkblk);
  background-color: var(--card);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 19px, var(--rule) 19px 20px),
    repeating-linear-gradient(90deg, transparent 0 19px, var(--rule) 19px 20px);
  border: 2px solid var(--inkblk);
  box-shadow: 8px 8px 0 var(--inkblk);
  display: flex; flex-direction: column;
  flex: 0 1 auto; min-height: 0; overflow: hidden;
}
.box-tabs { display: flex; border-bottom: 2px solid var(--inkblk); background: var(--card); flex: none; }
.box-tab {
  font: inherit; font-size: 10px; letter-spacing: 0.16em; font-weight: 700;
  background: transparent; color: var(--inkblk); border: 0; border-right: 2px solid var(--inkblk);
  padding: 7px 12px 6px; cursor: pointer;
}
.box-tab:last-child { border-right: 0; }
.box-tab.on { background: var(--inkblk); color: var(--paper); }
.box-tab[hidden] { display: none; }
/* panels stack in one grid cell so the box keeps the tallest panel's height on every tab */
.box-panels { display: grid; flex: 1 1 auto; min-height: 0; overflow: auto; }
.box-panel { grid-area: 1 / 1; padding: 12px 14px 14px; visibility: hidden; }
.box-panel.on { visibility: visible; }
.zine-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; color: var(--red); }
.zine-box .project-brief { color: var(--inkblk); font-size: 13.5px; line-height: 1.45; max-width: none; }
.zine-box .project-brief p + p { margin-top: 0.7em; }
.zine-box .project-credits { border: 0; }
.zine-box .project-credits > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 0; min-height: 20px; border: 0;
}
.zine-box .project-credits dt { font-size: 10px; line-height: 20px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--credit-dim); }
.zine-box .project-credits dd { text-align: right; font-size: 12.5px; line-height: 20px; font-weight: 700; }
.zine-box.dense .project-credits > div { min-height: 17px; }
.zine-box.dense .project-credits dt, .zine-box.dense .project-credits dd { line-height: 17px; }
.zine-box.dense .project-credits dd { font-size: 11.5px; }
.fest-list { list-style: none; }
.fest-list li { font-size: 12.5px; line-height: 20px; padding-left: 18px; position: relative; }
.fest-list li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* pasteups (WORK[i].pasteups): photos printed into the paper under the
   shapes and grain, multiplied and faded so they read as part of the page */
.zine-pasteups { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.zine-pasteups img {
  position: absolute; display: block; height: auto;
  mix-blend-mode: multiply; opacity: var(--o, 0.5);
  filter: grayscale(0.8) contrast(1.25) brightness(1.06);
}
.l-negative .zine-pasteups img { mix-blend-mode: screen; filter: grayscale(0.7) contrast(1.15) brightness(1.1); }

/* contact strip of stills from the loop */
.zine-strip {
  position: absolute; z-index: 8; left: var(--pad); bottom: 34px;
  display: flex; gap: 0; align-items: flex-end;
  background: var(--inkblk); padding: 6px;
}
.still {
  background: var(--inkblk); padding: 0 6px 0 0;
  width: clamp(96px, 10vw, 156px);
}
.still:last-child { padding-right: 0; }
.still img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(1) contrast(1.7) brightness(1.05); }
.still.photo { cursor: pointer; }
.still.photo img { aspect-ratio: 4 / 3; filter: grayscale(1) contrast(1.35) brightness(1.02); }

.zine-next {
  align-self: flex-end; flex: none;
  background: var(--inkblk); color: var(--paper); text-decoration: none;
  font-size: 12px; letter-spacing: 0.1em; padding: 9px 12px 8px;
}
.zine-next b { font-weight: 700; }
.zine-next:hover { background: var(--red); }

/* short desktop windows: tighten the paper so credits still fit */
@media (min-width: 761px) and (max-height: 760px) {
  .zine-title { font-size: clamp(40px, 6.6vw, 96px); }
  .zine-title.long { font-size: clamp(34px, 5vw, 72px); }
  .zine-labels { margin-top: 10px; }
  .zine-side { gap: 12px; }
  .zine-clip { padding: 14px 18px 16px; }
  .zine-clip .project-brief { font-size: 12px; line-height: 1.38; }
  .zine-card { padding: 6px 12px 8px; }
  .zine-card .project-credits > div, .zine-card.dense .project-credits > div { min-height: 16px; }
  .zine-card .project-credits dt, .zine-card .project-credits dd, .zine-card.dense .project-credits dt, .zine-card.dense .project-credits dd { line-height: 16px; }
  .zine-card .project-credits dd { font-size: 11px; }
  .still { width: clamp(80px, 8.4vw, 120px); }
}


/* ---------- layout variants (see LAYOUTS in app.js) ---------- */
/* poster: the print runs full-bleed, the title sits low in paper, film top-right, stills down the left */
.l-poster .zine-xerox { width: 100vw; -webkit-mask-image: none; mask-image: none; }
.l-poster .zine-xerox video { filter: grayscale(1) contrast(1.9) brightness(1.16); }
.l-poster .zine-head { top: auto; bottom: 34px; width: 58vw; }
.l-poster .zine-title {
  color: var(--paper);
  text-shadow: 2px 2px 0 var(--inkblk), -2px 2px 0 var(--inkblk), 2px -2px 0 var(--inkblk), -2px -2px 0 var(--inkblk), 4px 0 0 var(--inkblk), -4px 0 0 var(--inkblk), 0 4px 0 var(--inkblk), 0 -4px 0 var(--inkblk);
}
.l-poster .zine-issue { color: var(--paper); border-color: var(--paper); }
.l-poster .zine-player-outer {
  top: calc(var(--nav-h) + 30px); left: auto; right: var(--pad);
  width: min(46vw, calc(37svh * 1.7778));
}
.l-poster .zine-side {
  top: auto; bottom: 34px; right: var(--pad); width: clamp(260px, 28vw, 380px);
  max-height: 47svh;
}
.l-poster .zine-strip {
  left: var(--pad); top: calc(var(--nav-h) + 30px); bottom: auto;
  flex-direction: column; align-items: stretch;
}
.l-poster .still { padding: 0 0 6px 0; width: clamp(80px, 7.5vw, 112px); }
.l-poster .still:last-child { padding-bottom: 0; }

/* strip: the print is a narrow band down the left, everything else to its right, stills as a 2x2 sheet over the band */
.l-strip .zine-xerox { left: 0; right: auto; width: 26vw; -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='900' viewBox='0 0 600 900' preserveAspectRatio='none'><filter id='t' x='-10%' y='-5%' width='120%' height='110%'><feTurbulence type='fractalNoise' baseFrequency='0.006 0.02' numOctaves='4' seed='33'/><feDisplacementMap in='SourceGraphic' scale='70' xChannelSelector='R' yChannelSelector='G'/></filter><rect x='-140' y='-40' width='700' height='980' fill='white' filter='url(%23t)'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='900' viewBox='0 0 600 900' preserveAspectRatio='none'><filter id='t' x='-10%' y='-5%' width='120%' height='110%'><feTurbulence type='fractalNoise' baseFrequency='0.006 0.02' numOctaves='4' seed='33'/><feDisplacementMap in='SourceGraphic' scale='70' xChannelSelector='R' yChannelSelector='G'/></filter><rect x='-140' y='-40' width='700' height='980' fill='white' filter='url(%23t)'/></svg>"); }
.l-strip .zine-head { left: calc(26vw + var(--pad) * 0.5); width: calc(74vw - var(--pad) * 1.5); }
.l-strip .zine-player-outer {
  left: calc(26vw + var(--pad) * 0.5);
  width: min(38vw, calc((100svh - var(--zine-top) - 160px) * 1.7778));
}
.l-strip .zine-side { width: clamp(250px, 27vw, 360px); }
.l-strip .zine-strip { left: calc(26vw + var(--pad) * 0.5); bottom: 34px; }
.l-strip .still { width: clamp(84px, 8.6vw, 128px); }

/* grid: the page is ruled into four panels; title / film on top, print with stills / credits below */
.l-grid .zine-sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 56vw; width: 3px; background: var(--inkblk); z-index: 6; }
.l-grid .zine-sheet::after  { content: ""; position: absolute; left: 0; right: 0; top: 52svh; height: 3px; background: var(--inkblk); z-index: 6; }
.l-grid .zine-xerox { left: 0; right: auto; top: 52svh; width: 56vw; height: 48svh; -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' preserveAspectRatio='none'><filter id='t' x='-5%' y='-10%' width='110%' height='120%'><feTurbulence type='fractalNoise' baseFrequency='0.02 0.006' numOctaves='4' seed='44'/><feDisplacementMap in='SourceGraphic' scale='60' xChannelSelector='R' yChannelSelector='G'/></filter><rect x='-40' y='40' width='980' height='700' fill='white' filter='url(%23t)'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' preserveAspectRatio='none'><filter id='t' x='-5%' y='-10%' width='110%' height='120%'><feTurbulence type='fractalNoise' baseFrequency='0.02 0.006' numOctaves='4' seed='44'/><feDisplacementMap in='SourceGraphic' scale='60' xChannelSelector='R' yChannelSelector='G'/></filter><rect x='-40' y='40' width='980' height='700' fill='white' filter='url(%23t)'/></svg>"); }
.l-grid .zine-head { width: calc(56vw - var(--pad) * 2); }
.l-grid .zine-title { font-size: clamp(44px, 6.2vw, 110px); }
.l-grid .zine-title.long { font-size: clamp(36px, 4.6vw, 84px); }
.l-grid .zine-player-outer {
  top: calc(var(--nav-h) + 30px); left: calc(56vw + var(--pad)); right: var(--pad);
  width: min(calc(44vw - var(--pad) * 2), calc((52svh - var(--nav-h) - 64px) * 1.7778));
}
.l-grid .zine-side {
  top: calc(52svh + 16px); left: calc(56vw + var(--pad)); right: var(--pad); width: auto;
  max-height: calc(48svh - 44px); gap: 12px;
}
.l-grid .zine-clip { padding: 16px 18px 18px; }
.l-grid .zine-clip .project-brief { font-size: 12.5px; line-height: 1.4; }
.l-grid .zine-strip { left: var(--pad); bottom: 34px; }
.l-grid .still { width: clamp(84px, 8.6vw, 130px); }

/* negative: the cutout layout printed in reverse, paper becomes ink */
/* id-qualified: the base #page-project rule sets these variables with id specificity */
#page-project.l-negative { --paper: #141414; --inkblk: #e8e2d3; --scrap: #1d1c1a; --card: #1a1a1a; --rule: rgba(120,160,200,0.22); --credit-dim: #9a968c; }
.l-negative .zine-paper { background-color: #141414; background-blend-mode: screen, overlay; }
.l-negative .zine-xerox { background: #2a2724; }
/* no invert: dark footage screened onto ink keeps its highlights as the print */
.l-negative .zine-xerox video { filter: grayscale(1) contrast(1.9) brightness(1.25); mix-blend-mode: screen; }
.l-negative .zine-xerox::after { background: radial-gradient(circle, rgba(232,226,211,0.5) 0.55px, transparent 1.15px) 0 0 / 3px 3px; mix-blend-mode: overlay; }
.l-negative .zine-grain { mix-blend-mode: screen; opacity: 0.1; }
.l-negative .zine-title .red { color: #141414; }
.l-negative .zine-player-outer { filter: drop-shadow(0 18px 28px rgba(0,0,0,0.7)); }
.l-negative .zine-side { filter: drop-shadow(0 12px 22px rgba(0,0,0,0.6)); }
.l-negative .zine-clip { background-image: none; }
.l-negative .zine-strip, .l-negative .still { background: var(--inkblk); }

/* mobile: the collage stacks and scrolls */
@media (max-width: 760px) {
  #page-project.on { min-height: 100svh; height: auto; overflow: visible; }
  #page-project .zine-paper, #page-project .zine-grain { position: fixed; }
  #page-project .zine-xerox { position: absolute; top: 0; right: 0; left: auto; width: 100vw; height: 64svh;
    -webkit-mask-image: none; mask-image: none; }
  #page-project .zine-shapes { height: 64svh; }
  #page-project .zine-sheet { position: relative; inset: auto; padding: calc(var(--nav-h) + 56px) var(--pad) 40px; display: flex; flex-direction: column; gap: 22px; }
  #page-project .zine-head, #page-project .zine-player-outer, #page-project .zine-side, #page-project .zine-strip { position: relative; inset: auto; top: auto; left: auto; right: auto; bottom: auto; width: auto; max-height: none; }
  #page-project .zine-head { width: 100%; color: var(--inkblk); padding-right: 0; }
  #page-project .zine-pasteups { height: 64svh; }
  #page-project .zine-pasteups img { width: 34vw !important; }
  #page-project .zine-sheet::before, #page-project .zine-sheet::after { display: none; }
  #page-project .zine-title { color: var(--inkblk); text-shadow: 2px 2px 0 var(--paper), -2px 2px 0 var(--paper), 2px -2px 0 var(--paper), -2px -2px 0 var(--paper), 4px 0 0 var(--paper), -4px 0 0 var(--paper), 0 4px 0 var(--paper), 0 -4px 0 var(--paper); }
  #page-project .zine-title { font-size: clamp(40px, 10.5vw, 64px); overflow-wrap: anywhere; white-space: normal; }
  #page-project .zine-title.long { font-size: clamp(34px, 9vw, 56px); }
  #page-project .zine-player-outer { margin-top: 6px; width: 100%; }
  #page-project .zine-side { margin-top: 20px; width: auto; }
  #page-project .zine-strip { display: flex; flex-direction: row; overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); width: auto; }
  #page-project .still { flex: 0 0 auto; width: 140px; }
  .zine-next { align-self: flex-end; }
}

/* ============================ MISSION ============================ */
#page-mission { overflow: hidden; }
#page-mission { position: relative; overflow: hidden; }
#page-mission.on { display: flex; align-items: center; }
.mission-bg { position: absolute; inset: 0; }
.mission-bg video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
/* overlay texture: deep charcoal wash + halftone dot matrix echoing the
   badge's stipple, keeps the two-column mission text fully readable */
.mission-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(rgba(38, 37, 39, 0.55) 1.2px, transparent 1.3px),
    linear-gradient(100deg, rgba(38, 37, 39, 0.94) 0%, rgba(38, 37, 39, 0.82) 45%, rgba(38, 37, 39, 0.55) 100%),
    linear-gradient(to top, rgba(38, 37, 39, 0.92), rgba(38, 37, 39, 0.35) 60%);
  background-size: 5px 5px, 100% 100%, 100% 100%;
}
.mission-inner {
  position: relative; z-index: 2;
  max-width: 1180px;
  width: 100%;
  padding: calc(var(--nav-h) + 10px) var(--pad) 90px;
}
.mission-text { min-width: 0; }
/* the house mark as a blind emboss: the bone lockup, very large and faint,
   bleeding off the right edge behind the copy, its stipple meeting the scrim's */
.mission-emboss {
  position: absolute; z-index: 1; pointer-events: none;
  /* centred in the column the text leaves free on the right (the text block is
     capped at 1180px), and never wider than that column */
  --textW: min(100vw, 1180px);
  left: calc(var(--textW) + (100vw - var(--textW)) / 2); top: 50%;
  transform: translate(-50%, -54%);
  width: min(clamp(260px, 25vw, 400px), calc((100vw - var(--textW)) * 0.9));
  opacity: 0.75;
  mix-blend-mode: overlay;
  filter: blur(0.6px);
}
.mission-emboss img { width: 100%; height: auto; display: block; }
/* the sign-off under the copy */
.mission-colophon {
  display: flex; align-items: center; gap: 12px;
  margin-top: 34px; padding-top: 18px;
  border-top: 1px solid var(--hair);
  color: var(--smoke); font-size: 10px; letter-spacing: 0.22em;
}
.mission-colophon .nav-badge { width: 22px; height: 22px; background-color: var(--camel); }
.mission-headline {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(26px, 2.95vw, 42px);  /* sized so the line never breaks; fitOneLine() trims the rest */
  white-space: nowrap;
  line-height: 0.98;
  margin-bottom: 30px;
}
.mission-body {
  column-count: 2;
  column-gap: clamp(36px, 5vw, 72px);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
}
.mission-body p { orphans: 3; widows: 3; }      /* paragraphs flow between the columns so they balance */
.mission-body .col-break { display: block; break-before: column; }   /* [[col]] in data.js: the second column starts here */
.mission-body p:first-child::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 3.1em; line-height: 0.8;
  float: left; padding: 6px 10px 0 0;
  color: var(--tally);
}
.mission-marquee {
  z-index: 2; background: rgba(38,37,39,0.78); backdrop-filter: blur(4px);
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid var(--hair);
  padding: 14px 0 18px;
  overflow: hidden; white-space: nowrap;
}
.mission-marquee-track {
  display: inline-block;
  font-family: var(--display); font-weight: 700;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--smoke);
  animation: marquee 34s linear infinite;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mission-marquee-track { animation: none; } }

/* ============================ CONTACT ============================
   A wall of wheatpasted portraits: one principal's photo tiled across the
   whole page, black and white, with the Horse Island loop ghosting through
   it. The wall cycles through the three; hovering a name pins that person.
   The ask sits in the centre, the house address top right, the city below. */
#page-contact { position: relative; overflow: hidden; background: var(--ink); }
.contact-bg { position: absolute; inset: 0; }
.contact-bg video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw;
  min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.6) contrast(1.05);          /* the loop sits back so the posters read */
}
.contact-wall { position: absolute; inset: 0; }
.contact-wall .wall {
  position: absolute; inset: 0;
  background-repeat: repeat; background-position: 0 0;
  background-size: calc(100vw / 6) auto;          /* six posters across, rows of 4:5 */
  filter: grayscale(1) contrast(1.12) brightness(0.9);
  mix-blend-mode: screen;                          /* the loop shows through the shadows */
  opacity: 0; transition: opacity 1.6s ease;
}
.contact-wall .wall.on { opacity: 0.82; }
.contact-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 50% 52%, rgba(38, 37, 39, 0.66) 0%, rgba(38, 37, 39, 0.2) 60%, rgba(38, 37, 39, 0) 100%),
    linear-gradient(to top, rgba(38, 37, 39, 0.8) 0%, rgba(38, 37, 39, 0) 28%),
    linear-gradient(to bottom, rgba(38, 37, 39, 0.75) 0%, rgba(38, 37, 39, 0) 30%);
}
.contact-inner {
  position: relative; z-index: 2;
  height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 24px) var(--pad) 60px;
}
.contact-center { text-align: center; max-width: 100%; }
.contact-center .page-eyebrow { margin-bottom: 10px; }
.contact-headline {
  font-weight: 700; text-transform: uppercase; white-space: nowrap;
  font-size: clamp(38px, 7.6vw, 112px);
  line-height: 0.92; letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.contact-principals {
  display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap;
  gap: 12px calc(clamp(14px, 2.4vw, 48px) * var(--cs, 1));
  margin-top: clamp(22px, 3.6vh, 40px);
  --cs: 1;   /* fitCredits() in app.js shrinks this until the three fit one row */
}
/* each credit is a strip of label tape: ink behind bone type, so it reads over
   the posters; the one whose wall is up flips to bone behind ink */
.contact-principals li {
  display: flex; align-items: baseline; gap: 10px; white-space: nowrap;
  background: rgba(38, 37, 39, 0.9); padding: 9px 14px 8px;
  opacity: 0.88; transition: opacity 0.5s ease, background 0.5s ease, color 0.5s ease;
}
.contact-principals li.on { opacity: 1; background: var(--bone); }
.contact-principals li.on .cp-name, .contact-principals li.on .cp-mail { color: var(--ink); }
.contact-principals li.on .cp-name:hover, .contact-principals li.on .cp-mail:hover { color: var(--tally); }
.contact-socials .btn-social { background: rgba(38, 37, 39, 0.9); }
.cp-name { font-weight: 700; text-transform: uppercase; font-size: calc(clamp(11.5px, 1.05vw, 17px) * var(--cs, 1)); line-height: 1.05; color: var(--bone); transition: color 0.3s; }
.cp-name:hover { color: var(--tally); }
.cp-mail { color: var(--bone); opacity: 0.75; font-size: calc(clamp(9px, 0.78vw, 10.5px) * var(--cs, 1)); transition: color 0.3s, opacity 0.3s; }
.cp-mail:hover { color: var(--tally); opacity: 1; }
.contact-socials { display: flex; gap: 12px; justify-content: center; margin-top: clamp(20px, 3.2vh, 34px); }
.contact-socials .btn-social { padding: 11px 18px; }
.contact-foot {
  position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 22px;
  display: flex; justify-content: space-between; gap: 16px; color: var(--smoke);
}
.contact-general a { color: var(--bone); }
.contact-general a:hover { color: var(--tally); }
@media (max-width: 760px) {
  .contact-wall .wall { background-size: calc(100vw / 3) auto; }
  .contact-inner { height: 100svh; padding: calc(var(--nav-h) + 110px) var(--pad) 70px; }
  .contact-headline { white-space: normal; font-size: 40px; }
  .contact-inner { padding-top: calc(var(--nav-h) + 24px); }
  .contact-principals { flex-direction: column; align-items: center; gap: 14px; margin-top: 22px; }
  .contact-principals li { flex-direction: column; align-items: center; gap: 3px; padding: 10px 18px; }
  .contact-socials .btn-social { padding: 9px 14px; }
  .contact-foot { flex-direction: column; align-items: center; text-align: center; gap: 6px; bottom: 16px; }
}

.btn-social {
  border: 1px solid var(--hair);
  padding: 14px 24px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-social:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.contact-city { color: var(--smoke); }

/* ============================ LIGHTBOX ============================ */
#lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(38, 37, 39, 0.94);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
#lightbox.open { opacity: 1; visibility: visible; }
/* project films open here: the page stays underneath a gradient wash */
#lightbox.film {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(216,39,26,0.55), transparent 55%),
    radial-gradient(ellipse at 88% 90%, rgba(226,178,60,0.28), transparent 50%),
    linear-gradient(160deg, rgba(20,20,20,0.9), rgba(43,41,38,0.96));
  backdrop-filter: blur(10px) saturate(0.6);
}
#lightbox.film .lb-frame {
  width: min(1680px, 100%); max-height: 86vh;
  border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 18px 18px 0 rgba(216,39,26,0.9);
}
#lightbox.film .lb-caption { font-family: "Courier Prime", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #e8e2d3; }
#lightbox.photo .lb-frame { aspect-ratio: auto; background: transparent; width: auto; max-width: 100%; }
#lightbox.photo .lb-frame img { display: block; max-height: 84vh; max-width: 100%; width: auto; height: auto; box-shadow: 14px 14px 0 rgba(216,39,26,0.9); }
.lb-close {
  position: absolute; top: 22px; right: var(--pad);
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em;
  color: var(--smoke); padding: 8px; z-index: 2;
}
.lb-close:hover { color: var(--bone); }
.lb-frame {
  width: min(1200px, 100%);
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  background: #000;
  position: relative;
}
.lb-frame iframe, .lb-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.lb-caption { margin-top: 16px; color: var(--smoke); }

/* ============================ BIO PANEL ============================ */
/* Fancy-style half-page sheet: slides up from the bottom over the
   hero, camel ground, charcoal text in columns, photo right. */
#bioPanel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background-color: var(--camel);
  /* cardboard: fine fibrous grain + long horizontal fibers + soft mottling,
     all procedural SVG noise multiplied over the camel ground */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch' seed='7'/><feColorMatrix values='0 0 0 0 0.16  0 0 0 0 0.11  0 0 0 0 0.06  0 0 0 0.6 0'/></filter><rect width='300' height='300' filter='url(%23g)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='200'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.045 0.6' numOctaves='2' stitchTiles='stitch' seed='3'/><feColorMatrix values='0 0 0 0 0.25  0 0 0 0 0.17  0 0 0 0 0.08  0 0 0 0.2 0'/></filter><rect width='600' height='200' filter='url(%23f)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='0.004' numOctaves='2' stitchTiles='stitch' seed='11'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.13  0 0 0 0 0.05  0 0 0 0.35 0'/></filter><rect width='900' height='900' filter='url(%23m)'/></svg>");
  background-size: 300px 300px, 600px 200px, 900px 900px;
  background-blend-mode: multiply, multiply, multiply;
  background-attachment: local, local, local;
  color: var(--panel);
  max-height: min(68vh, 640px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 48px) var(--pad) clamp(32px, 5vw, 56px);
  transform: translateY(102%);
  visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.7, 0, 0.18, 1), visibility 0.55s;
  box-shadow: 0 -18px 60px rgba(38, 37, 39, 0.35);
}
#bioPanel.open { transform: translateY(0); visibility: visible; }

#bioPanel .lb-close {
  position: absolute; top: clamp(16px, 2.6vw, 26px); right: var(--pad);
  color: var(--panel); opacity: 1;
  background: var(--bone);
  border: 1px solid var(--panel);
  padding: 9px 14px;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(38,37,39,0.25);
}
#bioPanel .lb-close:hover { background: var(--panel); color: var(--bone); }

.bio-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 21vw, 290px);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  max-width: 1400px;
  padding-top: 44px; /* keeps the portrait clear of the CLOSE button */
}
.bio-text { min-width: 0; grid-column: 1; grid-row: 1; }
.bio-photo { grid-column: 2; grid-row: 1; width: 100%; }
#bioPanel .page-eyebrow { color: var(--panel); opacity: 0.7; margin-bottom: 10px; }
.bio-name {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(19px, 2.2vw, 26px);
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.bio-copy {
  color: var(--panel);
  column-count: 2;
  column-gap: clamp(36px, 4vw, 60px);
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.65;
  max-width: 900px;
}
.bio-copy p { orphans: 3; widows: 3; }          /* paragraphs may flow between the columns so they balance */
.bio-copy.short { column-count: 1; max-width: 62ch; }   /* a short bio reads better as one measured column */
.bio-photo {
  aspect-ratio: 4 / 5;
  background: var(--panel);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 48px; color: var(--camel);
}

@media (max-width: 820px) {
  .bio-inner { grid-template-columns: 1fr; }
  .bio-copy { column-count: 1; }
  .bio-photo { max-width: 240px; order: -1; }
  #bioPanel { max-height: 80vh; }
}

/* ============================ FOOTER ============================ */
#siteFoot { display: none; }

/* mobile: pages scroll naturally, person strip wraps */
@media (max-width: 760px) {
  body { overflow: auto; }
  .page.on { height: auto; min-height: 100svh; overflow: visible; }
  #page-work.on { height: 100svh; overflow: hidden; }
  .person-sub { position: static; flex-wrap: wrap; padding: 20px var(--pad) 60px; }
  .person-hero { height: 78svh; }
  .person-hero-text { bottom: 34px; }
  /* the page is a flex row on desktop (text centred beside the reel); on a phone
     the static marquee would sit in that row and squeeze the text to a sliver */
  #page-mission.on { display: block; }
  .mission-inner { padding-bottom: 40px; }
  .mission-emboss { display: none; }   /* the emboss is a desktop touch; it only distracts behind stacked copy */
  .mission-headline { white-space: normal; }
  .mission-body .col-break { display: inline; }
  .mission-colophon { margin-top: 28px; }
  .mission-marquee { position: static; margin-top: 24px; }
  .mission-body { column-count: 1; }
}

/* ============================ CLIENT PAGES ============================ */
#page-client { position: relative; background: var(--bone); }
#clientFrame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.client-page #nav, body.client-page #mobileMenu { display: none; }

/* ============================ COMMERCIAL (unlisted) ============================
   #/commercial. A full-height header first: the brand reel's loop behind, copy
   and the reel button centred, the cloud of client logo marks under them. The
   strip of the work sits below the fold; this is the one desktop page that
   scrolls. */
#page-commercial { position: relative; }
@media (min-width: 761px) {
  body.com-active { overflow: auto; }
  #page-commercial.on { height: auto; min-height: 100svh; overflow: visible; }
}
.com-hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.com-hero .person-hero-media video, .com-hero .person-hero-media .bg-media video {
  position: absolute; top: 50%; left: 50%;
  width: 100vw; height: 56.25vw; min-height: 100%; min-width: 177.78vh;
  transform: translate(-50%, -50%) scale(var(--zoom, 1));
  object-fit: cover; pointer-events: none;
}
.com-scrim {
  background:
    radial-gradient(80% 70% at 50% 55%, rgba(10,10,11,0.55) 0%, rgba(10,10,11,0.82) 100%),
    linear-gradient(to top, rgba(10,10,11,0.95) 0%, rgba(10,10,11,0.2) 40%, rgba(10,10,11,0.35) 100%);
}
.com-head {
  position: relative; z-index: 2;
  width: min(960px, 100% - 2 * var(--pad));
  padding-top: var(--nav-h);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.com-headline {
  font-weight: 700; text-transform: uppercase;
  font-size: clamp(32px, 5vw, 68px);
  line-height: 0.96;
  margin-bottom: 16px;
}
.com-body { font-size: clamp(15px, 1.2vw, 19px); line-height: 1.5; max-width: 620px; margin-bottom: 22px; }
.com-play {
  font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: 0.14em;
  border: 1px solid var(--hair); padding: 12px 22px; margin-bottom: 44px;
  backdrop-filter: blur(6px);
  transition: border-color 0.3s, color 0.3s;
}
.com-play:hover { border-color: var(--tally); color: var(--tally); }
/* the cloud: client logo marks sized by weight (see renderCommercial), centred, wrapping */
.com-cloud {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 22px 36px;
  width: min(900px, 100%);
}
.cloud-mark { display: inline-flex; align-items: center; justify-content: center; }
.cloud-mark img { display: block; }
.cloud-mark.l img { opacity: 0.96; }
.cloud-mark.m img { opacity: 0.86; }
.cloud-mark.s img { opacity: 0.72; }
.cloud-mark.word { font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--bone); }
.cloud-mark.word.l { font-size: 26px; letter-spacing: 0.04em; opacity: 0.95; }
.cloud-mark.word.m { font-size: 17px; letter-spacing: 0.1em; opacity: 0.85; }
.cloud-mark.word.s { font-size: 12px; letter-spacing: 0.18em; opacity: 0.7; }
.com-down {
  position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%);
  font-family: var(--display); font-weight: 700; font-size: 10px; letter-spacing: 0.22em;
  color: var(--smoke); transition: color 0.3s;
}
.com-down:hover { color: var(--bone); }
/* the banner: the client logos as a slow strip between the reel and the work.
   Hidden by default; on a narrow or short viewport it replaces the cloud so
   the reel and copy keep the whole first screen. */
.com-brands {
  display: none; position: relative; z-index: 2;
  background: var(--ink);
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.com-brands-track { animation: marquee linear infinite; gap: 44px; }
.com-brands .mark.logo img { height: auto; }   /* sized by fitMarks in renderCommercial */
.com-brands .mark.word { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .com-brands-track { animation: none; } }
@media (max-width: 760px), (max-height: 720px) {
  .com-brands { display: block; }
  .com-cloud { display: none; }
  .com-play { margin-bottom: 0; }
}
/* the strip: the commissioned work, four across, below the fold */
.com-strip { background: var(--ink); padding: 48px var(--pad) 72px; }
.com-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.com-grid .tile .tile-label { left: 14px; right: 14px; bottom: 12px; opacity: 0; transition: opacity 0.3s ease; }
.com-grid .tile .tile-title { font-size: 14px; }
.com-grid .tile:hover .tile-label, .com-grid .tile:focus-visible .tile-label { opacity: 1; }
.com-grid .tile::after { opacity: 0.5; transition: opacity 0.3s ease; }
.com-grid .tile:hover::after { opacity: 1; }
@media (max-width: 760px) {
  .com-hero { height: auto; min-height: 100svh; padding-bottom: 64px; }
  .com-head { padding-top: calc(var(--nav-h) + 32px); }
  .com-cloud { gap: 18px 24px; }
  .com-strip { padding: 32px var(--pad) 56px; }
  .com-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .com-grid .tile .tile-label { opacity: 1; }
}

/* ============================ MISSION: marks band ============================
   Replaces the text ticker: typeset laurels for the festivals and press, a
   hairline, then the client logos, all in bone, drifting slowly. */
.mission-marquee.marks { padding: 16px 0 16px; }
.marks-track {
  display: inline-flex; align-items: center; gap: 56px;
  animation-duration: calc(var(--marks, 24) * 5.5s);
  color: var(--bone);
  padding-left: 28px;
}
.mark { flex: none; display: inline-flex; align-items: center; height: 44px; }
.mark.laurel { gap: 2px; opacity: 0.88; }
.mark.laurel svg { height: 44px; width: auto; display: block; }
.mark.laurel svg.flip { transform: scaleX(-1); }
.laurel-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; min-width: 96px; padding: 0 4px;
  font-family: var(--display); text-transform: uppercase; line-height: 1.15;
}
.laurel-text small { font-size: 6.5px; letter-spacing: 0.2em; color: var(--smoke); }
.laurel-text b { font-size: 10.5px; letter-spacing: 0.12em; font-weight: 700; white-space: nowrap; margin: 2px 0; }
.mark.logo img { height: 34px; width: auto; display: block; opacity: 0.9; }
.mark.laurel.art img { height: 46px; width: auto; display: block; opacity: 0.92; }
.mark.logo { padding: 0 2px; }
.mark.word {
  font-family: var(--display); font-weight: 700; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.82;
}
.mark.rule { width: 1px; height: 30px; background: var(--hair); }
@media (max-width: 760px) {
  .mission-marquee.marks { padding: 14px 0; }
}
