/* ─────────────────────────────────────────────────────────────────────────
   Modern Film Production — Cinematic editorial styles
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0A0908;
  --fg: #F4F1EA;
  --fg-dim: rgba(244, 241, 234, 0.55);
  --fg-faint: rgba(244, 241, 234, 0.18);
  --line: rgba(244, 241, 234, 0.12);
  --line-strong: rgba(244, 241, 234, 0.35);
  --halation: oklch(0.68 0.20 35);
  --halation-rgb: 255 92 40;
  --grain-opacity: 0.5;
  --matte: 0px;
  --max: 1440px;
  --pad: 32px;
  --header-h: 64px;
}

[data-theme="light"] {
  --bg: #F4F1EA;
  --fg: #0A0908;
  --fg-dim: rgba(10, 9, 8, 0.55);
  --fg-faint: rgba(10, 9, 8, 0.18);
  --line: rgba(10, 9, 8, 0.12);
  --line-strong: rgba(10, 9, 8, 0.35);
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;  /* `clip` (not `hidden`) so it doesn't break position:sticky descendants */
}

body {
  min-height: 100vh;
  position: relative;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Typography ---------------------------------------------------------- */
.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.01em; }
.serif-it { font-family: 'Instrument Serif', 'Times New Roman', serif; font-style: italic; font-weight: 400; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 400; letter-spacing: 0.02em; }
.upper { text-transform: uppercase; letter-spacing: 0.08em; }

h1, h2, h3, h4 { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.015em; }
.tiny { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }

/* Grain overlay ------------------------------------------------------- */
.grain {
  position: fixed; inset: -8%; z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  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='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.4 -0.2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  will-change: transform;
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 2%); }
  100% { transform: translate(0, 0); }
}

/* Frame markers (viewfinder corners) --------------------------------- */
.frame-markers { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.frame-markers .fm {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--fg-dim);
}
.frame-markers .fm.tl { top: 18px; left: 18px; border-top: 1px solid; border-left: 1px solid; }
.frame-markers .fm.tr { top: 18px; right: 18px; border-top: 1px solid; border-right: 1px solid; }
.frame-markers .fm.bl { bottom: 18px; left: 18px; border-bottom: 1px solid; border-left: 1px solid; }
.frame-markers .fm.br { bottom: 18px; right: 18px; border-bottom: 1px solid; border-right: 1px solid; }

/* Cinemascope mattes (top/bottom bars on hero) ----------------------- */
.matte {
  position: absolute; left: 0; right: 0; height: var(--matte);
  background: #000;
  z-index: 5; transition: height 0.4s ease;
  pointer-events: none;
}
.matte.top { top: 0; }
.matte.bottom { bottom: 0; }

/* Header ------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  height: var(--header-h);
  padding: 0 var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header .brand {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Instrument Serif', serif; font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--fg);
  text-decoration: none;
}
.site-header .brand:hover { color: var(--halation); transition: color 0.3s ease; }
.site-header .brand .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--halation);
  box-shadow: 0 0 12px var(--halation), 0 0 24px var(--halation);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.site-header nav {
  display: flex; gap: 28px; align-items: center;
}
.site-header nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}
.site-header nav a::before {
  content: ''; position: absolute; left: -14px; top: 50%;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--fg-dim);
  transform: translateY(-50%) scale(0);
  transition: transform 0.25s ease, background 0.25s ease;
}
.site-header nav a:hover { color: var(--fg); }
.site-header nav a:hover::before { transform: translateY(-50%) scale(1); background: var(--halation); }

.site-header .right {
  display: flex; align-items: center; gap: 18px;
}
.timecode {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.timecode .rec {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--halation);
  box-shadow: 0 0 8px var(--halation);
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.2; } }

/* Sprocket strip ----------------------------------------------------- */
.sprockets {
  display: flex; gap: 4px; height: 8px; align-items: center;
  overflow: hidden;
}
.sprockets i {
  flex: 0 0 12px; height: 8px; border-radius: 2px;
  background: var(--fg-faint);
}

