/* daanwalder.com · A+ "Index with Signal"
   Tokens mirror the Figma variables (Colour + Typography collections). */

@font-face { font-family: "Familjen Grotesk"; src: url("/static/fonts/familjen-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Familjen Grotesk"; src: url("/static/fonts/familjen-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/static/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* colour */
  --paper: #f1f0eb;
  --ink: #0e0e0e;
  --night: #0b0b0c;
  --body: #2e2d29;
  --graphite: #4a4944;
  --stone: #6b6a64;
  --placeholder: #a3a19a;
  --on-dark-muted: #9a988f;
  --on-dark-soft: #b8b6ae;
  --hairline: #c9c7bf;
  --line-on-dark: #2e2d29;
  --signal: #254fff;            /* Signal Blue. Signal Red: #ff3b1f */
  --signal-light: color-mix(in srgb, var(--signal) 65%, #fff);
  --signal-glow: rgb(37 79 255 / .4);

  /* type */
  --sans: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --fs-display: clamp(64px, 11.6vw, 168px);
  --fs-huge: clamp(44px, 7.8vw, 112px);
  --fs-statement: clamp(34px, 5.3vw, 76px);
  --fs-row: clamp(28px, 3.6vw, 52px);
  --fs-title: clamp(28px, 3.05vw, 44px);
  --fs-lead: clamp(22px, 2.36vw, 34px);
  --fs-h3: clamp(20px, 1.8vw, 26px);
  --fs-body: 19px;
  --fs-base: 17px;
  --fs-small: 15px;
  --fs-label: 12px;
  --fs-nav: 13px;

  /* space */
  --margin: 40px;
  --gutter: 16px;
  --sec-l: 72px;
  --sec-m: 60px;
  --sec-s: 48px;
  --col-label: 450px;
  --header-h: 64px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (max-width: 820px) {
  :root { --margin: 20px; --sec-l: 48px; --sec-m: 40px; --sec-s: 32px; --fs-body: 17px; --fs-base: 16px; --header-h: 56px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--fs-base); line-height: 1.35; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: var(--margin); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; font-family: var(--mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .04em; }
.skip-link:focus { top: 12px; }

/* type helpers */
.label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; color: var(--stone); line-height: 1.4; }
.label--ink { color: var(--ink); }
.display { font-size: var(--fs-display); line-height: .9; letter-spacing: -.05em; }
.huge { font-size: var(--fs-huge); line-height: .95; letter-spacing: -.04em; }
.statement { font-size: var(--fs-statement); line-height: 1; letter-spacing: -.03em; }
.title { font-size: var(--fs-title); line-height: 1.05; letter-spacing: -.02em; font-weight: 500; }
.lead { font-size: var(--fs-lead); line-height: 1.22; letter-spacing: -.01em; }
.body { font-size: var(--fs-body); line-height: 1.5; color: var(--body); }
.muted { color: var(--stone); }

/* layout */
.wrap { padding-left: var(--margin); padding-right: var(--margin); }
.rule-top { border-top: 1px solid var(--ink); }
.rule-top-strong { border-top: 1.5px solid var(--ink); }
.split { display: grid; grid-template-columns: var(--col-label) 1fr; gap: 0 var(--gutter); }
@media (max-width: 1100px) { :root { --col-label: 300px; } }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 16px; } }

/* ---------- components ---------- */
/* Action: [ LABEL ] */
.action { display: inline-flex; align-items: center; gap: 10px; padding: 10px 0; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; color: currentColor; background: none; border: 0; cursor: pointer; transition: color .2s; white-space: nowrap; }
.action::before { content: "["; }
.action::after { content: "]"; }
/* Hover: text and brackets turn signal. A dot slides in after the opening bracket; a button that already has a dot gets a soft ring. */
.action > span:only-child { display: inline-flex; align-items: center; }
.action > span:only-child::before { content: ""; flex: none; width: 0; height: 7px; margin-right: 0; border-radius: 50%; background: var(--signal); opacity: 0; transition: width .3s var(--ease), margin .3s var(--ease), opacity .2s; }
.action:hover > span:only-child::before, .action:focus-visible > span:only-child::before { width: 7px; margin-right: 10px; opacity: 1; }
.action .dot { transition: box-shadow .3s var(--ease); }
.action:hover .dot, .action:focus-visible .dot { box-shadow: 0 0 0 4px var(--signal-glow); }
.action:hover, .action:focus-visible { color: var(--signal); outline: none; }
.on-dark .action:hover, .on-dark .action:focus-visible, .action.on-dark:hover, .action.on-dark:focus-visible { color: var(--signal-light); }
.action .dot, .signal .dot, .live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none; }

/* Link: label with a short rule that grows */
.link { display: inline-flex; flex-direction: column; gap: 4px; line-height: 1.2; }
.link span { display: inline-flex; gap: 10px; }
.link span::after { content: "→"; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s var(--ease); }
.link::after { content: ""; width: 24px; height: 1.5px; background: currentColor; transition: width .35s var(--ease); }
.link:hover::after, .link:focus-visible::after { width: 100%; }
.link:hover span::after, .link:focus-visible span::after { opacity: 1; transform: none; }

/* Signal: dot + label */
.signal { display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; line-height: 1.2; }
.signal .dot { background: currentColor; transition: background-color .2s, box-shadow .2s, transform .2s; }
.signal:hover .dot, .signal:focus-visible .dot { background: var(--signal); transform: scale(1.4); box-shadow: 0 0 0 6px var(--signal-glow); animation: pulse 1.6s infinite; }
.live { display: inline-flex; align-items: center; gap: 10px; }
.live .dot { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--signal-glow); } 50% { box-shadow: 0 0 0 6px rgb(0 0 0 / 0); } }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--margin); background: var(--paper); border-bottom: 1px solid var(--ink); transition: background-color .3s, color .3s, border-color .3s; }
.site-header .name { font-size: 18px; font-weight: 500; justify-self: start; }
.site-header .live { justify-self: center; }
.site-header .live .label { color: inherit; }
.nav { justify-self: end; display: flex; gap: 12px; }
.nav a { display: inline-flex; gap: 8px; padding: 6px 0; font-family: var(--mono); font-size: var(--fs-nav); letter-spacing: .04em; text-transform: uppercase; }
.nav a::before, .nav a::after { opacity: 0; transition: opacity .15s; }
.nav a::before { content: "["; } .nav a::after { content: "]"; }
.nav a { transition: color .2s; }
.nav a span { opacity: .75; transition: opacity .15s; }
/* Hover: brackets appear and the whole item turns signal. Active: brackets only, in the text colour. */
.nav a:hover::before, .nav a:hover::after, .nav a:focus-visible::before, .nav a:focus-visible::after, .nav a[aria-current]::before, .nav a[aria-current]::after { opacity: 1; }
.nav a:hover span, .nav a:focus-visible span, .nav a[aria-current] span { opacity: 1; }
.nav a:hover, .nav a:focus-visible { color: var(--signal); outline: none; }
body.has-hero .site-header.is-over .nav a:hover, body.has-hero .site-header.is-over .nav a:focus-visible { color: var(--signal-light); }
.menu-button { display: none; justify-self: end; font-size: 15px; }
body.has-hero .site-header.is-over { background: transparent; color: var(--paper); border-color: transparent; }
body:not(.has-hero) main { padding-top: var(--header-h); }
@media (max-width: 820px) {
  .nav { display: none; } .menu-button { display: block; }
  .site-header { grid-template-columns: auto 1fr auto; gap: 12px; }
  .site-header .live .long { display: none; }
}

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; padding: 0 var(--margin) 28px; transform: translateY(-101%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.menu.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.menu-top { height: var(--header-h); display: flex; justify-content: space-between; align-items: center; }
.menu-top .name { font-weight: 500; font-size: 16px; }
.menu ol { list-style: none; margin: 40px 0 0; padding: 0; }
.menu li { border-top: 1px solid var(--line-on-dark); }
.menu li a { display: flex; align-items: center; gap: 16px; padding: 12px 0; font-size: 48px; letter-spacing: -.02em; }
.menu li a .label { color: var(--stone); }
.menu-foot { margin-top: auto; display: grid; gap: 12px; }
.menu-foot .label { color: var(--on-dark-muted); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; max-height: 1000px; background: var(--night); color: var(--paper); overflow: hidden; }
.hero--short { height: 88vh; max-height: 860px; }
.hero > video, .hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 8 10 / .5) 0%, rgb(8 8 10 / .05) 30%, rgb(8 8 10 / .85) 100%); pointer-events: none; }
.hero-content { position: absolute; z-index: 2; left: var(--margin); right: var(--margin); bottom: 40px; display: grid; gap: 40px; }
.hero-content .statement { max-width: 1240px; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.hero-foot .label { color: var(--on-dark-soft); }
.hero .back { position: absolute; z-index: 2; left: var(--margin); top: calc(var(--header-h) + 28px); }
.hero .label { color: var(--on-dark-soft); }
.hero .label--light { color: var(--paper); }

/* ---------- meta row ---------- */
.meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); padding-top: 40px; padding-bottom: var(--sec-m); }
.meta-row div { display: grid; gap: 8px; }
.meta-row p:last-child { font-size: var(--fs-base); }
@media (max-width: 820px) { .meta-row { grid-template-columns: 1fr; gap: 14px; } .meta-row div { grid-template-columns: 84px 1fr; } }

