/* ============================================================
   SILT — SEDIMENT: WHAT LIGHT LEAVES BEHIND
   Palette: black #0A0A0A / bone #E8E4DD / signal #FF3B1F
   Type:    Clash Display (display) / Archivo (body) / Space Mono (meta)
   ============================================================ */

:root {
  --black: #0A0A0A;
  --ink: #060606;
  --panel: #121110;
  --bone: #E8E4DD;
  --bone-60: rgba(232, 228, 221, 0.6);
  --bone-40: rgba(232, 228, 221, 0.4);
  --bone-20: rgba(232, 228, 221, 0.2);
  --bone-08: rgba(232, 228, 221, 0.08);
  --signal: #FF3B1F;
  --display: 'Clash Display', sans-serif;
  --body: 'Archivo', sans-serif;
  --mono: 'Space Mono', monospace;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-hard: cubic-bezier(0.83, 0, 0.17, 1);
}

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

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--signal); color: var(--black); }

.mono { font-family: var(--mono); }

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

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

:focus-visible { outline: 1px solid var(--signal); outline-offset: 4px; }

/* Hide native cursor only when custom cursor is active */
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ============ LOADER ============ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--black);
  display: grid; place-items: center;
}
.loader-frame {
  position: relative;
  width: min(80vw, 46rem); aspect-ratio: 2.39 / 1;
  border: 1px solid var(--bone-20);
  display: grid; place-items: center;
}
.loader-count {
  font-family: var(--mono);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.loader-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--bone-40);
}
.loader-label--tl { top: 0.75rem; left: 1rem; }
.loader-label--tr { top: 0.75rem; right: 1rem; color: var(--signal); }
.loader-label--bl { bottom: 0.75rem; left: 1rem; }
.loader-label--br { bottom: 0.75rem; right: 1rem; }
html.loaded .loader, html.skip-loader .loader { display: none; }

.cut-flash {
  position: fixed; inset: 0; z-index: 190;
  background: var(--bone);
  opacity: 0; pointer-events: none;
}

/* Pre-loader: hold page content invisible (no transition — hard cut) */
body.holding main, body.holding .nav, body.holding footer { visibility: hidden; }

/* ============ FIXED CHROME ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  mix-blend-mode: difference;
}
.nav-brand {
  font-family: var(--display);
  font-weight: 600; font-size: 1.35rem; letter-spacing: 0.02em;
  color: var(--bone);
}
.nav-brand sup { font-size: 0.5em; font-weight: 400; }
.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.nav-links a {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--bone-60);
  padding: 0.85rem 0;
  transition: color 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--bone); }
.nav-idx { color: var(--signal); margin-right: 0.4em; font-size: 0.85em; }
.nav-tc {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.1em;
  color: var(--bone-60);
  display: flex; align-items: center; gap: 0.5em;
  font-variant-numeric: tabular-nums;
}
.rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal);
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.grain {
  position: fixed; inset: 0; z-index: 90;
  width: 100vw; height: 100lvh;
  pointer-events: none;
  opacity: 0.55;
}
.vignette {
  position: fixed; inset: 0; z-index: 89;
  pointer-events: none;
  background: radial-gradient(ellipse 130% 110% at 50% 45%, transparent 60%, rgba(0,0,0,0.55) 100%);
}

.grid-overlay {
  position: fixed; inset: 0; z-index: 150;
  pointer-events: none;
  padding: 0 var(--gutter);
  display: none;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.grid-overlay.on { display: grid; }
.grid-overlay::before { content: none; }
.grid-overlay span { background: rgba(255, 59, 31, 0.07); border-inline: 1px solid rgba(255, 59, 31, 0.2); }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 160;
  pointer-events: none;
  width: 14px; height: 14px;
  display: none;
  align-items: center; justify-content: center;
  transform: translate(-50%, -50%);
}
body.has-cursor .cursor { display: flex; }
.cursor::before, .cursor::after {
  content: ""; position: absolute; background: var(--bone);
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}
.cursor::before { width: 100%; height: 1px; }
.cursor::after { width: 1px; height: 100%; }
.cursor-label {
  position: absolute;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.2em;
  color: var(--signal); white-space: nowrap;
  top: 1.1rem;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.cursor.is-hover::before, .cursor.is-hover::after { transform: scale(2.4); background: var(--signal); }
.cursor.is-hover .cursor-label { opacity: 1; transform: translateY(0); }

/* ============ SECTION HEADS ============ */
.sec-head {
  display: flex; align-items: baseline; gap: 1.25rem;
  padding: 1.1rem var(--gutter);
  border-top: 1px solid var(--bone-20);
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
}
.sec-no { color: var(--signal); }
.sec-name { color: var(--bone); font-size: inherit; font-weight: 400; letter-spacing: inherit; }
.sec-note { margin-left: auto; color: var(--bone-40); text-align: right; }