/* Buttons + halation hover ------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  background: var(--fg); color: var(--bg);
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s ease, color 0.3s ease;
  overflow: visible;
  isolation: isolate;
  white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: -2px;
  border-radius: 999px;
  z-index: -1;
  box-shadow:
    0 0 0px 0px rgba(var(--halation-rgb) / 0),
    0 0 0px 0px rgba(var(--halation-rgb) / 0);
  transition: box-shadow 0.5s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:hover::after {
  box-shadow:
    0 0 36px 6px rgba(var(--halation-rgb) / 0.55),
    0 0 80px 18px rgba(var(--halation-rgb) / 0.30),
    0 0 140px 40px rgba(var(--halation-rgb) / 0.15);
}
.btn .reticle {
  width: 14px; height: 14px; flex-shrink: 0;
  position: relative;
}
.btn .reticle::before,
.btn .reticle::after {
  content: ''; position: absolute;
  background: currentColor;
}
.btn .reticle::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.btn .reticle::after  { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.btn .reticle span {
  position: absolute; inset: 2px;
  border: 1px solid currentColor; border-radius: 50%;
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn.ghost:hover { border-color: var(--halation); color: var(--fg); }

/* Halation generic — wrap link/element with .halate ------------------- */
.halate { position: relative; isolation: isolate; }
.halate::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  z-index: -1; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(var(--halation-rgb) / 0);
  transition: box-shadow 0.5s cubic-bezier(.2,.7,.2,1);
}
.halate:hover::after {
  box-shadow:
    0 0 30px 4px rgba(var(--halation-rgb) / 0.45),
    0 0 70px 14px rgba(var(--halation-rgb) / 0.22);
}

/* Main wrap ---------------------------------------------------------- */
main { padding-top: var(--header-h); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* Section base ------------------------------------------------------- */
.section { padding: 120px var(--pad); position: relative; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 64px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.section-head .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; color: var(--fg-dim);
}
.section-head h2 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.section-head h2 em { font-style: italic; color: var(--fg-dim); }
.section-head .meta { color: var(--fg-dim); font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; }

/* Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 100px var(--pad) 60px;
  overflow: hidden;
  gap: 40px;
}
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px;
}
.hero-top .label-right { text-align: right; }

/* Hero: editorial typography variant */
.hero-typo .big-type {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(64px, 13vw, 240px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  position: relative;
}
.hero-typo .big-type .word {
  display: block;
  overflow: hidden;
}
.hero-typo .big-type .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-typo .big-type .word:nth-child(2) > span { animation-delay: 0.1s; }
.hero-typo .big-type .word:nth-child(3) > span { animation-delay: 0.2s; }
.hero-typo .big-type em { font-style: italic; color: var(--fg-dim); }
@keyframes rise {
  to { transform: translateY(0); }
}

/* Hero: showreel/video variant */
.hero-video { padding: 0; gap: 0; }
.hero-video .hero-top { padding: 100px var(--pad) 24px; }
.hero-video .reel-frame {
  position: relative;
  flex: 1;
  margin: 0 var(--pad);
  min-height: 360px;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}
.hero-video .reel-frame .reel-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(var(--halation-rgb) / 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 70%, rgba(80, 50, 200, 0.18) 0%, transparent 60%),
    linear-gradient(120deg, #1a1310, #050505 60%);
  filter: contrast(1.05);
}
.hero-video .reel-frame .reel-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.15em;
}
.hero-video .reel-frame::before,
.hero-video .reel-frame::after {
  content: ''; position: absolute; left: 0; right: 0; height: 28px;
  background: #000; z-index: 2;
}
.hero-video .reel-frame::before { top: 0; }
.hero-video .reel-frame::after  { bottom: 0; }
.hero-video .reel-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px;
  color: #fff;
}
.hero-video .reel-overlay .top { display:flex; justify-content: space-between; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); }
.hero-video .reel-overlay .ctr { display:flex; align-items:center; justify-content:center; }
.hero-video .reel-overlay .play {
  width: 100px; height: 100px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  display:flex; align-items:center; justify-content:center;
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}
.hero-video .reel-overlay .play::before {
  content: ''; position: absolute; inset: 8px; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.3);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-video .reel-overlay .play:hover { transform: scale(1.05); border-color: var(--halation); box-shadow: 0 0 40px rgba(var(--halation-rgb) / 0.5); }