/* ---------- featured ---------- */
.featured { padding-bottom: var(--sec-l); display: grid; gap: 16px; }
.featured img { width: 100%; aspect-ratio: 1360 / 760; object-fit: cover; }
.caption-row { display: grid; grid-template-columns: 80px 1fr auto auto; gap: 24px; align-items: start; }
.caption-row .h { font-size: 28px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.caption-row .sub { color: var(--stone); font-size: var(--fs-base); margin-top: 6px; }
@media (max-width: 820px) { .caption-row { grid-template-columns: 1fr auto; } .caption-row > .label:first-child { display: none; } .caption-row .label:nth-child(3) { display: none; } }

/* ---------- index (accordion list) ---------- */
.index-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 12px 0; border-top: 1.5px solid var(--ink); }
.group { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
[data-filter], [data-view] { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; color: var(--stone); padding: 4px 0; }
[data-filter][aria-pressed="true"], [data-view][aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.alist { list-style: none; margin: 0; padding: 0; }
.arow { border-top: 1px solid var(--hairline); }
.arow:first-child { border-top: 1.5px solid var(--ink); }
.toolbar + .alist .arow:first-child { border-top: 0; }
.arow[hidden] { display: none; }
.arow-head { width: 100%; display: grid; grid-template-columns: 80px 1fr auto 80px 32px; gap: 24px; align-items: center; padding: 18px 0; text-align: left; }
.arow-head .t { font-size: var(--fs-row); letter-spacing: -.02em; line-height: 1.05; transition: opacity .2s; }
.arow-head .num, .arow-head .d { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; color: var(--stone); transition: opacity .2s; }
.arow-head .y { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; text-align: right; transition: opacity .2s; }
.arow-head .pm { font-size: 32px; line-height: 1; text-align: right; transition: transform .3s var(--ease), opacity .2s; }
.arow.is-open .pm { transform: rotate(45deg); }
.arow-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.arow.is-open .arow-body { grid-template-rows: 1fr; }
.arow-inner { overflow: hidden; }
.arow-content { display: grid; grid-template-columns: 420px 420px 1fr; gap: 20px; padding: 0 0 36px 104px; }
.arow-content img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; }
.arow-text { display: grid; gap: 16px; align-content: start; max-width: 400px; }
.arow-text p:first-child { font-size: var(--fs-body); line-height: 1.45; }
.alist.is-hovering .arow:not(.is-hover):not(.is-open) .t { opacity: .25; }
.alist.is-hovering .arow:not(.is-hover):not(.is-open) .d, .alist.is-hovering .arow:not(.is-hover):not(.is-open) .y { opacity: .5; }
.alist.is-hovering .arow:not(.is-hover):not(.is-open) .pm { opacity: .4; }
.preview { position: fixed; z-index: 40; left: 0; top: 0; width: 380px; pointer-events: none; opacity: 0; transition: opacity .2s; }
.preview.is-visible { opacity: 1; }
.preview img { width: 100%; height: auto; }
.preview-dot { position: fixed; z-index: 41; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); pointer-events: none; opacity: 0; transform: translate(-50%, -50%); }
.preview-dot.is-visible { opacity: 1; }
@media (max-width: 1100px) { .arow-content { grid-template-columns: 1fr 1fr; padding-left: 0; } .arow-text { grid-column: 1 / -1; } }
@media (max-width: 820px) {
  .arow-head { grid-template-columns: 34px 1fr auto 20px; gap: 12px; padding: 14px 0; }
  .arow-head .d { display: none; }
  .arow-content { grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 24px; }
}