/* ============ HERO ============ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 34rem;
  overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video {
  width: 100%; height: 118%;
  object-fit: cover; object-position: 50% 38%;
  will-change: transform;
}
/* when the mp4 never arrives, the poster gets a slow cinematic push-in */
.hero-media.no-video video { animation: kenburns 26s var(--ease-out) infinite alternate; }
@keyframes kenburns {
  from { scale: 1; } to { scale: 1.07; }
}
html.reduced .hero-media.no-video video { animation: none; }
.hero::after {
  /* floor for the title, keeps type legible over bright streaks */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, rgba(6,6,6,0.82), transparent);
  z-index: 1;
}
.hero-hud { position: absolute; inset: clamp(4rem, 8vh, 6rem) var(--gutter) clamp(4rem, 8vh, 6rem); z-index: 2; }
.hud-corner { position: absolute; width: 22px; height: 22px; opacity: 0.75; }
.hud-corner--tl { top: 0; left: 0; border-top: 1px solid var(--bone); border-left: 1px solid var(--bone); }
.hud-corner--tr { top: 0; right: 0; border-top: 1px solid var(--bone); border-right: 1px solid var(--bone); }
.hud-corner--bl { bottom: 0; left: 0; border-bottom: 1px solid var(--bone); border-left: 1px solid var(--bone); }
.hud-corner--br { bottom: 0; right: 0; border-bottom: 1px solid var(--bone); border-right: 1px solid var(--bone); }

.hero-kicker {
  position: relative; z-index: 3;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  color: var(--bone);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.8);
  padding: 0 var(--gutter);
  margin-bottom: 0.5rem;
}
.hero-title {
  position: relative; z-index: 3;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(7rem, 27.5vw, 27.5rem);
  line-height: 0.78;
  letter-spacing: -0.015em;
  color: var(--bone);
  mix-blend-mode: difference;
  display: flex; justify-content: space-between;
  padding: 0 calc(var(--gutter) * 0.75);
  user-select: none;
}
.hero-letter { display: inline-block; will-change: transform; }
.hero-foot {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.4rem var(--gutter) 1.2rem;
  border-top: 1px solid var(--bone-08);
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em;
  color: var(--bone-40);
}
.hero-tagline { color: var(--bone-60); }
.hero-tc { font-variant-numeric: tabular-nums; color: var(--signal); }

/* ============ MARQUEE ============ */
.marquee {
  overflow: clip;
  border-block: 1px solid var(--bone-20);
  padding: 0.9rem 0;
  background: var(--ink);
}
.marquee-track {
  display: flex; white-space: nowrap; width: max-content;
  will-change: transform;
}
.marquee-chunk {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  letter-spacing: 0.01em;
  color: var(--bone);
}
.marquee-chunk i { font-style: normal; color: var(--bone-20); padding: 0 0.35em; }

/* ============ MANIFESTO ============ */
.manifesto { padding-bottom: clamp(6rem, 14vh, 11rem); }
.manifesto-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.4vw, 5.3rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 18ch;
  padding: clamp(3.5rem, 9vh, 7rem) var(--gutter) 0;
}
.manifesto-title .word { display: inline-block; }
.manifesto-title em {
  font-style: normal; color: var(--signal);
}
.manifesto-body {
  display: grid; grid-template-columns: repeat(2, minmax(0, 26rem)); gap: 2rem;
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--gutter) 0;
  margin-left: auto;
  max-width: 60rem;
  justify-content: end;
}
.manifesto-body p { font-size: clamp(0.95rem, 1.15vw, 1.1rem); color: var(--bone-60); }

/* ============ WORKS ============ */
.works { padding-bottom: clamp(5rem, 12vh, 10rem); }
.reel { list-style: none; display: flex; flex-direction: column; gap: clamp(6rem, 16vh, 12rem); padding-top: clamp(3rem, 8vh, 6rem); }