.hero-video .reel-overlay .play svg { position: relative; z-index: 1; }
.hero-video .reel-overlay .play span {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.hero-video .reel-title {
  position: relative; z-index: 4;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 5.4vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  padding: 32px var(--pad) 0;
}
.hero-video .reel-title em { font-style: italic; color: var(--fg-dim); }

/* Hero: marquee variant */
.hero-marquee { padding: 100px 0 0; gap: 0; }
.hero-marquee .hero-top { padding: 0 var(--pad); margin-bottom: 40px; }
.hero-marquee .stack { display: flex; flex-direction: column; gap: 8px; padding: 0 0 40px; }
.hero-marquee .row {
  white-space: nowrap;
  overflow: hidden;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 10vw, 180px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hero-marquee .row .track {
  display: inline-flex; gap: 64px;
  animation: marquee 38s linear infinite;
}
.hero-marquee .row.rev .track { animation-direction: reverse; animation-duration: 44s; }
.hero-marquee .row em { font-style: italic; color: var(--fg-dim); padding-right: 64px; }
.hero-marquee .row .dotsep { color: var(--halation); padding-right: 64px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero-marquee .meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 var(--pad) 40px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

/* Hero common: bottom info bar */
.hero-bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  gap: 60px;
  flex-wrap: wrap;
}
.hero-video .hero-bottom { padding: 24px var(--pad) 60px; margin-top: 32px; }
.hero-bottom .desc {
  max-width: 460px;
  font-size: 18px; line-height: 1.4;
  color: var(--fg);
  font-family: 'Instrument Serif', serif;
  letter-spacing: -0.01em;
}
.hero-bottom .desc em { color: var(--fg-dim); font-style: italic; }
.hero-bottom .meta-block {
  display: flex; gap: 48px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--fg-dim);
}
.hero-bottom .meta-block strong { display: block; color: var(--fg); font-weight: 400; margin-top: 4px; font-family: 'Instrument Serif', serif; font-size: 22px; letter-spacing: -0.01em; text-transform: none; }

/* Slate (clapperboard) ----------------------------------------------- */
.slate {
  display: inline-flex; flex-direction: column;
  border: 1px solid var(--line-strong);
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.1em;
  background: color-mix(in oklab, var(--fg) 4%, transparent);
}
.slate .slate-top {
  display: flex; padding: 4px 8px; gap: 8px;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 12px, var(--fg) 12px 24px, transparent 24px 36px);
  background-clip: padding-box;
  color: transparent;
  height: 14px;
}
.slate .slate-body { padding: 8px 10px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 3px; color: var(--fg); text-transform: uppercase; }
.slate .slate-body span { color: var(--fg-dim); }