/* grid view */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px var(--gutter); padding-top: 16px; }
.cards[hidden] { display: none; }
.card { display: grid; gap: 12px; align-content: start; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: opacity .2s; }
.card:hover img { opacity: .88; }
.card .row { display: flex; justify-content: space-between; }
.card h3 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.card p { color: var(--stone); }
.card[hidden] { display: none; }
.cards--feature { grid-template-columns: repeat(6, 1fr); }
.cards--feature .card { grid-column: span 2; }
.cards--feature .card:nth-child(-n+2) { grid-column: span 3; }
.cards--feature .card img { aspect-ratio: 3 / 2; }
@media (max-width: 820px) { .cards, .cards--feature { grid-template-columns: 1fr 1fr; gap: 32px 8px; } .cards--feature .card, .cards--feature .card:nth-child(-n+2) { grid-column: auto; } }

/* ---------- sections ---------- */
.section { padding-top: var(--sec-l); padding-bottom: var(--sec-l); }
.recognition { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--ink); }
.recognition div { display: grid; gap: 8px; }
.recognition .h { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.recognition p:last-child { color: var(--graphite); }
@media (max-width: 820px) { .recognition { grid-template-columns: 1fr; } }

.page-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: var(--sec-m); padding-bottom: 40px; }
.page-title p { max-width: 380px; font-size: 20px; line-height: 1.35; color: var(--graphite); }
.page-title p.wide { max-width: 680px; font-size: 30px; line-height: 1.22; color: var(--ink); letter-spacing: -.01em; }
@media (max-width: 820px) { .page-title { flex-direction: column; align-items: flex-start; gap: 16px; } .page-title p.wide { font-size: 22px; } }

