/* site.css — the whole system. Every page loads this, then its own sheet
   where it has one (later files win at equal specificity). Reasoning:
   studies/plain-layout/README.md.

   - The page is drawn on a 1066px canvas: 1rem is 10 canvas px, 10px up to
     1066px wide, growing with the window to 13.5px at 1440, then fixed.
     Content is capped at 100rem (1350px) and centred, so a wider window
     gets wider margins, not a wider page. Size everything in rem, here and
     in every page sheet, so figures and app mocks scale with the page the
     way a screenshot would. Reading text takes a px floor, max(rem, px),
     so it doesn't drop to 13px between the phone rules and the 1066px
     canvas (studies/type-scale/README.md).
   - One size per text role: every text size comes from the --fs-* tokens
     below. The home hero, the brand and the footer email are the only
     sizes set outside them. App mocks inside figures keep the app's own
     sizes and colours.
   - One palette: the colour tokens below, plus each study's plate
     (--s-tint, --s-deep, --s-mark) and --accent, set per study further
     down. Page sheets use these, not new greys or hairlines.
   - A page sheet holds its study's one masthead variation and its figures.
     It doesn't restyle what this file already styles; if a study needs a
     new shared pattern, it goes here.
   - One sans (Instrument Sans) and one mono (IBM Plex Mono).
   - Colour has one job. Links take the accent: ink text, house-orange
     underline. Headings, kickers and labels are neutral. Study colour
     appears only where it is the work's own: card plates, a study's
     opening panel, its outcome numbers and its figures. */

:root {
  --ink: #17181a;
  --ink-2: #3a3c40;    /* body copy */
  --ink-3: #74777c;    /* secondary, labels */
  --line: #e4dfd7;     /* warm hairline */
  --orange: #ff4a00;   /* link underline */
  --orange-text: #c23a00; /* link hover text, 5.4:1 on white */
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gut: 3.33rem;
  --read: 70rem;       /* case-study reading column, 945px at 1440 */
  --wide: 88.8rem;     /* figures, 1200px at 1440 */
  --accent: var(--ink);
  --ease-quiet: cubic-bezier(0.3, 0, 0.05, 1);
  /* Text roles: one size per job, used by every sheet. Phone values are
     restated in the 760px block. */
  --fs-h1: 6.8rem;                 /* page and case-study titles */
  --fs-h1-beside: 4.9rem;          /* a case-study title set beside its artifact */
  --fs-opening: 3.9rem;            /* a case study's opening statement */
  --fs-h2: 4.2rem;                 /* section headings */
  --fs-h3: 2.5rem;                 /* sub-headings, work-card titles, taglines */
  --fs-number: 3.2rem;             /* outcome and research numbers */
  --fs-callout: 2.6rem;            /* the one sentence a section turns on: callouts, pull quotes */
  --fs-item: max(1.85rem, 20px);   /* the title of an item in a list or card */
  --fs-lede: max(1.85rem, 18px);   /* the paragraph under a page title, testimonials */
  --fs-body: max(1.7rem, 17px);    /* prose */
  --fs-ui: 1.55rem;                /* nav, buttons, card links, controls */
  --fs-small: max(1.5rem, 15px);   /* secondary text: cards, lists, tables, fact values */
  --fs-caption: max(1.4rem, 14px); /* captions, legends, text inside figures */
  --fs-label: 1.3rem;              /* mono labels, kickers, meta lines, figure heads */
  --fs-code: max(1.25rem, 14px);   /* prompts, commands, transcripts */
  --fs-xs: 1.1rem;                 /* index numerals, tags, in-figure column heads */
}

html { font-size: clamp(10px, 100vw / 106.667, 13.5px); -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 1.5rem; line-height: 1.4;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* Faint dots every 38px whose darkest pixel is about 240 on white. */
  background-color: #fff;
  background-image: radial-gradient(circle, #f0eeea 0.08rem, transparent 0.12rem);
  background-size: 2.83rem 2.83rem;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gut), 100rem); margin-inline: auto; }

/* ---------- Links ----------
   Content links (in running text, the hero line, a card's "Read case
   study", the footer email) are ink with the orange underline. Navigation
   (header, footer list, the Résumé button) stays plain ink. On hover the
   underline thickens and rises toward the text; a card's "Read case study"
   carries an arrow that nudges forward. */
.ln, .prose a, .go > span:first-child {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 0.15rem; text-underline-offset: 0.3rem;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease, text-underline-offset 0.2s ease;
}
.ln:hover, .prose a:hover, a.card:hover .go > span:first-child { color: var(--orange-text); text-decoration-thickness: 0.3rem; text-underline-offset: 0.18rem; }
/* inline-block keeps the arrow out of the underline; the second content
   line gives it empty alt text where supported. */
.go > span:first-child::after {
  content: "\2192"; content: "\2192" / ""; display: inline-block; margin-left: 0.6rem;
  transition: transform 0.25s var(--ease-quiet);
}
a.card:hover .go > span:first-child::after { transform: translateX(0.5rem); }

a:focus-visible, button:focus-visible, summary:focus-visible { outline: 0.2rem solid var(--ink); outline-offset: 0.3rem; border-radius: 0.3rem; }
a.card:focus-visible { outline-offset: 0.4rem; border-radius: 1.6rem; }
a.btn:focus-visible { border-radius: 1.2rem; }

