@font-face {
  font-family: Montserrat;
  src: url(assets/montserrat.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root { color-scheme: light; --ink: #0a0a0a; --paper: #f8f8f7; --line: #d7d7d6; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem Montserrat, Arial, sans-serif; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
header, main, footer { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 28px; border-bottom: 1px solid var(--line); }
.wordmark { text-decoration: none; text-align: center; letter-spacing: .42em; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.wordmark span { display: block; font-weight: 200; }
.wordmark strong { font-weight: 400; }
.back { font-size: .85rem; text-decoration-thickness: 1px; text-underline-offset: 4px; }
h2, p { margin: 0; }
.project { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 105px); align-items: center; padding-block: clamp(36px, 8vw, 112px); border-top: 1px solid var(--line); }
.project:first-child { border-top: 0; }
.project:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.project:nth-child(even) .visuals { grid-column: 2; grid-row: 1; }
.project:nth-child(even) .copy { grid-column: 1; grid-row: 1; }
.copy h2 { font-size: clamp(1.55rem, 3vw, 3rem); line-height: 1.12; font-weight: 400; letter-spacing: -.04em; }
.project-brand { display: block; margin-top: 8px; font-size: .48em; font-weight: 600; letter-spacing: .08em; }
.copy p { line-height: 1.65; margin-top: 15px; max-width: 35ch; color: #494949; }
.visuals { min-width: 0; }
.cover, .thumb { display: block; background: #eaeae8; overflow: hidden; }
.cover img, .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover { aspect-ratio: 4 / 3; cursor: zoom-in; }
.cover img { object-fit: contain; }
.pending { aspect-ratio: 4 / 3; background: #efefed; border: 1px solid var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.thumb { aspect-ratio: 4 / 3; cursor: zoom-in; }
footer { padding-block: 24px 36px; border-top: 1px solid var(--line); font-size: .85rem; }
dialog { width: min(1200px, calc(100% - 24px)); max-width: none; max-height: calc(100% - 24px); border: 0; padding: 16px; background: var(--ink); color: #fff; }
dialog::backdrop { background: #000d; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.controls p { font-size: .86rem; }
.controls div { display: flex; gap: 7px; }
.controls button { border: 1px solid #aaa; background: transparent; color: inherit; padding: 7px 10px; font: inherit; cursor: pointer; }
.controls button:disabled { opacity: .45; cursor: default; }
#full-image { display: block; width: 100%; height: min(72vh, 850px); object-fit: contain; }
@media (max-width: 700px) {
  header, main, footer { width: calc(100% - 36px); }
  .project, .project:nth-child(even) { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
}
