@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #1a2cc9;
  --paper: #f4f3ec;
  --rule: rgb(26 44 201 / .28);
  --grid: rgb(26 44 201 / .07);
  --gutter: clamp(16px, 4vw, 56px);
  --serif: "Young Serif", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
ol { list-style: none; }
address { font-style: normal; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
[id] { scroll-margin-top: 76px; }

.skip { position: absolute; left: var(--gutter); top: -60px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 20; }
.skip:focus { top: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.tag { font: 400 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--ink); }
.mark { font: 400 1.2rem/1 var(--serif); letter-spacing: .02em; text-decoration: none; }
.mark span { font: 400 .72rem/1 var(--mono); letter-spacing: .08em; }
.bar nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font: 400 .78rem/1 var(--mono); letter-spacing: .04em; }
.bar nav a { text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s; }
.bar nav a:hover { background-size: 100% 1px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: end;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(32px, 4vw, 56px);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px; border-bottom: 1px solid var(--ink);
}
.entry { font: 400 .92rem/1.5 var(--mono); margin-bottom: clamp(20px, 3vw, 36px); }
.entry b { font-weight: 400; border-bottom: 1px solid currentColor; }
h1 { font: 400 clamp(3.1rem, 8.4vw, 8.2rem)/.98 var(--serif); letter-spacing: -.018em; text-wrap: balance; }
.lede { max-width: 33em; margin-top: clamp(20px, 3vw, 36px); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.45; }

.fig svg { display: block; width: 100%; height: auto; color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fig svg .fade[fill] { stroke: none; }
.fig .dash { stroke-dasharray: 2 7; }
.fig .lead { stroke-width: 1; }
.fig .nums { font: 400 15px var(--mono); fill: currentColor; stroke: none; }
figcaption { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); font: 400 .78rem/1.3 var(--mono); }
figcaption span:first-child { margin-right: auto; }
figcaption b { font-weight: 400; border: 1px solid currentColor; padding: 0 4px; margin-right: 3px; }

.draw * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.6, 0, .2, 1) .15s forwards; }
.draw.d2 * { animation-delay: .55s; }
.draw.d3 * { animation-delay: .95s; }
.fade { opacity: 0; animation: fade .7s ease 1.7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

/* What we do */
.work, .reach, .company { padding: clamp(40px, 6vw, 84px) var(--gutter); border-bottom: 1px solid var(--ink); }
.work { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 5fr); gap: 20px clamp(24px, 4vw, 64px); }
.claims { counter-reset: claim; }
.claims li { counter-increment: claim; display: grid; grid-template-columns: 3.2rem minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 24px; align-items: baseline; padding: clamp(18px, 2.4vw, 30px) 0; border-top: 1px solid var(--rule); }
.claims li:first-child { border-top: 0; padding-top: 0; }
.claims li:last-child { padding-bottom: 0; }
.claims li::before { content: counter(claim) "."; font: 400 .9rem/1 var(--mono); }
.claims h3 { font: 400 clamp(2.4rem, 5.6vw, 5rem)/1 var(--serif); letter-spacing: -.012em; }
.claims p { max-width: 30em; }

/* Who it is for */
.reach { background: var(--ink); color: var(--paper); --rule: rgb(244 243 236 / .35); }
.reach-line { max-width: 18em; margin: 14px 0 clamp(26px, 4vw, 48px); font: 400 clamp(1.9rem, 4vw, 3.4rem)/1.08 var(--serif); }
.matrix { border: 1px solid var(--paper); }
.m-row { display: grid; grid-template-columns: minmax(96px, .5fr) 1fr 1fr; }
.m-row + .m-row { border-top: 1px solid var(--paper); }
.m-row > * { padding: clamp(14px, 2vw, 24px); border-left: 1px solid var(--paper); }
.m-row > :first-child { border-left: 0; }
.m-head, .m-row > [role="rowheader"] { font: 400 .78rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.m-tag { display: none; }

/* Company */
.company { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 5fr); gap: 20px clamp(24px, 4vw, 64px); }
.ledger > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 4px 24px; padding: 13px 0; border-top: 1px solid var(--rule); }
.ledger > div:first-child { border-top: 1px solid var(--ink); }
.ledger > div:last-child { border-bottom: 1px solid var(--ink); }
.ledger dt { font: 400 .8rem/1.6 var(--mono); }

/* Contact */
.contact { padding: clamp(40px, 6vw, 84px) var(--gutter) 24px; background: var(--paper); }
.mail { display: inline-block; margin: 16px 0 clamp(36px, 6vw, 72px); font: 400 clamp(1.75rem, 6.2vw, 6rem)/1.06 var(--serif); letter-spacing: -.015em; text-decoration: underline; text-decoration-thickness: .04em; text-underline-offset: .12em; overflow-wrap: anywhere; }
.mail:hover { text-decoration-thickness: .09em; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 14px; border-top: 1px solid var(--ink); font: 400 .78rem/1.5 var(--mono); }

/* Not found page */
.lost { min-height: 70vh; display: grid; align-content: center; gap: 18px; padding: 48px var(--gutter); }
.lost h1 { font-size: clamp(2.6rem, 7vw, 6rem); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .work, .company { grid-template-columns: minmax(0, 1fr); }
  .claims li { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .claims p { grid-column: 2; }
}

@media (max-width: 620px) {
  .bar nav a[href="#work"] { display: none; }
  .matrix { border: 0; }
  .m-row { display: block; border-top: 0 !important; }
  .m-row.m-head { display: none; }
  .m-row > [role="rowheader"] { display: none; }
  .m-row > [role="cell"] { display: block; padding: 14px 0; border: 0; border-top: 1px solid var(--rule); }
  .m-tag { display: block; font: 400 .74rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
  .ledger > div { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw *, .fade { animation: none; opacity: 1; stroke-dasharray: none; stroke-dashoffset: 0; }
  .fig .dash { stroke-dasharray: 2 7; }
}
