@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:400 700;font-display:swap;src:url(/_/bricolage-grotesque-latin-opsz-normal.a79fdb52d4.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:'Bricolage Grotesque';font-style:normal;font-weight:400 700;font-display:swap;src:url(/_/bricolage-grotesque-latin-ext-opsz-normal.776f6dcaf0.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:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/_/instrument-serif-latin-400-italic.5a51946dff.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:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/_/instrument-serif-latin-ext-400-italic.d001482125.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}
/* inkOfPixel: black ink on white paper, a few code details, motion everywhere.
   Sections: tokens and base, motion, ink, header and menu, shared pieces, home,
   inner pages, services, projects, blog and prose, contact and footer, scroll effects. */

/* ------------------------------------------------------------ tokens and base */
:root {
  color-scheme: light;
  --ink: #0b0b0b;
  --paper: #ffffff;
  /* Ink sections go through a contrast filter, so they need pure black and white. */
  --ink-pure: #000000;
  --paper-pure: #ffffff;
  --soft: #5a5a5a;
  --text: #3d3d3d;
  --strong: #1f1f1f;
  --line: #d6d6d6;
  --tint: #f4f4f4;
  --placeholder: #ececec;
  --dot: #cfcfcf;
  --faint: #cdcdcd;
  --inverse-soft: #a8a8a8;
  /* Foreground and background of filled controls. Flipped inside .blend and the menu. */
  --fg: var(--ink);
  --bg: var(--paper);
  --pad: clamp(20px, 4vw, 56px);
  --sans: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.4, .4, 1);
}

