:root {
  /* dark theme: "paper" is the background, "ink" the text */
  color-scheme: dark;
  --paper: #0E0D0B;
  --paper-2: #181714;
  --paper-rgb: 14, 13, 11;
  --ink: #EEEAE1;
  --ink-rgb: 238, 234, 225;
  --ink-2: #B4AEA2;
  --ink-3: #7F7A70;
  --rule: rgba(238, 234, 225, 0.14);
  --accent: #FF4A1C;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.accent { color: var(--accent); }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} }

/* ── NAV ─────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  mix-blend-mode: difference; color: #fff;
}
.nav-mark { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.nav-tc { opacity: .8; font-variant-numeric: tabular-nums; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links i { font-style: normal; opacity: .5; margin-right: 4px; }
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── HERO ────────────────────────────── */
.hero {
  position: relative; min-height: min(100svh, 1000px); overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(32px, 6vh, 72px);
}
.sheet {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); align-content: start; align-items: start; gap: 6px; padding: 6px;
  opacity: .55;
}
.sheet .cell { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 16/9; }
.sheet .cell img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); opacity: .45; transition: filter .9s var(--ease), opacity .9s var(--ease); }
.sheet .cell.on img { filter: none; opacity: 1; }
.sheet .cell.on::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--accent); }
.sheet .cell span { position: absolute; left: 6px; bottom: 4px; font: 9px var(--mono); color: #fff; mix-blend-mode: difference; opacity: .7; }
.hero-video { position: absolute; inset: 0; background: var(--ink); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero:has(.hero-video) .hero-kicker { width: fit-content; padding: 6px 12px 6px 10px; border-radius: 99px; background: rgba(var(--paper-rgb), .82); color: var(--ink); }
/* with a clip behind it, keep the top of the frame clear and only fade in paper behind the text */
.hero:has(.hero-video)::before {
  background: linear-gradient(to top, var(--paper) 6%, rgba(var(--paper-rgb), .78) 34%, rgba(var(--paper-rgb), .2) 68%, rgba(var(--paper-rgb), 0) 100%);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, var(--paper) 18%, rgba(var(--paper-rgb), .82) 48%, rgba(var(--paper-rgb), .35) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-kicker { display: flex; align-items: center; gap: 8px; color: var(--ink-2); margin-bottom: 12px; }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hero-name {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(52px, 10vw, 168px); line-height: .88; letter-spacing: -.045em;
  font-variation-settings: 'opsz' 144;
}
.hero-name .line { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-name .line:nth-child(2) { padding-left: .24em; }
.hero-name .ch { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
.slate {
  display: grid; grid-template-columns: repeat(2, auto); justify-content: start;
  margin-top: clamp(24px, 4vh, 44px); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.slate div { padding: 10px 28px 10px 0; margin-right: 28px; border-right: 1px solid var(--rule); }
.slate div:last-child { border-right: 0; }
.slate dt { color: var(--ink-3); font-size: 9px; }
.slate dd { color: var(--ink); font-size: 12px; margin-top: 2px; }
.hero-tagline { max-width: 34ch; margin-top: 20px; font-family: var(--serif); font-size: clamp(19px, 2vw, 26px); line-height: 1.25; color: var(--ink-2); }
.hero-ctas { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  border: 1px solid var(--ink); border-radius: 999px; font-weight: 500; font-size: 14px;
  transition: background .3s, color .3s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }

/* ── SECTIONS ────────────────────────── */
.section { padding: clamp(80px, 14vh, 160px) var(--gutter) 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; margin-bottom: 36px; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 84px); letter-spacing: -.035em; line-height: 1; }
.sec-num { color: var(--accent); }
.sec-count { margin-left: auto; color: var(--ink-3); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── WORK ────────────────────────────── */
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-bottom: 72px; }
.feat { cursor: pointer; }
.frame { position: relative; overflow: hidden; background: var(--paper-2); aspect-ratio: 16/9; }
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.feat:hover .frame img { transform: scale(1.04); }
.frame .corner { position: absolute; width: 14px; height: 14px; border-color: #fff; border-style: solid; opacity: .8; }
.frame .c1 { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.frame .c2 { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.frame .c3 { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.frame .c4 { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }
.frame .play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px;
  transform: scale(.6); opacity: 0; transition: transform .5s var(--ease), opacity .4s;
}
.feat:hover .play { transform: none; opacity: 1; }
.feat-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.feat-title { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.02em; line-height: 1.05; }
.feat-client { color: var(--ink-3); margin-bottom: 4px; }
.feat-no { color: var(--ink-3); white-space: nowrap; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(var(--ink-rgb), .45); font: 500 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; transition: all .25s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.tile { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--paper-2); cursor: pointer; outline-offset: 3px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); }
/* caption: dark scrim + text, revealed on hover/focus */
.tile-cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: clamp(12px, 1.4vw, 20px);
  background: linear-gradient(to top, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,0) 72%);
  color: #F5F2EB; text-shadow: 0 1px 12px rgba(0,0,0,.6);
  opacity: 0; transition: opacity .35s var(--ease);
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
.tile-client { color: #F5F2EB; opacity: .85; }
.tile-title { font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.05; letter-spacing: -.02em; transform: translateY(8px); transition: transform .45s var(--ease); }
.tile:hover .tile-title, .tile:focus-visible .tile-title { transform: none; }
.tile-go { position: absolute; top: clamp(10px, 1.2vw, 16px); right: clamp(10px, 1.2vw, 16px); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 13px; text-shadow: none; }
.tile.hidden { display: none; }
/* touch screens have no hover: keep captions visible */
@media (hover: none) {
  .tile-cap { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,0) 60%); }
  .tile-title { transform: none; }
  .tile-go { display: none; }
}

/* ── ABOUT ───────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.pull { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.pull em { color: var(--accent); font-family: var(--mono); font-style: normal; font-size: .8em; letter-spacing: -.03em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--ink); }
.stat { padding: 16px 12px 0 0; }
.stat + .stat { padding-left: 14px; border-left: 1px solid var(--rule); }
.stat-num { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-3); margin-top: 8px; }
.markets { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--rule); }
.markets-label { color: var(--ink-3); margin-bottom: 10px; }
.markets-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.markets-list li { padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; font: 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.about-bio p { font-size: clamp(17px, 1.35vw, 19px); color: var(--ink-2); max-width: 52ch; }
.about-bio p + p { margin-top: 1.1em; }
.about-bio p.footnote { font-size: 11px; color: var(--ink-3); margin-top: 2em; }
.about-bio p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 4.2em; line-height: .8; padding: 6px 10px 0 0; color: var(--ink); }

.marquee { margin: clamp(64px, 10vh, 120px) calc(-1 * var(--gutter)) 0; border-block: 1px solid var(--ink); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: scroll 60s linear infinite; font-size: clamp(14px, 1.4vw, 18px); }
.marquee-track span { padding: 0 20px; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: var(--accent); padding: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ── CREDITS (call sheet) ────────────── */
.callsheet { border: 1px solid var(--rule); background: var(--paper-2); }
.cs-row { display: grid; grid-template-columns: 44px 1.2fr 1.6fr 1fr 1fr 60px; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--rule); align-items: baseline; }
.cs-head { background: var(--ink); color: var(--paper); border-bottom: 0; font-size: 10px; }
.cs-row:not(.cs-head):hover { background: rgba(var(--ink-rgb), .05); }
.cs-row:last-child { border-bottom: 0; }
.cs-no, .cs-year, .cs-type { font: 12px var(--mono); color: var(--ink-3); }
.cs-client { font-weight: 600; }
.cs-title { font-family: var(--mono); font-size: 13px; letter-spacing: -.01em; }
.cs-role { font: 11px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.cs-role b { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
.cs-row.hidden { display: none; }

/* ── CONTACT ─────────────────────────── */
.contact { margin-top: clamp(96px, 16vh, 180px); background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--rule); padding: clamp(80px, 14vh, 160px) var(--gutter) 0; }
.contact .sec-num { margin-bottom: 28px; }
.contact-head { font-family: var(--serif); font-weight: 350; font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -.045em; }
.contact-head em { color: rgba(var(--ink-rgb), .45); font-family: var(--mono); font-style: normal; font-weight: 400; font-size: .44em; letter-spacing: -.04em; line-height: 1.3; }
.contact-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 7vh, 72px); }
.contact-email { font-family: var(--serif); font-size: clamp(24px, 4vw, 56px); letter-spacing: -.02em; border-bottom: 2px solid var(--accent); word-break: break-all; transition: color .3s; }
.contact-email:hover { color: var(--accent); }
.btn-ghost { border: 1px solid rgba(var(--ink-rgb), .35); border-radius: 999px; padding: 10px 16px; }
.btn-ghost:hover { border-color: var(--ink); }
.contact-meta { margin-top: 20px; color: rgba(var(--ink-rgb), .55); }
.socials { display: flex; gap: 24px; list-style: none; margin-top: 28px; }
.socials a:hover { color: var(--accent); }
.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(80px, 14vh, 160px); padding: 20px 0; border-top: 1px solid rgba(var(--ink-rgb), .18); color: rgba(var(--ink-rgb), .5); }
.footer a:hover { color: var(--ink); }

/* ── LIGHTBOX ────────────────────────── */
.lightbox { border: 0; padding: 0; background: transparent; width: min(1200px, calc(100vw - 32px)); max-width: none; margin: auto; color: var(--paper); }
.lightbox::backdrop { background: rgba(10,10,9,.94); }
.lb-bar { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.lb-bar button:hover { color: var(--accent); }
.lb-frame { aspect-ratio: 16/9; background: #000; }
.lb-frame iframe, .lb-frame video { width: 100%; height: 100%; border: 0; display: block; }
.lb-frame video { object-fit: contain; background: #000; }
.lb-frame .placeholder { height: 100%; }
.lightbox.vertical { width: min(420px, calc(100vw - 32px)); }
.lightbox.vertical .lb-frame { aspect-ratio: auto; height: min(760px, calc(100vh - 120px)); }

/* ── RESPONSIVE ──────────────────────── */
@media (max-width: 900px) {
  .nav-tc { display: none; }
  .sheet { grid-template-columns: repeat(3, 1fr); }
  .featured { grid-template-columns: 1fr; gap: 40px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .cs-row { grid-template-columns: 1fr auto; gap: 2px 12px; }
  .cs-head { display: none; }
  .cs-no, .cs-type { display: none; }
  .cs-client { grid-column: 1; }
  .cs-year { grid-column: 2; grid-row: 1; }
  .cs-title { grid-column: 1; }
  .cs-role { grid-column: 2; grid-row: 2; text-align: right; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .nav-links { gap: 14px; }
  .nav-links i { display: none; }
  .nav-mark span:last-child { display: none; }
  .slate { grid-template-columns: repeat(2, 1fr); }
  .slate div { margin-right: 0; padding-right: 12px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat + .stat { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-name .ch { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

[hidden] { display: none !important; }
.about-grid > *, .featured > *, .sec-head h2 { min-width: 0; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-num { font-size: clamp(32px, 10vw, 56px); }
  .stat-label { font-size: 9px; }
}
