@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 { margin: 0; padding: 0; overflow: hidden; }
.hero-video { display: block; width: 100%; height: min(78vh, 56.25vw); min-height: 300px; object-fit: cover; object-position: 50% 55%; background: #e9ece8; will-change: transform; }
.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; } }

/* Social icons */
.social { list-style: none; margin: 0 0 0.8em; padding: 0; display: flex; gap: 14px; }
.foot-in .social { justify-content: flex-start; }
@media (min-width: 760px) { .foot-in > div:last-child .social { justify-content: flex-end; } }
.social a { display: inline-flex; padding: 4px; margin: -4px; color: var(--stone); }
.social a:hover { color: var(--lichen); }
.social svg { fill: currentColor; display: block; }
.cv-dl { margin: 1.6em 0 1.2em; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Home project carousel: tall strips with turned titles */
.carousel { --cw: clamp(92px, 8.6vw, 124px); --ch: calc(var(--cw) * 4.7); --gap: clamp(28px, 4vw, 56px);
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: clamp(8px, 2vw, 24px); }
.car-track { list-style: none; margin: 0; padding: 40px 24px 48px; display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > .card:first-child { margin-left: auto; }
.car-track > .card:last-child { margin-right: auto; }
.card { flex: 0 0 var(--cw); scroll-snap-align: start; }
.card a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transform-origin: 50% 60%; transition: transform 0.45s cubic-bezier(.2,.7,.2,1); }
.card-head { height: clamp(170px, 15vw, 210px); display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; }
.card-title { font-weight: 300; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.05; white-space: nowrap; }
.card-sub { font-size: 12px; color: var(--stone); white-space: nowrap; }
.card-strip { position: relative; display: block; width: var(--cw); height: var(--ch); margin-top: 10px; overflow: hidden; background: #eef0ee; }
.card-strip img { width: 100%; height: 100%; object-fit: cover; }
.card-strip::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,0.45); opacity: 0; transition: opacity 0.35s ease; }
.card-no { position: absolute; top: 6px; right: 8px; z-index: 1; font-weight: 300; font-size: clamp(38px, 3.6vw, 52px); line-height: 1; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.25); transition: color 0.35s ease, text-shadow 0.35s ease; }
.card-cat { position: absolute; left: 8px; bottom: 12px; z-index: 1; writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.35); white-space: nowrap; transition: color 0.35s ease, text-shadow 0.35s ease; }
.card a:hover, .card a:focus-visible { transform: scale(1.12); }
.card a:hover .card-strip::after, .card a:focus-visible .card-strip::after { opacity: 1; }
.card a:hover .card-no, .card a:hover .card-cat, .card a:focus-visible .card-no, .card a:focus-visible .card-cat { color: var(--ink); text-shadow: none; }
.card a:focus-visible { outline: none; }
.card a:focus-visible .card-strip { outline: 2px solid var(--lichen); outline-offset: 3px; }
.car-btn { align-self: end; margin-bottom: calc(48px + var(--ch) / 2 - 32px); background: none; border: 0; padding: 8px; color: var(--stone); cursor: pointer; line-height: 0; transition: color 0.2s ease, opacity 0.2s ease; }
.car-btn:hover { color: var(--ink); }
.car-btn:disabled { opacity: 0.2; cursor: default; }
.car-btn[hidden] { display: block; visibility: hidden; }
@media (max-width: 759px) { .carousel { grid-template-columns: minmax(0, 1fr); margin-inline: calc(-1 * var(--gutter)); } .car-btn { display: none; } .car-track { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); } }