.work { position: relative; }
.work-media {
  position: relative; overflow: clip;
  background: var(--panel);
}
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-media canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
/* camera HUD marginalia inside each still */
.work-hud {
  position: absolute; inset: 0.9rem 1rem auto; z-index: 3;
  display: flex; justify-content: space-between;
  font-size: 0.575rem; letter-spacing: 0.16em;
  color: var(--bone-60);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
}
/* viewfinder brackets on hover */
.work-media::before, .work-media::after {
  content: ""; position: absolute; z-index: 3;
  width: 18px; height: 18px;
  pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.work-media::before {
  top: 0.9rem; left: 1rem;
  border-top: 1px solid var(--signal); border-left: 1px solid var(--signal);
  transform: translate(6px, 6px);
}
.work-media::after {
  bottom: 0.9rem; right: 1rem;
  border-bottom: 1px solid var(--signal); border-right: 1px solid var(--signal);
  transform: translate(-6px, -6px);
}
.work-media:hover::before, .work-media:hover::after { opacity: 1; transform: none; }

/* CSS fallback hover when WebGL is off */
html.no-webgl .work-media img { transition: transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
html.no-webgl .work-media:hover img { transform: scale(1.04); filter: contrast(1.08) saturate(1.1); }

.work--full .work-media { margin: 0; }
.work--full .work-media img { aspect-ratio: 2.39 / 1; }

.work--portrait, .work--square, .work--left, .work--right {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  padding: 0 var(--gutter);
  align-items: end;
}
.work--portrait .work-media { grid-column: 1 / 7; aspect-ratio: 3 / 4; }
.work--portrait .work-caption { grid-column: 7 / 13; margin-left: calc(-18% - 1rem); }
.work--square .work-media { grid-column: 7 / 13; aspect-ratio: 1 / 1; }
.work--square .work-caption { grid-column: 1 / 7; grid-row: 1; align-self: end; margin-right: calc(-22% - 1rem); }
.work--left .work-media { grid-column: 1 / 10; aspect-ratio: 16 / 9; }
.work--left .work-caption { grid-column: 10 / 13; }
.work--right .work-media { grid-column: 4 / 13; aspect-ratio: 16 / 9; }
.work--right .work-caption { grid-column: 1 / 4; grid-row: 1; align-self: end; }

.work-caption { position: relative; z-index: 2; padding-top: 1.1rem; pointer-events: none; }
.work--portrait .work-title, .work--square .work-title,
.work--left .work-title, .work--right .work-title { mix-blend-mode: difference; }
.work--full .work-caption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 3rem;
  padding: 1.1rem var(--gutter) 0;
}
.work-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  will-change: transform;
}
.work--full .work-title { margin-top: -0.85em; mix-blend-mode: difference; }
.work--square .work-title, .work--right .work-title { text-align: left; }
.work-meta {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-top: 1.2rem;
  font-size: 0.6875rem; letter-spacing: 0.12em;
  color: var(--bone-40);
}
.work--full .work-meta { flex-direction: row; flex-wrap: wrap; gap: 0.3rem 2.5rem; margin-top: 0; margin-left: auto; align-items: baseline; }
.work-idx { color: var(--signal); }
.work-client { color: var(--bone-60); }

/* ============ CAPABILITIES ============ */
.caps { padding-bottom: clamp(4rem, 9vh, 6rem); }
.caps-list { list-style: none; margin-top: clamp(2rem, 6vh, 4rem); }
.cap {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: baseline; gap: 1.5rem;
  padding: clamp(1.4rem, 3vh, 2.2rem) var(--gutter);
  border-bottom: 1px solid var(--bone-08);
  transition: background 0.4s var(--ease-out);
}
.cap:first-child { border-top: 1px solid var(--bone-08); }
.cap:hover { background: var(--panel); }
.cap-idx { font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--bone-40); transition: color 0.3s; }
.cap:hover .cap-idx { color: var(--signal); }
.cap-name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1; letter-spacing: 0;
  transition: transform 0.5s var(--ease-out);
}
.cap:hover .cap-name { transform: translateX(0.35em); }
.cap-desc { font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--bone-40); line-height: 1.9; }

.recog {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding: clamp(3rem, 7vh, 5rem) var(--gutter) 0;
  max-width: 70rem;
}
.recog-head { font-size: 0.625rem; letter-spacing: 0.2em; color: var(--signal); margin-bottom: 1.2rem; font-weight: 400; }
.recog ul { list-style: none; }
.recog li { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--bone-60); padding: 0.55rem 0; border-bottom: 1px solid var(--bone-08); }
.recog .x { color: var(--bone-40); }

