:root {
  --bg: #0a0a0a;
  --panel: #141414;
  --line: #262626;
  --text: #f2f0eb;
  --soft: #dcd9d2;
  --muted: #c9c6bf;
  --faint: #8a8780;
  --pad: clamp(20px, 4vw, 56px);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; }
.caps { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.serif { font-family: var(--serif); font-weight: 400; }

/* Header */
.site-header { position: relative; z-index: 10; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 32px var(--pad); }
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; }
.wordmark { font-family: var(--serif); font-size: 28px; letter-spacing: 0.01em; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { padding-bottom: 4px; border-bottom: 1px solid transparent; }
.nav a.dim { color: rgba(242, 240, 235, 0.5); }
.nav a.dim:hover { color: var(--text); }
.nav a[aria-current="page"], .nav a.on { color: var(--text); border-bottom-color: var(--text); }

/* Home slider */
.home { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.slides { position: absolute; inset: 0; background: var(--panel); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; }
.slide.on { opacity: var(--dim, 0.82); }
.slide.contain { object-fit: contain; object-position: 72% 50%; }
@media (max-width: 700px) { .slide.contain { object-position: 50% 30%; } }
.slide-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--panel); opacity: 0; transition: opacity 900ms ease; }
.slide-empty.on { opacity: 1; }
.home::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(10,10,10,0.9), rgba(10,10,10,0)); pointer-events: none; }
.home::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 160px; background: linear-gradient(to bottom, rgba(10,10,10,0.55), rgba(10,10,10,0)); pointer-events: none; z-index: 1; }
.home-bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 32px; padding: 0 var(--pad) 40px; }
.home-list { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.home-section { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--muted); }
.home-meta { margin: 0 0 10px; min-height: 1.4em; }
.home-titles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.home-titles button { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.08; color: rgba(242, 240, 235, 0.42); transition: color 300ms ease; }
.home-titles button:hover { color: rgba(242, 240, 235, 0.8); }
.home-titles button[aria-pressed="true"] { color: var(--text); }
.home-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.home-count { margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.underline { border-bottom: 1px solid var(--text); padding-bottom: 4px; }

/* Project page */
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; }
.player img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 300ms ease; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .play { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--text); }
.player .play:hover img, .player a.play:hover ~ img { opacity: 0.85; }
.play-ring { position: relative; width: 72px; height: 72px; border: 1px solid var(--text); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play-ring::after { content: ""; width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 18px solid var(--text); margin-left: 5px; }
.play-label { position: relative; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.intro { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 72px; }
.intro-main { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.intro h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 7vw, 104px); line-height: 0.95; }
.summary { margin: 12px 0 0; max-width: 34em; font-size: 18px; line-height: 1.6; color: var(--soft); }
.links { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 0; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.credits { flex: 1 1 280px; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; align-content: start; font-size: 14px; line-height: 1.5; }
.credits dt { color: var(--faint); }
.credits dd { margin: 0; }
.stills { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; padding-top: 96px; }
.stills[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
@media (max-width: 700px) { .stills[style*="--cols"] { grid-template-columns: 1fr; } }
.stills img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel); }
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: 96px; }
.split > div { flex: 1 1 320px; min-width: 0; }
.rule-list { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.rule-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list span { color: var(--faint); }
.quotes { display: flex; flex-direction: column; gap: 36px; }
.quotes blockquote { margin: 0; font-family: var(--serif); font-size: 32px; line-height: 1.15; }
.quotes figure { margin: 0; }
.quotes figcaption { margin-top: 10px; font-size: 13px; color: var(--faint); }
.section-h { margin: 0 0 24px; font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; padding-top: 96px; }
.more h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.artwork { padding-top: 96px; }
.artwork > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 360px)); gap: 12px; align-items: start; }
.artwork img { width: 100%; height: auto; background: var(--panel); }
.feature { flex: 1 1 280px; max-width: 420px; margin: 0; }
.feature:has(img[alt^="Still"]) { max-width: 340px; }
.feature img { width: 100%; height: auto; }
.more[style*="--cols"] { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.artwork[style*="--cols"] > div { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
@media (max-width: 900px) { .more[style*="--cols"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .artwork[style*="--cols"] > div { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .more[style*="--cols"] { grid-template-columns: 1fr; } }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 120px; padding-top: 48px; padding-bottom: 56px; border-top: 1px solid var(--line); }
.next { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.next .serif { font-size: clamp(36px, 4vw, 56px); line-height: 1; }

/* About */
.about-top { display: flex; flex-wrap: wrap; gap: 56px 80px; padding-top: 56px; }
.about-photo { flex: 1 1 340px; max-width: 520px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; background: var(--panel); }
.about-text { flex: 1.4 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.about-text h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 72px); line-height: 1.02; }
.about-text p { margin: 0; max-width: 36em; font-size: 18px; line-height: 1.65; color: var(--soft); }
.facts { margin: 12px 0 0; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 14px 32px; font-size: 15px; line-height: 1.5; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.credit-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.credit-cols .rule-list li { padding: 12px 0; line-height: 1.45; }
.cta { margin: 0; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 52px); line-height: 1.05; }

@media (max-width: 640px) {
  .site-header { padding-top: 24px; }
  .nav { gap: 10px 20px; font-size: 12px; }
  .home-side { align-items: flex-start; flex-direction: row; gap: 20px; }
  .home-bottom { padding-bottom: 28px; }
  .quotes blockquote { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide-empty, .home-titles button { transition: none; }
}