.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.themes div { border-top: 1px solid var(--ink); padding-top: 16px; display: grid; gap: 10px; }
.themes p:last-child { color: var(--graphite); max-width: 270px; }
@media (max-width: 820px) { .themes { grid-template-columns: 1fr; margin-top: 32px; } }

/* chapters (art) */
.chapter { position: relative; height: 100vh; min-height: 620px; max-height: 1000px; background: var(--night); color: var(--paper); overflow: hidden; }
.chapter > video, .chapter > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 8 10 / .85) 0%, rgb(8 8 10 / .15) 55%, rgb(8 8 10 / .35) 100%); pointer-events: none; }
.chapter .num { position: absolute; z-index: 2; left: var(--margin); top: calc(var(--header-h) + 28px); color: var(--paper); }
.chapter-content { position: absolute; z-index: 2; left: var(--margin); bottom: 56px; max-width: 700px; display: grid; gap: 18px; }
.chapter-content .huge { font-size: clamp(56px, 8.3vw, 120px); line-height: .92; }
.chapter-content .line { font-size: 22px; max-width: 520px; }
.chapter-content .label { color: var(--on-dark-soft); }
/* The whole chapter is clickable: a covering link sits under the text, the text lets clicks through */
.chapter-hit { position: absolute; inset: 0; z-index: 1; }
.chapter-content { pointer-events: none; }
.chapter-content a { pointer-events: auto; }
.chapter:has(.chapter-hit:hover) .link::after { width: 100%; }
.chapter:has(.chapter-hit:hover) .link span::after { opacity: 1; transform: none; }
.rail { position: fixed; z-index: 30; right: var(--margin); top: 50%; transform: translateY(-50%); display: grid; gap: 0; opacity: 0; pointer-events: none; transition: opacity .3s; color: var(--paper); }
.rail.is-visible { opacity: 1; pointer-events: auto; }
.rail a { position: relative; display: block; padding: 24px 18px 24px 0; text-align: right; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; color: var(--on-dark-muted); border-right: 2px solid rgb(241 240 235 / .25); }
.rail a[aria-current] { color: var(--paper); border-right-color: var(--signal); }
@media (max-width: 820px) { .rail { display: none; } .chapter-content { bottom: 32px; right: var(--margin); } }

