/* ═══════════════════════════════════════════════════════
   STUDIO THIRTY6 — STATIC PAGES (work, categories, projects)
   Shares the Cinema OS palette; no app JS. Generated by
   scripts/pages.js at build time.
═══════════════════════════════════════════════════════ */

:root {
  --bg:    #080808;
  --panel: #101010;
  --raise: #171717;
  --line:  #252525;
  --t1:    #F4F4F4;
  --t2:    #A3A3A3;   /* body copy — passes WCAG AA on --bg */
  --t3:    #8A8A8A;   /* labels — still AA for small mono text */
  --red:   #A61E22;
  --red-hi:#E0484C;   /* accent text/hover on black */
  --mono:  'JetBrains Mono', ui-monospace, monospace;
  --sans:  'Space Grotesk', system-ui, sans-serif;
  --gut:   clamp(16px, 4vw, 48px);
  --max:   1320px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--t1);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--red-hi); outline-offset: 3px; }

.eyebrow, .crumbs, .bar, .card-m, .tc, dt, .count, .fine, .index span {
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ── top bar ─────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  height: 52px; padding: 0 var(--gut);
  font-size: 10.5px;
  background: rgba(8, 8, 8, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--t1); letter-spacing: .26em; white-space: nowrap; }
.cats {
  display: flex; gap: 20px; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
  color: var(--t3);
}
.cats::-webkit-scrollbar { display: none; }
.cats a { white-space: nowrap; padding: 4px 0; border-bottom: 1px solid transparent; transition: color .2s; }
.cats a:hover { color: var(--t1); }
.cats a[aria-current] { color: var(--t1); border-bottom-color: var(--red); }
.os { color: var(--red-hi); white-space: nowrap; }
.os:hover { color: var(--t1); }

/* ── layout ──────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 28px var(--gut) 96px; }
.crumbs { font-size: 10px; color: var(--t3); margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a:hover { color: var(--t1); }
.crumbs .sep { color: var(--line); }
.crumbs [aria-current] { color: var(--t2); }
.eyebrow { font-size: 10.5px; color: var(--t3); margin-bottom: 18px; }

h1 {
  font-weight: 300;
  font-size: clamp(40px, 7vw, 96px);
  letter-spacing: -.045em;
  line-height: .95;
  margin-bottom: 32px;
}
h2 {
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
h2 a:hover { color: var(--red-hi); }
.count { font-size: 11px; color: var(--t3); vertical-align: middle; margin-left: 6px; }

.intro { max-width: 860px; margin-bottom: 56px; }
.intro p { color: var(--t2); }
.lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: var(--t1) !important; font-weight: 300; margin-bottom: 18px; }

/* ── project page ────────────────────────────────────── */
.player {
  background: #000;
  border: 1px solid var(--line);
  margin: 0 0 40px;
  display: flex; justify-content: center;
}
.player video, .player img { width: 100%; max-height: 82vh; object-fit: contain; background: #000; }

.facts { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; }
.facts dl { border-top: 1px solid var(--line); }
.facts dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
dt { font-size: 10px; color: var(--t3); padding-top: 3px; }
dd { text-align: right; font-size: 14px; }
dd a { border-bottom: 1px solid var(--red); }
dd a:hover { color: var(--red-hi); }
.copy { max-width: 640px; color: var(--t2); font-size: 17px; }
.copy p + p { margin-top: 14px; }
.copy p:first-child { color: var(--t1); font-weight: 300; font-size: 20px; line-height: 1.45; }
.os-link { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-hi); }
.os-link:hover { color: var(--t1); }

/* ── grids ───────────────────────────────────────────── */
.more { margin-top: 88px; }
.more > p { margin-top: 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 32px 20px;
}
.card { display: flex; flex-direction: column; gap: 6px; }
.thumb {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1), opacity .4s; opacity: .92; }
.card:hover .thumb img { transform: scale(1.035); opacity: 1; }
.tc {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 9.5px; padding: 3px 6px;
  background: rgba(8, 8, 8, .75); color: var(--t1);
}
.card-t { font-size: 16px; line-height: 1.3; }
.card:hover .card-t { color: var(--red-hi); }
.card-m { font-size: 9.5px; color: var(--t3); }

.index { margin-top: 96px; }
.index ul { list-style: none; columns: 2 320px; column-gap: 40px; }
.index li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.index li a:hover { color: var(--red-hi); }
.index span { font-size: 9.5px; color: var(--t3); text-align: right; padding-top: 4px; }

/* ── footer ──────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 72px var(--gut) 32px;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px;
}
.foot-h { font-size: clamp(28px, 4vw, 52px); font-weight: 300; letter-spacing: -.04em; line-height: 1; margin-bottom: 24px; }
.foot-h strong { font-weight: 600; display: block; }
.mail { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; border-bottom: 1px solid var(--red); padding-bottom: 2px; }
.mail:hover { color: var(--red-hi); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.foot-cols div { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--t2); }
.foot-cols a:hover { color: var(--t1); }
.fine { grid-column: 1 / -1; font-size: 9.5px; color: var(--t3); padding-top: 32px; border-top: 1px solid var(--line); }

/* ── small screens ───────────────────────────────────── */
@media (max-width: 760px) {
  .bar { gap: 16px; }
  .os { display: none; }
  .facts, .foot { grid-template-columns: 1fr; gap: 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .card-t { font-size: 14px; }
  .crumbs { margin-bottom: 28px; }
  .more { margin-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .thumb img { transition: none; }
}
