@font-face { font-family: "Manrope"; font-weight: 300; font-style: normal; font-display: swap; src: url("/fonts/manrope-300.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/manrope-500.woff2") format("woff2"); }

:root {
  --paper: #ffffff;
  --ink: #262a2e;      /* Delabole slate */
  --stone: #6b7176;    /* secondary text */
  --rule: #e2e4e3;
  --lichen: #6f8a5e;   /* links and focus */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --measure: 62ch;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif; font-weight: 300;
  font-size: clamp(16px, 0.95rem + 0.2vw, 18px); line-height: 1.65;
  font-feature-settings: "kern", "liga";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--lichen); }
a:hover { color: var(--lichen); }
:focus-visible { outline: 2px solid var(--lichen); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 500; margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.small { font-size: 0.82em; color: var(--stone); }

/* Header: like the title strip on a drawing sheet */
.site-head { border-bottom: 1px solid var(--rule); }
.head-in { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; }
.mark { font-weight: 500; text-decoration: none; letter-spacing: 0.02em; }
.site-head nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.site-head nav a { text-decoration: none; color: var(--stone); }
.site-head nav a:hover, .site-head nav a[aria-current] { color: var(--ink); }
.site-head nav a[aria-current] { text-decoration: underline; }

/* Home */
.hero-sketch { padding-top: clamp(24px, 5vw, 56px); }
.hero-sketch img { width: 100%; max-height: 62vh; object-fit: cover; object-position: 50% 40%; }
.intro { padding-top: clamp(28px, 5vw, 64px); }
.display { font-weight: 300; font-size: clamp(44px, 9vw, 128px); line-height: 0.95; letter-spacing: -0.02em; }
.lede { font-size: clamp(18px, 1.1rem + 0.4vw, 22px); color: var(--stone); margin-top: 0.6em; }
.intro-text { max-width: var(--measure); margin-top: clamp(20px, 3vw, 36px); }

.section-h { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone); margin: 0 0 1.1em; }
.page-h { font-weight: 300; font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.01em; margin-bottom: clamp(24px, 4vw, 48px); }
.work { padding-top: clamp(48px, 8vw, 110px); }
.top { padding-top: clamp(32px, 6vw, 80px); }

.rows { list-style: none; margin: 0; padding: 0; }
.row { border-top: 1px solid var(--rule); }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row-link { display: grid; gap: 20px; padding: clamp(20px, 3vw, 36px) 0; text-decoration: none; }
.row-img { overflow: hidden; background: #f1f2f1; aspect-ratio: 3 / 2; }
.row-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.row-link:hover .row-img img { transform: scale(1.02); }
.row-link:hover { color: inherit; }
.row-text { display: flex; flex-direction: column; gap: 6px; }
.row-title { font-weight: 500; font-size: clamp(22px, 1.2rem + 1vw, 32px); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.15; }
.row-sub { color: var(--stone); }
.row-sum { margin-top: 10px; max-width: 46ch; }
.row-meta { margin-top: 10px; font-size: 0.82em; color: var(--stone); }
@media (min-width: 900px) {
  .row-link { grid-template-columns: 7fr 5fr; gap: clamp(28px, 4vw, 56px); align-items: end; }
  .row-text { padding-bottom: 6px; }
}

.closing { margin-top: clamp(56px, 9vw, 120px); }
.closing figure { margin: 0; }
.closing figcaption { padding: 10px max(var(--gutter), calc((100% - var(--max)) / 2)) 0; }
.cta { padding-block: clamp(40px, 7vw, 90px); }
.cta p:first-child { font-size: clamp(20px, 1.1rem + 0.8vw, 28px); max-width: 30ch; line-height: 1.35; }
.button { display: inline-block; border: 1px solid var(--ink); padding: 12px 22px; text-decoration: none; font-weight: 500; }
.button:hover { background: var(--ink); color: var(--paper); }

/* Project */
.p-hero { margin: 0; }
.p-hero img { width: 100%; max-height: 82vh; object-fit: cover; }
.p-hero .zoom { display: block; }
.p-hero figcaption { padding-top: 10px; font-size: 0.82em; color: var(--stone); }
.p-title { padding-top: clamp(28px, 5vw, 64px); }
.p-title h1 { font-weight: 500; font-size: clamp(34px, 6vw, 76px); line-height: 1; text-transform: uppercase; letter-spacing: 0.03em; }
.p-sub { font-size: clamp(18px, 1.1rem + 0.4vw, 22px); color: var(--stone); margin-top: 0.5em; }

.brief { display: grid; gap: 32px; padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 64px); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-content: start; border-top: 1px solid var(--ink); padding-top: 14px; }
.facts dt { font-size: 0.78rem; color: var(--stone); }
.facts dd { margin: 0; line-height: 1.4; }
@media (min-width: 900px) {
  .brief { grid-template-columns: 4fr 8fr; gap: clamp(40px, 6vw, 96px); }
  .facts { grid-template-columns: 1fr; position: sticky; top: 24px; }
}
.prose { max-width: var(--measure); }
.text { padding-block: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .text .prose { margin-left: calc(33.33% + 16px); } }

figure { margin: 0; }
figcaption { font-size: 0.82em; color: var(--stone); padding-top: 10px; max-width: 70ch; line-height: 1.45; }
.wide, .narrow, .half { margin-block: clamp(20px, 3vw, 36px); }
.narrow { max-width: 760px; margin-inline: auto; }
.pair { display: grid; gap: clamp(16px, 2vw, 28px); align-items: start; }
.pair .half { margin-block: clamp(12px, 2vw, 24px); }
@media (min-width: 760px) { .pair { grid-template-columns: 1fr 1fr; } }
.zoom { display: block; cursor: zoom-in; }
.zoom img { background: #f6f7f6; }

.next { padding-block: clamp(48px, 8vw, 110px); }
.next a { display: inline-flex; flex-direction: column; text-decoration: none; }
.next-title { font-weight: 500; font-size: clamp(28px, 5vw, 60px); text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.05; }
.next a:hover .next-title { color: var(--lichen); }

/* About */
.about-grid { display: grid; gap: clamp(24px, 4vw, 64px); }
.portrait img { width: 100%; max-width: 420px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 4fr 8fr; } }
.cv-grid { display: grid; gap: 40px; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--rule); margin-top: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .cv-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.cv { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.cv li { display: flex; flex-direction: column; line-height: 1.45; }
.li-h { font-weight: 500; }
.sub-h { font-size: 1rem; font-weight: 500; margin: 1.4em 0 0.3em; }

/* Contact */
.contact-grid { display: grid; gap: 40px; padding-bottom: clamp(48px, 8vw, 110px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; } }
.big-link { font-size: clamp(20px, 1rem + 1.4vw, 32px); font-weight: 500; word-break: break-word; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); font-size: 0.92em; }
.foot-in { display: grid; gap: 20px; padding-block: 36px 48px; }
.site-foot p { margin: 0 0 0.4em; }
.foot-name { font-weight: 500; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-in > div:last-child { text-align: right; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(255,255,255,0.98); }
.lightbox::backdrop { background: rgba(255,255,255,0.98); }
.lightbox img { width: 100%; height: calc(100vh - 90px); object-fit: contain; margin-top: 44px; }
.lightbox .lb-cap { text-align: center; font-size: 0.85em; color: var(--stone); padding: 8px 16px; }
.lb-close { position: absolute; top: 12px; right: 16px; font: inherit; background: none; border: 1px solid var(--ink); padding: 6px 14px; cursor: pointer; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