/* services table */
.table-head { padding-bottom: 24px; }
.trow { display: grid; grid-template-columns: 80px 470px 1fr 260px; gap: 0 24px; padding: 28px 0; border-top: 1px solid var(--hairline); align-items: start; }
.trow:first-of-type { border-top: 1.5px solid var(--ink); }
.trow h3 { font-size: 28px; letter-spacing: -.01em; font-weight: 500; }
.trow .body { font-size: var(--fs-base); max-width: 460px; }
.trow .for { display: grid; gap: 6px; color: var(--graphite); font-size: var(--fs-small); }
@media (max-width: 1100px) { .trow { grid-template-columns: 60px 1fr; gap: 12px 16px; } .trow .body, .trow .for { grid-column: 2; } }

/* about */
.portrait img { width: 100%; aspect-ratio: 1360 / 620; object-fit: cover; }
.fig-cap { display: flex; justify-content: space-between; gap: 24px; margin-top: 8px; color: var(--stone); font-size: var(--fs-small); }
.bio-left { display: grid; gap: 28px; align-content: start; }
.bio-left ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.bio-right { display: grid; gap: 24px; }
.bio-right .body { max-width: 720px; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 80px; }
@media (max-width: 1000px) { .cv-grid { grid-template-columns: 1fr; gap: 48px; } }
.cv h2 { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 16px; font-size: 32px; letter-spacing: -.01em; font-weight: 500; }
.cv ol { list-style: none; padding: 0; margin: 0; }
.cv li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hairline); }
.cv li:first-child { border-top: 1.5px solid var(--ink); }
.cv li p:last-child { color: var(--stone); font-size: var(--fs-small); margin-top: 4px; }
.downloads { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: var(--sec-m); border-top: 1px solid var(--ink); }
.downloads .group { display: flex; gap: 16px; flex-wrap: wrap; }

