/* =====================================================================
   THEME — change fonts and colours here.
   Fonts are self-hosted in assets/fonts (no requests to Google).
   ===================================================================== */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/fraunces-latin-800-normal.woff2") format("woff2");
}

:root {
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;   /* monogram only */

  --bg: #ffffff;
  --ink: #111111;
  --muted: #8b8b8b;
  --rule: #e6e6e6;

  /* placeholder tones */
  --ph-1: #ece9e4;
  --ph-2: #e3dfd9;
  --ph-3: #d9d5ce;
  --ph-4: #f0eeea;
  --ph-ink: #a19c94;

  --fs: 13px;
  --gutter: clamp(16px, 3.2vw, 48px);
  --gap: clamp(14px, 2vw, 32px);
  --hd-h: 104px;           /* header height at the top of the page */
  --hd-h-small: 68px;      /* header height after scrolling */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs)/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font-size: var(--fs); font-weight: 400; color: var(--muted); margin-bottom: 10px; }

#app { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; padding-top: calc(var(--hd-h) + 28px); padding-bottom: 72px; }

/* ---------- Header ---------- */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--hd-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  background: var(--bg);
  transition: height .35s ease, box-shadow .35s ease;
}
.hd.is-scrolled { height: var(--hd-h-small); box-shadow: 0 8px 28px rgba(0, 0, 0, .06); }

.hd-name {
  justify-self: start; min-width: 0;
  font-size: 16px; font-weight: 500; letter-spacing: -.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hd-mono {
  grid-column: 2;
  font-family: var(--font-serif); font-weight: 800; font-size: 46px; line-height: 1;
  transition: font-size .35s ease;
}
.hd.is-scrolled .hd-mono { font-size: 34px; }

.hd-nav, .hd-burger { grid-column: 3; grid-row: 1; justify-self: end; }
.hd-nav { display: flex; align-items: center; gap: 28px; }
.hd-nav > ul { display: flex; gap: 26px; }
.hd-nav li { position: relative; }
.hd-nav a.top { display: inline-block; padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd-nav a.top:hover, .hd-nav a.top.is-active { border-color: currentColor; }
.hd-ig { display: flex; }

/* dropdown "folders" */
.sub {
  position: absolute; top: calc(100% + 12px); left: -18px; z-index: 2;
  min-width: 210px; padding: 14px 18px;
  background: var(--bg); box-shadow: 0 12px 32px rgba(0, 0, 0, .09);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .2s, transform .2s, visibility 0s .2s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
.has-sub:hover .sub, .has-sub:focus-within .sub {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s, transform .2s;
}
.sub a { display: block; padding: 3px 0; color: var(--muted); }
.sub a:hover, .sub a.is-active { color: var(--ink); }
.sub a.all { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--rule); color: var(--ink); }

/* burger + mobile menu */
.hd-burger { display: none; width: 28px; height: 28px; position: relative; }
.hd-burger span { position: absolute; left: 3px; right: 3px; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.hd-burger span:first-child { top: 10px; }
.hd-burger span:last-child { top: 17px; }
.hd-burger[aria-expanded="true"] span:first-child { top: 13.5px; transform: rotate(45deg); }
.hd-burger[aria-expanded="true"] span:last-child { top: 13.5px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  padding: calc(var(--hd-h) + 12px) var(--gutter) 40px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s;
}
.mnav.is-open { opacity: 1; visibility: visible; transition: opacity .25s; }
.mnav > ul:first-child > li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mnav a.top { font-size: 22px; letter-spacing: -.01em; }
.mnav a.top.is-active { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mnav .msub { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 6px; }
.mnav .msub a { color: var(--muted); font-size: 15px; }
.mnav-social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; color: var(--muted); }

/* ---------- Media + placeholders ---------- */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--ph-1); }
.ph[data-tone="1"] { background: var(--ph-2); }
.ph[data-tone="2"] { background: var(--ph-3); }
.ph[data-tone="3"] { background: var(--ph-4); }
.ph span { padding: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ph-ink); text-align: center; }

