:root {
  --paper: #f7f6f3;
  --ink: #1b1c1e;
  --ink-2: #4b4d52;
  --rule: #d6d3cc;
  --panel: #ebe9e4;
  --link: #1d4ed8;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 56px);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2 { margin: 0; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
h2 { font-stretch: 80%; font-size: clamp(26px, 3vw, 34px); margin-bottom: 0.9em; }

/* ---------- header / footer */
.site-head, .site-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter);
}
.brand { font-stretch: 75%; font-weight: 800; font-size: 22px; text-decoration: none; white-space: nowrap; }
.brand span { display: block; font-stretch: 100%; font-weight: 400; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.site-head nav { display: flex; gap: 22px; font-size: 15px; }
.site-head nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; }
.site-head nav a:hover, .site-head nav a.is-current { border-bottom-color: var(--ink); }
.site-foot { border-top: 1px solid var(--rule); margin-top: 96px; font-size: 14px; color: var(--ink-2); }
.site-foot p { margin: 0; }
.site-foot a { margin-left: 18px; }

/* ---------- layout */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
main > section { margin-top: 96px; }

/* ---------- hero */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--gutter); align-items: end;
  margin-top: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--rule);
}
.hero h1 { font-stretch: 68%; font-weight: 800; font-size: clamp(64px, 11vw, 150px); line-height: 0.88; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); margin-top: 28px; max-width: 30em; }
.hero-links { display: flex; gap: 24px; flex-wrap: wrap; margin: 0; font-size: 15px; }
.hero-photo { aspect-ratio: 3/4; object-fit: cover; object-position: top; width: 100%; max-width: 420px; justify-self: end; }

/* ---------- work grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px var(--gutter); }
.card { display: block; text-decoration: none; }
.card img { aspect-ratio: 2/3; object-fit: cover; width: 100%; background: var(--panel); }
.card-text { display: block; margin-top: 12px; line-height: 1.35; }
.card-text strong { display: block; font-stretch: 85%; font-weight: 700; font-size: 20px; }
.card-text > span { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.card-text em { font-style: normal; white-space: nowrap; }
.card:hover .card-text strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- video */
.video { margin: 0; }
.frame { position: relative; aspect-ratio: 16/9; background: var(--ink); }
.frame iframe, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px var(--gutter); }
.video-grid .video:first-child:not(:only-child) { grid-column: 1 / -1; }

/* ---------- about / contact */
.about-body { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--gutter); align-items: start; }
.about-body img { max-width: 380px; width: 100%; justify-self: end; }
.contact { padding-top: 48px; border-top: 1px solid var(--rule); }
.contact-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.button { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; padding: 12px 20px; font-weight: 600; }
.button:hover { background: #000; }

/* ---------- project page */
.project { padding-top: 8px; }
.banner { margin: 0; }
.banner img { width: 100%; aspect-ratio: 2.4; object-fit: cover; }
.project-head { margin-top: 36px; }
.crumb { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.project h1 { font-stretch: 72%; font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: 0.95; letter-spacing: -0.02em; }
.year { color: var(--ink-2); margin-top: 10px; }

.overview {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0; margin: 40px 0 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.overview > div { padding: 16px 20px 18px 0; border-top: 1px solid var(--rule); }
.overview > div:nth-child(-n+4) { border-top: 0; }
.overview dt { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.overview dd { margin: 0; font-size: 16px; }
.project section { margin-top: 72px; }
.prose p { max-width: 68ch; }
.awards ul, .press ul { margin: 0; padding: 0; list-style: none; max-width: 68ch; }
.awards li, .press li { padding: 12px 0; border-top: 1px solid var(--rule); }
.awards li:last-child, .press li:last-child { border-bottom: 1px solid var(--rule); }

.still-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.still img { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: var(--panel); }
.still:hover img { opacity: 0.92; }

.pager { display: flex; justify-content: space-between; gap: 24px; margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--ink); font-stretch: 85%; font-weight: 600; font-size: 18px; }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(20, 20, 22, 0.94); }
.lightbox img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; margin: 0 auto; }
.lightbox p { color: var(--paper); text-align: center; margin: 12px 0 0; font-size: 14px; }
.lightbox .close { position: fixed; top: 14px; right: 18px; background: none; border: 0; color: var(--paper); font-size: 36px; line-height: 1; cursor: pointer; }

/* ---------- responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-photo { max-width: 100%; aspect-ratio: 4/3; justify-self: stretch; order: -1; }
  .grid, .still-grid { grid-template-columns: repeat(2, 1fr); }
  .about-body { grid-template-columns: 1fr; }
  .about-body img { max-width: 300px; justify-self: start; }
  .video-grid { grid-template-columns: 1fr; }
  .banner img { aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .site-head nav { gap: 16px; flex-wrap: wrap; }
  .grid { gap: 24px 16px; }
  .card-text strong { font-size: 17px; }
  .still-grid { gap: 10px; }
  .overview > div:nth-child(-n+4) { border-top: 1px solid var(--rule); }
  .overview > div:first-child { border-top: 0; }
  main > section { margin-top: 64px; }
}
@media (prefers-reduced-motion: no-preference) {
  .still img { transition: opacity 0.15s; }
}
