/* Generated at build. TG Dethrone metrics are read from the font file:
   cap 0.7em, cap line 0.075em below a line-height:1 box top,
   baseline 0.225em above its bottom. */

@font-face {
  font-family: "Dethrone";
  src: url("/assets/fonts/dethrone-latin.woff2?v=5e7c67ea") format("woff2");
  font-weight: 400;
  font-display: block;   /* the name is the page: wait (it's preloaded, 7KB) rather than flash Arial Narrow */
}
/* Only the hero mark uses Spilt Milk: the brush letters and the phrase (subset by tools/build_mark.py).
   Its metrics are zeroed, so the brush glyph's baseline is its box edge and its tails and
   splatter never stretch a line box or the page height. Safari ignores these overrides,
   so the font file itself also carries (near) zero metrics: see zero_metrics() in
   tools/build_mark.py. */
@font-face {
  font-family: "Spilt Milk";
  src: url("/assets/fonts/spilt-milk-mark.woff2?v=5e7c67ea") format("woff2");
  font-display: block;
  ascent-override: 0%;
  descent-override: 0%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Commit Mono";
  src: url("/assets/fonts/commit-mono-latin.woff2?v=5e7c67ea") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/geist-latin.woff2?v=5e7c67ea") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --charcoal: #0e1514;
  --paper: #f2f0e9;
  --teal: #607f76;
  --mint: #30ffbb;
  --teal-ink: #4f6f64;   /* Freakdesign's own teal: 4.86:1 on paper, so it can carry small text there */

  /* Colour roles
     charcoal / paper  carry every page.
     mint              means "you can act on this" — links and the current page on charcoal,
                       focus, selection — plus one exception: the brushed O in the name, the
                       site's single signature mark. Nothing else is mint for decoration.
                       14.2:1 on charcoal.
     teal (#607f76)    structure on charcoal: rules only (4.2:1 is too low for small text).
     teal-ink          metadata on paper: dates, types, labels, index numbers. */
  --mono: "Commit Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --cap: 0.7;
  --trim-top: 0.075;
  --trim-bottom: 0.225;
  --gap: 0.055;

  --w-jason: 1.041;
  /* BOWMAN with the O's gap open (the resting state), from mark.json */
  --w-bowman: 1.7357;
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --tail: 0.14;
  --tail-clear: 0.3;

  --pad: clamp(16px, 3.9vw, 64px);
  --measure: calc(100vw - 2 * var(--pad));
  --space: clamp(88px, 13vw, 208px);

  --hero: calc(var(--measure) / var(--w-bowman));
  --col: 0px;
}

@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  :root {
    --hero: min(
      calc((100svh - 2 * var(--pad)) / (2 * var(--cap) + var(--gap) + var(--tail))),
      calc(var(--measure) / var(--w-bowman))
    );
    --col: calc((var(--w-jason) + var(--gap) * 1.6) * var(--hero));
  }
}
/* Sub-pages have no hero in view, so their column is fixed to the same
   proportion of the width the home page uses at 1440 × 900. */
@media (min-width: 900px) {
  .subpage { --col: min(var(--measure) * 0.45, 640px); }
}

/* ───────── Base ───────── */

* { box-sizing: border-box; }
html { background: var(--charcoal); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--charcoal);
  color: var(--paper);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--mint); color: var(--charcoal); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