/* ============ STUDIO ============ */
.studio { padding-bottom: clamp(5rem, 12vh, 9rem); }
.studio-hero { position: relative; margin-top: clamp(2rem, 5vh, 3.5rem); }
.studio-media { overflow: clip; }
.studio-media img {
  width: 100%; aspect-ratio: 21 / 9; object-fit: cover;
  will-change: transform;
}
.studio-title {
  position: absolute; bottom: -0.12em; left: var(--gutter); z-index: 2;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.86; letter-spacing: -0.015em;
  mix-blend-mode: difference;
}
.studio-cols {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) 0;
  align-items: start;
}
.studio-text p { font-size: clamp(0.95rem, 1.15vw, 1.1rem); color: var(--bone-60); max-width: 34rem; }
.studio-text p + p { margin-top: 1.5rem; }
.studio-tag { color: var(--signal); font-size: 0.75em; letter-spacing: 0.12em; }
.studio-bts img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.studio-bts figcaption { font-size: 0.625rem; letter-spacing: 0.14em; color: var(--bone-40); padding-top: 0.8rem; }
.studio-stats {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin: clamp(3.5rem, 8vh, 6rem) var(--gutter) 0;
  border-top: 1px solid var(--bone-20);
}
.studio-stats li {
  padding: 1.2rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  letter-spacing: 0.02em;
}
.studio-stats b { font-weight: 400; font-variant-numeric: tabular-nums; }
.studio-stats li span {
  display: block; font-size: 0.625rem; letter-spacing: 0.18em;
  color: var(--bone-40); margin-bottom: 0.5rem;
}

/* ============ CONTACT ============ */
.contact { padding-bottom: clamp(6rem, 14vh, 10rem); }
.callsheet {
  margin: clamp(2.5rem, 7vh, 5rem) var(--gutter) 0;
  max-width: 56rem;
}
.cs-row {
  display: grid; grid-template-columns: minmax(9rem, 16rem) 1fr; gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--bone-08);
  font-size: 0.75rem; letter-spacing: 0.12em;
}
.cs-row dt { color: var(--bone-40); }
.cs-row dd { color: var(--bone); }
.cs-row dd a { transition: color 0.3s var(--ease-out); }
.cs-row dd a:hover { color: var(--signal); }
.status-open { color: var(--signal); }

.contact-mail {
  display: block;
  padding: clamp(3rem, 9vh, 6rem) var(--gutter) 0;
  overflow-wrap: anywhere;
}
.contact-mail-line {
  display: inline-block;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.2rem, 6.4vw, 6.4rem);
  line-height: 0.95; letter-spacing: -0.01em;
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-size: 0% 3px;
  background-position: 0 100%;
  transition: color 0.35s var(--ease-out), background-size 0.6s var(--ease-hard);
  padding-bottom: 0.08em;
}
.contact-mail:hover .contact-mail-line { color: var(--signal); background-size: 100% 3px; }
.contact-sub {
  padding: 1.6rem var(--gutter) 0;
  font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--bone-40);
}

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--bone-20); background: var(--ink); }
.footer-top {
  display: flex; flex-wrap: wrap; gap: 2rem 4rem;
  align-items: flex-start;
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter);
}
.footer-brand { font-family: var(--display); font-weight: 600; font-size: 2rem; }
.footer-brand sup { font-size: 0.4em; font-weight: 400; }
.footer-addr { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-addr p, .footer-soc a { font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--bone-40); }
.js-clock { color: var(--signal); font-variant-numeric: tabular-nums; margin-left: 0.6em; }
.footer-soc { display: flex; flex-direction: column; gap: 0.4rem; margin-left: auto; }
.footer-soc a { transition: color 0.3s; padding: 0.1rem 0; }
.footer-soc a:hover { color: var(--signal); }
.footer-bot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem;
  padding: 1.1rem var(--gutter) 1.4rem;
  border-top: 1px solid var(--bone-08);
  font-size: 0.625rem; letter-spacing: 0.14em; color: var(--bone-40);
}
.footer-bot a { transition: color 0.3s var(--ease-out); }
.footer-bot a:hover { color: var(--signal); }
.footer-hint kbd {
  font-family: var(--mono);
  border: 1px solid var(--bone-20); padding: 0.05em 0.4em; border-radius: 2px;
  color: var(--signal);
}
@media (pointer: coarse) { .footer-hint { display: none; } }