/* ---------- Header ---------- */
/* Sticky, as the Workbench header was: transparent at rest, frosted past
   80px, slid away while scrolling down, back on scroll up (the partial's
   script sets is-scrolled and is-hidden). The padding moves from top-only
   to even when frosted; the total is the same, so nothing below shifts. */
.top {
  position: sticky; top: 0; z-index: 50; padding-top: 2.7rem;
  transition: transform 280ms var(--ease-quiet), background-color 300ms var(--ease-quiet), box-shadow 300ms var(--ease-quiet);
}
.top.is-scrolled {
  padding: 1.35rem 0; background-color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.top.is-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .top.is-hidden { transform: none; } }
html { scroll-padding-top: 9.6rem; }
.top-in { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 0.9rem; font-size: 1.8rem; font-weight: 650; letter-spacing: -0.025em; }
.brand img { width: 2.8rem; height: 2.8rem; border-radius: 50%; object-fit: cover; }
.top nav { display: flex; align-items: center; gap: 2.4rem; margin-left: auto; font-size: var(--fs-ui); letter-spacing: -0.01em; }
.top-in > .resume-link { margin-left: 2.4rem; font-size: var(--fs-ui); letter-spacing: -0.01em; }
.top .resume-link:hover,
.top nav a:hover,
.top nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.3rem; }
.btn { background: var(--ink); color: #fff; font-weight: 500; border-radius: 1rem; padding: 0.9rem 1.8rem; }
.btn:hover { background: #000; }

/* ---------- Footer ---------- */
.foot { margin-top: 9.6rem; padding: 4rem 0 4.8rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 2.4rem; }
.foot-ask { font-size: var(--fs-body); color: var(--ink-2); }
.foot-mail {
  display: inline-block; margin-top: 0.4rem; font-size: 3.4rem; font-weight: 650; letter-spacing: -0.03em;
  text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 0.2rem; text-underline-offset: 0.45rem;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease, text-underline-offset 0.2s ease;
}
.foot-mail:hover { color: var(--orange-text); text-decoration-thickness: 0.4rem; text-underline-offset: 0.25rem; }
.foot nav { display: flex; gap: 2.4rem; font-size: var(--fs-ui); color: var(--ink-2); }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3rem; }
.foot small { grid-column: 1 / -1; font-size: var(--fs-caption); color: var(--ink-3); }

/* ---------- Sections ---------- */
.block { padding-top: 7.2rem; }
.label { font: 600 var(--fs-label)/1.35 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2.6rem; }

/* ---------- Study plates ----------
   Each study's tint, dot and gradient: the card art and the study's
   opening panel. On a card the class sits on the card; on a study page
   the tokens come from <body data-study>. */
.s-colorpages, body[data-study="colorpages"]               { --s-tint: #f8f1e8; --s-deep: #f3e4d6; --s-mark: rgba(216, 37, 107, 0.2); --accent: #d8256b; }
.s-agentic, body[data-study="agentic-pages"]               { --s-tint: #f1f0f8; --s-deep: #e4e1f4; --s-mark: rgba(75, 63, 196, 0.22); --accent: #4b3fc4; }
.s-chatkg, body[data-study="chatkg"]                     { --s-tint: #f0edf6; --s-deep: #e6e2ef; --s-mark: rgba(83, 71, 133, 0.12); --accent: #5755ef; }
.s-singlecomm, body[data-study="guided-interactions"]      { --s-tint: #eef2f7; --s-deep: #dfe7f2; --s-mark: rgba(28, 95, 190, 0.24); --accent: #1c5fbe; }
.s-smarthome, body[data-study="smart-home-notifications"]  { --s-tint: #ecf4f8; --s-deep: #dcebf2; --s-mark: rgba(10, 119, 170, 0.22); --accent: #0a77aa; }
/* Design leadership is about people, not a product: a neutral plate and ink accent. */
body[data-study="design-leadership"]                       { --s-tint: #f3f2ef; --s-deep: #e9e7e2; --s-mark: rgba(23, 24, 26, 0.12); }

/* ---------- Work cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.3rem; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: 1.4rem; padding: 0.8rem;
  box-shadow: 0 0 0 1px rgba(23, 24, 26, 0.04), 0 0.4rem 0.6rem rgba(23, 24, 26, 0.07);
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 0 0 1px rgba(23, 24, 26, 0.05), 0 0.8rem 1.8rem rgba(23, 24, 26, 0.1); }
.art {
  aspect-ratio: 16 / 10; border-radius: 0.8rem; overflow: hidden; padding: 2.8rem 2.8rem 0;
  background-color: var(--s-tint, #f3f2ef);
  background-image: radial-gradient(var(--s-mark, rgba(23, 24, 26, 0.12)) 0.1rem, transparent 0.12rem), linear-gradient(160deg, var(--s-tint, #f3f2ef) 30%, var(--s-deep, #e9e7e2));
  background-size: 1.6rem 1.6rem, 100% 100%; background-position: 0.8rem 0.8rem, 0 0;
}
.art img { width: 100%; height: auto; filter: drop-shadow(0 1rem 2rem rgba(23, 24, 26, 0.14)); transition: transform 0.45s var(--ease-quiet); }
/* On hover the artifact lifts a little out of its plate. */
a.card:hover .art img { transform: translateY(-0.6rem); }
@media (prefers-reduced-motion: reduce) {
  a.card:hover .art img, a.card:hover .go > span:first-child::after { transform: none; }
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 2rem 1.6rem 1.8rem; }
.kicker { font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: -0.01em; color: var(--ink-3); text-wrap: balance; }
.kicker .sep { margin: 0 0.6rem; }
.card :is(h2, h3) { margin-top: 0.8rem; font-size: var(--fs-h3); line-height: 1.24; font-weight: 550; letter-spacing: -0.025em; text-wrap: pretty; }
.card p.body { margin-top: 1rem; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.go { margin-top: auto; padding-top: 1.4rem; display: flex; gap: 2.4rem; font-size: var(--fs-ui); font-weight: 600; letter-spacing: -0.01em; }
.go .muted { font-weight: 400; color: var(--ink-3); }

/* ---------- Page heading (listing, About, My Tools) ---------- */
.page-head { padding: 10.4rem 0 0; }
.page-head h1 { font-size: var(--fs-h1); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; text-wrap: balance; max-width: 76rem; }
.page-head p { margin-top: 2.4rem; font-size: var(--fs-lede); line-height: 1.42; color: var(--ink-2); max-width: 58rem; text-wrap: pretty; }
.page-head p + p { margin-top: 1.2rem; }

.page-head .meta { margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 0 0.9rem; font: 500 var(--fs-label)/1.6 var(--mono); letter-spacing: -0.02em; color: var(--ink-3); }

/* ---------- About: prose beside each section's photos ---------- */
.about-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6.4rem; align-items: start; }
.about-prose { max-width: 64ch; }
.about-prose p { font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.about-prose p + p { margin-top: 1.4rem; }
/* Each section's three photos as tilted polaroids, overlapping in a
   loose pile; hovering one straightens it, brings it to the front and
   restores its colour. */
.about-photos { display: flex; flex-direction: column; }
.polaroid {
  --tilt: -4deg; position: relative; background: #fff; padding: 1.4rem 1.4rem 2.2rem; border-radius: 0.4rem;
  box-shadow: 0 1.8rem 3.6rem -1rem rgba(23, 24, 26, 0.28), 0 0.4rem 1rem -0.2rem rgba(23, 24, 26, 0.12);
  transform: rotate(var(--tilt)); transition: transform 500ms var(--ease-quiet);
}
.polaroid-photo { aspect-ratio: 1 / 1; overflow: hidden; background: rgba(23, 24, 26, 0.04); }
.polaroid img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: filter 500ms var(--ease-quiet); }
.polaroid figcaption { margin-top: 1.4rem; text-align: center; font: 500 var(--fs-label)/1.4 var(--mono); letter-spacing: 0.04em; color: var(--ink-3); }
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.polaroid:hover img { filter: grayscale(0%); }
.about-photos > .polaroid:nth-child(1) { width: 52%; align-self: flex-end; z-index: 1; --tilt: -2deg; }
.about-photos > .polaroid:nth-child(2) { width: 50%; align-self: flex-start; margin-top: -36%; z-index: 3; --tilt: 1.5deg; }
.about-photos > .polaroid:nth-child(3) { width: 48%; align-self: flex-end; margin-top: -32%; margin-right: 6%; z-index: 2; --tilt: -1deg; }
.about-photos > .polaroid:hover { z-index: 10; }

/* ---------- Skill pages (/tools/spike/, /tools/patchwork/) ----------
   Layout and type, in rem like every other page. The drawn parts (Spike's
   rail and mocks, the prompt and command boxes, Patchwork's wireframe)
   are in skills.css and patchwork.css. Each page keeps the layout its
   skill's output suggests: Spike pins its identity beside a four-step
   rail; Patchwork leads with its example. */
.sk-id .label { margin-bottom: 1.6rem; }
.sk-name { font-size: var(--fs-h1); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; }
.sk-tag { margin-top: 1.4rem; max-width: 32ch; font-size: var(--fs-h3); line-height: 1.24; font-weight: 550; letter-spacing: -0.025em; text-wrap: pretty; }
.sk-lede { margin-top: 1.4rem; max-width: 58rem; font-size: var(--fs-lede); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sk-tag + .sk-lede { margin-top: 2.4rem; }
.sk-strap { margin-top: 2rem; font-size: var(--fs-body); line-height: 1.45; font-weight: 600; }
.sk-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem 2.8rem; margin-top: 2.8rem; font-size: var(--fs-ui); }
.sk-ctas .ln { font-weight: 600; letter-spacing: -0.01em; }
.sk-code { font-family: var(--mono); font-size: 0.9em; color: var(--ink); }

.sp-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 7.2rem; align-items: start; padding-top: 10.4rem; }
.sp-pin { position: sticky; top: 9.6rem; }
.sp-step h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.sp-step-d { margin-top: 1.4rem; max-width: 52ch; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sp-step-d + .sp-step-d { margin-top: 1.2rem; }
.sp-step > :is(div, pre):not(.sp-out) { margin-top: 2.4rem; }

.pw-mast { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.2rem 7.2rem; align-items: end; padding-top: 10.4rem; }
.pw-mast .sk-lede:first-child { margin-top: 0; }
.pw-demo, .pw-part { margin-top: 8rem; padding-top: 5.6rem; border-top: 1px solid var(--line); }
.pw-part { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.2rem 7.2rem; align-items: start; }
.pw-demo h2, .pw-part h2 { margin-top: 1.4rem; font-size: var(--fs-h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.pw-use, .pw-d { margin-top: 1.4rem; max-width: 56ch; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.pw-demo .pw-use { margin-bottom: 3.2rem; }

.sk-install { margin-top: 10.4rem; padding-top: 5.6rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem 7.2rem; align-items: start; }
.sk-install h2 { font-size: var(--fs-h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.sk-install p { margin-top: 1.4rem; max-width: 52ch; font-size: var(--fs-body); line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.sk-install .sk-install-r > * + * { margin-top: 1.6rem; }
.sk-install-r p { font-size: var(--fs-small); }

@media (max-width: 1000px) {
  .sp-layout, .pw-mast, .pw-part, .sk-install { grid-template-columns: minmax(0, 1fr); gap: 4.8rem; }
  .pw-part, .sk-install { gap: 2.4rem; }
  .sp-pin { position: static; }
}
@media (max-width: 760px) {
  .sp-layout, .pw-mast { padding-top: 5.6rem; }
  .sk-name { line-height: 1.06; }
  .pw-demo, .pw-part, .sk-install { margin-top: 5.6rem; padding-top: 4rem; }
}

/* ---------- Home ---------- */
.hero { padding: 10.4rem 0 2.4rem; }
.hero > div { max-width: 76rem; }
.hero h1 { font-size: 9.2rem; line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; }
.hero p { margin-top: 2.4rem; font-size: var(--fs-lede); line-height: 1.42; letter-spacing: -0.005em; max-width: 58rem; text-wrap: pretty; }
.hero .meta { margin-top: 2.6rem; font: 500 var(--fs-label)/1.6 var(--mono); letter-spacing: -0.02em; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 0 0.9rem; }
.hero .meta > span:not(:first-child) { color: var(--ink-3); }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 5.6rem; align-items: start; }
.how h3 { font-size: var(--fs-h3); line-height: 1.24; font-weight: 600; letter-spacing: -0.025em; }
.how p { margin-top: 1.4rem; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-2); max-width: 46rem; }
.session { background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; overflow: hidden; }
.session-head { display: flex; padding: 1.2rem 2rem; border-bottom: 1px solid var(--line); font: 500 var(--fs-xs)/1.4 var(--mono); color: var(--ink-3); }
.session pre { margin: 0; padding: 1.8rem 2rem 2.2rem; font: 400 var(--fs-code)/1.65 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.session .p { color: var(--ink-3); font-weight: 600; }
.session .c { color: var(--ink); font-weight: 600; }
.session .f { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 0.25rem; }
.session .h { color: var(--ink); font-weight: 500; }
.session .a { color: var(--ink-3); }
.session-head .replay { margin-left: auto; padding: 0; border: 0; background: none; font: inherit; color: var(--ink-3); cursor: pointer; }
.session-head .replay:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.25rem; }
.session .caret { color: var(--ink); animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .session .caret { animation: none; } }
.session-fig figcaption { margin-top: 1.2rem; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-3); }

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 2.4rem; background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; padding: 2.2rem 2.4rem 2.4rem; }
.quote blockquote { font-size: var(--fs-lede); line-height: 1.45; letter-spacing: -0.015em; text-wrap: pretty; }
.who { display: flex; align-items: center; gap: 1.1rem; }
.who img { width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; }
.who b { display: block; font-size: var(--fs-small); line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.who span span { display: block; font-size: var(--fs-caption); line-height: 1.35; color: var(--ink-3); }

/* ======================================================================
   Case study. An inset panel on the study's plate with the title and the
   artifact, then one reading column with figures running wider.
   Each study varies one thing about the panel (its variant rules are at
   the end of this block); the masthead-variety rule still holds.
   ====================================================================== */
.case-hero {
  width: min(100% - 4.2rem, 102.4rem); margin: 2.4rem auto 0; border-radius: 2.1rem; overflow: hidden; padding-top: 8rem; text-align: center;
  background-color: var(--s-tint);
  background-image: radial-gradient(var(--s-mark) 0.1rem, transparent 0.12rem), linear-gradient(var(--s-tint) 45%, var(--s-deep));
  background-size: 1.8rem 1.8rem, 100% 100%; background-position: 0.9rem 0.9rem, 0 0;
}
.case-hero-in { width: min(var(--wide), 100% - 4rem); margin-inline: auto; }
.case-hero .label { color: var(--ink-2); margin-bottom: 0; }
.case-hero h1 {
  margin: 1.8rem auto 5.6rem; max-width: 80rem;
  font-size: var(--fs-h1); line-height: 1.02; font-weight: 700; letter-spacing: -0.04em; text-wrap: balance;
}
.case-hero video, .case-hero .hero-art {
  display: block; width: 100%; height: auto;
  border-radius: 1.2rem 1.2rem 0 0; background: #fff;
  box-shadow: 0 0 0 1px rgba(23, 24, 26, 0.06), 0 2rem 5rem rgba(23, 24, 26, 0.14);
}

main { overflow-x: clip; }   /* wide figures and bands use 100vw, which counts a classic scrollbar */
.case-main { width: min(var(--read), 100% - 2 * var(--gut)); margin-inline: auto; }
.lead { margin-top: 9.6rem; font-size: var(--fs-opening); line-height: 1.12; font-weight: 500; letter-spacing: -0.03em; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; margin: 4rem 0 0; }
.facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts dt { font: 600 var(--fs-label)/1.35 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-3); margin-bottom: 0.8rem; }
.facts dd { margin: 0; font-size: var(--fs-small); line-height: 1.4; letter-spacing: -0.01em; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 4rem; }
/* Three results run at figure width so each value holds one line. */
.metrics.three { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(var(--wide), 100vw - 2 * var(--gut)); margin: 4.8rem 0 0 50%; transform: translateX(-50%); }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 1.4rem; padding: 2rem 2.2rem 2.2rem; }
.metric b { display: block; white-space: nowrap; font-size: var(--fs-number); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; color: var(--accent); }
.metric span { display: block; margin-top: 1rem; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }

.sec { margin-top: 10.4rem; }
/* Headings style every h2 and h3 in a section. Prose (paragraphs, lists,
   bold) reaches only the reading column's own text: a section's direct
   children, or the children of a .cs-prose wrapper when a study sets
   prose inside a layout block. Figures and app mocks start clean, so their
   sheets don't have to undo prose. The rules sit at one class (:where),
   so a study's own single-class rule still wins. */
.sec-k, .sec .sec-k { font: 600 var(--fs-label)/1.35 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; color: var(--ink-3); }
.sec :where(h2) { margin-top: 1.4rem; font-size: var(--fs-h2); line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.sec :where(h3) { margin-top: 4.8rem; font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; }
.sec > :where(p), .cs-prose > :where(p), .sec > :where(ul, ol) > :where(li), .cs-prose > :where(ul, ol) > :where(li) { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
:where(.sec-k, .sec h2, .sec h3) + p { margin-top: 1.6rem; }
:where(.sec, .cs-prose) > p + :where(p) { margin-top: 1.6rem; }
.sec > :where(ul, ol), .cs-prose > :where(ul, ol) { padding-left: 1.3em; margin-top: 1.4rem; }
:where(.sec, .cs-prose) > :where(ul, ol) > li + :where(li) { margin-top: 0.6rem; }
.sec .fig + p { margin-top: 3.2rem; }
:where(.sec, .cs-prose) > :where(ul, ol) + p { margin-top: 2.4rem; }
.sec > :where(p, ul, ol) :where(strong), .cs-prose > :where(p, ul, ol) :where(strong) { color: var(--ink); font-weight: 600; }
/* A study's own blocks (its sheet's tables, attempt lists, ratios) were
   spaced by a flex gap on the old section wrapper; here each takes that
   space as a top margin, and a paragraph after one gets room too. The
   plain components below set their own. */
.sec > :is(div, dl, aside, details, table, figure):not(:first-child):not(.stats, .metrics, .cards, .callout, .fixes, .fig, .pull, .shots, .pair) { margin-top: 3.2rem; }
.sec > :is(div, dl, aside, details, table, figure):not(.fig, .pull, .shots) + p { margin-top: 2.4rem; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.6rem 1.6rem 1.8rem; }
.stat b { display: block; font-size: var(--fs-number); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; }
.stat span { display: block; margin-top: 1rem; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }

.pull { margin-top: 4.8rem; }
.pull blockquote { font-size: var(--fs-callout); line-height: 1.25; font-weight: 500; letter-spacing: -0.025em; text-wrap: pretty; }
.pull blockquote::before { content: "\201C"; }
.pull blockquote::after { content: "\201D"; }
.pull cite { display: block; margin-top: 1.2rem; font: 500 var(--fs-label)/1.4 var(--mono); font-style: normal; letter-spacing: -0.01em; color: var(--ink-3); }

/* Figures run wider than the reading column, centred on the page. */
.fig { width: min(var(--wide), 100vw - 2 * var(--gut)); margin: 4.8rem 0 0 50%; transform: translateX(-50%); }
.sec .fig-head { display: flex; flex-wrap: wrap; gap: 0 1.2rem; margin: 0 0 1.2rem; font: 500 var(--fs-label)/1.5 var(--mono); letter-spacing: -0.01em; color: var(--ink); }
.fig-head span { color: var(--ink-3); }
.fig-plate { background: #fff; border: 1px solid var(--line); border-radius: 1.6rem; padding: 3.2rem; }
.fig-plate.flush { padding: 0; overflow: hidden; }
.fig-plate svg { display: block; width: 100%; height: auto; }
.fig-plate.narrow svg { max-width: 64rem; margin-inline: auto; }
.fig figcaption { margin: 1.4rem auto 0; max-width: var(--read); text-align: center; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-3); text-wrap: balance; }
.sec .keys-title { width: min(var(--read), 100%); margin: 2.8rem auto 0; font: 600 var(--fs-label)/1.35 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); }
.sec .keys-title + .keys { margin-top: 1.2rem; }
.keys { width: min(var(--read), 100%); margin: 2.8rem auto 0; padding: 0; list-style: none; display: grid; gap: 1.6rem; }
.keys li { display: grid; grid-template-columns: 5.2rem 1fr; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-2); }
.keys li b { font: 600 var(--fs-xs)/1.75 var(--mono); color: var(--accent); }
.sec .keys { padding-left: 0; margin-top: 2.8rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.pair img { border-radius: 1.2rem; border: 1px solid var(--line); width: 100%; height: 100%; object-fit: contain; background: #fff; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2.4rem; }
.cards > div { background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.8rem 2rem 2rem; }
.cards :is(h3, h4) { margin: 0; font-size: var(--fs-item); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.sec .cards p { margin-top: 0.6rem; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }

.fixes { margin-top: 2.4rem; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.sec .fixes { padding-left: 0; margin-top: 2.4rem; }
.fixes > li { padding: 2.4rem 0; border-bottom: 1px solid var(--line); }
.fixes :is(h3, h4) { margin: 0; font-size: var(--fs-item); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.fixes q { display: block; margin-top: 0.8rem; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); quotes: none; }
.fixes > li > :where(p) { margin-top: 1rem; font-size: var(--fs-small); }

/* Callout: one sentence the section turns on, set larger, on an ink rule. */
.callout { margin-top: 4rem; padding: 0.2rem 0 0.2rem 2.4rem; border-left: 0.3rem solid var(--ink); }
.sec .callout p { font-size: var(--fs-callout); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.sec .callout strong { font-weight: 500; }
.callout + p, .sec .callout + p { margin-top: 4rem; }

.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.2rem 2.4rem; }
.shots figure img { border-radius: 1.2rem; border: 1px solid var(--line); background: #fff; width: 100%; aspect-ratio: 1016 / 775; object-fit: cover; object-position: top left; }
.shots figcaption { margin-top: 1.2rem; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-3); }
.shots figcaption b { color: var(--ink); font-weight: 600; }

/* Inspect: a product screenshot (in .shots, .pair or a flush figure plate)
   opens at full size with its caption, growing from where it sits. site.js
   marks the images .zoomable and builds the one .viewer dialog. */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 0.2rem solid var(--ink); outline-offset: 0.3rem; }
.viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent;
  display: none; place-items: center; cursor: zoom-out;
}
.viewer[open] { display: grid; }
.viewer::backdrop { background: rgba(255, 255, 255, 0.94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.viewer figure { display: grid; justify-items: center; gap: 1.4rem; max-width: 100%; padding: 3.2rem; }
.viewer img {
  width: auto; height: auto; max-width: min(140rem, 100vw - 6.4rem); max-height: calc(100dvh - 14rem);
  border-radius: 1.2rem; border: 1px solid var(--line); background: #fff; box-shadow: 0 2rem 5rem rgba(23, 24, 26, 0.14);
}
.viewer figcaption { max-width: 64rem; text-align: center; font-size: var(--fs-caption); line-height: 1.5; color: var(--ink-3); text-wrap: balance; }
.viewer figcaption b { color: var(--ink); font-weight: 600; }
.viewer-close {
  position: fixed; top: 2rem; right: 2.4rem; padding: 0.4rem 0; border: 0; background: none; cursor: pointer;
  font: 600 var(--fs-label)/1.35 var(--mono); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3);
}
.viewer-close:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.3rem; }
::view-transition-group(inspect) { animation-duration: 340ms; animation-timing-function: var(--ease-quiet); }
::view-transition-old(inspect), ::view-transition-new(inspect) { height: 100%; object-fit: cover; object-position: top left; }

/* Contents: every chapter's heading, under the overview. */
.toc { margin-top: 8rem; }
.toc ol { list-style: none; margin: 1.6rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.toc a, .prose .toc a { text-decoration: none; color: var(--ink); }
.toc a { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr) auto; gap: 1.6rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.toc-num { font: 500 var(--fs-label)/1.4 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.toc-name { font-size: var(--fs-item); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; }
.toc-act { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.toc a:hover .toc-name { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 0.15rem; text-underline-offset: 0.3rem; }

/* Chapter rail: numerals in the left margin once the first chapter
   reaches the top; the name shows on hover. Only where the margin clears
   the figures (site.js sets .is-ready and the current chapter). The rail's
   hairline inks in beside each chapter as far as the reader has got
   through it (site.js sets --done, 0 to 1), and a finished chapter keeps a
   darker numeral than an unread one. */
.chapter-rail { display: none; }
@media (min-width: 1280px) {
  .chapter-rail { display: block; position: fixed; top: 50%; left: 2.4rem; transform: translateY(-50%); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
  .chapter-rail.is-ready { opacity: 1; pointer-events: auto; }
  .chapter-rail ol { list-style: none; margin: 0; padding: 0 0 0 1.2rem; display: grid; gap: 0.9rem; border-left: 1px solid var(--line); }
  .chapter-rail li { position: relative; }
  .chapter-rail a { display: flex; font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: 0.06em; color: #a3a5a9; font-variant-numeric: tabular-nums; }
  .chapter-rail a:hover, .chapter-rail a.is-current { color: var(--ink); }
  .chapter-rail a.is-current::before { content: ""; position: absolute; left: -1.3rem; top: 0.3rem; width: 0.2rem; height: 0.8rem; background: var(--ink); }
  .chapter-rail li::after {
    content: ""; position: absolute; left: calc(-1.2rem - 1px); top: -0.45rem; width: 1px; height: calc(100% + 0.9rem);
    background: var(--ink); transform: scaleY(var(--done, 0)); transform-origin: top;
  }
  .chapter-rail li:first-child::after { top: 0; height: calc(100% + 0.45rem); }
  .chapter-rail li:last-child::after { height: calc(100% + 0.45rem); }
  .chapter-rail li.is-done a:not(.is-current) { color: var(--ink-3); }
  .chapter-rail .rail-name {
    position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 0.8rem; white-space: nowrap;
    background: #fff; border: 1px solid var(--line); border-radius: 0.4rem; padding: 0.4rem 0.8rem; color: var(--ink);
    opacity: 0; pointer-events: none; box-shadow: 0 0.6rem 1.6rem -1rem rgba(23, 24, 26, 0.5); transition: opacity 0.15s ease;
  }
  .chapter-rail a:hover .rail-name, .chapter-rail a:focus-visible .rail-name { opacity: 1; }
}

.next { width: min(var(--wide), 100% - 2 * var(--gut)); margin: 12rem auto 0; }
.next .card { flex-direction: row; }
.next .card .art { flex: 0 0 50%; }
.next .card-body { justify-content: center; padding: 2.4rem 3.2rem; }
.next .go { margin-top: 0; padding-top: 2.4rem; }

/* Card to masthead: following a work card, its plate grows into the
   study's opening panel, and shrinks back into the card on the way out.
   site.js names the two plates per navigation and skips the transition
   when either page has none, so every other link loads as it always has.
   The old page fades out before the new one fades in, so the two pages'
   text never sits doubled. Browsers without cross-document view
   transitions navigate normally. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-group(plate) { animation-duration: 460ms; animation-timing-function: var(--ease-quiet); overflow: clip; border-radius: 2.1rem; }
::view-transition-old(plate), ::view-transition-new(plate) { height: 100%; object-fit: cover; object-position: top; }
::view-transition-old(plate) { animation: 180ms ease-out both vt-out; }
::view-transition-new(plate) { animation: 300ms 120ms ease-out both vt-in; }
::view-transition-old(root) { animation: 160ms ease-out both vt-out; }
::view-transition-new(root) { animation: 240ms 140ms ease-out both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* Figure strokes for the flowchart and swim-lane SVGs. */
.cs-ghost-box { fill: #f4f5f4; stroke: #a3a5a9; stroke-width: 1; }
.cs-ghost-mini { fill: #fff; stroke: #a3a5a9; stroke-width: 1; }
.cs-ghost-panel { fill: none; stroke: rgba(23, 24, 26, 0.08); stroke-width: 1; }
.cs-ghost-line { stroke: #a3a5a9; stroke-width: 1; fill: none; opacity: 0.55; }
.cs-ghost-dash { stroke: #a3a5a9; stroke-width: 1; fill: none; opacity: 0.55; stroke-dasharray: 3 4; }
.cs-ghost-mark { fill: var(--accent); }
.cs-ghost-mark-num { font-family: var(--mono); font-size: 10px; font-weight: 600; fill: #fff; text-anchor: middle; }
.cs-ghost-label { font-family: var(--mono); font-size: 8px; fill: #6b6e73; text-anchor: middle; }
.cs-lane-band { fill: color-mix(in srgb, var(--accent) 4.5%, transparent); }
.cs-lane-rule { stroke: rgba(23, 24, 26, 0.08); stroke-width: 1; fill: none; }
.cs-lane-axis-rule { stroke: color-mix(in srgb, var(--accent) 20%, transparent); stroke-width: 1; fill: none; }
.cs-lane-node { fill: #fff; stroke: #a3a5a9; stroke-width: 1.1; }
.cs-lane-name { font-family: var(--sans); font-size: 10.5px; font-weight: 500; fill: var(--ink); text-anchor: middle; }
.cs-lane-num { font-family: var(--mono); font-size: 9.5px; font-weight: 600; fill: #6b6e73; }
.cs-lane-label { font-family: var(--mono); font-size: 9.5px; fill: #6b6e73; letter-spacing: 0.08em; text-anchor: end; }
.cs-lane-wire { fill: none; stroke: #a3a5a9; stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.8; }
.cs-lane-arrow { fill: #a3a5a9; }
.cs-lane-axis { font-family: var(--mono); font-size: 9.5px; fill: #a3a5a9; letter-spacing: 0.08em; }
.cs-lane-loop { fill: none; stroke: var(--accent); stroke-width: 1.3; }
.cs-lane-loop-arrow { fill: var(--accent); }

/* ---------- Study opening variants: one each ----------
   Singlecomm: text beside the builder, and the builder runs to the
   panel's right edge, square there, like a canvas that keeps going. It
   stops at the panel edge: the loop's key action is near the video's
   right side, so a bleed would crop it. */
body[data-study="guided-interactions"] .case-hero { text-align: left; padding-top: 0; }
body[data-study="guided-interactions"] .case-hero-in {
  width: auto; margin: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.8rem; align-items: center;
  padding: 6.4rem 0 6.4rem 5.6rem;
}
body[data-study="guided-interactions"] .case-hero h1 { margin: 1.8rem 0 0; font-size: var(--fs-h1-beside); line-height: 1.04; }
body[data-study="guided-interactions"] .case-hero video { border-radius: 1.2rem 0 0 1.2rem; }
/* Design leadership: the one study about people rather than a product
   sets its title in Instrument Serif, the sans's sibling (loaded by that
   page only). */
body[data-study="design-leadership"] .case-hero h1 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 0.98; letter-spacing: -0.015em; }

/* ---------- Narrower than the canvas (1rem stays 10px) ---------- */
@media (max-width: 1000px) {
  .how { grid-template-columns: 1fr; gap: 3.2rem; }
  .how p { max-width: 62rem; }
  .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-row { grid-template-columns: 1fr; gap: 3.2rem; }
  body[data-study="guided-interactions"] .case-hero-in { grid-template-columns: minmax(0, 1fr); gap: 4rem; padding: 5.6rem 0 0 4rem; }
  body[data-study="guided-interactions"] .case-hero video { border-radius: 1.2rem 0 0 0; }
}
@media (max-width: 760px) {
  :root {
    --gut: 2rem;
    --fs-h1: 4.4rem; --fs-h2: 3.2rem; --fs-h3: 2.35rem; --fs-number: 2.8rem; --fs-callout: 2.3rem;
    --fs-lede: 1.85rem; --fs-body: 1.85rem; --fs-ui: 1.6rem; --fs-small: 1.6rem; --fs-caption: 1.5rem;
    --fs-h1-beside: 4.2rem; --fs-opening: 2.85rem;
  }
  body { font-size: 1.6rem; }
  .top { padding-top: 1.8rem; }
  .brand { font-size: 1.7rem; }
  /* Name and Résumé on the first row, the links on a second: all four
     don't fit beside the name at phone widths. */
  .top.is-scrolled { padding: 0.9rem 0; }
  html { scroll-padding-top: 12rem; }
  .top-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 1.6rem; }
  .top-in > .resume-link { grid-column: 2; grid-row: 1; margin-left: 0; }
  .top nav { grid-column: 1 / -1; margin-left: 0; gap: 2.4rem; }
  .foot { grid-template-columns: 1fr; margin-top: 7.2rem; }
  .foot nav { flex-wrap: wrap; gap: 1.2rem 2rem; }
  .foot-mail { font-size: 3rem; }
  .block { padding-top: 5.6rem; }
  .label { margin-bottom: 2rem; }

  .grid { grid-template-columns: 1fr; gap: 2rem; }
  .art { padding: 2rem 2rem 0; }
  .card-body { padding: 1.8rem 1.2rem 1.4rem; }

  .hero { padding: 5.6rem 0 0; }
  .hero h1 { font-size: 4.4rem; line-height: 1.06; }
  .page-head { padding-top: 5.6rem; }
  .page-head h1 { line-height: 1.06; }
  .page-head p { margin-top: 2rem; line-height: 1.5; }
  .about-photos { gap: 2.4rem; }
  .about-photos > .polaroid:nth-child(n) { width: 100%; align-self: stretch; margin: 0; }
  .hero p { margin-top: 2rem; line-height: 1.5; }
  .hero .meta { margin-top: 2rem; }
  /* The role takes its own line so no separator is left hanging at a wrap. */
  .hero .meta > span:first-child { flex-basis: 100%; }
  .hero .meta > span:nth-child(2) { display: none; }
  .quotes { grid-template-columns: 1fr; gap: 1.2rem; }
  .session pre { padding: 1.6rem 1.6rem 2rem; }

  .case-hero { width: calc(100% - 1.6rem); margin: 1.6rem auto 0; border-radius: 1.6rem; padding-top: 4.8rem; }
  .case-hero-in { width: calc(100% - 2.4rem); }
  .case-hero h1 { margin-bottom: 3.2rem; }
  .case-hero video, .case-hero .hero-art { border-radius: 0.8rem 0.8rem 0 0; }
  body[data-study="guided-interactions"] .case-hero-in { width: auto; padding: 4.8rem 0 0 2rem; gap: 3.2rem; }
  body[data-study="guided-interactions"] .case-hero video { border-radius: 0.8rem 0 0 0; }
  .lead { margin-top: 5.6rem; line-height: 1.18; }
  .facts { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .facts.three { grid-template-columns: 1fr; gap: 1.6rem; }
  .metrics, .metrics.three, .stats, .cards, .shots, .pair { grid-template-columns: 1fr; }
  .toc a { grid-template-columns: 3.2rem minmax(0, 1fr); gap: 0.4rem 1.2rem; padding: 1.2rem 0; }
  .toc-act { grid-column: 2; text-align: left; }
  .toc-act:empty { display: none; }
  .sec { margin-top: 7.2rem; }
  .sec :where(h3) { margin-top: 4rem; }
  .callout { padding-left: 1.6rem; }
  .fig-plate { padding: 1.4rem; }
  .cs-ghost-label { display: none; }
  .next .card { flex-direction: column; }
  .next .card-body { padding: 2rem 1.2rem 1.6rem; }
}