/* contact */
.contact-main { display: grid; grid-template-columns: 820px 1fr; gap: 80px; padding-top: 40px; padding-bottom: var(--sec-l); border-top: 1.5px solid var(--ink); }
@media (max-width: 1100px) { .contact-main { grid-template-columns: 1fr; gap: 48px; } }
.form { display: grid; gap: 36px; }
.form h2 { font-size: 32px; font-weight: 500; letter-spacing: -.01em; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
.field { display: grid; gap: 10px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 22px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 8px 0 12px; border-radius: 0; }
.field textarea { min-height: 140px; resize: vertical; }
.field ::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--signal); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.chips legend { margin-bottom: 14px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px; font-size: var(--fs-small); cursor: pointer; transition: background-color .15s, color .15s; }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .04em; text-transform: uppercase; }
.form-status.is-error { color: #b3261e; }
.details { display: grid; align-content: start; }
.details > div { display: grid; gap: 8px; padding: 18px 0; border-top: 1px solid var(--hairline); }
.details > div:first-child { border-top: 0; padding-top: 0; }
.details .v { font-size: 20px; line-height: 1.4; }

/* project page */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding-top: 32px; padding-bottom: 32px; }
.facts div { display: grid; gap: 8px; align-content: start; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }
.project-body { padding-top: var(--sec-m); padding-bottom: var(--sec-m); border-top: 1px solid var(--ink); }
.project-body .right { display: grid; gap: 24px; }
.project-body .lead { max-width: 880px; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.project-body .body { max-width: 720px; }
.media { display: grid; gap: var(--gutter); padding-bottom: var(--sec-l); }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }
figure { margin: 0; }
.media figure img, .media figure video { width: 100%; background: #e6e4dd; }
.media .pair-landscape img, .media .pair-landscape video { aspect-ratio: 3 / 2; object-fit: cover; }
.media figcaption { display: flex; justify-content: space-between; gap: 24px; margin-top: 8px; color: var(--stone); font-size: var(--fs-small); }
.media figcaption .label { flex: none; }
.film { position: relative; background: var(--night); }
.media .film video { width: 100%; max-height: 90vh; object-fit: contain; background: var(--night); }
.film .play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper); }
.film .play .ring { width: 112px; height: 112px; border: 1.5px solid currentColor; border-radius: 50%; transition: transform .3s var(--ease); }
.film .play:hover .ring { transform: scale(1.08); }
.film .play .signal { position: absolute; top: calc(50% + 76px); }
.film.is-playing .play { display: none; }
@media (max-width: 820px) { .media-row { grid-template-columns: 1fr; } }
.next { display: flex; align-items: center; gap: 32px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--ink); }
.next .grow { flex: 1; display: grid; gap: 10px; }
.next .big { font-size: clamp(32px, 4.4vw, 64px); letter-spacing: -.03em; line-height: 1; }
.next img { width: 240px; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 820px) { .next img { display: none; } }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 72px var(--margin) 28px; display: grid; gap: 40px; }
.site-footer .intro { font-size: 22px; color: var(--on-dark-muted); }
.site-footer .email { font-size: clamp(28px, 7.8vw, 112px); letter-spacing: -.04em; line-height: 1; overflow-wrap: anywhere; }
.site-footer .email:hover { color: var(--signal); }
.footer-row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.footer-row .label { color: var(--on-dark-muted); }
.footer-row a.label:hover { color: var(--paper); }
.site-footer--slim { padding-top: 28px; }

/* 404 */
.nosignal { min-height: 100vh; background: var(--night); color: var(--paper); display: grid; align-content: center; gap: 28px; padding: var(--header-h) var(--margin) 40px; }
.nosignal .label { color: var(--on-dark-muted); }
.nosignal p.body { color: var(--on-dark-soft); max-width: 560px; }

/* ================= Grid system =================
   12 columns, var(--margin) outside, var(--gutter) between. Layouts use the quarter lines
   (columns 1, 4, 7, 10) and column 2 for titles that follow a number. Mobile: one column. */