/* ============ REVEALS ============
   Elements are visible by default (fail-open: no-JS, print, full-page
   captures all read correctly). GSAP hides them only at the moment
   their trigger arms, just offscreen. */

/* ============ MOBILE ============ */
@media (max-width: 760px) {
  .nav { padding: 0.9rem var(--gutter); }
  .nav-tc { display: none; }
  .nav-links a { font-size: 0.625rem; }

  .hero-title { font-size: clamp(5rem, 30vw, 9rem); }
  .hero-foot { flex-direction: column; gap: 0.5rem; }
  .hero-hud { inset: 4.2rem var(--gutter) 30svh; }
  .hero-kicker { max-width: 22rem; }

  .manifesto-body { grid-template-columns: 1fr; justify-content: start; margin-left: 0; }

  .work--portrait, .work--square, .work--left, .work--right {
    display: block; padding: 0 var(--gutter);
  }
  .work--portrait .work-media, .work--square .work-media,
  .work--left .work-media, .work--right .work-media { width: 100%; }
  .work--portrait .work-caption, .work--square .work-caption {
    margin-left: 0; margin-right: 0;
  }
  .work--full .work-caption { flex-direction: column; gap: 0; align-items: flex-start; }
  .work--full .work-meta { flex-direction: column; gap: 0.3rem; margin-top: 1.2rem; margin-left: 0; }
  .work--full .work-title { margin-top: -0.5em; }
  .work-title { font-size: clamp(2.4rem, 12vw, 4rem); }
  .reel { gap: 5rem; }

  .cap { grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; gap: 0.6rem 1rem; }
  .cap-desc { grid-column: 2; }
  .recog { grid-template-columns: 1fr; }

  .studio-cols { grid-template-columns: 1fr; }
  .studio-stats { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .studio-media img { aspect-ratio: 16 / 10; }

  .cs-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .cs-row dt { font-size: 0.625rem; }

  .footer-top { flex-direction: column; gap: 1.5rem; }
  .footer-soc { margin-left: 0; flex-direction: row; gap: 1.5rem; }
  .footer-bot { flex-direction: column; }
}

/* ============================================================
   INNER PAGES — CASE FILES (/work/<slug>/) & FILMOGRAPHY (/work/)
   Register rule (§7): inner pages support, never compete. Display
   caps at the studio-title scale; no loader, no marquees, one
   scrubbed moment max (the case hero's clip-open).
   ============================================================ */

/* clickable media frames (home featured works, next-film blocks) */
a.work-media { display: block; color: inherit; }

/* ALL WORK → link under the home reel (fit-content: hover zone = the text) */
.works-all {
  display: block; width: fit-content; margin-left: auto;
  padding: clamp(3.5rem, 9vh, 6rem) var(--gutter) 0;
  font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--bone-60);
  transition: color 0.3s var(--ease-out);
}
.works-all:hover { color: var(--signal); }

/* clearance under the fixed nav — inner pages have no full-bleed hero */
main.inner { padding-top: clamp(5.5rem, 12vh, 8rem); }

/* case header block */
.case-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: 0.86; letter-spacing: -0.015em;
  padding: clamp(1.5rem, 4vh, 3rem) var(--gutter) 0;
  will-change: transform;
}
.case-format {
  padding: 1.4rem var(--gutter) 0;
  font-size: 0.6875rem; letter-spacing: 0.14em;
  color: var(--bone-40);
  font-variant-numeric: tabular-nums;
}

/* reel frame — the case hero (§7.1.3): 2.39 gate, viewfinder corners,
   centered mono tag. A [data-reel-src] video swaps in when the mp4 answers. */
.case-hero { margin-top: clamp(3rem, 8vh, 5rem); }
.case-reel { aspect-ratio: 2.39 / 1; }
.case-reel video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.case-hud { position: absolute; inset: 0.9rem 1rem; z-index: 3; pointer-events: none; }
.reel-tag {
  position: absolute; inset: 0; z-index: 3;
  display: grid; place-items: center;
  pointer-events: none;
  font-size: 0.625rem; letter-spacing: 0.2em;
  color: var(--bone);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
  font-variant-numeric: tabular-nums;
}