.ink a:hover, .ink .plain:hover { color: var(--mint); }
.paper a:hover { color: var(--teal-ink); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.paper :focus-visible { outline-color: var(--charcoal); }

.skip {
  position: absolute; left: var(--pad); top: 8px; z-index: 2;
  padding: 8px 12px; background: var(--mint); color: var(--charcoal);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.ink { background: var(--charcoal); color: var(--paper); }
.paper { background: var(--paper); color: var(--charcoal); }

.display {
  font-family: "Dethrone", "Arial Narrow", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  font-kerning: normal;
}
/* A display line trimmed to its cap height. Adjacent lines collapse margins,
   so the second line's margin is chosen to leave exactly --gap between them. */
.cap-line {
  display: block;
  line-height: 1;
  margin: calc(var(--trim-top) * -1em) 0 calc(var(--trim-bottom) * -1em);
  white-space: nowrap;
}
.cap-line + .cap-line { margin-top: calc((var(--gap) - var(--trim-top) - var(--trim-bottom)) * 1em); }

/* ───────── Type system: four faces, four jobs ─────────
   Dethrone      names and titles
   Spilt Milk    the brushed O and its phrase, nowhere else
   Geist         everything you read, including this small metadata layer
   Commit Mono   code only (<code>, <pre>) — pages without code never download it */
.label, .more, .bar, .crumb, .note-meta, .facts dt, .meta, .flow, .where {
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
code, pre, kbd, samp { font-family: var(--mono); font-size: 0.9em; font-variant-ligatures: none; }
.label { margin: 0; }
.paper .label, .paper .crumb, .paper .note-meta, .paper .meta, .paper .flow, .facts dt { color: var(--teal-ink); }

.plain { text-decoration: none; }
.more { white-space: nowrap; text-decoration: none; }
.more::after { content: " →"; content: " →" / ""; }   /* decorative: not read aloud */
.more:hover { text-decoration: underline; }
.ink .more, .ink .prose a, .ink .crumb a, .ink .lede a { color: var(--mint); }

.rule { border-top: 1px solid currentColor; padding-top: 12px; }
.index { margin: 0; color: var(--teal); font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.paper .index { color: var(--teal-ink); }

.cols { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); }
.cols > .c1 { grid-column: 1; }
.cols > .c2 { grid-column: 2; }

/* ───────── Stacked titles and the notch ─────────
   A two-line display title. Whichever line is shorter leaves a space beside
   the longer one; short supporting text sits in it, on the short line's baseline. */

.stack {
  --size: 100px;
  display: flow-root;
  position: relative;
  font-size: var(--size);
  width: calc(var(--w-max) * 1em);
  max-width: 100%;
}
.stack h1, .stack h2, .stack h3 { margin: 0; font-size: 1em; font-weight: 400; }
.stack .stack-link { display: block; text-decoration: none; }
.stack .stack-link:hover { color: var(--teal); }
.ink .stack .stack-link:hover { color: var(--mint); }

.notch {
  position: absolute;
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-stretch: normal;
  text-transform: none;
  right: 0;
  height: calc(var(--cap) * 1em);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.notch--top { top: 0; left: calc(var(--w1) * 1em + clamp(12px, 0.088em, 56px)); }
.notch--bottom { bottom: 0; left: calc(var(--w2) * 1em + clamp(14px, 0.09em, 40px)); }
.notch > :last-child {
  margin: 0 0 -0.225em;            /* last baseline on the short line's baseline */
  font-size: clamp(var(--n-min, 15px), calc(var(--size) * var(--n-k, 0.06)), var(--n-max, 23px));
  line-height: 1.18;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* Per-title widths, measured from the font at build time */
.t-name { --w1: var(--w-jason); --w2: var(--w-bowman); --w-max: var(--w-bowman); }
.t-shopify-to-pdf { --w1: 1.797; --w2: 0.549; --w-max: 1.797; }
.t-shopifyfd { --w1: 1.631; --w2: 0; --w-max: 1.631; }
.t-shopify-custom-fields { --w1: 2.354; --w2: 0; --w-max: 2.354; }
.t-shopify-super-backup { --w1: 2.337; --w2: 0; --w-max: 2.337; }
.t-work { --w1: 0.912; --w2: 0; --w-max: 0.912; }
.t-notes { --w1: 0.954; --w2: 0; --w-max: 0.954; }
.t-404 { --w1: 1.738; --w2: 0; --w-max: 1.738; }

/* ───────── Hero ───────── */

.hero { padding: calc(var(--pad) * 1.5) var(--pad) var(--pad); }
.hero .stack { --size: var(--hero); --n-min: 12.5px; --n-k: 0.045; --n-max: 32px; flex: none; }
.hero .notch > :last-child { line-height: 1.16; }

/* Read by screen readers, not shown. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ───────── The mark ─────────
   JASON BOWMAN in Dethrone. Every letter is real text (the heading always reads
   "Jason Bowman"); its ::after is a Spilt Milk brush twin with empty alt text, never
   indexed or read aloud. Painting a letter is two classes added a beat apart by
   /assets/mark.js: is-tint (the Dethrone letter turns mint) then is-brush (the brush
   is painted on while the letter fades underneath). The page is finished without the
   script: the O is painted in the markup. Geometry comes from src/_data/mark.json,
   built by tools/build_mark.py from the type study in experiments/name-mark. */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --in { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@property --out { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* Sideways, the header is self-contained: overlays (the j's hook, the specks) may paint
   past the name but never widen the page. Downwards, the brush is allowed to spill onto
   the paper below: the header sits one layer above the page (below the skip link), and
   the brush overlays ignore the pointer, so the spill never blocks anything under it. */
.hero { overflow-x: clip; overflow-y: visible; position: relative; z-index: 1; }
/* The 404: the same header with BOWMAN flooded, then the footer. It clips fully, so the
   flood never runs into the footer. Its heading and links sit in the location line's
   slot, clear of the brush. */
.hero--flood { overflow: clip; }
.hero--flood .where h1, .hero--flood .where p { margin: 0; font: inherit; }
.hero--flood .where h1 { color: var(--paper); }
.hero--flood .where p { margin-top: 0.4em; }
.hero--flood .where a { color: var(--mint); }
.hero--flood .stack > .display { margin: 0; font-size: 1em; font-weight: 400; }   /* the name, as a <p> here */
/* Paper grain on the charcoal, under the type: sparse, coarse flecks like paper fibre,
   while the letters, the brush and the phrase stay crisp. Generated by an SVG noise
   filter (assets/grain.svg, a 320px tile), so there's no bitmap. Even noise was tried
   and dropped: fine noise was invisible, and coarse noise greyed the charcoal. Grain
   over everything was dropped too: by the time it showed, the paper letters looked dirty. */
/* Switched by site.texture in src/_data/site.js: tex-header for the home header,
   tex-sections for every other dark section. */
.tex-header .hero, .tex-sections .ink:not(.hero) { position: relative; isolation: isolate; }
.tex-header .hero::before, .tex-sections .ink:not(.hero)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("/assets/grain.svg?v=5e7c67ea") 0 0 / 320px 320px;
  mix-blend-mode: screen;
  opacity: 0.26;
}
.tex-header .hero > *, .tex-sections .ink:not(.hero) > * { position: relative; z-index: 1; }
.hero .stack { isolation: isolate; touch-action: pan-y; }   /* sideways drags scribble (mark.js) */
/* The name is something to play with, not to copy: no text selection, no long-press
   callout or tap flash on phones. It still reads as "Jason Bowman" to screen readers.
   The tagline and location line stay selectable. */
.hero .stack > .display, .hero .o-phrase {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.l {
  display: inline-block;
  position: relative;
  width: calc(var(--adv) * 1em);
  color: var(--paper);
  cursor: default;
  transition: width 0.55s var(--ease), color 0.3s ease 0.24s;   /* returning: after the paint lifts */
}
.l.is-tint { color: var(--mint); transition: width 0.55s var(--ease), color 0.2s ease; }
.l.is-brush { width: calc(var(--slot) * 1em); color: rgb(48 255 187 / 0); transition: width 0.55s var(--ease), color 0.3s ease 0.18s; }

/* The brush twin sits in a padded box (room for tails and splatter). Wipes follow how
   the stroke was drawn: diagonal by default, top-down for j and S, and the O draws
   itself round from the knot where its stroke starts. Each sweep is confined to the
   letter's measured stroke (--p0 to --p1), feathered, and eased like a brush. */
.l::after {
  content: attr(data-b);        /* older browsers (Safari < 17.4, Firefox < 128): the brush still shows */
  content: attr(data-b) / "";   /* current ones: shown, but with empty alt text, so never read aloud */
  position: absolute;
  z-index: 2;
  padding: 1.3em 0.7em 0.7em;
  left: calc(var(--x) / var(--s) * 1em - 0.7em);
  bottom: calc((var(--y) + var(--trim-bottom)) / var(--s) * 1em - 0.7em);
  font-family: "Spilt Milk", cursive;
  font-size: calc(var(--s) * 1em);
  line-height: 0;
  text-transform: none;
  color: var(--mint);
  pointer-events: none;
  --a: 104deg;
  --in: var(--p0, 0%);
  --out: var(--p0, 0%);
  -webkit-mask-image: linear-gradient(var(--a), transparent calc(var(--out) - 16%), #000 var(--out), #000 calc(var(--in) - 16%), transparent var(--in));
  mask-image: linear-gradient(var(--a), transparent calc(var(--out) - 16%), #000 var(--out), #000 calc(var(--in) - 16%), transparent var(--in));
  opacity: 0;
  transform: scale(0.97);
  filter: blur(0.006em);
  transform-origin: var(--cx, 45%) var(--cy, 50%);
  transition: none;
}
.l[data-wipe="down"]::after { --a: 180deg; }
.l.is-brush::after {
  --in: calc(var(--p1, 100%) + 16%);
  opacity: 1; transform: none; filter: none;
  transition: --in 0.9s cubic-bezier(0.45, 0.05, 0.25, 1) 0.04s, opacity 0.06s linear 0.04s, transform 1.1s var(--ease), filter 0.8s ease;
}
.l.is-leaving::after {
  --in: calc(var(--p1, 100%) + 16%);
  --out: calc(var(--p1, 100%) + 16%);
  opacity: 1; transform: none; filter: none;
  transition: --out 0.55s cubic-bezier(0.5, 0, 0.75, 0.4);
}
.l[data-wipe="ring"]::after {
  --sweep: 0deg;
  -webkit-mask-image: conic-gradient(from 35deg at var(--cx) var(--cy), transparent calc(360deg - var(--sweep)), #000 calc(370deg - var(--sweep)));
  mask-image: conic-gradient(from 35deg at var(--cx) var(--cy), transparent calc(360deg - var(--sweep)), #000 calc(370deg - var(--sweep)));
}
.l[data-wipe="ring"].is-brush::after {
  --sweep: 370deg;
  transition: --sweep 0.95s cubic-bezier(0.35, 0.1, 0.2, 1) 0.04s, opacity 0.08s linear 0.04s, transform 0.9s var(--ease), filter 0.6s ease;
}
.l[data-wipe="ring"].is-leaving::after { --sweep: 370deg; opacity: 0; transition: opacity 0.35s ease; }

/* Per-letter geometry, from mark.json */
.l-j0 { --adv: 0.19; --slot: 0.19; --s: 1.08; --x: -0.1357; --y: 0.1406; }
.l-j0::after { --cx: 0.81em; --cy: 1.121em; --p0: 37.3%; --p1: 74.8%; }
.l-j1 { --adv: 0.207; --slot: 0.207; --s: 1.7282; --x: -0.2522; --y: 0.0136; }
.l-j1::after { --cx: 0.907em; --cy: 1.105em; --p0: 38%; --p1: 59.8%; }
.l-j2 { --adv: 0.204; --slot: 0.204; --s: 1.2522; --x: -0.0873; --y: 0.1136; }
.l-j2::after { --cx: 0.851em; --cy: 1.111em; --p0: 37.6%; --p1: 73.5%; }
.l-j3 { --adv: 0.208; --slot: 0.208; --s: 1.3378; --x: -0.2073; --y: 0.0198; }
.l-j3::after { --cx: 0.933em; --cy: 1.053em; --p0: 36.4%; --p1: 61.4%; }
.l-j4 { --adv: 0.225; --slot: 0.225; --s: 1.4668; --x: -0.0779; --y: 0.0699; }
.l-j4::after { --cx: 0.879em; --cy: 1.109em; --p0: 39.2%; --p1: 59.5%; }
.l-b0 { --adv: 0.208; --slot: 0.208; --s: 1.0271; --x: -0.0356; --y: 0.198; }
.l-b0::after { --cx: 0.944em; --cy: 1.152em; --p0: 38.5%; --p1: 60.5%; }
.l-b1 { --adv: 0.2; --slot: 0.5507; --s: 1.3378; --x: -0.0149; --y: 0.0198; }
.l-b1::after { --cx: 0.933em; --cy: 1.053em; --p0: 36.4%; --p1: 61.4%; }
.l-b2 { --adv: 0.276; --slot: 0.276; --s: 1.3991; --x: -0.1688; --y: 0.0517; }
.l-b2::after { --cx: 0.923em; --cy: 1.087em; --p0: 36.8%; --p1: 62.1%; }
.l-b3 { --adv: 0.266; --slot: 0.266; --s: 1.2351; --x: -0.2186; --y: 0.1165; }
.l-b3::after { --cx: 0.985em; --cy: 1.111em; --p0: 36.6%; --p1: 64.3%; }
.l-b4 { --adv: 0.21; --slot: 0.21; --s: 1.7282; --x: -0.2522; --y: 0.0136; }
.l-b4::after { --cx: 0.907em; --cy: 1.105em; --p0: 38%; --p1: 59.8%; }
.l-b5 { --adv: 0.225; --slot: 0.225; --s: 1.4668; --x: -0.0779; --y: 0.0699; }
.l-b5::after { --cx: 0.879em; --cy: 1.109em; --p0: 39.2%; --p1: 59.5%; }

/* Scribble speed: while mark.js has .frenzy on the stack (the intro's scribble, or a
   fast hover sweep), the brush runs fast. */
.stack.frenzy .l { transition: width 0.2s var(--ease), color 0.15s ease 0.12s; }
.stack.frenzy .l.is-tint { transition: width 0.2s var(--ease), color 0.08s ease; }
.stack.frenzy .l.is-brush { transition: width 0.2s var(--ease), color 0.12s ease 0.05s; }
.stack.frenzy .l.is-brush::after { transition: --in 0.26s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.04s linear, transform 0.3s var(--ease), filter 0.2s ease; }
.stack.frenzy .l.is-leaving::after { transition: --out 0.2s cubic-bezier(0.5, 0, 0.75, 0.4); }
.stack.frenzy .l[data-wipe="ring"].is-brush::after { transition: --sweep 0.32s cubic-bezier(0.35, 0.1, 0.2, 1), opacity 0.04s linear, transform 0.3s var(--ease), filter 0.2s ease; }
/* Scribble marks. Unlike is-brush (which replaces its letter), is-mark paints the
   brush over the Dethrone letter, which stays: ink scribbled on the type, so the name
   stays legible at any intensity. Each stroke gets its own tilt, scale and offset
   (--rot, --sc, --dx, --dy, set by script) so no two look stamped, and a little
   translucency so overlapping strokes build up like ink. */
.l.is-mark::after {
  --in: calc(var(--p1, 100%) + 16%);
  opacity: 0.88;
  transform: translate(var(--dx, 0em), var(--dy, 0em)) rotate(var(--rot, 0deg)) scale(var(--sc, 1));
  filter: none;
  transition: --in 0.26s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.04s linear;
}
.l[data-wipe="ring"].is-mark::after { --sweep: 370deg; transition: --sweep 0.3s cubic-bezier(0.35, 0.1, 0.2, 1), opacity 0.04s linear; }
.l.is-leaving::after { transform: translate(var(--dx, 0em), var(--dy, 0em)) rotate(var(--rot, 0deg)) scale(var(--sc, 1)); }
.l.is-mark.is-leaving::after, .l.was-mark.is-leaving::after { opacity: 0.88; }
/* Idle marks (mark.js breathe): the same ink over the type, drawn and lifted at calm
   brush speed, and a little lighter, so the name looks alive without asking for notice. */
.l.is-mark.is-soft::after { opacity: 0.8; transition: --in 0.85s cubic-bezier(0.45, 0.05, 0.25, 1), opacity 0.1s linear; }
.l[data-wipe="ring"].is-mark.is-soft::after { transition: --sweep 0.85s cubic-bezier(0.35, 0.1, 0.2, 1), opacity 0.1s linear; }
.l.is-soft.is-leaving::after { opacity: 0.8; transition: --out 0.6s cubic-bezier(0.5, 0, 0.75, 0.4); }
/* The O is the only letter that changes width when painted: it opens at the pace of its
   ring, so the rest of BOWMAN eases aside as the stroke goes round. */
.l.is-home.is-brush { transition: width 0.9s cubic-bezier(0.35, 0.1, 0.2, 1), color 0.3s ease 0.18s; }

/* First view of a visit opens on the plain name (set before first paint by
   mark-pre.js, removed by mark.js; never set without JavaScript or with
   reduced motion, so those still get the finished O). */
.frenzy-intro .hero .l.is-home { width: calc(var(--adv) * 1em); color: var(--paper); }
.frenzy-intro .hero .l.is-home::after { opacity: 0; }
.frenzy-intro .hero .o-phrase, .frenzy-intro .hero .specks path { opacity: 0; }


/* "a dash of chaos": outside the heading, in the O's counter, arriving as the ring closes. */
.o-phrase {
  position: absolute;
  z-index: 3;
  left: calc(0.553 * var(--hero));
  top: calc((2 * var(--cap) + var(--gap) - 0.37) * var(--hero));
  transform: translate(-50%, -50%);
  margin: 0;
  font: max(13px, calc(0.068 * var(--hero))) / 1.25 "Spilt Milk", cursive;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* The phrase writes itself as the ring closes. One value (--pw, 0 to 256%) drives both
   lines: line one reveals over the first half, line two over the second, so line two can
   never get ahead of line one, however the hovers and the intro interrupt each other. */
@property --pw { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.o-phrase { --pw: 0%; }
.o-phrase span:not(.visually-hidden) {
  display: block;
  padding: 0.4em 0.3em;          /* room for the brush ink inside the mask */
  margin: -0.4em -0.3em;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--line) - 28%), transparent var(--line));
  mask-image: linear-gradient(90deg, #000 calc(var(--line) - 28%), transparent var(--line));
}
.o-phrase span:nth-child(2) { --line: var(--pw); }
.o-phrase span:last-child { --line: calc(var(--pw) - 128%); }
.stack.show-phrase .o-phrase { opacity: 1; --pw: 256%; transition: --pw 1.55s cubic-bezier(0.4, 0.1, 0.35, 1) 0.95s; }

/* Spray from the same brush: a few specks behind the name, a few on top. Each lands in
   turn, flicked off the brush, as the O's ring closes; nearest the O first. */
.specks {
  position: absolute;
  left: -0.4em;
  top: -0.4em;
  width: calc((var(--w-bowman) + 0.8) * 1em);
  height: calc((2 * var(--cap) + var(--gap) + 0.8) * 1em);
  overflow: visible;
  pointer-events: none;
  fill: var(--mint);
}
.specks--under { z-index: -1; fill-opacity: 0.85; }
.specks--over { z-index: 4; }
.specks path {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transform: scale(0.2);
  transition: opacity 0.2s ease, transform 0s linear 0.2s;
}
.stack.show-phrase .specks path {
  opacity: 1;
  transform: none;
  transition: opacity 0.12s ease calc(0.82s + var(--i, 0) * 55ms),
              transform 0.42s cubic-bezier(0.2, 1.7, 0.35, 1) calc(0.82s + var(--i, 0) * 55ms);
}
.specks path:nth-child(1) { --i: 0; }
.specks path:nth-child(2) { --i: 1; }
.specks path:nth-child(3) { --i: 2; }
.specks path:nth-child(4) { --i: 3; }
.specks path:nth-child(5) { --i: 4; }
.specks path:nth-child(6) { --i: 5; }
.specks path:nth-child(7) { --i: 6; }
.specks path:nth-child(8) { --i: 7; }
.specks path:nth-child(9) { --i: 8; }
.specks path:nth-child(10) { --i: 9; }
.specks path:nth-child(11) { --i: 10; }
.specks path:nth-child(12) { --i: 11; }
.specks path:nth-child(13) { --i: 12; }
.specks--over path { --i: 4; }

@media (prefers-reduced-motion: reduce) {
  .l, .l.is-brush, .l::after, .l.is-brush::after, .l.is-leaving::after, .l[data-wipe]::after,
  .o-phrase, .stack.show-phrase .o-phrase, .o-phrase span,
  .specks path, .stack.show-phrase .specks path { transition: none !important; }
}

.where { margin: calc(clamp(12px, 2vw, 24px) + var(--tail-clear) * var(--hero)) 0 0; max-width: 24em; }
/* The tagline's one link ("collide", to the Living System lab): a quiet mint underline,
   not a highlight, so the brush O stays the only mint shape in the header. */
.tagline-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}
.tagline-link:hover { color: var(--mint); text-decoration-thickness: 2px; }
/* Location: in the space beside JASON with the tagline, hanging from JASON's cap line
   while the tagline rests on its baseline. Both live inside the name's own shape, so
   neither can be cropped at any width. On phones that space is too short for both, so
   the location sits under the name instead (the rule above). */
@media (min-width: 700px) {
  .hero .where {
    position: absolute;
    top: 0;
    left: calc(var(--w-jason) * var(--hero) + clamp(12px, calc(0.088 * var(--hero)), 56px));   /* the name's em, not this line's */
    right: 0;
    margin: 0;
    max-width: 22em;
    font-size: clamp(13px, calc(var(--hero) * 0.028), 16px);
    text-wrap: balance;
    /* Quieter than the tagline it shares the space with: paper at 50% over charcoal
       (#80827e, 4.76:1). That's as dark as it can go and still pass the 4.5:1 minimum
       for small text; 46% would fall to 4.25. */
    color: color-mix(in srgb, var(--paper) 50%, var(--charcoal));
  }
}

@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--pad);
    padding-bottom: calc(var(--pad) + var(--tail) * var(--hero));   /* room for the ring's tail */
    display: flex;
    align-items: flex-end;
    gap: 2em;
  }
}

/* ───────── Work (home) ───────── */

.work { padding: calc(var(--space) * 0.6) var(--pad) var(--space); }

.feature { margin-top: clamp(48px, 7vw, 112px); }
.feature .index { margin-bottom: clamp(20px, 2.6vw, 40px); }
/* One scale for display titles, stepping down from the name: the name is 1, the featured
   project 0.45 and the other projects 0.225 of it. Only the name is ever at full size. */
.feature { --feature: min(calc(var(--measure) / var(--w-max)), calc(var(--hero) * 0.45)); }
.feature .stack { --size: var(--feature); --n-min: 17px; --n-k: 0.08; }

.feature-foot {
  /* At least as wide as the title, but never so narrow that the steps crowd together. */
  width: max(calc(var(--w-max) * var(--feature)), min(100%, 640px));
  max-width: 100%;
  margin-top: clamp(28px, 3.4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px 32px;
}
.summary-below { margin: clamp(20px, 2.4vw, 32px) 0 0; font-size: clamp(17px, 1.6vw, 22px); max-width: 26em; line-height: 1.3; }

.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(var(--steps, 3), 1fr);
}
.flow li { border-top: 1px solid currentColor; padding: 8px 8px 0 0; }
.flow li::before {
  content: ""; display: block; width: 7px; height: 7px;
  margin: -12px 0 9px; background: currentColor; border-radius: 50%;
}

.entry {
  margin-top: clamp(80px, 10vw, 160px);
  row-gap: 20px;
}
.entry .index { grid-row: 1 / span 2; margin-top: 16px; }
.entry-title { margin: 16px 0 0; font-size: max(44px, calc(var(--hero) * 0.225)); font-weight: 400; }
.entry-title a { display: block; text-decoration: none; }
.entry-title a:hover { color: var(--teal); }
.entry-text { max-width: 30em; }
.entry-text p { margin: 0 0 14px; font-size: 18px; line-height: 1.4; }

.section-foot { margin-top: clamp(56px, 7vw, 112px); }
/* With no featured project, the first entry follows the section label directly: keep
   it close to the label it belongs to, not a full entry-gap away. */
.work > .cols.rule + .entry { margin-top: clamp(24px, 4vw, 64px); }

/* Earlier tools on the home page: retired work, so it sits small and side by side beside
   its label, not a full-width row each. Newer work gets the space (a featured project
   uses .feature above). */
.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px clamp(28px, 4vw, 72px);
}
.tool-title { margin: 0 0 10px; font-size: clamp(36px, 3.4vw, 56px); font-weight: 400; }
.tool-title a { display: block; text-decoration: none; }
.tool-title a:hover { color: var(--teal-ink); }
.tool p { margin: 0; max-width: 26em; font-size: 16px; line-height: 1.45; }
/* Nothing else follows the tools in their section, so "All work" stays close. */
.work > .cols.rule + .section-foot { margin-top: clamp(40px, 4vw, 64px); }
@media (max-width: 599px) {
  .tools { grid-template-columns: minmax(0, 1fr); }
}

/* ───────── Notes ───────── */

.notes { padding: var(--space) var(--pad) 0; }
.note-list { list-style: none; margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; }
.note-list li { border-top: 1px solid var(--teal); }
.note-list li:last-child { border-bottom: 1px solid var(--teal); }
.note-link {
  display: grid;
  grid-template-columns: var(--col) minmax(0, 1fr);
  gap: 6px 0;
  padding: 18px 0 20px;
  text-decoration: none;
}
/* The title comes first in the markup, so a screen reader's list of links leads with
   it; the grid puts the date back in front. */
.note-meta { grid-column: 1; grid-row: 1; padding-top: 0.5em; }
.note-title { grid-column: 2; grid-row: 1; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
.note-excerpt { grid-column: 2; grid-row: 2; margin: 6px 0 0; max-width: 40em; font-size: 15px; line-height: 1.45; opacity: 1; }
.note-link:hover .note-title { color: var(--mint); }
.notes .section-foot { margin-top: 28px; }
/* Home order: header (charcoal), About (paper), Notes (charcoal), Earlier tools (paper),
   footer (charcoal), so the page alternates. Notes is followed by paper, so it needs its
   own bottom space. */
.home .notes { padding-bottom: var(--space); }
/* With no notes (the feed was unreachable at build), About and Earlier tools meet on
   paper: space them as one band, and overlap 1px to hide a mid-pixel charcoal seam. */
.about.paper + .work.paper { padding-top: 0; margin-top: -1px; }
.paper .note-list li { border-top-color: currentColor; }
.paper .note-list li:last-child { border-bottom-color: currentColor; }
.paper .note-link:hover .note-title { color: var(--teal-ink); }

/* ───────── About ───────── */

.about { padding: var(--space) var(--pad); }
.about .label { padding-top: 0.6em; }
.about-side { padding-right: 2em; }
/* "In the margin", literally: the note sits in the narrow column beside the About text. */
.margin-note {
  margin: 28px 0 0;
  max-width: 14em;
  padding-left: 14px;
  border-left: 1px solid var(--teal);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.paper .margin-note { border-left-color: var(--teal-ink); }
.about-text { max-width: 23em; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -0.012em; }
.about-text p { margin: 0 0 0.7em; text-wrap: pretty; }
.about-text p:last-child { margin-bottom: 0; }

/* ───────── Profiles (footer) ───────── */

.profiles { padding: clamp(48px, 6vw, 96px) var(--pad) var(--pad); }
.profiles .cols { border-top: 1px solid var(--teal); padding-top: 12px; }
.profiles ul {
  list-style: none;
  margin: clamp(28px, 4vw, 56px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.1em 0.42em;
  font-size: clamp(64px, 8.4vw, 136px);
}
.profiles a { text-decoration: none; display: block; }
.contact { margin-top: clamp(28px, 4vw, 56px); }
.profiles .lab { margin-top: clamp(28px, 4vw, 48px); color: color-mix(in srgb, var(--paper) 50%, var(--charcoal)); }
.profiles .lab a { display: inline; color: var(--mint); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.contact-email { margin: 0; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -0.01em; }
.contact-email a { color: var(--mint); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.contact-email a:hover { text-decoration-thickness: 2px; }


/* ───────── Sub-pages ───────── */

.bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px var(--pad);
}
.bar .home { text-decoration: none; display: block; }
.bar .home img { display: block; height: clamp(28px, 2.5vw, 38px); width: auto; }   /* the wordmark: Dethrone + the mint brush O */
.bar { align-items: center; }
.bar nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.bar nav a { text-decoration: none; }
.bar nav a[aria-current="page"] { color: var(--mint); }

.page-head { padding: clamp(48px, 8vw, 128px) var(--pad) clamp(40px, 6vw, 88px); }
.page-head .stack { --size: min(calc(var(--measure) / var(--w-max)), 400px); }
.page-head .crumb { margin-bottom: clamp(24px, 3vw, 40px); }
.page-head .lede { margin: clamp(24px, 3vw, 40px) 0 0; max-width: 26em; font-size: clamp(19px, 2vw, 26px); line-height: 1.25; }

.facts { margin: 0; padding: 0; }
.facts div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid currentColor; }
.facts div:last-child { border-bottom: 1px solid currentColor; }
.facts dt { padding-top: 0.2em; }
.facts dd { margin: 0; }
.facts dd a + a { margin-left: 1em; }

.prose { font-size: 19px; line-height: 1.55; max-width: 34em; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2 { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; margin: 2.6em 0 0.7em; color: var(--teal-ink); }
.prose li { margin-bottom: 0.3em; }
.prose code { font-size: 0.9em; }

.project-body { padding: clamp(48px, 7vw, 112px) var(--pad) var(--space); row-gap: 48px; }
.project-body .facts { max-width: 30em; margin-right: clamp(32px, 4vw, 56px); }   /* a gutter before the text column, once the facts fill their column */

.next { padding: var(--space) var(--pad); }
.next .entry-title { margin-top: 8px; }

.list { padding: clamp(40px, 6vw, 88px) var(--pad) var(--space); }
.work-list { list-style: none; margin: 0; padding: 0; }
.work-list > li { padding: 14px 0 clamp(32px, 4vw, 56px); border-top: 1px solid currentColor; row-gap: 14px; }
.work-list .index { font-size: clamp(28px, 2.6vw, 40px); }
.work-list h2 { margin: 0; font-size: clamp(56px, 6.4vw, 104px); font-weight: 400; }
.work-list h2 a { display: block; text-decoration: none; }
.work-list h2 a:hover { color: var(--teal); }
.work-list .meta { margin: 0; }
.work-list p { margin: 0; max-width: 32em; font-size: 18px; line-height: 1.4; }

/* ───────── Narrow ───────── */

/* "Not wide", in the older syntax (not all and …) so Safari before 16.4 still gets the
   narrow layout; the newer not ((…) and (…)) form is ignored there. */
@media not all and (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .home .cols { grid-template-columns: minmax(0, 1fr); }
  .home .cols > .c1, .home .cols > .c2 { grid-column: 1; grid-row: auto; }
  .home .entry .index { margin-top: 20px; }
  .home .entry-title { margin-top: 0; }
  .home .about .label { padding-top: 0; margin-bottom: 20px; }
  .home .tools { margin-top: 24px; }   /* stacked under its label */
  .home .margin-note { margin-bottom: 28px; }   /* stacked above the About text, not touching it */
  .home .note-link { grid-template-columns: minmax(0, 1fr); }
  .home .note-title { grid-column: 1; grid-row: 2; }
  .home .note-excerpt { grid-column: 1; grid-row: 3; }
}
@media (max-width: 899px) {
  .subpage .cols { grid-template-columns: minmax(0, 1fr); }
  .subpage .cols > .c1, .subpage .cols > .c2 { grid-column: 1; grid-row: auto; }
  .subpage .note-link { grid-template-columns: minmax(0, 1fr); }
  .subpage .note-title { grid-column: 1; grid-row: 2; }
  .subpage .note-excerpt { grid-column: 1; grid-row: 3; }
}
@media (max-width: 599px) {
  /* Phones: the section rhythm scaled to the screen. At the desktop minimum (88px) every
     section change was a ~180px empty band, a fifth of the screen. */
  :root { --space: 60px; }
  .entry { margin-top: 48px; }
  .section-foot { margin-top: 40px; }
  .feature-foot { grid-template-columns: 1fr; }
  /* At phone size the space beside the short line is too small for the summary. */
  .feature .stack { width: auto; }
  .feature .notch { position: static; height: auto; margin-top: 20px; }
  .feature .notch > :last-child { margin: 0; font-size: 17px; line-height: 1.35; }
  .profiles ul { flex-direction: column; gap: 6px; font-size: 72px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .bar nav ul { gap: 16px; }
}

@media print {
  .skip, .bar nav, .profiles { display: none; }
  body, .ink, .paper { background: #fff; color: #000; }
}