:root { --cols: repeat(12, minmax(0, 1fr)); }
@media (min-width: 821px) {
  /* label + text: label on column 1, text from the half to the right margin */
  .split { grid-template-columns: var(--cols); }
  .split > :first-child { grid-column: 1 / 7; }
  .split > :nth-child(2) { grid-column: 7 / 13; }
  .split .lead, .split .body, .project-body .lead, .project-body .body, .bio-right .body { max-width: none; }
  .themes { gap: var(--gutter); } .themes p:last-child { max-width: none; }
  /* rows of items: one per quarter */
  .meta-row, .recognition, .facts, .footer-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px var(--gutter); }
  /* page titles: title left, note on the quarter or the half */
  .page-title { display: grid; grid-template-columns: var(--cols); column-gap: var(--gutter); align-items: end; }
  .page-title h1 { grid-column: 1 / 10; }
  .page-title p { grid-column: 10 / 13; max-width: none; }
  .page-title p.wide { grid-column: 7 / 13; max-width: none; }
  .page-title:has(p.wide) h1 { grid-column: 1 / 7; }
  /* featured caption */
  .caption-row { grid-template-columns: var(--cols); gap: 0 var(--gutter); }
  .caption-row > :nth-child(1) { grid-column: 1; } .caption-row > :nth-child(2) { grid-column: 2 / 7; }
  .caption-row > :nth-child(3) { grid-column: 7 / 10; } .caption-row > :nth-child(4) { grid-column: 10 / 13; justify-self: start; }
  /* figure captions split at the half of their figure */
  .media figcaption, .fig-cap { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
  /* card grids */
  .cards { column-gap: var(--gutter); }
  /* CV: two halves; inside each half the year takes one column */
  .cv-grid { gap: 64px var(--gutter); }
  .cv li { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 var(--gutter); }
  .cv li > :first-child { grid-column: 1; } .cv li > :last-child { grid-column: 2 / 7; }
  /* downloads: label on column 1, buttons from the half */
  .downloads { display: grid; grid-template-columns: var(--cols); column-gap: var(--gutter); }
  .downloads > :first-child { grid-column: 1 / 7; } .downloads .group { grid-column: 7 / 13; gap: 32px; }
  /* footer */
  .footer-row { row-gap: 12px; }
}
@media (min-width: 1101px) {
  /* index rows: number 1, title 2 to 9, discipline 10, year and plus in 12 */
  .arow-head { grid-template-columns: var(--cols); gap: 0 var(--gutter); }
  .arow-head .num { grid-column: 1; } .arow-head .t { grid-column: 2 / 10; } .arow-head .d { grid-column: 10 / 12; }
  .arow-head .y { grid-column: 12; grid-row: 1; justify-self: start; text-align: left; } .arow-head .pm { grid-column: 12; grid-row: 1; justify-self: end; }
  .arow-content { grid-template-columns: var(--cols); gap: 0 var(--gutter); padding-left: 0; }
  .arow-content > :nth-child(1) { grid-column: 2 / 6; } .arow-content > :nth-child(2) { grid-column: 6 / 10; }
  .arow-content > .arow-text { grid-column: 10 / 13; max-width: none; }
  .arow-content > img:only-of-type { grid-column: 2 / 10; }
  /* services: number 1, title 2, text from the half, clients on the last quarter */
  .trow { grid-template-columns: var(--cols); gap: 0 var(--gutter); }
  .trow > :nth-child(1) { grid-column: 1; } .trow > :nth-child(2) { grid-column: 2 / 7; }
  .trow > :nth-child(3) { grid-column: 7 / 10; max-width: none; } .trow > :nth-child(4) { grid-column: 10 / 13; }
  /* contact: form on the left half, details on the last quarter */
  .contact-main { grid-template-columns: var(--cols); gap: 0 var(--gutter); }
  .contact-main .form { grid-column: 1 / 7; } .contact-main .details { grid-column: 10 / 13; }
  .form .two { gap: var(--gutter); }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .arow-content { padding-left: 0; gap: var(--gutter); }
  .contact-main { gap: 48px; }
}

/* ================= Motion (only when html.motion: JS on, reduced motion off) ================= */
/* A3 arrival: titles rise word by word from behind their own edge */
.motion :is(h1.statement, h1.display, h1.huge, .chapter .huge):not(.is-split) { visibility: hidden; animation: mo-failsafe 0s 2.5s forwards; }
@keyframes mo-failsafe { to { visibility: visible; } }
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.is-split .w > span { display: inline-block; transform: translateY(105%); }
.is-split.is-in .w > span { transform: none; transition: transform .9s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0ms); }
/* B1 images: a frame that opens from the bottom; the image inside settles from a slight zoom */
.mo-frame { overflow: hidden; }
.mo-frame > img, .mo-frame > video { display: block; }
/* S1 chapters: each chapter pins to the top, the next slides over it, the one underneath sinks back and darkens */
.motion #chapters { background: var(--night); }
.motion #chapters .chapter { position: sticky; top: 0; transform-origin: 50% 0; }
.chapter-dim { position: absolute; inset: 0; z-index: 3; background: #000; opacity: 0; pointer-events: none; }
/* D3 between pages: fade to paper, "Receiving", fade in */
html::before, html::after { position: fixed; z-index: 1000; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .3s; }
html::before { content: ""; inset: 0; background: var(--paper); }
html::after { content: "Receiving"; left: 50%; top: 50%; transform: translate(-50%, -50%); padding-left: 19px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: radial-gradient(circle, var(--signal) 3.5px, transparent 4px) 0 50% / 8px 8px no-repeat; }
html.leaving::before, html.leaving::after, html.arriving::before, html.arriving::after { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }
html.arriving.arrived::before, html.arriving.arrived::after { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s .3s; }
html.leaving::after, html.arriving::after { animation: mo-blink 1s steps(1) infinite; }
@keyframes mo-blink { 50% { background-size: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