/* synopsis — mono side-head + rationed Archivo prose */
.case-intro {
  display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 34rem);
  gap: 2rem;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter);
}
.case-label { font-size: 0.625rem; letter-spacing: 0.2em; color: var(--signal); font-weight: 400; }
.case-intro-text p { font-size: clamp(0.95rem, 1.15vw, 1.1rem); color: var(--bone-60); }
.case-intro-text p + p { margin-top: 1.5rem; }

.case-stills { padding-bottom: clamp(5rem, 12vh, 10rem); }
/* stills carry meta-only captions (§7.1.4) — no blend title, so no overlap pull */
.case-stills .work-caption { margin-left: 0; margin-right: 0; }
.case-crew { padding-bottom: clamp(5rem, 12vh, 9rem); }
.case-next .work--full { margin-top: clamp(3rem, 8vh, 5rem); }
.case-next { padding-bottom: clamp(6rem, 14vh, 10rem); }

/* filmography table (/work/) — .cap grammar applied to films */
.film-index {
  list-style: none;
  margin-top: clamp(2.5rem, 7vh, 5rem);
  padding-bottom: clamp(6rem, 14vh, 10rem);
}
.film-row {
  position: relative;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(9rem, 11rem);
  align-items: baseline; gap: 1.5rem;
  padding: clamp(1.4rem, 3vh, 2.2rem) var(--gutter);
  border-bottom: 1px solid var(--bone-08);
  transition: background 0.4s var(--ease-out);
}
.film-index li:first-child .film-row { border-top: 1px solid var(--bone-08); }
a.film-row:hover { background: var(--panel); }
.film-idx { font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--bone-40); transition: color 0.3s; }
a.film-row:hover .film-idx { color: var(--signal); }
.film-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1; letter-spacing: 0;
  transition: transform 0.5s var(--ease-out);
}
a.film-row:hover .film-title { transform: translateX(0.35em); }
.film-row--closed .film-title { color: var(--bone-60); }
/* meta columns stack above the hover preview, text burned over footage
   like .work-hud — same text-shadow, same legibility trick */
.film-meta {
  font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--bone-40); line-height: 1.9;
  position: relative; z-index: 6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.film-client { color: var(--bone-60); }
.film-end {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; text-align: right;
  position: relative; z-index: 6;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}
.film-year { font-size: 0.75rem; letter-spacing: 0.12em; color: var(--bone-60); font-variant-numeric: tabular-nums; }
.film-status { font-size: 0.625rem; letter-spacing: 0.14em; color: var(--bone-40); transition: color 0.3s; }
a.film-row .film-status { color: var(--bone-60); }
a.film-row:hover .film-status { color: var(--signal); }
/* hover still preview — CSS only, fine pointers, settles in (y 10 → 0) */
.film-still {
  position: fixed; right: var(--gutter); top: 50%;
  width: min(24rem, 26vw); aspect-ratio: 16 / 9; object-fit: cover;
  opacity: 0; transform: translateY(calc(-50% + 10px));
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  pointer-events: none;
  z-index: 5;
}
.film-row:hover .film-still { opacity: 1; transform: translateY(-50%); }
@media (hover: none) { .film-still { display: none; } }

/* lightbox — viewfinder frame. z-88: UNDER grain (90) and vignette (89);
   the emulsion stays on top of everything (§2.4). Hard cut open/close. */
.lightbox {
  position: fixed; inset: 0; z-index: 88;
  display: none; place-items: center;
  padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) clamp(4rem, 10vh, 6rem);
  background: rgba(6, 6, 6, 0.94);
}
.lightbox.on { display: grid; }
.lb-frame { position: relative; }
.lb-img { display: block; max-width: 100%; max-height: 72vh; width: auto; height: auto; }
.lb-frame .hud-corner { opacity: 0.9; }
.lb-cap {
  position: absolute; top: 100%; left: 0; right: 0;
  padding-top: 0.9rem;
  font-size: 0.625rem; letter-spacing: 0.14em;
  color: var(--bone-40);
  font-variant-numeric: tabular-nums;
}
/* lightbox-openable figures are keyboard-reachable */
.work-media[data-lightbox] { cursor: pointer; }
body.has-cursor .work-media[data-lightbox] { cursor: none; }

/* ============================================================
   DEPTH LAYER — flows, transitions, inner-native interactions
   (/studio/, /journal/, /404/, imprint, filters, grade toggle)
   ============================================================ */

/* page-cut leader (JS-created overlay, z-180: over grid, under cut-flash).
   Exit: 2 frames of black + a counter blip, then navigate. Enter: same,
   reversed. Hard cuts only — §1. */