/* .fit = a box that scales its image to fit fully inside (slideshow + lightbox) */
.fit { container-type: size; display: grid; place-items: center; min-width: 0; min-height: 0; height: 100%; }
.fit > .media { width: min(100cqw, 100cqh * var(--r, 1.25)); height: auto; object-fit: contain; }
.fit > img.media.nor { width: auto; height: auto; max-width: 100%; max-height: 100%; }

/* ---------- Slideshow / viewer (homepage + lightbox) ---------- */
.stage { position: relative; flex: 1; min-height: 0; }
.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s .6s;
}
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.row { display: grid; height: 100%; gap: var(--gap); }
.row.n1 { grid-template-columns: 1fr; }
.row.n2 { grid-template-columns: 1fr 1fr; gap: 18px; }
.row.n2 > .fit:first-child { justify-items: end; }   /* pair sits together in the middle */
.row.n2 > .fit:last-child { justify-items: start; }

.zone { position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2; }
.zone.prev { left: 0; cursor: w-resize; }
.zone.next { right: 0; cursor: e-resize; }

.bar { display: flex; align-items: baseline; gap: 24px; padding: 14px var(--gutter); }
.count { min-width: 3.4em; font-variant-numeric: tabular-nums; }
.bar .cap { flex: 1; min-width: 0; }
.bar .cap a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar .cap a:hover { border-color: currentColor; }
.cap-t { font-weight: 600; }
.cap-s { margin-left: 10px; color: var(--muted); }
.cap-b { display: block; max-width: 74ch; margin-top: 4px; color: #555; }
.arrows { display: flex; gap: 8px; color: var(--muted); }
.arrows button:hover { color: var(--ink); }

/* homepage fills exactly one screen */
.is-home #app { height: 100vh; height: 100svh; min-height: 0; overflow: hidden; }
main.home { display: flex; flex-direction: column; min-height: 0; padding: var(--hd-h) 0 0; }
.home .stage { margin: 12px var(--gutter) 0; }

/* ---------- Work overview (grid of series) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 30px; }
.filters a { color: var(--muted); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.filters a:hover { color: var(--ink); }
.filters a.is-active { color: var(--ink); border-color: currentColor; }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 52px var(--gap); }
.grid4.few { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* only a few series: bigger covers */
.card { display: block; }
.card-img { aspect-ratio: 5 / 4; overflow: hidden; }
.card-img > .media { width: 100%; height: 100%; aspect-ratio: auto !important; object-fit: cover; transition: opacity .3s; }
.card:hover .card-img > .media { opacity: .82; }
.card h2 { margin-top: 12px; font-size: var(--fs); font-weight: 600; }
.card .meta { color: var(--muted); }
.card .tick { display: block; width: 26px; height: 1px; margin-top: 14px; background: var(--rule); transition: width .3s, background .3s; }
.card:hover .tick { width: 48px; background: var(--ink); }

/* ---------- Project page ---------- */
.intro { max-width: 1180px; margin-bottom: 64px; }
.intro h1 { margin-bottom: 14px; font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.intro .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 72px; }
.intro .cols.one { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.intro .cols p { max-width: 62ch; }
.intro .cols p + p { margin-top: 12px; }
.intro .meta { margin-top: 18px; color: var(--muted); }
.short { width: 28px; margin: 22px 0 0; border: 0; border-top: 1px solid var(--ink); }

.pgrid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 44px var(--gap); align-items: start; }
.pitem { display: block; width: 100%; text-align: left; cursor: zoom-in; }
.pitem > .media { width: 100%; height: auto; transition: opacity .3s; }
.pitem:hover > .media { opacity: .85; }
.pcap { display: block; margin-top: 10px; }
/* masonry (set up by site.js): photos stacked in columns, no white gaps */
.pgrid.is-masonry { display: flex; align-items: flex-start; gap: var(--gap); }
.pcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.pitem:hover .pcap { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.pnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; margin-top: 88px; padding-top: 14px; border-top: 1px solid var(--rule); }
.pnav a { color: var(--muted); }
.pnav a:hover { color: var(--ink); }
.pnav > :last-child { justify-self: end; text-align: right; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s;
}
.lb.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
.lb:not(.is-open) .slide.is-on { visibility: hidden; transition: visibility 0s .3s; }
.lb-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px var(--gutter); }
.lb-top .lb-title { font-weight: 600; }
.lb-close { color: var(--muted); }
.lb-close:hover { color: var(--ink); }
.lb .stage { margin: 0 var(--gutter); }
body.lb-open { overflow: hidden; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 72px; align-items: start; }
.about-img > .media { width: 100%; height: auto; }
.about .lead p { max-width: 36em; font-size: 18px; line-height: 1.5; letter-spacing: -.005em; }
.about .lead p + p { margin-top: 1em; }
.about-grid.no-img { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.no-img .lead p { max-width: 34em; font-size: clamp(18px, 1.9vw, 24px); line-height: 1.45; }
.no-img .lists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 48px var(--gap); }
.c-intro { margin-bottom: 14px; }
.big { display: inline-block; max-width: 100%; margin-bottom: 14px; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: -.015em; line-height: 1.25; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; overflow-wrap: break-word; }
.c-agent p + p { margin-top: 2px; }
.c-agent a:hover { text-decoration: underline; }
.contact-grid.solo { grid-template-columns: minmax(0, 1fr); }   /* no agencies: the contact block gets the full width */
.contact-grid.solo .c-main { grid-column: 1 / -1; }
.c-social { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; }
.c-social a { border-bottom: 1px solid; }