/* Works — list -------------------------------------------------------- */
.works-list { display: flex; flex-direction: column; }
.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 1fr 100px;
  gap: 32px; align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding 0.5s cubic-bezier(.2,.7,.2,1), color 0.3s ease;
}
.work-row:first-child { border-top: 1px solid var(--line); }
.work-row .idx { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--fg-dim); letter-spacing: 0.1em; }
.work-row .title { font-family: 'Instrument Serif', serif; font-size: clamp(28px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.015em; }
.work-row .title em { color: var(--fg-dim); font-style: italic; }
.work-row .client, .work-row .cat {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim);
}
.work-row .arrow {
  justify-self: end;
  width: 36px; height: 36px; border: 1px solid var(--line-strong);
  border-radius: 50%; display: grid; place-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  color: var(--fg-dim);
}
.work-row:hover { padding-left: 24px; padding-right: 24px; }
.work-row:hover .arrow { transform: translateX(4px) rotate(-12deg); border-color: var(--halation); color: var(--halation); }
.work-row .preview {
  position: absolute; right: 120px; top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 320px; aspect-ratio: 16/10;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.2,.7,.2,1);
  z-index: 4;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.6),
    0 0 60px 4px rgba(var(--halation-rgb) / 0.25);
}
.work-row:hover .preview { opacity: 1; transform: translateY(-50%) scale(1); }
.work-row .preview .ph {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(var(--halation-rgb) / 0.4), transparent 50%),
    linear-gradient(135deg, #1a1310, #050505 70%);
}
.work-row .preview .ph::after {
  content: attr(data-label);
  position: absolute; bottom: 12px; left: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Works — grid -------------------------------------------------------- */
.works-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.work-card {
  position: relative;
  text-decoration: none; color: inherit;
  cursor: pointer;
  display: block;
}
.work-card .frame {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}
.work-card.span-7 { grid-column: span 7; }
.work-card.span-5 { grid-column: span 5; }
.work-card.span-6 { grid-column: span 6; }
.work-card.span-4 { grid-column: span 4; }
.work-card.span-8 { grid-column: span 8; }
.work-card.tall .frame { aspect-ratio: 4/5; }
.work-card .ph {
  position: absolute; inset: 0;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
}
.work-card .ph::after {
  content: attr(data-label);
  position: absolute; top: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.work-card .frame::after {
  content: ''; position: absolute; inset: 0;
  box-shadow: 0 0 0 0 rgba(var(--halation-rgb) / 0);
  transition: box-shadow 0.5s ease;
  pointer-events: none;
}
.work-card:hover .ph { transform: scale(1.04); filter: brightness(1.1); }
.work-card:hover .frame::after { box-shadow: inset 0 0 80px 0px rgba(var(--halation-rgb) / 0.35); }
.work-card .meta {
  margin-top: 18px;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px;
}
.work-card .meta h3 {
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.work-card .meta h3 em { color: var(--fg-dim); font-style: italic; }
.work-card .meta .info {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim);
  text-align: right;
}
.work-card .meta .info b { display:block; color: var(--fg); font-weight: 400; }

/* Specific placeholder backgrounds for variety ----------------------- */
.ph-desert  { background: linear-gradient(135deg, #2a1a0e 0%, #c97a3f 50%, #1a1208 100%); }
.ph-night   { background: linear-gradient(160deg, #0a0a18 0%, #2a2a4a 50%, #050510 100%); }
.ph-amber   { background: linear-gradient(135deg, #1a0e08 0%, rgba(var(--halation-rgb) / 0.7) 60%, #0a0604 100%); }
.ph-cool    { background: linear-gradient(145deg, #0a1418 0%, #1c4a55 50%, #050d10 100%); }
.ph-rose    { background: linear-gradient(135deg, #1a0810 0%, #8a3a52 50%, #0a0408 100%); }
.ph-gold    { background: linear-gradient(135deg, #1f1408 0%, #c79248 55%, #0e0805 100%); }
.ph-mono    { background: linear-gradient(135deg, #0a0a0a 0%, #525252 50%, #050505 100%); }
.ph-emerald { background: linear-gradient(135deg, #06140e 0%, #2d6b4f 50%, #03100a 100%); }
.ph-violet  { background: linear-gradient(135deg, #0e0820 0%, #5a3a98 50%, #050310 100%); }

/* Services ------------------------------------------------------------ */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 80px 1fr 1.8fr 80px;
  gap: 32px; align-items: start;
  padding: 36px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.4s ease;
}
.service-row:hover { padding-left: 16px; }
.service-row .num { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--fg-dim); }
.service-row h3 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.015em;
}
.service-row h3 em { color: var(--fg-dim); font-style: italic; }
.service-row p {
  color: var(--fg-dim);
  font-size: 14px; line-height: 1.6;
  max-width: 520px;
}
.service-row .tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.service-row .tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-dim);
}
.service-row .ph-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  justify-self: end;
  color: var(--fg-dim);
  transition: transform 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.service-row:hover .ph-icon { color: var(--halation); border-color: var(--halation); transform: rotate(45deg); }

/* About / Manifesto -------------------------------------------------- */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.about .manifesto {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.about .manifesto em { font-style: italic; color: var(--fg-dim); }
.about .manifesto p + p { margin-top: 1em; }

.about .side {
  display: flex; flex-direction: column; gap: 48px;
}
.stat-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.stat {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.stat .v {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(48px, 5vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.stat .v em { font-style: italic; color: var(--fg-dim); }
.stat .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 6px;
}

/* Studio (team) ------------------------------------------------------ */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.member .portrait {
  aspect-ratio: 3/4;
  background: #111;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.member:hover .portrait { transform: translateY(-6px); }
.member .portrait::after {
  content: 'Portrait'; position: absolute; bottom: 10px; left: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.12em; text-transform: uppercase;
}
.member .portrait .badge {
  position: absolute; top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace; font-size: 9px;
  color: rgba(255,255,255,0.7); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
}
.member .name {
  margin-top: 16px;
  font-family: 'Instrument Serif', serif;
  font-size: 26px; line-height: 1;
  letter-spacing: -0.015em;
}
.member .name em { font-style: italic; color: var(--fg-dim); }
.member .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 6px;
}

/* Clients marquee ---------------------------------------------------- */
.clients {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  overflow: hidden;
}
.clients .track {
  display: flex; gap: 64px;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  align-items: center;
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  letter-spacing: -0.01em;
  color: var(--fg-dim);
}
.clients .track i { color: var(--halation); font-style: normal; font-size: 18px; }
.clients .track em { font-style: italic; color: var(--fg); }

/* Contact / Footer --------------------------------------------------- */
.contact {
  padding: 120px var(--pad) 60px;
  position: relative;
}
.contact .big {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(72px, 12vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
}
.contact .big em { font-style: italic; color: var(--fg-dim); }
.contact .big a {
  color: inherit;
  text-decoration: none;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.contact .big a:hover { color: var(--halation); }
.contact .big a:hover::after {
  content: ''; position: absolute; inset: -20px;
  border-radius: 50%;
  box-shadow: 0 0 80px 20px rgba(var(--halation-rgb) / 0.4);
  pointer-events: none;
  z-index: -1;
}

.contact-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.contact-grid .col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 14px;
}
.contact-grid .col p, .contact-grid .col a {
  display: block;
  color: var(--fg);
  text-decoration: none;
  font-family: 'Instrument Serif', serif;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.01em;
}
.contact-grid .col a:hover { color: var(--halation); }
.contact-grid .col p + p, .contact-grid .col a + a { margin-top: 4px; }

.footer-end {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
}

/* Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* Light leak burn ---------------------------------------------------- */
.light-leak {
  position: fixed; pointer-events: none;
  z-index: 95;
  width: 50vw; height: 60vh;
  top: 0; right: -10vw;
  background: radial-gradient(ellipse at center,
    rgba(var(--halation-rgb) / 0.18) 0%,
    rgba(var(--halation-rgb) / 0.08) 30%,
    transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: leak 14s ease-in-out infinite;
}
/* Light leak — completely off on light theme so the page doesn't pulse with
   what reads as a rectangular orange overlay throbbing in/out. */
[data-theme="light"] .light-leak { display: none; }
@keyframes leak {
  0%, 90%, 100% { opacity: 0; transform: translateY(-20%) translateX(10%); }
  45%, 65%      { opacity: 1; transform: translateY(0%) translateX(0%); }
}

/* Custom cursor / reticle ------------------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  width: 28px; height: 28px;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}
.cursor.on { opacity: 1; }
.cursor svg { width: 100%; height: 100%; color: #fff; }
.cursor.hot { width: 60px; height: 60px; }

/* Hide native cursor only on fine pointers (desktop) for the custom one */
@media (pointer: fine) {
  body.cursor-on, body.cursor-on * { cursor: none !important; }
}

/* Case study --------------------------------------------------------- */
.case-hero {
  height: 100vh;
  position: relative;
  display: flex; align-items: end; padding-bottom: 60px;
}
.case-hero .bg {
  position: absolute; inset: 0; z-index: -1;
}
.case-hero h1 {
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.case-hero h1 em { font-style: italic; opacity: 0.7; }
.case-hero .meta-strip {
  position: absolute; top: 90px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Responsive nudges -------------------------------------------------- */
@media (max-width: 1100px) {
  .about { grid-template-columns: 1fr; gap: 48px; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .work-row { grid-template-columns: 40px 1.4fr 1fr 60px; }
  .work-row .cat { display: none; }
  .work-row .preview { display: none; }
}
@media (max-width: 720px) {
  :root { --pad: 18px; }
  .section { padding: 80px var(--pad); }
  .site-header nav { display: none; }
  .work-row { grid-template-columns: 30px 1fr 50px; gap: 16px; }
  .work-row .client { display: none; }
  .works-grid > * { grid-column: span 12 !important; }
  .team { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 40px 1fr; }
  .service-row .desc, .service-row .ph-icon { grid-column: 1 / -1; }
}