/* Dark theme: paper and ink swap. `data-theme` is set on <html> before the first paint
   (saved choice, or the system preference) and by the switch in the header. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f4;
  --paper: #0b0b0b;
  --ink-pure: #ffffff;
  --paper-pure: #000000;
  --soft: #a3a3a3;
  --text: #c9c9c9;
  --strong: #e9e9e9;
  --line: #2e2e2e;
  --tint: #171717;
  --placeholder: #1e1e1e;
  --dot: #363636;
  --faint: #3d3d3d;
  --inverse-soft: #5a5a5a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
i { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

.site { position: relative; overflow-x: clip; background: var(--paper); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ motion */
@keyframes morph {
  0%, 100% { border-radius: 58% 42% 55% 45% / 46% 54% 44% 56%; }
  33% { border-radius: 42% 58% 38% 62% / 57% 41% 59% 43%; }
  66% { border-radius: 51% 49% 62% 38% / 39% 61% 45% 55%; }
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rise { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes draw { from { stroke-dashoffset: 340; } to { stroke-dashoffset: 0; } }
@keyframes drip {
  0% { transform: translateY(-6px) scale(0); opacity: 1; }
  25% { transform: translateY(0) scale(1); opacity: 1; }
  75% { transform: translateY(24px) scale(.85, 1.2); opacity: 1; }
  100% { transform: translateY(34px) scale(.5, 1.3); opacity: 0; }
}
@keyframes ripple { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 45%, transparent); } to { box-shadow: 0 0 0 12px transparent; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes wink { from { color: var(--faint); } to { color: var(--ink); } }
@keyframes floaty { from { transform: translateY(-8px) rotate(0deg); } to { transform: translateY(10px) rotate(24deg); } }
@keyframes menu { from { clip-path: circle(0px at calc(100% - 64px) 45px); } to { clip-path: circle(160% at calc(100% - 64px) 45px); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Entrance on load. `--d` staggers the delay. */
.in { animation: in 1s var(--ease) var(--d, 0s) both; }
.line { display: block; overflow: hidden; padding: .06em 0 .2em; margin: -.06em 0 -.2em; }
.line > span { display: inline-block; animation: rise 1.1s var(--ease) var(--d, .05s) both; }
.caret { display: inline-block; width: .06em; height: .72em; margin-left: .08em; background: currentColor; animation: blink 1.1s steps(1) infinite; }
.caret--sm { width: 7px; height: 14px; margin-left: 6px; }

/* Accent word: serif italic with a hand-drawn ink line underneath. */
.accent { position: relative; display: inline-block; letter-spacing: -.02em; }
.stroke { position: absolute; left: 0; bottom: -.05em; width: 100%; height: .13em; overflow: visible; }
.stroke path { stroke-dasharray: 340; stroke-dashoffset: 0; }
.draw path { animation: draw 1.2s cubic-bezier(.6, 0, .2, 1) 1s both; }

.sep { display: block; flex: none; width: 14px; height: 14px; background: var(--ink); animation: morph 5s ease-in-out infinite; }
.ripple { position: relative; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.ripple::after { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: ripple 2.4s ease-out infinite; }

/* ------------------------------------------------------------ ink */
/* An ink section holds a cluster of circles inside `.ink`. Blur plus contrast fuses them
   into one liquid shape; site.js moves each circle on a spring so the cursor parts it.
   Text sits in `.blend`, which inverts against whatever is behind it. */
[data-pool] { position: relative; isolation: isolate; overflow: hidden; }
.ink { position: absolute; inset: -48px; background: var(--paper-pure); filter: blur(14px) contrast(40); }
.ink-body { position: absolute; top: calc(48px + 13%); right: calc(48px + 6%); width: min(46vw, 620px); aspect-ratio: 1 / 1; }
.drop { position: absolute; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--ink-pure); will-change: transform; }
.hole { position: absolute; left: 0; top: 0; width: 112px; height: 112px; border-radius: 50%; background: var(--paper-pure); transform: scale(0); will-change: transform; }
.pop { animation: pop 1.5s cubic-bezier(.2, 1.25, .4, 1) .15s both; }

.dots, .dots-lit, .dots-soft { position: absolute; inset: 0; pointer-events: none; background-size: 24px 24px; }
.dots { background-image: radial-gradient(circle, #3d3d3d 1.6px, transparent 2.2px); mix-blend-mode: difference; }
.dots-soft { background-image: radial-gradient(circle, var(--dot) 1.6px, transparent 2.2px); }
/* Stronger dots in a spotlight that follows the cursor (--mx / --my set by site.js).
   Dots and text share a difference blend, so dots under small text eat into the letters:
   the dot layers fade out before the paragraphs, the form and the footer. */
.dots-lit {
  background-image: radial-gradient(circle, #9c9c9c 2px, transparent 2.6px);
  mix-blend-mode: difference;
  /* Two masks intersected: the spotlight, and the area where dots are allowed (--zone). */
  --spot: radial-gradient(200px circle at var(--mx, -500px) var(--my, -500px), #000 0%, transparent 100%);
  --zone: linear-gradient(#000, #000);
  -webkit-mask-image: var(--spot), var(--zone);
  mask-image: var(--spot), var(--zone);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.hero .dots-lit { --zone: linear-gradient(to bottom, #000 45%, transparent 78%); }
.contact .dots-lit { --zone: linear-gradient(to bottom, transparent 0%, #000 22%, #000 38%, transparent 62%); }
.dots--fade-bottom { -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
.dots--fade-top { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 38%, transparent 62%); mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 38%, transparent 62%); }
.dots--fade-both { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%); }

.blend { position: relative; mix-blend-mode: difference; color: #ffffff; --fg: #ffffff; --bg: #000000; --soft: #ffffff; }

/* ------------------------------------------------------------ header and menu */
.header { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px; padding: 22px var(--pad); }
.logo { display: flex; align-items: center; gap: 7px; min-height: 44px; }
.logo-mark { transition: transform .7s var(--ease); }
.logo:hover .logo-mark { transform: rotate(90deg); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; font-weight: 500; }

.link { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .45s var(--ease); }
.link:hover::after, .link[aria-current]::after { transform: scaleX(1); transform-origin: left center; }

.pill { display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 30px; border: 0; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 500; cursor: pointer; transition: transform .5s var(--spring); }
.pill:hover { transform: scale(1.05); }
.pill--sm { min-height: 46px; padding: 0 22px; font-size: 16px; }
.pill--lg { font-size: 17px; }
.pill--xl { gap: 14px; min-height: 72px; padding: 0 36px; font-size: clamp(18px, 2.2vw, 30px); letter-spacing: -.02em; }
.arrow { display: inline-flex; transition: transform .5s var(--ease); }
.pill:hover .arrow { transform: translateX(6px); }

.header-actions { display: flex; align-items: center; gap: 10px; }
/* Theme switch: a half-filled circle that flips over. */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; box-shadow: inset 0 0 0 1.5px currentColor; }
.theme-btn svg { transition: transform .7s var(--ease); }
.theme-btn:hover svg { transform: rotate(180deg); }
[data-theme="dark"] .theme-btn svg { transform: rotate(180deg); }
[data-theme="dark"] .theme-btn:hover svg { transform: rotate(360deg); }
.menu-btn { display: none; }
.burger { display: flex; flex-direction: column; gap: 5px; }
.burger i { display: block; width: 18px; height: 2px; background: var(--bg); }
@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

.menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; gap: 36px; overflow-y: auto; padding: 22px 20px 28px; background: var(--ink); color: var(--paper); --fg: var(--paper); --bg: var(--ink); --soft: var(--inverse-soft); animation: menu .7s var(--ease) both; }
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.menu-nav { display: flex; flex-direction: column; gap: 6px; }
.menu-link { display: flex; align-items: baseline; gap: 16px; min-height: 60px; font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: -.04em; transition: transform .5s var(--ease); }
.menu-link em { font-size: 18px; letter-spacing: 0; color: var(--soft); }
.menu-link:hover { transform: translateX(10px); }
.menu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: auto; }
.menu-open { overflow: hidden; }

/* ------------------------------------------------------------ shared pieces */
.tag { font-family: var(--mono); font-size: 13px; line-height: 1.5; letter-spacing: .01em; color: var(--soft); }
.tag--end { align-self: flex-end; margin-top: 20px; }
.lead { max-width: 480px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; text-wrap: pretty; }
.lead--lg { max-width: 640px; font-size: clamp(20px, 2vw, 28px); line-height: 1.35; letter-spacing: -.01em; }
.display { font-size: clamp(42px, 8vw, 120px); font-weight: 500; line-height: .96; letter-spacing: -.045em; }
.h2 { font-size: clamp(40px, 6vw, 88px); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.h3 { font-size: clamp(34px, 4.4vw, 64px); font-weight: 500; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }

.go { flex: none; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: transform .6s var(--ease); }

/* A row that fills with ink from where the cursor enters (--x / --y set by site.js). */
.row { position: relative; isolation: isolate; overflow: hidden; display: block; border-radius: 36px; background: var(--tint); }
.row::before { content: ''; position: absolute; inset: 0; z-index: 0; background: var(--ink); clip-path: circle(0px at var(--x, 50%) var(--y, 50%)); transition: clip-path .75s var(--ease); }
.row:hover::before, .row:focus-visible::before { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.row-in { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 32px; padding: 26px clamp(20px, 3vw, 40px); mix-blend-mode: difference; color: #ffffff; }
.row-num { flex: none; width: 52px; font-size: 28px; }
.row-title { flex: 1 1 320px; font-size: clamp(26px, 3.2vw, 46px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; }
.row-text { flex: 1 1 320px; max-width: 440px; color: #9a9a9a; }
.row-title { transition: transform .6s var(--ease); }
.row:hover .row-title { transform: translateX(10px); }
.row:hover .go, .post:hover .go { transform: rotate(-45deg); }

.group-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; margin: 8px 0; }
.group-row ~ .group-row { margin-top: 36px; }
.group-row p { max-width: 640px; font-size: 16px; color: var(--soft); text-wrap: pretty; }
.group { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }

/* Image card: grey until hovered, the frame melts into a drop, a bubble follows the cursor. */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: start; gap: 40px 28px; }
.card { display: flex; flex-direction: column; gap: 18px; }
.card-img { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 36px; background: var(--placeholder); transition: border-radius .9s var(--ease); }
.card:hover .card-img { border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.08); transition: filter .7s, transform 1.3s var(--ease); }
.card:hover .card-img img { filter: none; transform: scale(1); }
.card-blank-name { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; text-align: center; }
.bubble { position: absolute; left: var(--x, 50%); top: var(--y, 50%); display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 50%; background: #ffffff; color: #0b0b0b; font-size: 16px; font-weight: 500; pointer-events: none; transform: translate(-50%, -50%) scale(0); transition: transform .5s var(--spring); }
.card:hover .bubble { transform: translate(-50%, -50%) scale(1); }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.card-meta em { font-size: 20px; color: var(--soft); }
.card-text { font-size: 16px; color: var(--soft); text-wrap: pretty; }
.name { background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; transition: background-size .5s var(--ease); }
.card .name { font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }
a.card:hover .name, .post:hover .name { background-size: 100% 2px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 28px; }
.fact { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.fact dt { font-family: var(--mono); font-size: 13px; color: var(--soft); }
.fact dd { font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; }
.facts--sm { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px 28px; margin-top: clamp(8px, 2vw, 24px); }
.facts--sm .fact dd { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }

.shot { display: block; overflow: hidden; border-radius: 28px; background: var(--placeholder); box-shadow: inset 0 0 0 1px var(--line); }
.shot img, .shot video { display: block; width: 100%; height: auto; filter: grayscale(1); transition: filter .7s; }
.shot:hover img, .shot:hover video { filter: none; }
.shot--hero { aspect-ratio: 2 / 1; }
.shot--hero img { height: 100%; object-fit: cover; }
.figure { display: flex; flex-direction: column; gap: 12px; }
.figure--portrait .shot { max-width: 340px; }
.figure figcaption { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--soft); }

/* Touch screens have no hover: show photos in colour straight away. */
@media (hover: none) {
  .card-img img, .shot img, .shot video, .thumb img { filter: none; transform: none; }
}

/* ------------------------------------------------------------ home */
.hero { background: var(--paper-pure); }
.hero-in { display: flex; flex-direction: column; gap: clamp(26px, 3vw, 44px); padding: clamp(48px, 6vw, 88px) var(--pad) clamp(28px, 3vw, 40px); }
.hero-title { font-size: clamp(46px, 9vw, 136px); font-weight: 500; line-height: .95; letter-spacing: -.045em; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 64px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-weight: 500; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; margin-top: clamp(8px, 2vw, 28px); font-family: var(--mono); font-size: 13px; letter-spacing: .01em; }
.scroll { display: inline-flex; align-items: center; gap: 14px; }
.drip-track { position: relative; flex: none; width: 10px; height: 40px; }
.drip { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: drip 2.2s cubic-bezier(.5, 0, .8, .4) infinite; }

.marquee { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--paper); }
.track { display: flex; align-items: center; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 40px; margin-right: 40px; white-space: nowrap; }
.marquee-item span { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; }
.marquee-item em { font-size: clamp(26px, 2.9vw, 42px); }

.band { position: relative; padding-bottom: clamp(80px, 10vw, 144px); }
.section { position: relative; display: flex; flex-direction: column; padding: clamp(72px, 9vw, 132px) var(--pad) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; margin-bottom: clamp(36px, 4vw, 56px); font-weight: 500; }
.section-head-main { display: flex; flex-direction: column; gap: 16px; }
.section-lead { max-width: 460px; font-size: 18px; font-weight: 400; color: var(--soft); text-wrap: pretty; }
.rows { display: flex; flex-direction: column; gap: 10px; }
.cards--stagger > :nth-child(3n + 2) { margin-top: clamp(0px, 5vw, 72px); }

.about { gap: clamp(28px, 3.4vw, 48px); }
.statement { view-timeline-name: --about; max-width: 1180px; font-size: clamp(28px, 4.4vw, 64px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: pretty; }
.about-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px clamp(32px, 6vw, 96px); margin-top: clamp(8px, 2vw, 24px); }
.about-photo { flex: 1 1 340px; max-width: 520px; }
.about-photo .card-img { aspect-ratio: 5 / 4; }
.points { flex: 1 1 420px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 32px; }
.point { display: flex; align-items: baseline; gap: 20px; padding: 22px 0; border-top: 1px solid var(--ink); }
.point em { flex: none; width: 36px; font-size: 22px; color: var(--soft); }
.point-text { display: flex; flex-direction: column; gap: 8px; transition: transform .5s var(--ease); }
.point:hover .point-text { transform: translateX(8px); }
.point-text strong { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -.03em; }
.point-text span { max-width: 440px; color: var(--soft); text-wrap: pretty; }
.about .tag--end { margin-top: 0; }

/* ------------------------------------------------------------ inner pages */
.page-top { position: relative; }
.page-head { position: relative; display: flex; flex-direction: column; gap: clamp(20px, 2.4vw, 32px); padding: clamp(40px, 5vw, 80px) var(--pad) clamp(48px, 6vw, 88px); }
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.blob { display: block; flex: none; width: clamp(56px, 8vw, 120px); aspect-ratio: 1 / 1; background: var(--ink); animation: morph 7s ease-in-out infinite, floaty 8s ease-in-out infinite alternate; }
.page-title { max-width: 1180px; font-size: clamp(38px, 6.2vw, 96px); font-weight: 500; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
.page-title--post { max-width: 1120px; font-size: clamp(36px, 5.6vw, 84px); line-height: 1; }
.mega { font-size: clamp(72px, 15vw, 240px); font-weight: 500; line-height: .88; letter-spacing: -.06em; }
.mega--long { font-size: clamp(52px, 10.5vw, 168px); line-height: .92; }
.mega--row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 clamp(16px, 2.4vw, 40px); }
.mega--row em { font-size: clamp(26px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -.02em; }
.page-body { display: flex; flex-direction: column; padding: 0 var(--pad) clamp(80px, 10vw, 144px); }

/* ------------------------------------------------------------ services */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-size: 16px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color .35s, color .35s; }
.chip em { font-size: 17px; }
.chip:hover { background-color: var(--ink); color: var(--paper); }

.service { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(32px, 6vw, 96px); padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--ink); }
.service-main { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.service-num { font-size: 28px; color: var(--soft); }
.service-main p { max-width: 540px; font-size: 18px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.service strong { font-weight: 600; color: var(--ink); }
.checks { flex: 1 1 380px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.check { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.45; }
.check-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transition: transform .5s var(--spring); }
.check span { text-wrap: pretty; transition: transform .5s var(--ease); }
.check:hover .check-dot { transform: scale(1.9); }
.check:hover span { transform: translateX(8px); }
.service-more { display: flex; flex-direction: column; gap: 10px; padding-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--ink); }
.service-more .group-row { gap: 12px 48px; margin: 0 0 18px; }
.service-more .h3 { display: flex; align-items: center; gap: 16px; }
.service-more .group-row p { max-width: 560px; font-size: 18px; line-height: 1.55; color: var(--text); }

/* ------------------------------------------------------------ projects */
.project-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; }
.project-type { font-size: clamp(22px, 2.2vw, 30px); }
.intro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 104px) 0; }
.intro-text { flex: 1 1 380px; font-size: clamp(26px, 3vw, 44px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; text-wrap: pretty; }
.intro-text p + p { margin-top: .6em; }
.quote { flex: 1 1 380px; display: flex; flex-direction: column; gap: 16px; font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.1; text-wrap: balance; }
.quote .sep, .pull .sep { width: 22px; height: 22px; }
.chapter { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px clamp(32px, 6vw, 96px); padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--ink); }
.chapter-head { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.chapter-head em { font-size: 28px; color: var(--soft); }
.chapter-head .h3 { max-width: 420px; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; }
.chapter-body { flex: 2 1 480px; min-width: 0; }
.results { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px clamp(32px, 6vw, 96px); margin-top: clamp(16px, 3vw, 40px); padding: clamp(36px, 5vw, 72px) clamp(24px, 4vw, 64px); border-radius: clamp(28px, 4vw, 56px); background: var(--tint); }
.results-body { flex: 2 1 480px; font-size: clamp(22px, 2.4vw, 34px); font-weight: 500; line-height: 1.22; letter-spacing: -.025em; text-wrap: pretty; }
.results-body p + p { margin-top: .7em; }
.next { display: flex; flex-direction: column; gap: 14px; margin-top: clamp(48px, 6vw, 88px); }
.page-body > .tag--end { margin-top: 28px; }

/* ------------------------------------------------------------ blog and prose */
.featured { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 28px clamp(32px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 88px); }
.featured .card-img { flex: 3 1 420px; aspect-ratio: 16 / 10; }
.featured-text { flex: 2 1 340px; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.featured-title { text-wrap: balance; }
.featured .name { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.04em; }
.featured-excerpt { max-width: 520px; font-size: 18px; color: var(--text); text-wrap: pretty; }
.author { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.author-mark { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--paper); font-family: var(--mono); font-size: 12px; font-weight: 400; }

.posts { display: flex; flex-direction: column; border-bottom: 1px solid var(--ink); }
.post { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--ink); }
.post-meta { flex: none; width: 150px; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--soft); }
.post-title { flex: 2 1 320px; text-wrap: balance; }
.post .name { font-size: clamp(24px, 2.8vw, 40px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; }
.post-text { flex: 1 1 280px; max-width: 420px; font-size: 16px; color: var(--soft); text-wrap: pretty; }
.thumb { flex: none; display: block; overflow: hidden; width: 132px; aspect-ratio: 3 / 2; border-radius: 18px; background: var(--placeholder); }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transform: scale(1.1); transition: filter .7s, transform 1.1s var(--ease); }
.post:hover .thumb img { filter: none; transform: scale(1); }
.more-posts { display: flex; flex-direction: column; margin-top: clamp(64px, 8vw, 112px); }
.more-posts .h3 { margin-bottom: clamp(24px, 3vw, 40px); }

/* Reading progress on articles, driven by the page scroll. */
.progress { position: sticky; top: 0; z-index: 40; height: 4px; margin-bottom: -4px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

/* Long-form text rendered from Markdown. */
.prose { font-size: 18px; line-height: 1.6; color: var(--text); }
.prose > * + * { margin-top: 20px; }
.prose p, .prose li { text-wrap: pretty; }
.prose h2 { margin-top: 48px; font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin-top: 36px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.prose a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { display: flex; flex-direction: column; gap: 10px; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before { content: ''; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.prose ol { padding-left: 1.4em; }
.prose blockquote { display: flex; flex-direction: column; gap: 18px; margin-block: 36px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.16; color: var(--ink); text-wrap: balance; }
.prose .figure { margin-top: 32px; }
.prose .figure + * { margin-top: 32px; }
.chapter-body p { max-width: 640px; }
.prose--article { width: 100%; max-width: 720px; margin: clamp(48px, 6vw, 88px) auto 0; font-size: 19px; line-height: 1.65; color: var(--strong); }
.prose--legal { font-size: 16px; line-height: 1.6; margin-top: 0; }
.prose--legal h2 { font-size: 26px; }
.prose--legal h3 { font-size: 20px; }
.prose--legal ul > li::before { width: 6px; height: 6px; top: .68em; }

/* ------------------------------------------------------------ contact and footer */
.contact { border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; background: var(--ink-pure); }
.contact .ink { background: var(--ink-pure); }
.contact .ink-body { top: calc(48px + 8%); right: calc(48px + 7%); width: min(38vw, 500px); }
.contact .drop { background: var(--paper-pure); }
.contact .hole { background: var(--ink-pure); }
.contact-in { padding: clamp(72px, 9vw, 136px) var(--pad) 36px; }
.contact-main { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(22px, 2.6vw, 36px); }
.contact .lead { max-width: 520px; }
.contact .pill--xl { margin-top: 8px; }
/* As a whole page it follows the theme instead of inverting it. */
.contact--page { min-height: 100svh; border-radius: 0; background: var(--paper-pure); }
.contact--page .ink, .contact--page .hole { background: var(--paper-pure); }
.contact--page .drop { background: var(--ink-pure); }
/* Here the dots stay around the title only: the form needs a clean background. */
.contact--page .dots { height: 380px; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 100%); }
.contact--page .dots-lit { --zone: linear-gradient(to bottom, #000 0, #000 130px, transparent 380px); }
.contact--page .contact-in { padding-top: 0; }
.contact--page .header { padding-inline: 0; }
.contact--page .contact-main { padding-top: clamp(48px, 7vw, 104px); }

/* Contact form: it sits inside .blend, so every colour is currentColor. */
.form-wrap { width: 100%; max-width: 680px; margin-top: 8px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 32px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--wide, .form-foot { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 14px; letter-spacing: .01em; }
.field input, .field textarea { width: 100%; padding: 8px 0 12px; border: 0; border-bottom: 1.5px solid currentColor; border-radius: 0; background: none; color: inherit; caret-color: currentColor; font: inherit; font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; outline: none; }
.field textarea { min-height: 132px; line-height: 1.35; resize: vertical; }
.field input:focus, .field textarea:focus { padding-bottom: 10.5px; border-bottom-width: 3px; }
/* Keep the browser's autofill colours out of the inverted section. */
.field input:-webkit-autofill { -webkit-text-fill-color: #ffffff; transition: background-color 100000s; }
/* Only bots see and fill this field. */
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 4px; }
.form-note { max-width: 300px; font-size: 14px; line-height: 1.45; }
.form-note .link, .form-alt .link, .form-fail .link { min-height: 0; text-decoration: underline; text-underline-offset: 3px; }
.form-note .link::after, .form-alt .link::after, .form-fail .link::after { display: none; }
.form-alt { margin-top: 32px; font-family: var(--mono); font-size: 13px; }
.form-done, .form-fail { display: none; font-size: clamp(22px, 2.4vw, 32px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; outline: none; }
.form-fail { margin-bottom: 28px; }
.form-done:target, .form-fail:target, .form-wrap[data-state="sent"] .form-done, .form-wrap[data-state="error"] .form-fail { display: block; }
.form-done:target ~ .form, .form-done:target ~ .form-alt, .form-wrap[data-state="sent"] .form, .form-wrap[data-state="sent"] .form-alt { display: none; }
.form[aria-busy="true"] button { opacity: .5; pointer-events: none; }

.footer { display: flex; flex-direction: column; gap: 44px; margin-top: clamp(64px, 8vw, 120px); padding-top: 36px; border-top: 1px solid currentColor; font-size: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 36px 40px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col .tag { margin-bottom: 6px; }
.footer-col .link { min-height: 40px; }
.footer-brand { gap: 14px; }
.footer-offices { gap: 18px; }
.footer-offices .tag { margin-bottom: 0; }
.office { display: flex; flex-direction: column; font-style: normal; line-height: 1.45; }
.office strong { font-weight: 500; }
.office em { font-size: 17px; }
.footer-brand p { max-width: 240px; line-height: 1.45; text-wrap: pretty; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.footer-legal p { max-width: 780px; text-wrap: pretty; }

/* ------------------------------------------------------------ scroll effects */
/* Scroll-driven reveals where the browser supports them; everything is simply visible elsewhere. */
@supports (animation-timeline: view()) {
  .rv { animation: in linear both; animation-timeline: view(); animation-range: cover 0% cover 20%; }
  .draw-rv path { animation: draw linear both; animation-timeline: view(); animation-range: entry 40% cover 32%; }
  .w { animation: wink linear both; animation-timeline: --about; }
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

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