/* ---------- Footer ---------- */
.ft { padding-bottom: 18px; }
.ft-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; border-top: 1px solid var(--rule); }
.ft-sub { display: flex; align-items: center; gap: 10px; }
.ft-sub label { color: var(--muted); }
.ft-sub .field { display: flex; border: 1px solid var(--rule); }
.ft-sub input { width: 190px; padding: 4px 8px; border: 0; background: transparent; font: inherit; color: inherit; }
.ft-sub input:focus { outline: none; }
.ft-sub .field:focus-within { border-color: var(--muted); }
.ft-sub button { padding: 4px 10px; border-left: 1px solid var(--rule); color: var(--muted); }
.ft-sub button:hover { color: var(--ink); }
.ft-msg { color: var(--muted); }
.ft-social, .ft-legal { display: flex; gap: 18px; color: var(--muted); }
.ft-social a:hover, .ft-legal a:hover { color: var(--ink); }

/* ---------- Imprint + Privacy ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.legal-lead { margin-top: 6px; color: var(--muted); }
.legal section { margin-top: 34px; }
.legal h2 { margin-bottom: 8px; font-size: var(--fs); font-weight: 600; }
.legal p { max-width: 68ch; }
.legal p + p { margin-top: 10px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.todo { padding: 0 4px; background: #fff1b8; }   /* visible until the missing info is filled in */
.ft-copy { margin-left: auto; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }

.empty { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(var(--cols-md, 3), minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-main { grid-column: span 2; }
}
@media (max-width: 900px) {
  :root { --hd-h: 72px; --hd-h-small: 60px; }
  .hd-nav { display: none; }
  .hd-burger { display: block; }
  .hd-name { font-size: 15px; }
  .hd-mono, .hd.is-scrolled .hd-mono { font-size: 34px; }
  .intro .cols, .intro .cols.one { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-img { max-width: 520px; }
  .lists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .grid4, .grid4.few { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid { grid-template-columns: repeat(var(--cols-sm, 2), minmax(0, 1fr)); gap: 32px var(--gap); }
  .pcol { gap: 32px; }
  .cap-s { display: block; margin-left: 0; }
  .no-img .lists { grid-template-columns: minmax(0, 1fr); }
  .home .stage { margin: 8px 0 0; }   /* phones: one photo per slide, edge to edge */
  .ft-copy { margin-left: 0; width: 100%; }
  .is-home .ft-sub { display: none; }
  .pnav { grid-template-columns: 1fr 1fr; }
  .pnav > :nth-child(2) { display: none; }
}
@media (max-width: 480px) {
  .hd-mono { display: none; }          /* keep the name readable on small phones */
  .contact-grid, .lists { grid-template-columns: minmax(0, 1fr); }
  .c-main { grid-column: auto; }
  .arrows { display: none; }
  .ft-sub input { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
