/* A clean, flat page beside a watercolor painting. The words sit on a smooth
   sheet; the watercolor carries into the page's structure, in the colours of
   the sunny painting: buttons are washes of vermilion, rules are fine strokes
   of diluted umber, each section opens on a stroke of amber light, and cards
   are pale washes of the sun's gold.

   Type, by role:
   - titles, project names, the big numbers and each project's one-line story: Instrument Serif
     (a refined, slightly condensed display serif), with its italic for the one
     highlighted phrase;
   - body, captions and buttons: Geist;
   - small labels: Geist Mono, in capitals. */

@font-face {
  font-family: "Instrument Serif"; src: url("../fonts/instrument-serif/InstrumentSerif-Regular.woff2") format("woff2"), url("../fonts/instrument-serif/InstrumentSerif-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Instrument Serif"; src: url("../fonts/instrument-serif/InstrumentSerif-Italic.woff2") format("woff2"), url("../fonts/instrument-serif/InstrumentSerif-Italic.ttf") format("truetype");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist"; src: url("../fonts/Geist.woff2") format("woff2"), url("../fonts/Geist.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono"; src: url("../fonts/GeistMono.woff2") format("woff2"), url("../fonts/GeistMono.woff") format("woff");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --bg: #fcfcfb;               /* clean, modern near-white paper, like an urban sketcher's page */
  --surface: #ffffff;
  --ink: #181a22;
  --ink-2: #474b58;
  --muted: #63677a;
  --line: rgba(70, 82, 128, .17);
  --accent: #b03f5c;           /* the one accent: rose */
  --accent-ink: #93304b;
  --btn: #f6bac8;              /* the buttons: a light pink wash */
  --btn-ink: #5c1330;          /* and the deep rose type on it */
  --btn-deep: #e892aa;         /* the deeper pink a button floods with, and a chosen answer's dab */
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gut: clamp(18px, 4vw, 56px);
  --split: 54vw;               /* wide screens: the painting's share of the width */
  --paper-ease: cubic-bezier(.25, .9, .35, 1);
  /* Frosted, "liquid" glass, for whatever sits on the painting (its labels,
     the nav, and on phones the words scrolling over it): translucent and
     lightly blurred, so the painting shows through, with a bright rim of
     light along its top edge, as on a lens. */
  --glass: rgba(252, 252, 251, .5);
  --glass-blur: blur(10px) saturate(1.35) brightness(1.04);
  --glass-rim: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 -1px 1px rgba(40, 46, 76, .05), 0 6px 18px -10px rgba(40, 46, 76, .26);
  --win: 62vh;                 /* phones and tablets: the height of each clear window onto the painting */
  --dk: 32px;                  /* phones and tablets: the strip holding a sheet's watercolor edge (its mean line 11px in from the sheet's flat part) */
}
@supports (height: 1svh) { :root { --win: 62svh; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 400 clamp(16px, .35vw + 14.5px, 18px)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(150, 220, 184, .75); }
.vh, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- the few building blocks ---------- */
.label {
  font: 500 .72rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.muted { color: var(--muted); }

/* Every call to action is the same button: a dense, roundish wash of
   vermilion built up in thin layers, as round 6, version 3's buttons were,
   with a loose ink line drawn round it, a little off the wash (painted by
   site.js to each button's size; a plain rounded vermilion until then).
   Pointed at, a richer crimson is charged into the wet wash right where the
   pointer touched it and floods through the whole wash in a fifth of a
   second, wet-in-wet, settling darker at the rim with a pale back-run where
   it went in (.btn__wet, painted by site.js). Pressed, the whole wash
   deepens (a second painted wash, --bloom). Nothing lifts or tilts. */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 30px; border: 0; border-radius: 20px;
  font: 560 1rem/1 var(--sans); letter-spacing: .005em;
  color: var(--btn-ink); background-color: var(--btn); text-decoration: none; cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: -9px -13px; z-index: -1; pointer-events: none;
  opacity: 0; transform: scale(.93);
  background: var(--bloom, radial-gradient(closest-side, rgba(232, 146, 170, .32), rgba(232, 146, 170, .18) 70%, rgba(232, 146, 170, 0))) center / 100% 100% no-repeat;
  transition: opacity .45s var(--paper-ease), transform .8s var(--paper-ease), filter .3s;
}
.btn.is-washed {
  background: var(--wash) center / 100% 100% no-repeat; border-radius: 0; background-color: transparent;
}
/* the flood, painted frame by frame into the button's own wash (site.js) */
.btn__wet {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s var(--paper-ease);
  border-radius: inherit; overflow: hidden;
  -webkit-mask: var(--wash, linear-gradient(#000, #000)) center / 100% 100% no-repeat; mask: var(--wash, linear-gradient(#000, #000)) center / 100% 100% no-repeat;
}
.btn__wet canvas { width: 100%; height: 100%; }
.btn.is-wet .btn__wet { opacity: 1; transition: none; }
.btn:active::before { opacity: 1; transform: scale(1.035); filter: saturate(1.15) brightness(.9); transition-duration: .12s; }
.btn--small { min-height: 46px; padding: 0 22px; font-size: .92rem; border-radius: 16px; }

/* Text links read like the site's other text links ("Read on Medium", the
   nav): ink, a little heavier than the words round them, no underline.
   Every text link has the same hover (these, the nav's links, "Read on
   Medium" and the project labels): the page's gold highlight washes in
   under the words, left to right, like a quick stroke of the brush, and
   the words stay ink (a painted stroke, --linkwash, from site.js; a flat
   band until then). An arrow, if any, nudges the way it points. The nav
   keeps the stroke under the section you're in. */
.link { font-weight: 550; color: var(--ink); text-decoration: none; }
.link > span[aria-hidden] { display: inline-block; transition: transform .2s var(--paper-ease); }
.link:hover > span[aria-hidden] { transform: translateY(2px); }
.link, .top__nav > a:not(.btn), .essay__go, .on-table a b { position: relative; isolation: isolate; }
.link::after, .top__nav > a:not(.btn)::after, .essay__go::after, .on-table a b::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -.2em; right: -.2em; top: calc(50% - .08em); height: .62em;
  background: var(--linkwash, linear-gradient(rgba(150, 220, 184, .62), rgba(150, 220, 184, .62))) center / 100% 100% no-repeat;
  opacity: 0; clip-path: inset(0 100% 0 0);
  transition: opacity .3s, clip-path 0s .3s;
}
.link:hover::after, .link:focus-visible::after, .top__nav > a:not(.btn):hover::after, .top__nav > a.is-here::after,
.essay:hover .essay__go::after, .essay:focus-within .essay__go::after, .on-table a:hover b::after, .on-table a:focus-visible b::after, .on-table a.is-hot b::after {
  opacity: 1; clip-path: inset(0 0 0 0);
  transition: opacity .12s, clip-path .55s var(--paper-ease);
}

/* Rules: a fine stroke of diluted ink, painted by site.js (a plain hairline until then) */
.rule-t { border-top-color: transparent !important; background: var(--rule) no-repeat 0 0 / 100% 4px; }
.rule-b { border-bottom-color: transparent !important; background: var(--rule) no-repeat 0 100% / 100% 4px; }
.rule-tb { border-top-color: transparent !important; border-bottom-color: transparent !important;
  background: var(--rule) no-repeat 0 0 / 100% 4px, var(--rule2, var(--rule)) no-repeat 0 100% / 100% 4px; }

/* ---------- the painting ---------- */
.painting { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; }
.painting canvas { width: 100%; height: 100%; }
.slot { display: none; }
.print { margin: 0 0 24px; }
main, .top { position: relative; z-index: 1; }

/* ---------- header ----------
   It stays with you. At the top of the page it sits as it is; scrolled, it
   docks (site.js adds .is-stuck): it slides up so only its row of links
   shows. The links stay on the same pill of frosted glass at every scroll
   position and width, so the painting and the words show through it. On
   wide screens and tablets the name moves to the top left of the page (on
   a wide screen the painting's wash flows round it; on a tablet it sits on
   glass too). The section you're in is marked with the page's one
   highlight, the gold stroke. */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap;
  padding: 22px var(--gut) 0; z-index: 6;
  position: sticky; top: 0;
  transition: transform .32s var(--paper-ease);
}
.top.is-stuck { transform: translateY(calc(var(--lift, 0px) * -1)); }
.top.is-stuck .top__name { opacity: 0; pointer-events: none; }
.top__name { transition: opacity .2s; }
.top__name { text-decoration: none; display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 0 12px; line-height: 1.1; }
/* The name signs the page the way a painting is signed: a J painted wet into
   wet (a raster image, so it costs nothing to draw), the name in the titles'
   serif. */
.top__name::before {
  content: ""; grid-row: 1; width: 34px; height: 34px;
  background: url(../img/mark/mark-96.webp) center / contain no-repeat;
  transition: width .25s var(--paper-ease), height .25s var(--paper-ease);
}
.top__name b { font: 400 1.7rem/.9 var(--serif); letter-spacing: -.005em; }
.top__nav {
  display: flex; align-items: center; gap: 6px 28px; flex-wrap: wrap;
  padding: 6px 6px 6px 22px; border-radius: 999px;
  background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-rim);
}
.top__menu { display: none; }
.top__nav > a:not(.btn) { font: 500 .95rem/1 var(--sans); text-decoration: none; padding: 8px 0; color: var(--muted); transition: color .2s; }
.top__nav > a:not(.btn):hover, .top__nav > a.is-here { color: var(--ink); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(28px, 6vh, 72px) var(--gut) 40px; }
.hero__text { max-width: 600px; position: relative; z-index: 2; }
.hero__title {
  font: 400 clamp(3.3rem, 6.4vw, 6.3rem)/.9 var(--serif);
  letter-spacing: -.012em; margin: 0 0 28px; color: var(--ink);
}
.hero__title > span { display: block; }
.accent { color: var(--accent); }
/* The one highlight: a quick stroke of the sun's gold laid behind a few key
   words, painted by site.js to each phrase's size (a flat band until then).
   Used sparingly: "built in code." on the first screen and one phrase in a few sections. */
.hl {
  color: inherit; padding: 0 .1em; margin: 0 -.04em;
  background: linear-gradient(transparent 50%, rgba(150, 220, 184, .62) 50%, rgba(150, 220, 184, .62) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl.is-washed { background: var(--wash) no-repeat 0 74% / 100% 56%; }
.hero__title .hl.is-washed { background-size: 100% 42%; background-position: 0 80%; }
.hero__title .accent { font-style: italic; }
.hero__lede { font-size: 1.12em; line-height: 1.55; max-width: 30em; margin: 0 0 10px; color: var(--ink-2); }
.hero__cred { margin: 0 0 30px; color: var(--ink-2); font-size: .95em; letter-spacing: .01em; }
.hero__acts, .foot__acts { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
/* First screen, option B: the recommendation stands in for the credentials line
   (that moves to About). The quote is upright serif, a calm second voice. */
.hero__lede { margin: 0 0 24px; }
.about__cred { color: var(--muted); }
/* The first screen in two text colours, ink and one grey (small things), plus the rose accent */
.hero__lede { color: var(--ink); margin-bottom: 26px; }
/* a few words from each recommendation, the only place quotes show (never inside a project);
   who said it follows in grey */
.hero__recs { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; max-width: 34em; }
.hero__recs li { font: 400 .88rem/1.45 var(--sans); color: var(--muted); }
.hero__recs q { quotes: "\201C" "\201D"; font: 400 1.3rem/1.25 var(--serif); color: var(--ink); margin-right: 8px; }
.hero__recs li > span { display: block; margin-top: 2px; }
/* a short mint brush stroke that opens the quotes (painted by site.js; a flat band until then) */
.hero__rule { display: block; width: 96px; height: 14px; margin: 0 0 14px; border-radius: 4px; background: rgba(150, 220, 184, .62); }
.hero__rule.is-washed { background: var(--wash) no-repeat center / 100% 100%; border-radius: 0; }
.on-table { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.on-table a { text-decoration: none; }
.on-table a > span { display: contents; }
/* a project's name in the titles' serif (never a heavy weight), its years as a small label */
.on-table a b { font: 400 1.2rem/1.1 var(--serif); letter-spacing: -.003em; }
.on-table a i { font: 400 .7rem/1 var(--mono); font-style: normal; color: var(--muted); letter-spacing: .04em; margin-left: 2px; }

/* ---------- sections ---------- */
.story { padding: 0 var(--gut); }
.sec { padding-top: clamp(64px, 12vh, 130px); position: relative; }
/* each section opens on a broad stroke of amber light, from the painting */
.sec::before {
  content: ""; display: block; height: 18px; width: min(100%, 440px); margin: 0 0 28px -8px;
  background: linear-gradient(90deg, rgba(118, 204, 162, .6), rgba(118, 204, 162, 0)) no-repeat 0 50% / 100% 10px;
}
.sec.is-stroked::before { background: var(--stroke) no-repeat 0 50% / 100% 100%; }
.sec__head { position: relative; padding-bottom: 8px; }
.sec h2 {
  font: 400 clamp(3rem, 5vw, 4.6rem)/.95 var(--serif);
  letter-spacing: -.01em; margin: 0 0 18px;
}
.sec__intro { font-size: 1.1em; line-height: 1.5; color: var(--ink-2); max-width: 32em; margin: 0 0 12px; }

/* the work: proof first */
.piece { padding: clamp(56px, 10vh, 110px) 0 0; position: relative; }
/* a section's own width decides how its rows split, so a narrow text column
   (a 1280px laptop beside the painting) stacks instead of crowding */
.sec { container-type: inline-size; }
/* A project reads in this order: its name (with year and role), what it is
   in one line, the numbers, then the detail. */
.piece__name {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  font: 400 clamp(2.7rem, 4vw, 3.7rem)/1 var(--serif); letter-spacing: -.012em;
  margin: 0 0 14px; color: var(--ink);
}
.piece__meta { font: 500 .72rem/1.35 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.piece__what {
  font: 400 clamp(1.7rem, 2.3vw, 2.15rem)/1.16 var(--serif); letter-spacing: -.003em;
  -webkit-text-stroke: .012em currentColor;      /* a hair more weight, so the thin serif holds its own beside the body */
  color: var(--ink) !important; margin: 0 0 30px !important; max-width: 21em !important; text-wrap: balance;
}
.stats { display: flex; flex-wrap: wrap; gap: 18px 24px; margin: 0 0 26px; }
/* each column at least as wide as its number, so a long one never runs into the next */
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; flex: 1 0 118px; max-width: 128px; min-width: min-content; }
.stats dd {
  margin: 0; font: 400 clamp(3rem, 4.4vw, 4rem)/.9 var(--serif);
  letter-spacing: -.01em; color: var(--accent); font-variant-numeric: lining-nums;
}
.stats dt { font: 400 .86rem/1.35 var(--sans); color: var(--ink-2); margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.stats .stats__soon dd { color: var(--muted); font-style: italic; }
.piece p { margin: 0 0 12px; color: var(--ink-2); max-width: 34em; }

/* the prints (only shown when the 3D table can't be drawn) */
.print {
  position: relative; background: #fff; max-width: 560px; border-radius: 2px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,30,.08), 0 14px 30px -14px rgba(20,20,30,.35);
}
.print--soon { aspect-ratio: 3/2; display: grid; place-items: center; background: #efefec; }
.print--soon span { font: 500 .8rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.print--phone { max-width: 240px; padding: 8px; background: #2d3140; border-radius: 26px; }
.print--tablet { padding: 12px; background: #6f7586; border-radius: 20px; }
.print--tablet img { border-radius: 4px; }
.print--phone video { border-radius: 20px; }

/* Work with me: a small contact section. The visitor picks what they need
   from a short list of answers. Each sits against a fine rule down its left;
   chosen, the rule turns into a firm stroke of the accent, its words go full
   ink, and it opens to show what that need gets you, right under it, in the
   same type a step smaller. One family (the sans) for all of it; only the
   heading is in the serif. Only the chosen one is open (CSS alone). */
.picks { margin: 0 0 24px !important; }
.pick { position: relative; padding: 0 0 0 16px; border-left: 2px solid var(--line); transition: border-color .2s; }
.pick + .pick { margin-top: 2px; }
.pick:has(input:checked) { border-left-color: var(--accent); }
@media (hover: hover) { .pick:not(:has(input:checked)):hover { border-left-color: var(--muted); } }
.pick__l {
  display: flex; align-items: center; min-height: 44px; margin: 0; cursor: pointer;
  font: 500 1rem/1.3 var(--sans); color: var(--ink-2); -webkit-tap-highlight-color: transparent;
}
.pick__l:hover, .pick:has(input:checked) .pick__l { color: var(--ink); }
.pick:has(input:focus-visible) .pick__l { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
/* what the chosen need gets you, under it */
.pick__more { display: none; margin: -6px 0 0; padding: 0 0 12px; color: var(--ink-2); font-size: .92rem; line-height: 1.5; max-width: 34em; }
.pick__more b { font-weight: 600; color: var(--ink); margin-right: 6px; }
.pick__d { display: block; }
.need__how { color: var(--muted); }
.pick:has(input:checked) .pick__more { display: block; animation: need-in .32s var(--paper-ease); }
@supports not selector(:has(*)) { .pick__more { display: block; } }
@keyframes need-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.h4 { font: 600 1.08rem/1.25 var(--sans); letter-spacing: -.01em; margin: 0 0 12px; }

/* the form: every control drawn by the site */
/* (the form sits on a pale wash of the sun's gold with a soft dried rim, painted by site.js; flat until then) */
.intake {
  position: relative; margin-top: clamp(60px, 11vh, 110px); padding: 32px 32px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
}
/* (a button that jumps here lands with the form's heading clear of the docked header) */
#get-in-touch { scroll-margin-top: 84px; }
.intake.is-washed { background: var(--wash) center / 100% 100% no-repeat; border-color: transparent; }
.intake__h { font: 400 clamp(2.3rem, 3.6vw, 3rem)/1 var(--serif); letter-spacing: -.005em; margin: 0 0 22px; }
.field__opt { font-weight: 400; color: var(--muted); margin-left: 6px; }
.intake fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.intake legend, .field__l { display: block; font: 600 .95rem/1.3 var(--sans); margin-bottom: 8px; padding: 0; }
.intake input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }

/* the fields: each is drawn with the buttons' loose ink line round a soft
   white wash; pointed at, the line darkens; typing in it, the page's gold
   highlight brushes in under the words. Name and email side by side. */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field { margin: 0 0 18px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__box { position: relative; display: block; isolation: isolate; }
.field__box::before {   /* the gold wash, while typing */
  content: ""; position: absolute; inset: 2px; z-index: -1; pointer-events: none;
  background: var(--fieldwash, linear-gradient(rgba(150, 220, 184, .32), rgba(150, 220, 184, .32))) center / 100% 100% no-repeat;
  opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .2s, clip-path 0s .2s;
}
.field__box::after {    /* the ink line round it */
  content: ""; position: absolute; inset: -3px; pointer-events: none;
  background: var(--loop, none) center / 100% 100% no-repeat; opacity: .72; transition: opacity .15s;
}
.field input, .field textarea {
  display: block; width: 100%; min-height: 48px; margin: 0; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  padding: 12px 16px; border: 1px solid rgba(23, 25, 30, .28); border-radius: 12px; background: rgba(255, 255, 255, .84);
  -webkit-appearance: none; appearance: none; outline: none;
}
.field textarea { min-height: 92px; resize: vertical; }
.field__box.is-inked input, .field__box.is-inked textarea { border-color: transparent; border-radius: 0; background: transparent; }
.field__box.is-inked { background: var(--fieldbg) center / 100% 100% no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: #85888f; }
@media (hover: hover) { .field__box:hover::after { opacity: 1; } }
.field__box:focus-within::after { opacity: 1; }
.field__box:focus-within::before { opacity: 1; clip-path: inset(0 0 0 0); transition: opacity .1s, clip-path .32s var(--paper-ease); }
.field__box:not(.is-inked):focus-within :is(input, textarea) { border-color: var(--ink); }
.field__box:has(:focus-visible) { outline: 2px solid var(--ink); outline-offset: 5px; border-radius: 6px; }
.field__hint { margin: 6px 0 0; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.field__err { margin: 6px 0 0; font: 550 .88rem/1.4 var(--sans); color: var(--accent-ink); }
.field__err:empty { display: none; }
.field.is-bad .field__box::after { background-image: var(--loop-bad, none); opacity: 1; }
.field.is-bad .field__box:not(.is-inked) :is(input, textarea) { border-color: var(--accent); }
@container (max-width: 460px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
}
.intake .btn { margin-top: 6px; }
.intake__note { margin: 14px 0 0; font-size: .88rem; color: var(--muted); }
.intake__note:empty { display: none; }

/* about, writing */
.prose { max-width: 34em; }
.prose p { margin: 0 0 14px; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .h4 { margin-top: 30px; }
/* each essay reads like a project entry: label, title, where it opens */
.essays { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
/* (Writing's heading and its list read as one block) */
#writing .sec__head { padding-bottom: 14px; }
#writing .sec__intro { margin-bottom: 0; }
.essay:first-child { padding-top: 16px; }
.essay { position: relative; padding: 24px 0 22px; border-bottom: 1px solid var(--line); }
.essay .label { margin: 0 0 10px; }
.essay h3 {
  font: 400 clamp(1.55rem, 2vw, 1.9rem)/1.12 var(--serif);
  letter-spacing: -.005em; margin: 0 0 10px; text-wrap: balance; max-width: 24em;
}
.essay h3 a { text-decoration: none; }
.essay h3 a::after { content: ""; position: absolute; inset: 0; }   /* the whole entry is the link */
.essay p { margin: 0 0 10px; color: var(--ink-2); max-width: 34em; }
.essay__go { font-weight: 550; color: var(--ink) !important; margin: 0 !important; font-size: .95rem; width: fit-content; pointer-events: none; }
.essay__go span { display: inline-block; transition: transform .2s var(--paper-ease); }
.essay:hover .essay__go span { transform: translate(2px, -2px); }
.essay h3 a:focus-visible { outline: none; }
.essay h3 a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.aside { margin-top: 22px; color: var(--ink-2); }
/* a recommendation: a rose rule, the words in serif italic, who said it in mono */

/* footer */
.foot { padding: clamp(80px, 16vh, 160px) 0 50px; }
.foot__sig { font: 400 clamp(3.6rem, 7vw, 5.8rem)/.9 var(--serif); letter-spacing: -.01em; margin: 0 0 12px; }
.foot__line { font-size: 1.12em; margin: 0 0 26px; color: var(--ink-2); }
.foot__small { font-size: .85rem; color: var(--muted); max-width: 40em; margin: 48px 0 0; }
.foot__top { font-size: .85rem; margin: 10px 0 0; }

/* ---------- with the 3D table ---------- */
.gl .print { display: none; }

/* phones and tablets: the same painting stays fixed in place behind the
   page as its backdrop, and the content scrolls over it. Each section opens
   on a clear window (.slot) onto the painting, and as the section comes up
   the camera walks to its object or print, framed in that window
   (table.js). The words sit on frosted glass whose edges melt into the
   painting, so they stay readable. The first screen's window holds a still
   of the painting from the first frame. */
@media (max-width: 899px) {
  .slot.slot--hero { display: block; position: relative; margin: 0 calc(var(--gut) * -1) 6px; aspect-ratio: 5 / 4; }
  .slot__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
  .gl .painting { display: block; visibility: hidden; }
  .gl-ready .painting { visibility: visible; }
  .gl-ready .slot__poster { visibility: hidden; }
  /* (once you scroll, the first screen's window shows its still, which scrolls with the page: table.js) */
  .gl-ready .slot--hero.is-still .slot__poster { visibility: visible; }
  .gl .slot:not(.slot--hero) { display: block; position: relative; height: var(--win); margin: 0 calc(var(--gut) * -1); }
  .gl .print { display: none; }

  /* The words lie on sheets of the page's paper sliding over the painting,
     each running the full width of the screen, opaque, and with a slightly
     soft, uneven watercolor edge wherever it meets a window onto the painting
     (the edges are painted by site.js; straight until then). */
  .gl .hero__text, .gl .prose { max-width: none; }
  .gl .prose > * { max-width: 34em; }
  .gl :is(.hero__more, .on-table, .piece, .sec__head, .essays, .aside, .prose, .intake, .foot) { position: relative; isolation: isolate; }
  .gl :is(.hero__more, .on-table, .piece, .sec__head, .essays, .aside, .prose, .intake, .foot)::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    top: var(--gt, 0px); bottom: var(--gb, 0px); left: calc(var(--gut) * -1); right: calc(var(--gut) * -1);
    background:
      var(--sheet-t, linear-gradient(transparent, transparent)) 0 0 / 100% var(--dk) no-repeat,
      var(--sheet-b, linear-gradient(transparent, transparent)) 0 100% / 100% var(--dk) no-repeat,
      linear-gradient(var(--bg), var(--bg)) 0 var(--st, 0px) / 100% calc(100% - var(--st, 0px) - var(--sb, 0px)) no-repeat;
  }
  /* (the sides that meet a window end in the edge of a wash: soft and
     uneven, meeting the painting by that edge alone, with no shadow or dark
     line under it. The strips are painted by site.js; a straight edge until then.) */
  .gl :is(.hero__more, .piece, .sec__head, .intake, .foot)::before { --st: var(--dk); --sheet-t: var(--edge-t, linear-gradient(transparent 66%, var(--bg) 66%)); }
  .gl :is(.on-table, .piece, .aside, .prose, .intake, #work-with-me .sec__head)::before { --sb: var(--dk); --sheet-b: var(--edge-b, linear-gradient(var(--bg) 34%, transparent 34%)); }
  .gl .hero__more { --gt: calc(4px - var(--dk)); padding-bottom: 8px; }
  .gl .on-table { --gb: calc(var(--dk) * -1); }
  .gl .piece { padding: 0 0 34px; --gt: calc(var(--win) - var(--dk) + 9px); --gb: calc(var(--dk) * -1); }
  .gl .piece .piece__name { padding-top: 16px; }
  /* (a jump from the index lands with the project's window in the middle of the screen) */
  .gl .piece { scroll-margin-top: max(0px, calc((100vh - var(--win)) / 2)); }
  .gl .sec { padding-top: 0; }
  .gl .sec::before { display: none; }
  .gl .sec__head { --gt: calc(var(--win) - var(--dk) + 9px); padding-top: 0; }
  .gl .sec__head .label { padding-top: 16px; }
  /* (the list's top rule is drawn over its sheet) */
  .gl .essays { --gt: -2px; }
  .gl .essays::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--line); pointer-events: none; }
  .gl .essays.rule-t::after { height: 4px; background: var(--rule) no-repeat 0 0 / 100% 4px; }
  .gl .aside { margin-top: 0; padding-top: 22px; --gb: calc(var(--dk) * -1); padding-bottom: 14px; }
  .gl .prose { --gb: calc(var(--dk) * -1); padding-bottom: 14px; }
  .gl #work-with-me .sec__head { --gb: calc(var(--dk) * -1); padding-bottom: 14px; }
  /* the form: its card lies on a sheet of its own, between two windows */
  .gl .intake { margin: 30px 0; --gt: calc(-10px - var(--dk)); --gb: calc(-10px - var(--dk)); }
  .gl .intake, .gl .intake.is-washed { background: none; border-color: transparent; }
  .gl .intake::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    border: 1px solid var(--line); border-radius: 18px; background: var(--surface);
  }
  .gl .intake.is-washed::after { background: var(--wash) center / 100% 100% no-repeat; border-color: transparent; border-radius: 0; }
  .gl .foot { padding-top: var(--win); --gt: calc(var(--win) - var(--dk) + 9px); }
  .gl .foot .foot__sig { padding-top: 14px; }

  /* the work at a glance: a compact index near the top that jumps to each project */
  .on-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 18px; margin-top: 0; padding-top: 18px; }
  .on-table a {
    display: flex; align-items: baseline; gap: 0 7px; min-height: 44px; padding: 10px 0 6px;
    border-bottom: 1px solid var(--line); -webkit-tap-highlight-color: transparent;
  }
  .on-table a b { white-space: nowrap; }

  .top { padding-top: 16px; }
  .top__nav { gap: 4px 8px; width: 100%; justify-content: space-between; padding: 3px 3px 3px 14px; }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .intake { padding: 32px 20px 24px; }
  .hero__title { font-size: clamp(3.2rem, 15vw, 4.6rem); }
  .hero { padding-bottom: 0; }
  /* every tap target is at least 44px */
  .top__name { min-height: 44px; align-content: center; }
  .top__nav > a:not(.btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0; }
  .link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
  /* links in running text get their tap height on a line of their own */
  .aside .link, .foot__top .link { display: flex; width: fit-content; }
  .foot__top { margin-top: 4px; }
}
/* tablets: the header is one row, and docked it keeps the name at its left */
@media (min-width: 600px) and (max-width: 899px) {
  /* the first screen's window fits the screen with the words under it, the
     painting filling it (its still is shown whole until the live one is drawn) */
  .slot.slot--hero { aspect-ratio: auto; height: clamp(300px, 100vh - 440px, 80vw); }
  @supports (height: 1svh) { .slot.slot--hero { height: clamp(300px, 100svh - 440px, 80vw); } }
  .slot__poster { object-fit: contain; }
  .top__nav { width: auto; }
  .top.is-stuck .top__name { opacity: 1; pointer-events: auto; }
  .top.is-stuck .top__name b { font-size: 1.45rem; }
  .top.is-stuck .top__name::before { grid-row: 1; width: 26px; height: 26px; }
  /* (docked, the name rides over the painting too, so it sits on the same glass as the links) */
  .top__name { border-radius: 999px; transition: opacity .2s, background-color .25s, box-shadow .25s; }
  .top.is-stuck .top__name {
    padding: 0 16px 0 10px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-rim);
  }
  .gl .on-table { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* wide screens: the painting stays put on the left, the camera walks the table */
@media (min-width: 900px) {
  .gl .painting { display: block; }
  /* the prints are drawn in the one painting here, so each panel's description
     (the screenshot's alt text) stays for screen readers, out of sight */
  .gl .slot { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .hero { min-height: 100vh; min-height: 100svh; padding-top: clamp(40px, 12vh, 130px); }
  .hero__text { max-width: min(40vw, 600px); }
  /* docked, the name stays at the top left of the page */
  .top.is-stuck { transform: translateY(-12px); }
  .top.is-stuck .top__name { opacity: 1; pointer-events: auto; animation: bar-in .4s var(--paper-ease); }
  .top.is-stuck .top__name b { font-size: 1.5rem; }
  .top.is-stuck .top__name::before { grid-row: 1; width: 26px; height: 26px; }
  /* docked, the name sits on the same glass as the links, so the words scrolling under it never show through */
  .top__name { border-radius: 999px; transition: opacity .2s, background-color .25s, box-shadow .25s; }
  .top.is-stuck .top__name {
    padding: 8px 18px 8px 12px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-rim);
  }
  .gl .on-table { position: fixed; inset: 0; z-index: 3; margin: 0; pointer-events: none; display: block; }
  .gl .on-table a {
    position: absolute; left: 0; top: 0; opacity: 0; white-space: nowrap; pointer-events: none;
    display: flex; border-radius: 999px; transition: color .2s;
  }
  /* the pill nudges when pointed at, inside a link that stays still, so the
     pointer at its edge never falls off it and back on again */
  .gl .on-table a > span {
    display: inline-flex; align-items: baseline; gap: 7px;
    padding: 5px 12px 6px; border-radius: 999px;
    background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-rim);
    transition: translate .26s var(--paper-ease), rotate .26s var(--paper-ease), scale .12s;
  }
  .gl .on-table a b { font-size: 1.12rem; }
  .gl .on-table a:hover > span, .gl .on-table a.is-hot > span { translate: 0 -1px; rotate: -.6deg; }
  .gl .on-table a:active > span { scale: .97; translate: 0 1px; rotate: 0deg; transition-duration: .07s; }
  .story { padding-left: calc(var(--split) + 24px); padding-right: var(--gut); }
  .story > * { max-width: 600px; }
  /* sections stand well apart; inside one, the heading, intro and content
     sit together as one block */
  .sec { padding-top: clamp(150px, 26vh, 260px); }
  .sec__head { padding-bottom: 20px; }
  .piece { min-height: 96vh; padding-top: 16vh; }
  .piece:first-of-type { padding-top: clamp(36px, 5vh, 56px); }
  .foot { min-height: 90vh; }
}

/* ---------- a project's images: a gallery (version B, laid out on the page) ----------
   Opened from a project's screenshot (in the painting, once the camera has
   come in on that project, or on a phone from its window) or from "See
   N images". A clean white sheet of the page slides up over everything:
   no glass, since nothing of the painting is behind it. The picture lies on
   it in a loose ink line; beside it (under it on phones and tablets) runs
   the index of every image, each a small print with its caption. The one
   showing is opened out: its number brushed under with vermilion, its
   caption in the body's sans at full reading size. Pointed at, an entry's
   number takes a stroke of the gold highlight, as text links do. */
button.link { background: none; border: 0; padding: 0; font: inherit; font-weight: 550; cursor: pointer; text-align: left; }
.piece__shots { display: flex; align-items: baseline; gap: 6px; width: fit-content; margin: 16px 0 0; }
.piece__shots:hover > span[aria-hidden] { transform: translateX(3px); }
.gl .piece:has([data-shots]) .slot { cursor: zoom-in; }
.piece:has([data-shots]) .print img { cursor: zoom-in; }

/* the ink line and the freehand icons */
.ink { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke: rgba(30, 34, 54, .78); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

/* The affordance: crop marks round the screenshot, and a label under it */
.vcue { position: fixed; left: 0; top: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s var(--paper-ease); }
.vcue.is-on { opacity: 1; }
.vmarks { position: absolute; inset: -12px; }
.vmark {
  position: absolute; width: 28px; height: 28px; overflow: visible; fill: none;
  stroke: rgba(30, 34, 54, .82); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .5s var(--paper-ease) .1s, translate .3s var(--paper-ease);
}
.vcue.is-on .vmark { stroke-dashoffset: 0; }
.vmark--tl { left: 0; top: 0; }
.vmark--tr { right: 0; top: 0; rotate: 90deg; }
.vmark--br { right: 0; bottom: 0; rotate: 180deg; }
.vmark--bl { left: 0; bottom: 0; rotate: 270deg; }
/* pointed at: the marks open out, as if the picture were about to come up off the table */
.vcue.is-hot .vmark--tl, .vcue:has(.vcue__label:hover) .vmark--tl { translate: -5px -5px; }
.vcue.is-hot .vmark--tr, .vcue:has(.vcue__label:hover) .vmark--tr { translate: 5px -5px; }
.vcue.is-hot .vmark--br, .vcue:has(.vcue__label:hover) .vmark--br { translate: 5px 5px; }
.vcue.is-hot .vmark--bl, .vcue:has(.vcue__label:hover) .vmark--bl { translate: -5px 5px; }
.vcue__label {
  position: absolute; left: 50%; top: calc(100% + 18px); translate: -50% 0; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border: 0; border-radius: 999px;
  font: 550 .92rem/1 var(--sans); color: var(--ink); white-space: nowrap; cursor: zoom-in;
  background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim);
}
.vcue__label .ico { width: 19px; height: 19px; }
.vcue.is-on .vcue__label { pointer-events: auto; }
.vcue.is-inside .vcue__label { top: auto; bottom: 16px; }
.vcue__label > span { position: relative; }
.vcue__label > span::after {   /* the gold highlight brushes in under the words */
  content: ""; position: absolute; z-index: -1; left: -.25em; right: -.25em; top: calc(50% - .1em); height: .7em; pointer-events: none;
  background: var(--v-cue, rgba(150, 220, 184, .62)) center / 100% 100% no-repeat;
  opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .3s, clip-path 0s .3s;
}
.vcue.is-hot .vcue__label > span::after, .vcue__label:hover > span::after, .slot:hover .vcue__label > span::after, .print:hover .vcue__label > span::after {
  opacity: 1; clip-path: inset(0 0 0 0); transition: opacity .12s, clip-path .5s var(--paper-ease);
}
.vcue--in { position: absolute; inset: calc(var(--dk) + 16px) 22px calc(var(--dk) + 6px); }
.vcue--in .vmarks { inset: 0; }
.vcue--in .vcue__label { top: auto; bottom: 10px; pointer-events: none; }
.slot:hover .vmark--tl, .print:hover .vmark--tl { translate: -4px -4px; }
.slot:hover .vmark--tr, .print:hover .vmark--tr { translate: 4px -4px; }
.slot:hover .vmark--br, .print:hover .vmark--br { translate: 4px 4px; }
.slot:hover .vmark--bl, .print:hover .vmark--bl { translate: -4px 4px; }
.print .vcue--in { inset: 12px; }
.print .vcue--in .vcue__label { bottom: auto; top: 10px; pointer-events: auto; }
.slot .vcue--in { display: none; }
.gl .slot:not(.slot--hero) .vcue--in { display: block; }

/* the sheet: the picture, large, on the left; the project's map on the right */
.viewer {
  --th: 64px;                  /* a print's height in the map: set by site.js so the whole map fits */
  --pink: color-mix(in srgb, var(--accent) 62%, var(--btn-deep));   /* the selected print's thin edge */
  position: fixed; inset: 0; z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 440px); grid-template-rows: minmax(0, 1fr);
  background: var(--bg); color: var(--ink);
  opacity: 0; transform: translateY(26px); transition: opacity .26s var(--paper-ease), transform .3s var(--paper-ease);
  overscroll-behavior: contain;
}
.viewer[hidden] { display: none; }
.viewer.is-open { opacity: 1; transform: none; }
.viewer__main {
  min-width: 0; min-height: 0; display: flex; flex-direction: column;
  padding: 28px 36px 22px var(--gut);
}
.viewer__main.is-more { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.viewer__stage {
  flex: 1 1 0; min-width: 0; min-height: 160px; display: flex; align-items: flex-end; justify-content: center;   /* the picture sits right on its name */
  padding: 10px 8px 14px; touch-action: pan-y pinch-zoom; overflow: hidden; overflow-anchor: none;
}
.viewer__print { position: relative; display: flex; align-items: flex-start; gap: 44px; transition: opacity .24s var(--paper-ease), transform .3s var(--paper-ease); }
.viewer__print.is-in { opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px)); transition: none; }
.viewer__img { display: block; max-width: none; width: 0; height: 0; background: #fff; }   /* sized by site.js (fit) */
.viewer__fig { margin: 0; flex: none; }
/* a pair: labels on one line across, pictures level under them */
.viewer__print.is-pair { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; gap: 0 44px; align-items: end; }
.viewer__print.is-pair .viewer__fig { display: contents; }
.viewer__print.is-pair .viewer__pic { align-self: start; }
.viewer__pic { position: relative; }
/* a pair: each picture's own label over it, in words to be read */
.viewer__lab { margin-bottom: 16px; font: 400 1rem/1.45 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.viewer__lab b { display: block; font-weight: 550; font-size: 1.05rem; color: var(--ink); }
/* a page-long screenshot: fitted to the width, and the stage scrolls down it */
.viewer__stage.is-scroll { align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.viewer__stage.is-scroll .viewer__print { margin: auto 0; padding-bottom: 8px; }
.viewer__frame { inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); stroke-width: 1.3; }

/* under the picture, on one line: its name on the left; where you are and the arrows on the right */
.viewer__bar { flex: none; display: flex; align-items: center; gap: 12px 24px; padding: 6px 0 0; }
.viewer__cap { flex: 1 1 auto; min-width: 0; margin: 0; display: flex; align-items: baseline; align-content: flex-start; flex-wrap: wrap; gap: 0 .1em; font: 400 1.08rem/1.45 var(--sans); color: var(--ink); text-wrap: pretty; }
.vcap__t { font-weight: 500; }   /* a name, read as a caption: never as heavy as a heading */
.vcap__head, .vcap__p { color: var(--ink-2); }
.vcap__dot { margin: 0 .45em; color: var(--muted); }
.viewer__step { flex: none; display: flex; align-items: center; gap: 6px; }
.viewer__n { margin: 0 8px 0 0; font: 500 .98rem/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewer__n b { font-weight: 600; color: var(--ink); }
/* and under that, the section's description: about three lines, More for the rest */
.viewer__about { flex: none; padding: 12px 0 0; max-width: 46em; }
.viewer__desc { font: 400 .98rem/1.55 var(--sans); color: var(--ink-2); max-height: calc(3 * 1.55em); overflow: hidden; min-height: calc(3 * 1.55em); text-wrap: pretty; }
.viewer__desc:not(.is-open) { -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.viewer__desc.is-whole { -webkit-mask-image: none; mask-image: none; }
.viewer__more.is-off { visibility: hidden; }
.viewer__desc.is-open { max-height: none; }
.viewer__desc p { margin: 0 0 .55em; }
.viewer__desc p:last-child { margin-bottom: 0; }
.viewer__more { display: inline-block; margin-top: 4px; padding: 4px 0; border: 0; background: none; cursor: pointer; font: 550 .95rem/1.3 var(--sans); }

/* the map */
.viewer__map { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 22px var(--gut) 18px 8px; overflow: hidden; }
.viewer__map.is-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.viewer__head { flex: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.viewer__t { margin: 6px 0 0; position: relative; isolation: isolate; padding-bottom: 8px; font: 400 clamp(1.8rem, 2.6vw, 2.3rem)/1 var(--serif); letter-spacing: -.005em; }
.viewer__t::after {   /* a stroke of light under the name (painted by paint.js) */
  content: ""; position: absolute; z-index: -1; left: -8px; bottom: -4px; width: min(100%, 300px); height: 14px; pointer-events: none;
  background: var(--stroke, linear-gradient(90deg, rgba(118, 204, 162, .6), rgba(118, 204, 162, 0))) no-repeat 0 50% / 100% 100%;
}
.viewer__secs { list-style: none; margin: 0; padding: 0; }
/* a section: its result (rose serif, small), its topic (sans), then all its images */
.vsec { padding: 14px 0 4px; }
.vsec + .vsec { margin-top: 4px; }
.vsec__h { margin: 0 0 8px; }
.vsec__impact { display: block; font: 400 1.18rem/1.2 var(--serif); color: var(--accent); font-variant-numeric: lining-nums; text-wrap: balance; transition: color .2s; }
.vsec__topic { display: block; margin-top: 2px; font: 500 .9rem/1.35 var(--sans); color: var(--ink-2); text-wrap: pretty; transition: color .2s; }
/* the section of the image showing: its heading a shade darker */
.vsec.is-cur .vsec__impact { color: var(--accent-ink); }
.vsec.is-cur .vsec__topic { color: var(--ink); }
.vsec__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vsec__row > li { flex: none; }
/* a print in the map: every one the same size and style */
.vthumb {
  position: relative; isolation: isolate; display: block; padding: 5px; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vthumb::before {   /* pointed at or focused: the mint wash brushes in under it */
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: var(--v-thumb, rgba(150, 220, 184, .5)) no-repeat center / 100% 100%;
  opacity: 0; transform: scale(.9); transition: opacity .16s, transform .3s var(--paper-ease);
}
.vthumb:hover::before, .vthumb:focus-visible::before { opacity: 1; transform: none; }
.vthumb__img { position: relative; display: flex; gap: 2px; width: calc(var(--th) * 4 / 3); height: var(--th); }
.vthumb__img img { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 1px; box-shadow: 0 0 0 1px rgba(30, 34, 54, .16); opacity: .86; transition: opacity .2s; background: #fff; }
.vthumb:hover .vthumb__img img, .vthumb.is-on .vthumb__img img { opacity: 1; }
/* its ink edge: drawn only when it's the one showing (thin, pink) or focused (ink) */
.vthumb__ink { opacity: 0; transition: opacity .16s; stroke-width: 1.1; }
.vthumb.is-on { cursor: default; }
.vthumb.is-on .vthumb__ink { opacity: 1; stroke: var(--pink); stroke-width: 2; }
.vthumb:focus-visible { outline: none; }
.vthumb:focus-visible .vthumb__ink { opacity: 1; }
.vthumb__play {
  position: absolute; right: 3px; bottom: 3px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim); color: var(--ink);
}
.vthumb__play .ico { width: 13px; height: 13px; stroke-width: 1.8; }

/* Close: words and an ink cross; pointed at, the mint brushes in under them, as on every text link */
.vclose {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font: 550 1rem/1 var(--sans); color: var(--ink); position: relative; isolation: isolate;
}
.vclose span { position: relative; }
.vclose span::after {
  content: ""; position: absolute; z-index: -1; left: -.25em; right: -.25em; top: calc(50% - .1em); height: .7em; pointer-events: none;
  background: var(--v-link, rgba(150, 220, 184, .62)) center / 100% 100% no-repeat;
  opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .3s, clip-path 0s .3s;
}
.vclose:hover span::after, .vclose:focus-visible span::after {
  opacity: 1; clip-path: inset(0 0 0 0); transition: opacity .12s, clip-path .45s var(--paper-ease);
}
/* the arrows: rounds of the page with the loose ink line; pointed at, a round of mint washes in */
.vround {
  position: relative; isolation: isolate; display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ink);
  -webkit-tap-highlight-color: transparent; transition: transform .2s var(--paper-ease);
}
.vround::before {
  content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: var(--v-gold, rgba(150, 220, 184, .75)) no-repeat center / 100% 100%;
  opacity: 0; transform: scale(.5); transition: opacity .16s, transform .3s var(--paper-ease);
}
.vround:hover::before, .vround:focus-visible::before { opacity: 1; transform: none; }
.vround:hover .ink, .vround:focus-visible .ink { stroke-width: 1.7; }
.vround:active { transform: translateY(1px) scale(.96); }
.vround[disabled] { opacity: .3; cursor: default; }
.vround[disabled]::before { display: none; }
.vclose:focus-visible, .vround:focus-visible { outline: none; }
/* over the playing video, a round of glass to pause or play it */
.vplay { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 44px; height: 44px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim); }
.vplay__i { display: grid; place-items: center; }
/* over an image shown smaller than its own size, a round of glass to see it at 100% */
.vzoomin { position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 44px; height: 44px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim); }
.vzoomin[hidden] { display: none; }
.vzoomin .ico { width: 20px; height: 20px; }
.viewer__pic.can-zoom .viewer__img { cursor: zoom-in; }
.viewer__stage.is-scroll .vzoomin { bottom: auto; top: 12px; }   /* a page-long one: at its top, where you start */
/* the image at 100%: it covers the sheet; drag to look around, click to go back */
.vzoom { position: fixed; inset: 0; z-index: 5; background: var(--bg); }
.vzoom[hidden] { display: none; }
.vzoom__pan { position: absolute; inset: 0; display: flex; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; cursor: grab; outline: none; }
.vzoom__pan.is-drag { cursor: grabbing; }
.vzoom__pan.is-fit { cursor: zoom-out; }
.vzoom__img { flex: none; display: block; max-width: none; margin: auto; background: #fff; box-shadow: 0 0 0 1px rgba(30, 34, 54, .16); -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.vzoom__x { position: absolute; top: 14px; right: var(--gut); z-index: 1; padding: 0 16px 0 12px; border-radius: 999px; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim); }
.vplay .ico { width: 20px; height: 20px; }

@media (max-width: 899px) {
  /* phones and tablets: one column that scrolls. The picture, its name and the
     arrows; then the map, each section's prints in a row that scrolls sideways;
     then the description */
  .viewer {
    display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden;
  }
  .viewer__main, .viewer__map { display: contents; }
  .viewer__head { order: 1; position: sticky; top: 0; z-index: 2; margin: 0; padding: 6px var(--gut) 4px; align-items: center; background: var(--bg); }
  .viewer__t { font-size: 1.7rem; margin: 0; }
  .viewer__stage { order: 2; flex: none; height: 36svh; min-height: 200px; padding: 10px var(--gut) 10px; }
  .viewer__bar { order: 3; flex-direction: column; align-items: stretch; gap: 0; padding: 2px var(--gut) 0; }
  .viewer__cap { font-size: 1rem; }
  .viewer__cap:empty { display: block; }
  .viewer__step { gap: 2px; justify-content: flex-end; margin-top: -2px; }
  .viewer__n { margin-right: 4px; font-size: .92rem; }
  .viewer__secs { order: 4; padding: 4px 0 6px; }
  .vsec { padding: 10px 0 2px; }
  .vsec + .vsec { margin-top: 0; }
  .vsec__h { margin: 0 0 6px; padding: 0 var(--gut); }
  .vsec__impact { font-size: 1.08rem; }
  .vsec__topic { font-size: .86rem; }
  .vsec__row {
    flex-wrap: nowrap; gap: 6px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 2px calc(var(--gut) - 5px); scroll-padding-inline: var(--gut); touch-action: pan-x pan-y;
  }
  .vsec__row::-webkit-scrollbar { display: none; }
  .viewer__about { order: 5; padding: 12px var(--gut) max(28px, env(safe-area-inset-bottom)); }
  .viewer__print, .viewer__print.is-pair { column-gap: 18px; }
  .viewer__lab { margin-bottom: 10px; font-size: .95rem; }
  .viewer__lab b { font-size: 1rem; }
  .vround { width: 44px; height: 44px; }
  .vround.vplay { width: 34px; height: 34px; right: 6px; bottom: 6px; }
  .vplay .ico { width: 16px; height: 16px; }
  .vround.vzoomin { width: 38px; height: 38px; right: 6px; bottom: 6px; }
  .vzoomin .ico { width: 17px; height: 17px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  /* tablets: under the picture, two columns. The sections and their prints
     down the left; on the right, the description of the section showing,
     all of it, staying in view under the project's name */
  .viewer { flex-flow: row wrap; align-content: flex-start; }
  .viewer__head, .viewer__stage, .viewer__bar { flex: 0 0 100%; }
  .viewer__secs { flex: 0 0 44%; min-width: 0; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .vsec__row { flex-wrap: wrap; overflow: visible; }
  .viewer__about { flex: 0 0 56%; min-width: 0; align-self: flex-start; position: sticky; top: 58px; padding: 12px var(--gut) 28px 8px; }
  .viewer__desc { max-height: none; min-height: 0; overflow: visible; }
  .viewer__desc:not(.is-open) { -webkit-mask-image: none; mask-image: none; }
  .viewer__more { display: none; }
}
@media (max-width: 599px) {
  /* phones: the description of the section showing sits right under the
     picture and its arrows, above the list of sections, so it reads with the
     picture, not with the last section. Two lines, then More */
  .viewer__about { order: 3; padding: 6px var(--gut) 2px; }
  .viewer__desc { max-height: calc(2 * 1.55em); min-height: 0; }
  .viewer__more { margin-top: 0; }
  .viewer__more.is-off { display: none; }
  .viewer__secs { order: 4; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .pick, .pick__more { transition: none !important; animation: none !important; }
  .viewer, .viewer__print, .vround, .vround::before, .vthumb::before, .vthumb__ink, .vthumb__img img, .vsec__impact, .vsec__topic, .vcue, .vmark, .vclose span::after, .vcue__label > span::after, .need { transition: none !important; animation: none !important; }
  .viewer, .viewer__print.is-in { transform: none; }
  .vcue.is-hot .vmark, .vcue .vmark, .slot:hover .vmark, .print:hover .vmark { translate: none !important; }
}

@keyframes bar-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .top, .top__name { transition: none !important; animation: none !important; }
  .btn, .btn::before, .btn__wet, .link, .link > span, .pick::before, .field__box::before, .field__box::after,
  .link::after, .top__nav > a::after, .essay__go::after, .on-table a b::after, .essay h3 a, .essay__go span, .on-table a, .top__name::before { transition: none !important; }
  /* the bloom and the press still show, without anything moving */
  .btn::before, .btn:active::before, .link:hover > span[aria-hidden] { transform: none; }
  .gl .on-table a:hover > span, .gl .on-table a.is-hot > span, .gl .on-table a:active > span { translate: none; scale: none; rotate: none; }
}

/* (after the wide-screen rules, so it wins over them) */
@container (max-width: 560px) {
  .stats:has(> div:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones: the header is one compact row, the usual mobile pattern: the mark and
   name on the left, "Work with me" and a menu button on the right. The menu
   opens the section links on a sheet of glass under the bar. Docked, the same
   row stays, on glass. Without script the links simply show, as before. */
@media (max-width: 599px) {
  .js .top { flex-wrap: nowrap; gap: 8px; padding: 10px var(--gut) 10px; transition: background-color .25s, box-shadow .25s; }
  .js .top.is-stuck { transform: none; background: var(--glass); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim); }
  .js .top .top__name, .js .top.is-stuck .top__name { opacity: 1; pointer-events: auto; margin-right: auto; gap: 0 10px; }
  .js .top__name::before { grid-row: 1; width: 28px; height: 28px; }
  .js .top__name b { font-size: 1.5rem; }
  .js .top__nav { order: 1; width: auto; padding: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .js .top__nav > a:not(.btn) { display: none; }
  .js .top__menu {
    order: 2; display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .top__menu i, .top__menu i::before { display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--paper-ease); }
  .top__menu i { position: relative; transform: translateY(-3.5px); }
  .top__menu i::before { content: ""; position: absolute; left: 0; top: 7px; }
  .top.is-open .top__menu i { transform: rotate(45deg); }
  .top.is-open .top__menu i::before { transform: translateY(-7px) rotate(-90deg); }
  /* open: the links on a sheet of glass under the bar, the call to action last */
  .js .top.is-open .top__nav {
    position: absolute; top: calc(100% + 6px); left: var(--gut); right: var(--gut);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 16px; border-radius: 22px;
    background: rgba(252, 252, 251, .985); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: var(--glass-rim);
  }
  .js .top.is-open .top__nav > a:not(.btn) { display: flex; justify-content: flex-start; min-height: 48px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .js .top.is-open .top__nav > .btn { margin-top: 14px; align-self: flex-start; }
}