.cut-leader {
  position: fixed; inset: 0; z-index: 180;
  background: var(--black);
  display: none; place-items: center;
  pointer-events: none;
}
.cut-leader.on { display: grid; }
.cut-leader-count {
  font-family: var(--mono); font-size: 1.25rem; letter-spacing: 0.2em;
  color: var(--bone-40);
  font-variant-numeric: tabular-nums;
}

/* chain row — prev film / all work, under the next-film block */
.case-chain {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem;
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) 0;
  font-size: 0.6875rem; letter-spacing: 0.14em;
}
.case-chain a { color: var(--bone-60); padding: 0.5rem 0; transition: color 0.3s var(--ease-out); }
.case-chain a:hover { color: var(--signal); }

/* grade toggle — the DP's party trick. Lives in the stills sec-head;
   the look swap is a HARD CUT (§1): no filter transition, ever. */
.grade-toggle {
  margin-left: auto;
  display: flex; align-items: baseline; gap: 0.7em;
  background: none; border: 0; padding: 0.5rem 0;
  font: inherit; letter-spacing: inherit; text-transform: uppercase;
  color: var(--bone-40);
  cursor: pointer;
}
body.has-cursor .grade-toggle { cursor: none; }
.gt-opt { color: var(--bone-40); transition: color 0.3s var(--ease-out); }
.gt-opt.is-on { color: var(--bone); }
.grade-toggle:hover .gt-opt:not(.is-on) { color: var(--signal); }
.gt-sep { color: var(--bone-20); }
/* the log look — what the sensor handed us before Suite A */
.case-stills.is-log .work-media img,
.case-stills.is-log .work-media canvas {
  filter: saturate(0.5) contrast(0.72) brightness(1.14);
}

/* filter strip (/work/) — mono toggles, instant, FLIP on the rows */
.film-filters {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 3rem;
  padding: clamp(1.8rem, 4.5vh, 3rem) var(--gutter) 0;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em;
}
.ff-group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.5rem; }
.ff-label { color: var(--bone-40); margin-right: 0.3rem; }
.ff-btn {
  background: none; border: 0; padding: 0.5rem 0;
  font: inherit; letter-spacing: inherit; text-transform: uppercase;
  color: var(--bone-40);
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}
body.has-cursor .ff-btn { cursor: none; }
.ff-btn:hover { color: var(--bone); }
.ff-btn.is-on { color: var(--signal); }
.ff-count { margin-left: auto; color: var(--bone-40); font-variant-numeric: tabular-nums; }
.film-index li.is-hidden { display: none; }

/* ============ STUDIO PAGE (/studio/) ============ */
/* the rooms — two columns, each with the page's pulse: a live local
   clock at loader-count register (mono, tabular, bone — §5.1 precedent) */
.rooms {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem);
  padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) 0;
}
.room { border-top: 1px solid var(--bone-20); padding-top: 1.1rem; }
.room-tag { font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--bone); }
.room-tag .room-no { color: var(--signal); margin-right: 0.9em; }
.room-clock {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1; letter-spacing: 0;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
  margin: clamp(1.2rem, 3vh, 2rem) 0 1.1rem;
}
.room-clock .js-clock { color: inherit; margin-left: 0; }
.room-live { font-size: 0.625rem; letter-spacing: 0.16em; color: var(--signal); }
.room-meta { list-style: none; margin-top: 1rem; }
.room-meta li {
  font-size: 0.6875rem; letter-spacing: 0.12em; color: var(--bone-40);
  padding: 0.5rem 0; border-bottom: 1px solid var(--bone-08);
}
.studio-prose {
  display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 34rem);
  gap: 2rem;
  padding: clamp(4rem, 10vh, 7rem) var(--gutter) 0;
}
/* callsheet reused inside the studio grid — the gutter is already outside */
.studio-crew .callsheet { margin: 0; }
.studio-crew .studio-cols { align-items: center; }
.studio-bts figcaption a { color: var(--bone-60); transition: color 0.3s var(--ease-out); }
.studio-bts figcaption a:hover { color: var(--signal); }
.studio-prose p { font-size: clamp(0.95rem, 1.15vw, 1.1rem); color: var(--bone-60); }
.studio-prose p + p { margin-top: 1.5rem; }

