:root {
  --bg: #2E3034;
  --ink: #D2D0C9;
  --muted: #9A9992;
  --accent: #C9A87C;
  --rule: #55585E;
  --serif: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --gutter: 8vw;
  --gap: 160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 var(--sans);
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  animation: fade 250ms ease-out both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } * { transition: none !important; } }

h1, h2, h3, p, li, dd, dt, figcaption, summary { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; margin: 0; font-optical-sizing: auto; }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; transition: color 250ms ease; }
a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible, summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.prose a, .link { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { color: var(--accent); text-decoration-color: var(--accent); }

.label {
  font: 400 12px/1.4 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 20; background: var(--bg); padding: 6px 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 32px;
  padding: 28px var(--gutter) 22px;
  border-bottom: 1px solid transparent;
  transition: border-color 250ms ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .name { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.site-header nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-header nav a { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }

main { padding: 0 var(--gutter); }

/* Asymmetric grid: heading 3/12, content 7/12 */
.section {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding-top: 48px; margin-top: var(--gap);
  border-top: 1px solid var(--rule);
}
.section:first-child { margin-top: 96px; }
.section > .section-head { grid-column: 1 / span 3; }
.section > .section-body { grid-column: 5 / span 7; min-width: 0; }
.section-head h2 { font-size: clamp(26px, 2.4vw, 34px); }
.section-head .label { display: block; margin-bottom: 12px; }
.measure { max-width: 38rem; }

/* Page title */
.page-title { padding-top: 96px; }
.page-title h1 { font-size: clamp(44px, 6.5vw, 96px); letter-spacing: -0.025em; line-height: 1.02; }
.page-title .label { display: block; margin-bottom: 20px; }

/* Home hero */
.hero { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; padding-top: 96px; }
.hero-text { grid-column: 1 / span 6; }
.hero-text h1 { font-size: clamp(40px, 5.4vw, 84px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.02; }
.page-title h1 { font-weight: 500; letter-spacing: -0.02em; }
.hero-text .label { display: block; margin-bottom: 28px; }
.hero-figure { grid-column: 8 / span 5; margin: 0; }
.hero-figure img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; object-position: left bottom; background: #3A3D42; box-shadow: inset 0 0 0 1px var(--rule); }

/* Lists: year left, text right */
.rows { list-style: none; margin: 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: 9.5rem 1fr; column-gap: 24px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.rows li:first-child { border-top: 1px solid var(--rule); }
.rows .year { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.rows .text { max-width: 38rem; }
.rows .text small { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.sub-label { margin: 48px 0 16px; }
.sub-label:first-child { margin-top: 0; }

/* Projects */
.section-body { counter-reset: work; }
.work { margin: 0 0 var(--gap); counter-increment: work; }
.work:last-child { margin-bottom: 0; }
.work figure { margin: 0 0 20px; }
.work img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: contain; object-position: left center; background: #3A3D42; box-shadow: inset 0 0 0 1px var(--rule); }
.work img, .hero-figure img { transition: opacity 250ms ease; }
.work a:hover img { opacity: 0.88; }
figcaption, .credit { font-size: 14px; color: var(--muted); line-height: 1.5; }
figcaption cite, .credit cite { font-style: italic; }
.work h3 { font-size: clamp(28px, 3vw, 40px); margin: 32px 0 16px; }
.work h3::before { content: counter(work, decimal-leading-zero); display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.14em; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 14px; }
.work .desc { max-width: 38rem; }

details { max-width: 38rem; margin: 0 0 1em; }
summary { cursor: pointer; list-style: none; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 4px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: " +"; }
details[open] summary::after { content: " –"; }
summary:hover { color: var(--accent); }
details[open] > div { animation: fade 250ms ease-out both; padding-top: 12px; }

.more { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

/* Videos */
.video { margin: 0 0 96px; }
.video:last-child { margin-bottom: 0; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #3A3D42; margin-bottom: 16px; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #3A3D42; cursor: pointer; font: 400 12px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); transition: color 250ms ease; }
.play:hover { color: var(--accent); }
.video h3 { font-size: 24px; margin: 20px 0 8px; }
.video p { max-width: 38rem; }

/* Footer */
.site-footer {
  margin: var(--gap) var(--gutter) 0; padding: 24px 0 40px;
  border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--muted);
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

@media (max-width: 900px) {
  :root { --gutter: 24px; --gap: 112px; }
  body { font-size: 17px; }
  .section, .hero { display: block; }
  .section-head { margin-bottom: 28px; }
  .hero-figure { margin-top: 56px; }
  .rows li { grid-template-columns: 1fr; row-gap: 2px; }
  .site-header { position: static; padding-top: 20px; }
}
