/* Layout: single column, wide-set wordmark hero, category bands with intro + services, then a contact-sheet grid of real work. */
:root {
  --bg: #0d0e10;          /* graphite, slight cool bias */
  --bg-2: #141518;        /* raised band */
  --line: #24262b;        /* hairlines */
  --fg: #ecebe7;          /* warm off-white text */
  --muted: #8f9198;       /* secondary text */
  --accent: #c8b597;      /* desaturated champagne, used sparingly */
  --rec: #d0453b;         /* tally light, tiny dot only */

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --maxw: 1200px;
  --r: 4px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.rec { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); }

/* ---------- Top bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.mark {
  font-family: var(--f-display); font-stretch: 125%; font-weight: 700;
  font-size: 15px; letter-spacing: .08em; text-decoration: none;
  display: inline-flex; gap: .45em;
}
.mark span { font-weight: 500; color: var(--muted); }
.topnav { display: flex; gap: 26px; font-size: 14px; }
.topnav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.topnav a:hover { color: var(--fg); }
.topnav .topnav-cta { color: var(--accent); }
@media (max-width: 480px) { .topnav { gap: 16px; font-size: 13px; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 11vw, 132px) clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.wordmark {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(34px, 11vw, 160px);
  line-height: .9;
  letter-spacing: -.01em;
  margin: 0;
  white-space: nowrap;
}
.thesis {
  font-family: var(--f-display); font-stretch: 112%; font-weight: 500;
  font-size: clamp(20px, 2.6vw, 30px); line-height: 1.25;
  margin: clamp(24px, 4vw, 40px) 0 0; max-width: 22ch; text-wrap: balance;
  color: var(--accent);
}
.lede { color: var(--muted); max-width: 58ch; margin: 18px 0 0; font-size: 17px; }

.cats { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.cat {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: padding .25s ease, background .25s ease;
}
.cat-name {
  font-family: var(--f-display); font-stretch: 118%; font-weight: 700;
  font-size: clamp(20px, 3.2vw, 34px); text-transform: uppercase; letter-spacing: .01em; line-height: 1.1;
}
.cat-meta { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
.cat-arrow { font-size: 22px; color: var(--muted); transition: transform .25s ease, color .25s; }
.cat:hover { padding-left: 14px; background: var(--bg-2); }
.cat:hover .cat-arrow { transform: translateX(4px); color: var(--accent); }
@media (max-width: 560px) {
  .cat { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .cat-meta { grid-row: 2; }
  .cat-arrow { grid-row: 1 / span 2; grid-column: 2; }
}

/* ---------- Categories ---------- */
.category { padding-block: clamp(64px, 9vw, 112px); border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
.category:nth-of-type(odd) { background: var(--bg-2); }
.cat-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; margin-bottom: clamp(36px, 5vw, 56px); }
.cat-intro h2, .contact h2 {
  font-family: var(--f-display); font-stretch: 118%; font-weight: 700;
  font-size: clamp(30px, 4.6vw, 52px); line-height: 1.02; text-transform: uppercase;
  margin: 0 0 18px; text-wrap: balance;
}
.cat-intro p:not(.eyebrow) { color: var(--muted); max-width: 54ch; margin: 0; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.services li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 1px; background: var(--accent); }
@media (max-width: 820px) { .cat-head { grid-template-columns: 1fr; } }

/* ---------- Video grid ---------- */
.grid { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.grid-vertical { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 300px)); }
@media (max-width: 560px) { .grid-vertical { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .grid-vertical .play { left: 8px; bottom: 8px; } }
.work { margin: 0; }
.work-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%;
}
.work-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.thumb {
  position: relative; overflow: hidden; border-radius: var(--r);
  background: #000; aspect-ratio: var(--ar, 16/9); max-width: 100%;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; opacity: .92; }
.work-btn:hover .thumb img { transform: scale(1.03); opacity: 1; }
.play {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px 8px 10px; border-radius: 999px;
  background: rgba(13,14,16,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 13px; font-weight: 600; color: var(--fg);
}
.play svg { width: 14px; height: 14px; fill: var(--fg); }
.tc {
  position: absolute; right: 12px; top: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
  background: rgba(13,14,16,.72); padding: 3px 7px; border-radius: 3px; color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.work figcaption { padding-top: 14px; display: grid; gap: 4px; }
.work-title { font-weight: 600; font-size: 16px; line-height: 1.35; }
.work-meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; flex-wrap: wrap; }
.mark-sm { font-size: 13px; }
.foot-note { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }

/* ---------- Player ---------- */
.player { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.player-backdrop { position: absolute; inset: 0; background: rgba(5,5,6,.92); }
.player-box { position: relative; width: min(100%, 1280px); display: grid; gap: 12px; }
.player-box.is-vertical { width: min(100%, 480px); }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.player-title { margin: 0; font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-close {
  all: unset; cursor: pointer; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); flex-shrink: 0;
}
.player-close:hover { color: var(--fg); border-color: var(--muted); }
.player-close:focus-visible { outline: 2px solid var(--accent); }
.thumb img, .player-stage video { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.player-stage { background: #000; border-radius: var(--r); overflow: hidden; }
.player-stage video { width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); background: #000; margin: 0 auto; }
body.no-scroll { overflow: hidden; }