/* ============ JOURNAL (/journal/) — reading room ============ */
.journal-list { list-style: none; padding-bottom: clamp(4rem, 9vh, 6rem); }
.j-entry {
  display: grid; grid-template-columns: minmax(9rem, 16rem) minmax(0, 34rem);
  gap: 1rem 2rem;
  padding: clamp(2.6rem, 6vh, 4.2rem) var(--gutter);
  border-bottom: 1px solid var(--bone-08);
}
.j-marg {
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.6875rem; letter-spacing: 0.12em;
  color: var(--bone-40);
  font-variant-numeric: tabular-nums;
}
.j-idx { color: var(--signal); }
.j-marg a { color: var(--bone-60); width: fit-content; padding: 0.1rem 0; transition: color 0.3s var(--ease-out); }
.j-marg a:hover { color: var(--signal); }
.j-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem);
  line-height: 1; letter-spacing: 0;
  margin-bottom: clamp(1.1rem, 2.5vh, 1.8rem);
}
.j-body p { font-size: clamp(0.95rem, 1.15vw, 1.1rem); color: var(--bone-60); }
.j-body p + p { margin-top: 1.2rem; }

/* ============ 404 — FRAME NOT FOUND ============ */
.frame-404 {
  display: grid; place-items: center; align-content: center;
  min-height: min(calc(100svh - 14rem), 44rem);
  padding-bottom: clamp(5rem, 12vh, 9rem);
}
.leader-404 {
  position: relative;
  width: min(84vw, 52rem); aspect-ratio: 2.39 / 1;
  border: 1px solid var(--bone-20);
  display: grid; place-items: center; align-content: center; gap: 1rem;
  margin: clamp(2rem, 6vh, 4rem) var(--gutter) 0;
}
.count-404 {
  font-family: var(--mono);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 1; color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.tc-404 {
  font-size: 0.6875rem; letter-spacing: 0.16em; color: var(--signal);
  font-variant-numeric: tabular-nums;
  animation: blink 1.2s steps(1) infinite;
}
html.reduced .tc-404 { animation: none; }
.line-404 { margin-top: clamp(1.8rem, 4vh, 2.6rem); font-size: 0.75rem; letter-spacing: 0.12em; color: var(--bone-60); text-align: center; padding: 0 var(--gutter); }
.back-404 { margin-top: 1.1rem; font-size: 0.6875rem; letter-spacing: 0.14em; color: var(--bone-60); padding: 0.5rem 0; transition: color 0.3s var(--ease-out); }
.back-404:hover { color: var(--signal); }

/* footer easter egg — the impossible timecode (frame 24 doesn't exist) */
.footer-lost { color: var(--bone-20); font-variant-numeric: tabular-nums; transition: color 0.3s var(--ease-out); }
.footer-lost:hover { color: var(--signal); }

/* imprint — quiet page, callsheet grammar; one prose slot */
.imprint-note {
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) clamp(5rem, 12vh, 9rem);
  max-width: 44rem;
  font-size: 0.6875rem; letter-spacing: 0.12em; line-height: 2;
  color: var(--bone-40);
  font-family: var(--mono);
}

/* ============ INNER PAGES — MOBILE ============ */
@media (max-width: 760px) {
  main.inner { padding-top: 5rem; }
  .case-intro { grid-template-columns: 1fr; gap: 1.2rem; }
  .film-row { grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; gap: 0.6rem 1rem; }
  .film-meta { grid-column: 2; }
  .film-end { grid-column: 2; flex-direction: row; align-items: baseline; gap: 1.5rem; text-align: left; }
  .film-still { display: none; }
  .reel-tag { font-size: 0.575rem; letter-spacing: 0.16em; }
  .lb-img { max-height: 58vh; }

  /* depth layer */
  .film-filters { gap: 0.4rem 1.5rem; }
  .ff-count { margin-left: 0; flex-basis: 100%; }
  .rooms { grid-template-columns: 1fr; gap: 2.5rem; }
  .room-clock { font-size: clamp(3rem, 14vw, 4.5rem); }
  .studio-prose, .j-entry { grid-template-columns: 1fr; }
  .j-marg { flex-direction: row; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin-bottom: 0.6rem; }
  .leader-404 { width: 100%; aspect-ratio: 16 / 10; }
  .grade-toggle { flex-basis: 100%; justify-content: flex-start; margin-left: 0; padding-top: 0.2rem; }
  .sec-head { flex-wrap: wrap; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .rec-dot { animation: none; }
  .hero-media video { height: 100%; }
  * { transition-duration: 0.01ms !important; }
}
