/* The case studies' look (C): the meadow. Loaded after /style.css; overrides it, never forks it. What only one study needs
   lives beside it, after this file (assets/work/<slug>/<slug>.css). */
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 300; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/atkinson-hyperlegible-next-latin-400-italic.woff2) format("woff2"); }

@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 300; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 600; font-display: swap; src: url(/assets/fonts/ibm-plex-serif-latin-600-italic.woff2) format("woff2"); }

/* ---- tokens: the meadow's, light then dark ---- */
:root {
  --u: 4px;
  --font-display: "IBM Plex Serif", Georgia, serif;
  --font-mono: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;   /* small text; --font-body stays the study's Plex Serif */

  /* One accent, the meadow's. The study's blue ramp is re-pointed at it, so every link, rule, marker and number follows. */
  --blue-100: #dbe6ee; --blue-600: #1d4d6e; --blue-700: #143a55;
  --accent-dim: rgba(29, 77, 110, 0.08); --selection-bg: rgba(29, 77, 110, 0.25); --card-glow: rgba(29, 77, 110, 0.08); --hero-glow: rgba(29, 77, 110, 0.06);

  --grass: #c9ddb0; --grass-hi: #d8e8c2; --grass-lo: #b4cd97; --tuft: #93b373; --tuft-hi: #e3efd2;
  --petal: #ffffff; --petal-2: #f2c6d0; --pollen: #e9c246; --pebble: #a9b0a0; --shadow: rgb(40 64 30 / 0.22);
  --cloud: #ffffff; --cloud-shade: #e8eef5; --cloud-deep: #c8d2e0; --cloud-line: #8c97a8; --cloud-edge: rgb(30 50 70 / 0.18); --cloud-ink: #16191d;
  --j-line: #5a6272; --j-soft: #c9d0db; --j-fur: #ffffff; --j-shade: #e6eaf0; --j-deep: #cdd4de; --j-ear: #f3b3bf; --j-nose: #e88a9c; --j-eye: #1b1f2a; --j-iris: #7fa6cf; --j-maw: #4a1220;
  --sky: #e2ebee; --sky-dot: rgb(80 110 130 / 0.16); --ray: #ffe2ad; --ray-strength: 0.75;
  --sky-top: #cfe1ec; --sky-mid: #e4ebea; --sky-low: #f5e3cd;
  --sun: #fff6d8; --sun-2: #ffe7a8; --sun-3: #fbd27e; --halo: rgb(255 214 150 / 0.55);
  --sun-cells: 20;
  --haze: rgb(250 222 186 / 0.55);
  --hill: #cddfd6; --hill-2: #bdd3c6;
  --card: #ffffff; --card-edge: rgb(30 50 70 / 0.10); --card-lift: rgb(30 50 70 / 0.22);
  --wood: #b78a58; --wood-hi: #cfa571; --wood-lo: #8c6440; --wood-line: #4b3321; --nail: #4a4a52;
  --paper: #f5eedb; --paper-shade: #e2d6b8; --paper-line: #a89870; --sign-ink: #1a1712; --sign-focus: #1d4d6e;
  --cw: min(900px, calc(100vw - 32px));   /* the card column */
  --bg-line: #3b2112; --bg-bun: #e8a24a; --bg-bun-2: #c27a2c; --bg-seed: #fff3cf; --bg-leaf: #7cc255; --bg-leaf-2: #4f9a3c; --bg-cheese: #f7cf45; --bg-patty: #9a5a34; --bg-patty-2: #6e3a1f;
  --ink-muted: #46523f; --carrot: #ee8a2f; --carrot-dark: #c4621c; --leaf: #5f9e4f; --heart: #e46a82;
  --daisy: #ffffff; --dand: #f2c832; --dand-2: #d39a1f; --stem: #6aa356; --stem-2: #4f8a40; --puff: #f6f8fa; --seed: #aeb6c2;
  --firefly: #fff4b8; --seed-glint: rgb(255 214 140 / 0.9); --firefly-glow: rgb(255 228 130 / 0.55); --firefly-haze: rgb(255 210 90 / 0.18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --grass: #1f2e24; --grass-hi: #26382b; --grass-lo: #1a271e; --tuft: #31503a; --tuft-hi: #4b6d52;
    --petal: #c9cfe0; --petal-2: #a98ea0; --pollen: #b89a3c; --pebble: #3d443e; --shadow: rgb(0 0 0 / 0.38);
    --blue-100: #1f3548; --blue-600: #7fb0d4; --blue-700: #a3c6e0;
    --accent-dim: rgba(127, 176, 212, 0.10); --selection-bg: rgba(127, 176, 212, 0.30); --card-glow: rgba(127, 176, 212, 0.10); --hero-glow: rgba(127, 176, 212, 0.08);
    --cloud: #f3f5f9; --cloud-shade: #d9e0ea; --cloud-deep: #b4c0d2; --cloud-line: #0d1117; --cloud-edge: rgb(0 0 0 / 0.28); --cloud-ink: #16191d;
    --j-line: #0d1117; --j-soft: #b9c2cf; --j-shade: #dde2ea; --j-deep: #bfc8d5;
    --sky: #121a20; --sky-dot: rgb(150 180 210 / 0.08); --ray: #b4cdef; --ray-strength: 0.22; --sky-top: #0a1017; --sky-mid: #111a22; --sky-low: #1a2631;
    --sun: #e9eef7; --sun-2: #cdd6e4; --sun-3: #aab6c8; --halo: rgb(170 198 236 / 0.22); --sun-cells: 16;
    --haze: rgb(40 58 76 / 0.45); --hill: #17241f; --hill-2: #1b2b24;
    --card: #222b35; --card-edge: rgb(255 255 255 / 0.13); --card-lift: rgb(0 0 0 / 0.5); --panel-edge: rgb(255 255 255 / 0.16);
    --wood: #6b5239; --wood-hi: #7e6044; --wood-lo: #4e3b29; --wood-line: #1c140d; --nail: #9aa1ad; --paper: #d9d2be; --paper-shade: #bfb8a3; --paper-line: #8a846f;
    --bg-line: #f6e2bf; --ink-muted: #a9b5a6; --daisy: #dfe3ec; --dand: #d6b02c; --puff: #d9dee6; --stem: #3f6d3a; --stem-2: #2f5530;
  }
}
:root[data-theme="dark"] {
  --grass: #1f2e24; --grass-hi: #26382b; --grass-lo: #1a271e; --tuft: #31503a; --tuft-hi: #4b6d52;
  --petal: #c9cfe0; --petal-2: #a98ea0; --pollen: #b89a3c; --pebble: #3d443e; --shadow: rgb(0 0 0 / 0.38);
  --blue-100: #1f3548; --blue-600: #7fb0d4; --blue-700: #a3c6e0;
  --accent-dim: rgba(127, 176, 212, 0.10); --selection-bg: rgba(127, 176, 212, 0.30); --card-glow: rgba(127, 176, 212, 0.10); --hero-glow: rgba(127, 176, 212, 0.08);
  --cloud: #f3f5f9; --cloud-shade: #d9e0ea; --cloud-deep: #b4c0d2; --cloud-line: #0d1117; --cloud-edge: rgb(0 0 0 / 0.28); --cloud-ink: #16191d;
  --j-line: #0d1117; --j-soft: #b9c2cf; --j-shade: #dde2ea; --j-deep: #bfc8d5;
  --sky: #121a20; --sky-dot: rgb(150 180 210 / 0.08); --ray: #b4cdef; --ray-strength: 0.22; --sky-top: #0a1017; --sky-mid: #111a22; --sky-low: #1a2631;
  --sun: #e9eef7; --sun-2: #cdd6e4; --sun-3: #aab6c8; --halo: rgb(170 198 236 / 0.22); --sun-cells: 16;
  --haze: rgb(40 58 76 / 0.45); --hill: #17241f; --hill-2: #1b2b24;
  --card: #222b35; --card-edge: rgb(255 255 255 / 0.13); --card-lift: rgb(0 0 0 / 0.5); --panel-edge: rgb(255 255 255 / 0.16);
    --wood: #6b5239; --wood-hi: #7e6044; --wood-lo: #4e3b29; --wood-line: #1c140d; --nail: #9aa1ad; --paper: #d9d2be; --paper-shade: #bfb8a3; --paper-line: #8a846f;
  --bg-line: #f6e2bf; --ink-muted: #a9b5a6; --daisy: #dfe3ec; --dand: #d6b02c; --puff: #d9dee6; --stem: #3f6d3a; --stem-2: #2f5530;
}
@media (min-width: 1200px) { :root { --cw: min(900px, calc(100vw - 440px)); } }
@media (max-width: 640px) { :root { --u: 2px; } }
/* The one hard-coded blue in style.css (white text on a fixed fill) follows the accent too. */

/* ---- the sky, the hills, the sun: fixed to the window, behind everything ---- */
html { background: var(--sky); }
html:not(:has(.c-scene)) { background: var(--page); }
body { background: transparent; position: relative; }
body::before { display: none; }   /* the paper grain belongs to the paper */
.c-scene { position: fixed; inset: 0; z-index: -2; background: var(--sky); pointer-events: none; }
/* The sky warms toward the horizon as the page descends (--warm is set from scroll progress). */
.c-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, var(--sky-low)); opacity: var(--warm, 0); }
/* The hills come up a few pixel rows over the page (--rise, whole rows); the strip is taller than the tile so nothing shows under it. */
.c-hills { position: fixed; left: 0; right: 0; bottom: calc(var(--rise-max, 0px) * -1 + var(--rise, 0px)); height: calc(var(--hills-h, 120px) + var(--rise-max, 0px)); z-index: -1; background-repeat: repeat-x, no-repeat; background-position: 0 0, 0 100%; image-rendering: pixelated; pointer-events: none; }
.c-hills::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, var(--haze)); }

/* The sun (the moon at night) is the theme switch: a pixel disc on a soft halo, a real button. */
.c-sun { position: fixed; z-index: 60; right: calc(110px - 0.5 * var(--sun-cells) * var(--u)); top: 150px; width: calc(var(--sun-cells) * var(--u) + 24px); min-width: 44px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; display: grid; place-items: center; }
.c-sun::after { content: ""; width: calc(var(--sun-cells) * var(--u)); aspect-ratio: 1; background: var(--disc) center / 100% no-repeat; image-rendering: pixelated; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .c-sun::after { transition: scale 240ms cubic-bezier(0.16, 1, 0.3, 1); } .c-sun:hover::after { scale: 1.08; } }
.c-sun:focus-visible { outline: 3px solid var(--accent-default); outline-offset: 2px; }
.c-sun[disabled] { cursor: default; }
/* Its glow, and on a wide screen its disc, live in the sky behind the cards (study.js places it on the button's centre):
   a round halo that hugs it and a wider, fainter wash, like the homepage's sun. Below 1200px the sun is a control in the
   nav, over the cards, so the button keeps the disc and only the glow is back here. */
.c-sun-art { position: fixed; z-index: -1; left: 0; top: 0; width: 0; height: 0; pointer-events: none; }
.c-sun-art::before { content: ""; position: absolute; --r: calc(var(--sun-cells) * var(--u) * 4); left: calc(var(--r) * -1); top: calc(var(--r) * -1); width: calc(var(--r) * 2); height: calc(var(--r) * 2); background: radial-gradient(circle closest-side, var(--halo), color-mix(in srgb, var(--halo), transparent 65%) 32%, transparent); }
.c-sun-art::after { content: ""; position: absolute; display: none; width: calc(var(--sun-cells) * var(--u)); aspect-ratio: 1; translate: -50% -50%; background: var(--disc) center / 100% no-repeat; image-rendering: pixelated; transition: scale 240ms cubic-bezier(0.16, 1, 0.3, 1); }
@media (min-width: 1200px) { .c-sun-art::after { display: block; } .c-sun::after { visibility: hidden; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { body:has(.c-sun:hover:not([disabled])) .c-sun-art::after { scale: 1.08; } }
/* While it sets and rises the sun is a ghost in the sky, behind the cards and clipped at the hills so it goes behind them. */
.c-sky-clip { position: fixed; inset: 0 0 var(--hills-top, 90px) 0; z-index: -1; overflow: hidden; pointer-events: none; }
.c-sky-clip .c-sun-ghost { position: absolute; }
.c-sky-clip--menu { position: absolute; inset: 0; z-index: 2; bottom: 0; }
.c-sky-clip--menu .c-sun-ghost::after { width: 84px; }
/* While the sun changes the theme nothing else takes a tap (study.js). */
.c-block { position: fixed; inset: 0; z-index: 2147483647; background: transparent; touch-action: none; }
.c-sun-ghost::after { display: block; }
/* A theme flip crossfades the sky (600ms); the site's circle wipe is replaced by the sun's own move. */
:root[data-theme-vt]::view-transition-old(root), :root[data-theme-vt]::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
:root[data-theme-vt]::view-transition-old(root) { animation: c-fadeout 380ms ease-in-out both; z-index: 1; }
:root[data-theme-vt]::view-transition-new(root) { animation: none; z-index: 0; }
@keyframes c-fadeout { to { opacity: 0; } }

/* ---- the nav: the name and the links as the meadow's small clouds ---- */
body:has(> .c-top) .site-header { display: none; }   /* the paper nav; script.js still finds it, and the clouds replace it. A page without the meadow (About) keeps it. */
.c-top { position: fixed; z-index: 50; left: 0; right: 0; top: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding-inline: clamp(8px, 3vw, 40px); pointer-events: none; font-family: var(--font-mono); font-weight: 500; font-size: 14px; }
.c-clouds { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; gap: clamp(4px, 1.2vw, 16px); }
.puff { position: relative; z-index: 0; display: block; white-space: nowrap; padding: 28px 44px 20px; color: var(--cloud-ink); text-decoration: none; pointer-events: auto; }
.puff.home { font-weight: 650; }
.puff .cloud-art { position: absolute; inset: 0; z-index: -1; line-height: 0; }
.puff .cloud-art svg { width: 100%; height: 100%; display: block; }
.puff .cloud-art-wide { position: absolute; z-index: -1; line-height: 0; visibility: hidden; }
.puff .cloud-art-wide svg { width: 100%; height: 100%; display: block; }
/* The wider cloud stands in while the icon is out (paint.js, paintCloud). */
@media (hover: hover) { .puff:hover:has(.cloud-art-wide) .cloud-art:not(.cloud-art-wide) { visibility: hidden; } .puff:hover .cloud-art-wide { visibility: visible; } }
.puff:focus-visible:has(.cloud-art-wide) .cloud-art:not(.cloud-art-wide) { visibility: hidden; }
.puff:focus-visible .cloud-art-wide { visibility: visible; }
.puff:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.puff:focus-visible { outline: 3px solid var(--accent-default); outline-offset: 2px; border-radius: 12px; }
/* A nav cloud's hover: a pixel icon for where it goes appears in the cloud's left padding, in the cloud's ink, a step at a
   time, and the word steps right so the two sit centred (Nico, 2026-10-12). The icon takes no width (its margins cancel
   its size), so the cloud is the same with or without it.
   A touch screen never hovers, so it never shows there. */
.puff .nav-ico { display: inline-block; width: 18px; height: 16px; margin: 0 6px 0 -24px; vertical-align: -2px; opacity: 0; translate: 0 3px; transition: opacity 160ms steps(2, end), translate 160ms steps(2, end); }
.puff .nav-word { display: inline-block; transition: translate 160ms steps(2, end); }
.puff .nav-ico svg { display: block; width: 100%; height: 100%; fill: currentColor; shape-rendering: crispEdges; }
/* Contrast of the cloud words, 2026-10-13. A cloud's words are dark ink and its white is an aria-hidden SVG painted by script,
   so until the art is in (no JavaScript, the frames before the script runs, a painter that failed) the words stood on the
   night sky at about 1:1. Until then a cloud is a plain plate of cloud white; the plate goes as soon as the art is in (the
   script sets html.clouds-drawn right after painting the clouds). The
   words' own box carries the cloud's base colour, which is what is painted under them: invisible on the cloud, and the
   background a contrast check, a user style sheet or forced colours can see (a11y-probe reads backgrounds from CSS, so it
   read the night sky behind the art). Under forced colours the art goes, as the rest of the scenery does. */
html:not(.clouds-drawn) :is(.puff, .intro) { background: var(--cloud); border-radius: 28px; }
.puff .nav-word { background: var(--cloud); }
@media (forced-colors: active) { .puff .cloud-art, .puff .cloud-art-wide, .intro .cloud-art, .thought .cloud-art { display: none; } .thought { border: 2px solid CanvasText; } }
/* No hover icon and no shift (Scott, 2026-11-02): an underline on the word is the whole hover. */
.puff .nav-ico { display: none; }
.puff:hover .nav-word, .puff:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .puff .nav-ico, .puff .nav-word { transition: none; } }
.c-Z { fill: var(--cloud); } .c-V { fill: var(--cloud-shade); } .c-U { fill: var(--cloud-line); } .cloud-art .c-E { fill: var(--cloud-edge); } .cloud-art .c-X { fill: var(--cloud-deep); }
.c-o { fill: var(--j-line); } .c-w { fill: var(--j-fur); } .c-s { fill: var(--j-shade); } .c-x { fill: var(--j-deep); } .c-p { fill: var(--j-ear); } .c-n { fill: var(--j-nose); } .c-e { fill: var(--j-eye); } .c-b { fill: var(--j-iris); } .c-a { fill: var(--j-maw); } .c-l { fill: var(--j-soft); }
@media (prefers-reduced-motion: no-preference) {
  .puff { animation: c-drift 7s ease-in-out infinite; }
  .c-clouds .puff:nth-child(2) { animation-delay: -2s; margin-top: 6px; }
  .c-clouds .puff:nth-child(3) { animation-delay: -4.5s; margin-top: 2px; }
  .c-clouds .puff:nth-child(4) { animation-delay: -1s; }
  .c-clouds .puff:nth-child(5) { animation-delay: -3.2s; margin-top: 5px; }
  @keyframes c-drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
}
@media (max-width: 1199px) { .c-sun { position: relative; right: auto; top: auto; flex: none; pointer-events: auto; margin-top: 4px; } }
/* In the bar, the sun stays at the top of the page: once the reader scrolls it rises out of view, and it comes back at the
   top or with the menu open (study.js, c-off-top). Hidden, it is out of the tab order too. */
@media (max-width: 1199px) {
  .c-sun { transition: opacity 200ms ease, translate 200ms ease, visibility 0s linear 0s; }
  :root.c-off-top:not(.c-menu-open) .c-sun { opacity: 0; translate: 0 -24px; visibility: hidden; pointer-events: none; transition: opacity 200ms ease, translate 200ms ease, visibility 0s linear 200ms; }
}
/* With the burger (768px and under), the sun lives in the menu only: hidden in the bar, shown while the menu is open
   (Nico, 2026-10-30). */
@media (max-width: 768px) {
  :root:not(.c-menu-open) .c-sun { opacity: 0; translate: 0 -24px; visibility: hidden; pointer-events: none; transition: opacity 200ms ease, translate 200ms ease, visibility 0s linear 200ms; }
}
@media (max-width: 1199px) and (prefers-reduced-motion: reduce) { .c-sun { transition: none !important; } }
/* Cards scroll up under the clouds: a soft blur along the top edge keeps their words from reading through the nav. */
.c-top::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: -10px; height: 100px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); pointer-events: none; }

/* The phone: name cloud left, the sun in the middle, a pixel-art burger right. The open menu is the site's own, restyled: one small cloud
   per link, drifting in from alternate sides, over one blur that covers the whole screen from the very top (the nav's controls stay above it). */
.c-menu { display: none; width: 48px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text-primary); pointer-events: auto; place-items: center; -webkit-tap-highlight-color: transparent; }
.c-menu svg { width: 48px; height: 36px; display: block; shape-rendering: crispEdges; }
.c-menu .c-x-icon { fill: currentColor; width: 36px; height: 24px; }
.c-menu .c-x-icon, .c-menu[aria-expanded="true"] .c-burger { display: none; }
.c-menu[aria-expanded="true"] .c-x-icon { display: block; }
.c-menu:focus-visible { outline: 3px solid var(--accent-default); outline-offset: 2px; border-radius: 8px; }
/* The burger is a picture, like Jojo and the carrot: its colours are not accents. A dark outline by day; at night the outline goes warm and light so it holds on the dark sky. */
.bg-o { fill: var(--bg-line); } .bg-b { fill: var(--bg-bun); } .bg-T { fill: var(--bg-bun-2); } .bg-s { fill: var(--bg-seed); }
.bg-g { fill: var(--bg-leaf); } .bg-G { fill: var(--bg-leaf-2); } .bg-y { fill: var(--bg-cheese); } .bg-p { fill: var(--bg-patty); } .bg-P { fill: var(--bg-patty-2); }
@media (max-width: 768px) {
  .c-clouds { display: none; }
  .c-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; top: calc(env(safe-area-inset-top, 0px) + 24px); }   /* clear of the screen's top edge (Nico, 2026-10-30) */
  .c-top > .puff.home { grid-column: 1; grid-row: 1; justify-self: start; }
  .c-top > .c-sun { grid-column: 2; grid-row: 1; justify-self: center; margin-top: 0; }
  .c-top > .c-menu { grid-column: 3; grid-row: 1; justify-self: end; display: grid; margin-top: 4px; }
  .site-header, .site-header.scrolled { display: block; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; height: 0; z-index: 49; }
  .site-header .nav-inner { display: none; }
  /* The open menu is the plain sky, opaque (2026-10-17): iOS Safari tints the strip above the Dynamic Island from a top
     fixed element's background colour, and the old 72% sky came out there as a darker band than the blurred page under the
     clouds (Nico's screenshot). An opaque colour is the one thing the strip can match.
     Was one blur over everything: from the very top (script.js pins the menu's top at 72px on every scroll, hence !important) to the bottom. */
  .mobile-menu { top: 0 !important; bottom: 0; left: 0; right: 0; overflow: hidden; background: var(--sky); border: 0; transform: none; transition: opacity 280ms ease 120ms, visibility 0s linear 400ms; }
  .mobile-menu.open { transition: opacity 160ms ease, visibility 0s; }
  /* The links sit in the middle of the screen, big enough to hit with a thumb, and the page behind holds still while the
     menu is open (Nico, 2026-10-30, after Apple's site). */
  .mobile-menu { overscroll-behavior: contain; touch-action: none; }
  :root.c-menu-open, :root.c-menu-open body { overflow: hidden; }
  .mobile-menu ul { box-sizing: border-box; height: 100%; justify-content: center; align-items: center; gap: 28px; padding: calc(env(safe-area-inset-top, 0px) + 96px) 8px calc(env(safe-area-inset-bottom, 0px) + 56px); }
  /* The menu's sky (study.js): the sun moves onto a cloud of its own while the menu is open, and smaller clouds sit
     round the links at half strength. Positions are shares of the screen, so the sun and its cloud stay together. */
  /* Layers in the menu, back to front: its sky colour, the light, the sun (and its travelling ghost), then every cloud. */
  .mobile-menu ul { position: relative; z-index: 3; pointer-events: none; }   /* it fills the screen: only the links take taps, so the sun under it can */
  .mobile-menu li { pointer-events: auto; }
  .c-menu-sky { position: absolute; inset: 0; pointer-events: none; }
  .c-menu-rays { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: var(--ray-strength); }
  .c-deco { position: absolute; z-index: 3; display: block; translate: -50% -50%; opacity: 0.7; }
  .c-deco .cloud-art { position: absolute; line-height: 0; }
  .c-deco .cloud-art svg { width: 100%; height: 100%; display: block; }
  .c-deco--1 { left: 80%; top: 16%; width: 84px; height: 14px; }
  .c-deco--2 { left: 6%; top: 50%; width: 64px; height: 12px; }
  .c-deco--3 { left: 92%; top: 42%; width: 72px; height: 12px; }
  .c-deco--4 { left: 16%; top: 80%; width: 96px; height: 16px; }
  .c-deco--5 { left: 84%; top: 70%; width: 60px; height: 12px; }
  .c-deco--6 { left: 62%; top: 91%; width: 70px; height: 12px; }
  .c-menu-sky .c-sun { position: fixed; z-index: 1; left: 24%; top: 22%; width: 108px; translate: -50% -50%; margin: 0; pointer-events: auto; }
  .c-menu-sky .c-sun::after { width: 84px; }
  .mobile-menu a.puff { font-size: 24px; font-weight: 500; padding: 34px 60px 28px; color: var(--cloud-ink); animation: none; }
  /* They drift in from the sides, the first from the left, the second from the right, and so on; out again the way they came, faster. */
  .mobile-menu li { opacity: 1; transform: translateX(-115vw); transition: transform 260ms cubic-bezier(0.5, 0, 0.9, 0.6); }
  .mobile-menu li:nth-child(even) { transform: translateX(115vw); }
  .mobile-menu.open li { transform: none; transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1); }
  .mobile-menu li:nth-child(1) { transition-delay: 0ms !important; } .mobile-menu li:nth-child(2) { transition-delay: 30ms !important; } .mobile-menu li:nth-child(3) { transition-delay: 60ms !important; } .mobile-menu li:nth-child(4) { transition-delay: 90ms !important; } .mobile-menu li:nth-child(5) { transition-delay: 120ms !important; }
  .mobile-menu.open li:nth-child(1) { transition-delay: 0ms !important; } .mobile-menu.open li:nth-child(2) { transition-delay: 70ms !important; } .mobile-menu.open li:nth-child(3) { transition-delay: 140ms !important; } .mobile-menu.open li:nth-child(4) { transition-delay: 210ms !important; } .mobile-menu.open li:nth-child(5) { transition-delay: 280ms !important; }
  :root.c-menu-open .c-top::before { display: none; }
  .c-top::before { height: 90px; }
  main { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) { .mobile-menu, .mobile-menu li { transition: none !important; transform: none !important; } }
@media (max-width: 640px) {
  .c-top { font-size: 13px; padding-inline: 8px; gap: 4px; }
  .puff { padding: 16px 16px 12px; }
  .c-sun { width: 44px; }
}

/* ---- cards: every section floats over the sky, with the meadow card's corners, edge and shadow ---- */
main { padding-block: 112px 0; display: flex; flex-direction: column; align-items: center; gap: 40px; }
@media (max-width: 768px) { main { gap: 30px; } }
main > * { width: var(--cw); }
.cs-hero, .cs-section, .cs-summary { padding: 0; margin: 0; max-width: none; background: transparent; }
.cs-hero.cs-hero--media-below .cs-hero-inner { max-width: none; display: flex; flex-direction: column; }
.c-card { position: relative; background: var(--card); color: var(--text-primary); border-radius: 28px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 0 0 1px var(--card-edge), 0 18px 30px -24px var(--card-lift); margin: 0; min-width: 0; scroll-margin-top: 110px; }
.c-card--narrow { width: min(720px, 100%); align-self: center; }
.cs-section.c-card, .cs-hero-inner.c-card, .c-card--wide { display: flex; flex-direction: column; gap: 24px; }
.cs-section { display: flex; flex-direction: column; gap: 44px; }
.cs-section.c-card { gap: 20px; }
.cs-section-inner { max-width: none; margin: 0; }
.cs-figure, .cs-comic, .cs-hero-media { margin: 0 !important; max-width: none; }
.cs-figure--wide, .cs-duo--wide { max-width: none; }
@media (min-width: 1280px) { .cs-section-inner .cs-figure--wide { max-width: none; margin-inline: 0; } }
.cs-prose { max-width: 66ch; }
.cs-prose .cs-deck { margin: 0; }
.cs-section-inner > h2 { margin: 0 0 12px; }
.cs-section-inner > h2:last-child { margin-bottom: 0; }
.cs-figure .cs-figcaption, .cs-figure--wide .cs-figcaption, .cs-hero-caption, .cs-hero-media--clip .cs-hero-caption { max-width: 66ch; margin-inline: 0; }
.cs-hero--media-below .cs-hero-media { text-align: left; margin-top: 0; }
.c-card > :first-child { margin-top: 0; }
.c-card > :last-child { margin-bottom: 0; }
/* The hero: the title row sits above the clip in one card; the name, the kind and the line to the left, the link to the right. */
.cs-hero-text { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: end; margin-bottom: 20px; }
.cs-hero-text .cs-back { grid-column: 1 / -1; }
.cs-hero-title { grid-column: 1; margin: 0 0 6px; }
.cs-hero-subtitle { grid-column: 1; }
.cs-hero-links { grid-column: 2; grid-row: 2 / 4; margin: 0; align-self: center; }
@media (max-width: 768px) { .cs-hero-text { display: block; margin-bottom: 14px; } .cs-hero-links { margin-top: 4px; } }
.cs-hero-text .cs-back { margin: 0 0 6px; }
/* The way back sat outside the hero card from 2026-10-12, in the left margin or above the card's corner; alone on the sky it
   read as broken (Nico, 2026-10-14), so it is back in the card, above the title. */
.cs-hero-text .cs-back { justify-self: start; margin-bottom: 10px; }
.cs-hero-title { font-weight: 300; }
/* Figures sit in cards: no figure margin of their own, the card's gap does the spacing. */

/* The inside radius: pictures and panels */
.cs-figure img, .cs-figure video, .cs-hero-media img, .cs-hero-media video, .cs-comic__panel canvas, .cs-duo img, .cs-duo video, .cs-frames__list img { border-radius: 14px; }

/* ---- type: Plex Serif for big words and body prose; Atkinson for every small text that was Plex Mono; no letter-spacing ---- */
code, pre, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.mono-label, .mono-s, .mono, .cs-back, .cs-summary-label, .cs-figcaption b, .cs-dropped b, .cs-frames__key, .cs-duo__key, .cs-statgrid__src, .cs-more__count, .cs-toc__phase a, .cs-toc__item a, .cs-toc__phase:has(~ .cs-toc__phase)::after, a.cta-link, .contact-methods-detail, .footer-copy, .cs-more__summary::before, .cs-flow-node, .cs-flow-node small, .mobile-nav-link { letter-spacing: 0; }
.mono-label, .mono-s, .cs-back, .cs-toc__phase a, .cs-toc__item a, .cs-frames__key, .cs-duo__key, .cs-more__count, .footer-copy, .cs-statgrid__src { font-size: 14px; line-height: 20px; }
/* The lead-in of a caption is ink and weight, not a coloured non-link word. */
.cs-figcaption b { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text-primary); }
a.cta-link { font-size: 15px; font-weight: 500; }
.cs-summary-label { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--text-muted); }
/* What each study section is (Problem, Solution, Outcome), for a visitor who has never seen the product (2026-11-05). */
.cs-section-label { margin: 0 0 8px; font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 600; letter-spacing: 0; color: var(--text-muted); }
.kind { font-family: var(--font-mono); font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: 0; line-height: 1.2; color: var(--text-muted); white-space: nowrap; margin-left: 0.5em; }
.cs-more__summary { border-top: 0; padding-block: 0; max-width: none; }
.cs-more__body { padding-top: 24px; }
.cs-more__body > .cs-prose, .cs-more__body > .cs-figure, .cs-more__body > .cs-figure:not(.cs-figure--wide), .cs-more__body > p { max-width: 66ch; margin-inline: 0 !important; }
.cs-more__body > .cs-figure { max-width: none; margin-bottom: 20px !important; }
.cs-more__body .cs-flow-spine { flex-wrap: nowrap; }
.cs-flow-node { flex: 1 1 auto; min-width: 0; }
.cs-statgrid { max-width: none; }
.cs-statgrid__src { border-top-color: var(--border-subtle); }
.cs-section-inner .cs-links { margin: 0; }
.cs-links a { min-height: 44px; }

/* Tap targets at 390: padding, not bigger type. */
@media (max-width: 768px) {
  .cs-back, .cs-hero-links a, .cs-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .cs-summary-value a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .cs-hero-links { margin-top: 0; }
}

/* ---- the contents list: a small card in the right gutter (a strip card under 1200) ---- */
.cs-toc { padding: 0; }
.cs-toc__list { background: var(--card); border: 0; border-radius: 14px; padding: 14px 18px; box-shadow: 0 0 0 1px var(--card-edge), 0 18px 30px -24px var(--card-lift); width: fit-content; max-width: var(--cw); }
@media (max-width: 1199px) { .cs-toc { align-self: center; } .cs-toc__list { margin: 0; } }
@media (min-width: 1200px) {
  /* Hung from under the sun rather than centred: a long rail (Day One, fifteen entries) centred on the screen ran up into it. */
  .cs-toc { left: auto; right: 24px; width: 168px; top: 260px; transform: none; max-height: calc(100vh - 290px); overflow-y: auto; z-index: 40; }
  .cs-toc--away { opacity: 1 !important; pointer-events: auto !important; }
  .cs-toc__list { padding: 12px 10px; border-left: 0; width: auto; }
  .cs-toc__phase a { letter-spacing: 0; font-size: 14px; }
  .cs-toc__item a { letter-spacing: 0; font-size: 14px; }
}
.cs-progress { z-index: 70; }

.pen__stroke { stroke: var(--accent-default); }

/* Reveals inside cards are off: the card lands with its heading. */
.c-card .reveal, .c-card .reveal-left, .c-card .reveal-scale { opacity: 1; transform: none; transition: none; }

/* ---- the page ends in the meadow: a grass edge under hills, the signpost planted in it, Jojo, then the footer ---- */
.c-ground { position: relative; display: flow-root; margin-top: 132px; padding: 0 16px; background-color: var(--grass); }
.c-ground::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--edge-h, 12px); background: var(--edge) repeat-x 0 100%; image-rendering: pixelated; }
.c-ground-hills { position: absolute; left: 0; right: 0; bottom: calc(100% + var(--edge-h, 12px) - 1px); height: var(--hills-h, 120px); background-repeat: repeat-x; background-position: 0 100%; image-rendering: pixelated; pointer-events: none; z-index: 0; }
.c-ground-hills::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, var(--haze)); }
.closing-cta { background: transparent; scroll-margin-top: 0; padding: 0; }
.closing-cta-inner { padding: 0; display: block; max-width: none; }
/* The signpost, as on the meadow: the art is drawn behind the words, which are real text on the plain paper. */
.outro { --post: calc(28 * var(--u)); position: relative; z-index: 2; width: min(900px, 100%); margin: -112px auto 0; display: block; padding: calc(3 * var(--u)) 0 var(--post); color: var(--sign-ink); }
.outro .sign-art { position: absolute; inset: 0; z-index: 0; line-height: 0; }
.outro .sign-art svg { width: 100%; height: 100%; display: block; }
.sign-art .c-o { fill: var(--wood-line); }
.c-N { fill: var(--wood); } .c-L { fill: var(--wood-hi); } .c-K { fill: var(--wood-lo); } .c-I { fill: var(--nail); }
.c-M { fill: var(--paper); } .c-F { fill: var(--paper-line); } .c-S { fill: var(--paper-shade); }
.c-z { fill: var(--shadow); } .c-u { fill: var(--tuft); } .c-v { fill: var(--tuft-hi); }
.outro .board { --frame: 24px; position: relative; z-index: 1; display: block; padding: calc(var(--frame) + 36px) calc(var(--frame) + 48px) calc(var(--frame) + 36px); }   /* roomier (Scott, 2026-11-02: margins too small) */
.outro .closing-cta-headline { margin: 0 0 12px; max-width: none; font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -0.015em; color: var(--sign-ink); text-align: left; }   /* the homepage sign's heading too (meadow.css) */
.outro .closing-cta-headline em { color: inherit; }
.outro .closing-cta-bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.outro .closing-cta-body { color: var(--sign-ink); margin: 0; font-size: 17px; line-height: 26px; }
.outro .contact-methods { gap: 10px; list-style: none; margin: 0; padding: 0; display: grid; }
.outro .contact-methods-row { grid-template-columns: auto 1fr; gap: 12px; }
.outro .contact-methods-detail { color: #3b372c; font-size: 14px; }
.outro a, .outro a.cta-link { color: var(--sign-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; font-size: 15px; font-weight: 500; }
.outro a:hover { text-decoration-thickness: 2px; }
.outro a:focus-visible { outline: 3px solid var(--sign-focus); outline-offset: 3px; }
@media (max-width: 768px) {
  .outro { margin-top: -150px; }
  .c-ground { margin-top: 172px; }
  .outro .board { --frame: 20px; padding: calc(var(--frame) + 14px) calc(var(--frame) + 16px) calc(var(--frame) + 12px); }
  .outro .closing-cta-bottom { grid-template-columns: 1fr; gap: 16px; }
  .outro a { display: inline-block; padding-block: 11px; margin-block: -11px; }
  .outro .contact-methods { gap: 14px; }
}
@media (max-width: 380px) { .outro .closing-cta-headline { font-size: 30px; line-height: 38px; } }
/* Jojo's field: the grass below the posts. The signpost is a wall: he never goes behind or inside it. */
.c-field { position: relative; height: 188px; z-index: 3; pointer-events: none; }   /* deeper than he is tall even standing (168px at 1440, 84px on a phone) */
@media (max-width: 768px) { .c-field { height: 150px; } }
.c-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* ---- Jojo's world (jojo.js): a layer over the bottom meadow, above the signpost, below the nav. His own colours are not accents. ---- */
.c-world { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.c-world > * { position: absolute; left: 0; top: 0; line-height: 0; will-change: transform; }
.c-world svg { display: block; width: calc(var(--cols) * var(--u)); height: calc(var(--rows) * var(--u)); overflow: visible; }
.c-world .shadow { background: var(--shadow); border-radius: 50%; pointer-events: none; }
.c-world .jojo { padding: 0; margin: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.c-world .jojo::before { content: ""; position: absolute; inset: -6px; }
.c-world .jojo:focus-visible { outline: 2px dashed var(--accent-default); outline-offset: 4px; }
.c-world .jojo > span { display: block; transform-origin: 50% 25%; }
.c-world .fx { animation: c-rise 1100ms steps(8, end) forwards; pointer-events: none; }
@keyframes c-rise { from { opacity: 1; } to { opacity: 0; translate: 0 calc(-12 * var(--u)); } }
.c-q { fill: var(--carrot); } .c-d { fill: var(--carrot-dark); } .c-g { fill: var(--leaf); } .c-r { fill: var(--heart); } .c-m { fill: var(--ink-muted); }
.c-W { fill: var(--daisy); } .c-Y { fill: var(--dand); } .c-y { fill: var(--dand-2); } .c-G { fill: var(--stem); } .c-H { fill: var(--stem-2); } .c-P { fill: var(--puff); } .c-Q { fill: var(--seed); }
.c-world .flora .c-o { fill: var(--j-line); }
.c-world .flora svg { transform-origin: 50% 100%; animation: c-sway var(--sw, 3s) ease-in-out infinite alternate; animation-delay: var(--sd, 0s); }
@keyframes c-sway { from { transform: rotate(-12deg); } to { transform: rotate(9deg); } }
.c-world .firefly { width: var(--u); height: var(--u); background: var(--firefly); box-shadow: 0 0 0 calc(0.5 * var(--u)) var(--firefly-glow), 0 0 calc(3 * var(--u)) calc(1 * var(--u)) var(--firefly-glow), 0 0 calc(9 * var(--u)) calc(2 * var(--u)) var(--firefly-haze); opacity: 0; pointer-events: none; animation: c-firefly 3s ease-in-out forwards; }
@keyframes c-firefly { 0% { opacity: 0; translate: 0 0; } 15% { opacity: 1; } 35% { opacity: 0.35; } 55% { opacity: 1; } 80% { opacity: 0.6; } 100% { opacity: 0; translate: var(--dx) var(--dy); } }
.c-world .seed { pointer-events: none; animation: c-seed 9s linear forwards; filter: drop-shadow(0 0 calc(0.5 * var(--u)) #fff) drop-shadow(0 0 calc(2 * var(--u)) var(--seed-glint)); }
.c-world .seed .c-Q { fill: var(--puff); }
@keyframes c-seed { 0% { opacity: 0; translate: 0 0; } 10% { opacity: 1; } 30% { translate: calc(var(--dx) * 0.28) calc(var(--dy) * 0.22 - 8px); } 55% { translate: calc(var(--dx) * 0.55) calc(var(--dy) * 0.5 + 6px); } 80% { opacity: 1; translate: calc(var(--dx) * 0.8) calc(var(--dy) * 0.78 - 6px); } 100% { opacity: 0; translate: var(--dx) var(--dy); } }
/* The hello bubble: a cloud over his head with two little puffs trailing down to him. */
.thought { position: absolute; left: 0; top: 0; z-index: 6; padding: 40px 50px 34px; color: var(--cloud-ink); font-family: var(--font-mono); font-size: 15px; line-height: 1.35; text-align: left; white-space: nowrap; pointer-events: auto; animation: c-think 220ms cubic-bezier(0.16, 1, 0.3, 1); }
.thought[hidden] { display: none; }
.thought p { margin: 0; }
.thought a { color: var(--cloud-ink); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; display: inline-block; padding-block: 8px; margin-block: -8px; }
.thought a:hover { text-decoration-thickness: 2px; }
.thought a:focus-visible { outline: 3px solid var(--accent-default); outline-offset: 2px; }
.thought .cloud-art { position: absolute; inset: 0; z-index: -1; line-height: 0; }
.thought .cloud-art svg { width: 100%; height: 100%; display: block; }
.thought .tail { position: absolute; background: var(--cloud); box-shadow: 0 0 0 2px var(--cloud-line); border-radius: 3px; }
.thought .tail-1 { width: 12px; height: 9px; left: var(--tail-x, 30px); bottom: -14px; }
.thought .tail-2 { width: 7px; height: 6px; left: calc(var(--tail-x, 30px) + var(--tail-dir, -1) * 10px); bottom: -26px; }
@keyframes c-think { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .thought, .c-world .fx { animation: none; } .c-world .flora svg { animation: none; } }
@media (forced-colors: active) { .c-world .mote { display: none; } }
/* The credit and the footer sit on the grass in small cards. */
.c-credits, .footer-copy { margin: 0 auto 16px; width: fit-content; max-width: min(640px, 100%); padding: 8px 16px; border-radius: 14px; background: var(--card); color: var(--text-body); box-shadow: 0 0 0 1px var(--card-edge); font-family: var(--font-mono); font-size: 14px; line-height: 20px; text-align: center; text-wrap: balance; }
.c-credits a { color: var(--accent-default); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding-block: 12px; margin-block: -12px; }
.site-footer { background: transparent; position: relative; z-index: 3; }
.footer-inner { padding: 0 16px 32px; display: flex; justify-content: center; }
.footer-copy { margin-bottom: 0; }

@media (forced-colors: active) { .c-scene, .c-hills, .c-ground-hills, .sign-art { display: none; } .outro .board { border: 2px solid CanvasText; } }

.cs-summary-inner.c-card { width: 100%; max-width: none; }
@media (min-width: 900px) { .cs-summary-inner.c-card { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; } .cs-summary-item:first-child { grid-column: 1 / 3; } }
@media (prefers-reduced-motion: reduce) { .pen__stroke { animation: none !important; clip-path: none; } }
@media (max-width: 1199px) { .cs-toc__phase a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 4px; } }

/* ---- screen recordings: the window lies on the card ----
   The clips are cropped to the app's own window (2026-10-12), so nothing frames them: no plate, no border, no grey canvas.
   Each window keeps its corners (set per study as --win-r, a percentage pair of its own width and height) and casts its own
   shadow onto the card. From 900px the window hangs off the card's left edge, toward the open side of the page (the rail
   takes the right gutter), by up to 120px; the words keep the card's margin. A portrait window stands beside its caption.
   Every window gets a 1px edge in --win-edge so a white window still reads as a screen on a white card (Nico, 2026-10-13).
   The same grey at the same strength in both themes: light grey on white, a faint light line on the dark card. It is the
   colour WatchMeType's transparent clips have baked round their windows (_scratch/wmt-alpha/finish.py, EDGE_BGR/EDGE_A). */
:root { --obj-edge: rgb(30 50 70 / 0.30); --obj-lift: rgb(30 50 70 / 0.26); --win-edge: rgb(120 128 138 / 0.35); --bleed: 0px; }
:root[data-theme="dark"] { --obj-edge: rgb(255 255 255 / 0.16); --obj-lift: rgb(0 0 0 / 0.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --obj-edge: rgb(255 255 255 / 0.16); --obj-lift: rgb(0 0 0 / 0.6); } }
@media (min-width: 900px) { :root { --bleed: clamp(0px, calc((100vw - var(--cw)) / 2 - 40px), 120px); } }
.cs-hero-media--screen img, .cs-hero-media--screen video, .cs-figure--screen img, .cs-figure--screen video {
  border: 0; background: none; box-shadow: none; max-height: none; width: 100%; height: auto; margin: 0;
  border-radius: var(--win-r, 14px);
  box-shadow: 0 0 0 1px var(--win-edge), 0 24px 40px -18px var(--obj-lift), 0 4px 10px -4px var(--obj-lift);
}
/* A clip with a transparent background (Quip's sizes: the window changes width) casts its shadow from its pixels. */
.cs-figure--alpha video { box-shadow: none; border-radius: 0; filter: drop-shadow(0 0 0.5px var(--obj-edge)) drop-shadow(0 22px 26px var(--obj-lift)); }
/* Windows used to hang off the card's left edge from 900px; they stay inside it now, as that read as broken (Nico, 2026-10-14). */
/* A portrait window: as tall as the screen allows. From 900px the section turns into two columns, the window (and its
   caption) on the left and the section's prose beside it; with no prose to stand beside, the window is centred. */
.cs-figure--portrait video, .cs-figure--portrait img { width: auto; max-width: 100%; max-height: min(620px, 78vh); }
@media (min-width: 900px) {
  .cs-section.c-card:has(> .cs-figure--portrait) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 44px; row-gap: 20px; }
  .cs-section.c-card:has(> .cs-figure--portrait) > .cs-section-inner:first-child { grid-column: 1 / -1; }
  .cs-section.c-card > .cs-figure--portrait { grid-column: 1; grid-row: 2; }
  .cs-section.c-card > .cs-figure--portrait ~ .cs-section-inner { grid-column: 2; grid-row: 2; align-self: center; }
  .cs-section.c-card > .cs-figure--portrait .cs-figcaption { max-width: 34ch; }
  .cs-section.c-card:not(:has(> .cs-figure--portrait ~ .cs-section-inner)) > .cs-figure--portrait { grid-column: 1 / -1; justify-self: center; }
}

/* ---- a portrait hero (Quip): the words to the left, the window to the right, standing out of the card above and below ---- */
@media (min-width: 900px) {
  .cs-hero--portrait { margin-bottom: 40px; }
  .cs-hero.cs-hero--portrait .cs-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; }
  .cs-hero--portrait .cs-hero-text { grid-column: 1; grid-row: 1; display: block; margin: 0; }
  .cs-hero--portrait .cs-hero-links { margin-top: 20px; }
  .cs-hero--portrait .q-menubar { grid-column: 1; grid-row: 2; align-self: end; }
  .cs-hero--portrait .cs-hero-media { grid-column: 2; grid-row: 1 / 3; margin: -40px 0 -80px !important; }
  .cs-hero--portrait .cs-hero-media:has(figcaption) { margin-bottom: 0 !important; }   /* a caption must stay on the card, not on the sky */
  .cs-hero--portrait .cs-hero-media .cs-hero-caption, .cs-hero--portrait .cs-hero-media figcaption { width: 0; min-width: 100%; margin-left: 0; }   /* the caption wraps to the picture rather than widening its column */
  .cs-hero--portrait .cs-hero-media video, .cs-hero--portrait .cs-hero-media img { width: auto; height: var(--hero-h, min(560px, 70vh)); }
}

/* ---- the rail's "you are here": the homepage pager's mark, not a bar down the left ----
   Every section carries a small square; the one being read stretches into a dash in the accent, in pixel steps, and its
   name goes to full ink. A phase with no sections of its own (outcome) wears the dash itself while it is being read. No left
   border and no tint behind the label: those were the generated-interface tells this replaces. */
@media (min-width: 1200px) {
  .cs-toc__list { padding: 14px 16px 14px 12px; }
  .cs-toc__phase a, .cs-toc__item a { border-left: 0 !important; background: none !important; margin-left: 0; position: relative; }
  .cs-toc__phase a { padding: 4px 0 4px 8px; color: var(--text-muted); font-weight: 600; transition: color 200ms; }
  .cs-toc__phase--current a { color: var(--text-primary); }
  .cs-toc__item a { padding: 5px 0 5px 30px; }
  .cs-toc__item a::before, .cs-toc__phase.cs-toc__item--active a::before, .cs-toc__phase--solo a::before {
    content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; translate: 0 -50%;
    background: color-mix(in srgb, var(--text-muted) 45%, transparent); transition: width 240ms steps(3, end), background-color 240ms;
  }
  .cs-toc__item--active a { color: var(--text-primary); font-weight: 600; }
  .cs-toc__item--active a::before, .cs-toc__phase.cs-toc__item--active a::before { width: 14px; background: var(--accent-default); }
  .cs-toc__phase.cs-toc__item--active a { padding-left: 30px; }   /* script.js marks the phase itself active */
  /* A phase with one section is drawn as a single entry (script.js): the phase's name, capitalized like an entry, with
     an entry's weight and mark, and no gap between two of them in a row. */
  .cs-toc__phase--solo a { padding: 5px 0 5px 30px; font-weight: 400; color: var(--text-muted); text-transform: capitalize; }
  .cs-toc__phase--solo.cs-toc__item--active a { color: var(--text-primary); font-weight: 600; }
  .cs-toc__phase--solo + .cs-toc__phase--solo { margin-top: 0; }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) { .cs-toc__item a::before, .cs-toc__phase a::before { transition: none; } }
@media (min-width: 1200px) and (forced-colors: active) { .cs-toc__item a::before, .cs-toc__phase a::before { background: CanvasText; forced-color-adjust: none; } .cs-toc__item--active a::before { background: Highlight; } }

/* The older studies' hero paragraph, kept under the subtitle when they took the look (2026-10-12) until the copy pass
   decides what stays: body size, in the body ink, the subtitle's column. */
.cs-hero-dek { grid-column: 1; margin: 12px 0 0; max-width: 62ch; font-size: 17px; line-height: 28px; color: var(--text-body); }

/* Everything but a thought bubble and what it belongs to (MeadowPaint.spotlight). */
.c-dimmed { filter: brightness(0.5) saturate(0.75); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-dimmed { filter: brightness(0.55) saturate(0.7); } }
:root[data-theme="dark"] .c-dimmed { filter: brightness(0.55) saturate(0.7); }

/* ---- Every page keeps the meadow (Nico, 2026-11-03: Scott meant the content was over-themed, not the page); the comics go.
   The html:not(:has(.c-scene)) rules below only apply if a page ever loads this sheet without study.js. ---- */
:root { --page: #f3f4f5; }
:root[data-theme="dark"] { --page: #12171d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --page: #12171d; } }

/* The comics' captions, as plain points (2026-11-03): the problem in a few short lines, no pictures. */
.cs-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 66ch; }
.cs-points li { position: relative; padding-left: 22px; font-size: 17px; line-height: 26px; color: var(--text-body); }
.cs-points li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }

/* ---- type hierarchy (2026-11-03, after Scott's review, modelled on marissacui.com) ----
   Three voices, told apart by family and size, never by a third weight:
   1. Display: IBM Plex Serif 400 for the page title and section headings, and nothing else.
   2. Body: Atkinson Hyperlegible Next 400 for every paragraph, deck, list and caption. A deck is bigger and darker,
      not bolder.
   3. Meta: Atkinson 400, 14px, sentence case, muted, for kinds, labels, keys, dates and sources. Not upper case: Nico keeps
      clear of all-caps eyebrow labels, a generated-design tell.
   Squint test: the heading is clearly the king, the body clearly the text, and the meta drops out. */
:root { --font-body: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
main .display-xl, main .display-l, main .display-m, main .display-s, main h1, main h2, main h3, .cs-hero-title { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; }
main .cs-hero-title { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; }
main h2.display-s, main .display-s { font-size: clamp(26px, 3vw, 32px); line-height: 1.22; }
main h3 { font-size: 21px; line-height: 1.3; }
main p, main li, .cs-prose p, .body, .body-l, .body-s { font-family: var(--font-body); font-weight: 400; }
main p, .cs-prose p, .body { font-size: 17px; line-height: 27px; color: var(--text-body); }
.cs-hero-subtitle, .body-l { font-size: 19px; line-height: 29px; color: var(--text-body); }
.cs-prose .cs-deck { font-family: var(--font-body); font-weight: 400; font-size: 19px; line-height: 29px; color: var(--text-primary); }
.cs-prose em { font-weight: 400; }
main b, main strong { font-weight: 500; }
.kind, .cs-summary-label, .cs-back, .cs-statgrid__list dt, .cs-statgrid__src, .cs-figcaption b, .cs-frames__key, .cs-duo__key, .cs-toc__phase a, .footer-copy {
  font-family: var(--font-body); font-style: normal; font-weight: 400; font-size: 14px; line-height: 20px; letter-spacing: 0; text-transform: none; color: var(--text-muted);
}
.kind { margin-left: 0.6em; font-size: 16px; }
.cs-figcaption b { display: block; margin-bottom: 4px; }
.cs-figcaption, .cs-hero-caption { font-family: var(--font-body); font-size: 14px; line-height: 21px; color: var(--text-muted); }
.cs-summary-value { font-family: var(--font-body); font-size: 16px; line-height: 24px; color: var(--text-primary); }
.cs-summary-label { margin-bottom: 4px; }
.cs-statgrid__list > div { gap: 8px; }
.cs-statgrid__list dd { font-family: var(--font-display); font-style: normal; font-weight: 400; font-size: clamp(32px, 3.6vw, 44px); line-height: 1; }
.cs-statgrid__list dt { line-height: 18px; text-wrap: balance; }
.cs-toc__item a { font-family: var(--font-body); font-size: 14px; }
@media (min-width: 1200px) { .cs-toc__phase a { font-size: 14px; } .cs-toc__phase--solo a { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; } }
a.cta-link, .cs-links a { font-family: var(--font-body); font-weight: 500; font-size: 15px; }

/* ---- the end of the page: a brief contact band, then the footer, on a page without the meadow (About); the studies keep the signpost ---- */
html:not(:has(.c-scene)) .closing-cta { margin: 120px auto 0; width: var(--cw); padding: 48px 0 0; border-top: 1px solid var(--border-subtle); background: transparent; }
html:not(:has(.c-scene)) .closing-cta-bottom { display: contents; }
html:not(:has(.c-scene)) .closing-cta-inner { padding: 0; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 48px; align-items: baseline; }
html:not(:has(.c-scene)) .closing-cta-headline { grid-column: 1; margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.2; color: var(--text-primary); }
html:not(:has(.c-scene)) .closing-cta-body { grid-column: 1; margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 27px; color: var(--text-body); }
html:not(:has(.c-scene)) .closing-cta .contact-methods { grid-column: 2; grid-row: 1 / 3; align-self: center; display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 768px) { html:not(:has(.c-scene)) .closing-cta { margin-top: 80px; } html:not(:has(.c-scene)) .closing-cta-inner { grid-template-columns: 1fr; } html:not(:has(.c-scene)) .closing-cta .contact-methods { flex-wrap: wrap; grid-column: 1; grid-row: auto; margin-top: 12px; } html:not(:has(.c-scene)) .closing-cta .contact-methods a { display: inline-flex; align-items: center; min-height: 44px; } }
html:not(:has(.c-scene)) .site-footer { background: transparent; }
html:not(:has(.c-scene)) .footer-inner { width: var(--cw); margin: 0 auto; padding: 40px 0 48px; }
html:not(:has(.c-scene)) .c-credits { width: var(--cw); margin: 24px auto 0; font-family: var(--font-body); font-size: 13px; line-height: 20px; color: var(--text-muted); }
html:not(:has(.c-scene)) .c-credits[hidden] { display: none; }

/* No theme switch off the homepage (Nico, 2026-11-03; Scott: no sun or moon on project pages). The page still follows the
   choice made on the homepage, or the system. study.js still builds the sun; it is simply never shown. */
.c-sun, .c-sun-art, .c-sky-clip, .site-nav__theme { display: none !important; }

/* Plain nav, to match the homepage (Nico, 2026-11-03): the name and the links are words on the sky, no clouds; a hover
   underlines the word. The phone menu loses its clouds and light too. */
.c-top .puff, .c-clouds .puff:nth-child(n) { animation: none; margin-top: 0; padding: 14px 16px; color: var(--text-primary); background: none !important; font-size: 15px; text-transform: capitalize; }
.c-top .puff.home { text-transform: none; }
.c-top .puff .cloud-art, .c-top .puff .cloud-art-wide, .mobile-menu .puff .cloud-art, .mobile-menu .puff .nav-ico, .c-deco, .c-menu-rays { display: none !important; }
.c-top .puff .nav-word, .mobile-menu .puff .nav-word { background: none; }
.c-top .puff:hover, .c-top .puff:hover .nav-word { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
@media (max-width: 768px) { .mobile-menu a.puff { color: var(--text-primary); padding: 12px 20px; text-transform: capitalize; } }

/* ---- blueprint panels (2026-11-03): the comics' replacement. White line wireframes on a blueprint grid, no Jojo. A panel
   names its problem in a word or two over one plain line. Static, except a fix that is itself a movement (.bp--play). ---- */
:root { --bp-bg: #1f4f78; --bp-ink: #eaf2fb; --bp-grid: rgb(234 242 251 / 0.09); --bp-soft: rgb(234 242 251 / 0.16); }
:root[data-theme="dark"] { --bp-bg: #183f61; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bp-bg: #183f61; } }
.bp-panels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.bp-panel figure { margin: 0; display: grid; gap: 10px; }
.bp { display: block; width: 100%; height: auto; border-radius: 12px; background-color: var(--bp-bg); background-image: linear-gradient(var(--bp-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px); background-size: 16px 16px; background-position: -1px -1px; }
.bp .l { fill: none; stroke: var(--bp-ink); stroke-width: 1.5; }
.bp .d { stroke-dasharray: 4 3; }
.bp .dk { stroke-dasharray: 5 3; stroke-width: 2.5; }
.bp .s { fill: var(--bp-soft); }
.bp .f { fill: var(--bp-ink); }
.bp .bg, .bp .bgfill { fill: var(--bp-bg); }
.bp .t { fill: var(--bp-ink); font: 500 10px/1 var(--font-body); }
.bp .tb { fill: var(--bp-bg); font: 600 9px/1 var(--font-body); }
.bp-panel figcaption { font-family: var(--font-body); font-size: 15px; line-height: 22px; color: var(--text-body); }
.bp-name { display: block; margin-bottom: 2px; font-family: var(--font-display); font-size: 19px; line-height: 1.25; color: var(--text-primary); }
.bp-figure { max-width: 640px; }
/* The drag, on a 5 s loop: the GIF lifts off the grid, travels to Funny, the chip lifts, the message shows. */
.bp--play .bp-gif, .bp--play .chip, .bp--play .bp-toast { transform-box: view-box; }
.bp--play .bp-gif { transform-origin: 131.5px 71px; }
.bp--play .bp-toast { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bp--play .bp-gif { animation: bp-drag 5s cubic-bezier(0.45, 0, 0.25, 1) infinite; }
  .bp--play .chip { animation: bp-chip 5s ease infinite; transform-origin: 140px 161px; }
  .bp--play .bp-toast { animation: bp-toast 5s ease infinite; }
  .bp--play .bp-origin { animation: bp-origin 5s linear infinite; }
}
@keyframes bp-drag { 0%, 12% { transform: translate(0, 0); opacity: 1; } 20% { transform: translate(-4px, -6px); opacity: 0.75; } 52%, 60% { transform: translate(9px, 92px) scale(0.6); opacity: 0.75; } 66%, 100% { transform: translate(9px, 92px) scale(0.6); opacity: 0; } }
@keyframes bp-chip { 0%, 44% { transform: none; } 52%, 80% { transform: translateY(-4px); } 90%, 100% { transform: none; } }
@keyframes bp-toast { 0%, 58% { opacity: 0; } 64%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes bp-origin { 0%, 12% { opacity: 0; } 14%, 92% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .bp--play .bp-toast { opacity: 1; } .bp--play .chip { transform: translateY(-4px); } .bp--play .bp-gif { opacity: 0; } }

.c-top { right: calc(-1 * var(--sbw, 0px)); }   /* under the scrollbar, to line up with the homepage nav (study.js) */

/* The "Product designer" pen line is drawn once, still (Scott: less motion in projects). */
.pen__stroke { animation: none !important; clip-path: none !important; stroke-dashoffset: 0 !important; }

/* Phones: the same plain words as the homepage's nav, no pixel burger and no menu (2026-11-03). */
@media (max-width: 768px) {
  .c-top { display: flex; justify-content: space-between; align-items: flex-start; top: calc(env(safe-area-inset-top, 0px) + 10px); }
  .c-top .c-clouds { display: flex; }
  .c-top .c-menu { display: none !important; }
  main { padding-top: 84px; }
}
@media (max-width: 520px) { .c-top { padding-inline: 8px; } .c-top .c-clouds { gap: 8px; } }   /* as the homepage's .top */
.c-ground--bare { margin-top: 140px; padding-top: 28px; }   /* a study: no sign standing in it, just the grass, the credit and the footer */

/* The rail is plain text on the sky, out of its card (Nico, 2026-11-03), and stays put to the end of the page: it only
   faded to keep clear of the signpost, which studies no longer have. */
.cs-toc__list { background: none !important; box-shadow: none !important; border: 0 !important; padding-inline: 0 !important; }
@media (min-width: 1200px) { .cs-toc__list { padding: 8px 0 !important; } }

/* ── One intro layout for every study (2026-11-03) ──
   Back link, title, one-line subtitle, links on the right, media below with a caption. Quip's portrait clip used to sit
   beside the text and hang off the card; it now sits below like the others, held to a readable height. */
.cs-hero--tall .cs-hero-media video, .cs-hero--tall .cs-hero-media img { width: auto; max-width: 100%; height: min(560px, 70vh); display: block; margin-inline: 0 !important; }
.cs-hero--tall .cs-hero-media .cs-hero-caption { max-width: 66ch; }
@media (max-width: 768px) { .cs-hero--tall .cs-hero-media video, .cs-hero--tall .cs-hero-media img { width: 100%; height: auto; } }

/* "Next project" at the foot of every study, in the homepage's order (2026-11-03). */
.cs-links.cs-next { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.cs-next__label { font-family: var(--font-body); font-size: 14px; line-height: 20px; color: var(--text-muted); }
.cs-links.cs-next a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; text-decoration: none; font-weight: 400; min-height: 0; }
.cs-next__name { font-family: var(--font-display); font-size: 24px; line-height: 1.2; color: var(--text-primary); }
.cs-next__line { font-family: var(--font-body); font-size: 16px; line-height: 24px; color: var(--text-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.cs-links.cs-next a:hover .cs-next__line { text-decoration-thickness: 2px; }

/* Below the rail's breakpoint the four phases are a strip of jump links. Arrows between them read as a process diagram,
   so the strip is labelled and its items are underlined links with dots between (2026-11-03). */
@media (max-width: 1199.98px) {
  .cs-toc__list { align-items: baseline; }
  .cs-toc__list::before { content: "On this page"; font-family: var(--font-body); font-size: 14px; line-height: 20px; color: var(--text-muted); margin-right: 4px; }
  .cs-toc__phase:has(~ .cs-toc__phase)::after { content: "\00B7"; font-family: var(--font-body); color: var(--text-muted); }
  .cs-toc__phase a { font-family: var(--font-body); font-size: 14px; font-weight: 400; color: var(--text-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
}

/* Pause button on looping clips (script.js addPauseButtons). A dark round button in the clip's bottom-right corner. */
.clip-frame { position: relative; display: block; width: fit-content; max-width: 100%; }
.clip-frame > video { display: block; }
.clip-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; background: rgba(20, 24, 32, 0.72); color: #fff; display: grid; place-items: center; opacity: 0.85; transition: opacity 0.15s ease; }
.clip-toggle:hover, .clip-toggle:focus-visible { opacity: 1; }
.clip-toggle:focus-visible { outline: 3px solid var(--text-primary); outline-offset: 2px; }
.clip-toggle::before { content: ""; width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.clip-toggle[data-state="paused"]::before { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }

/* The current page's nav word stays underlined (study.js sets aria-current). */
.c-clouds .puff[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Phones: a figure's clip fills the column at its own ratio, instead of a height cap shrinking a portrait clip to a
   ~150px strip (Quip's size toggle, 2026-11-03). */
@media (max-width: 768px) { main .cs-figure video, main .cs-figure > img, main .cs-figure picture img { width: 100% !important; height: auto !important; max-height: none !important; } }
.cs-hero--tall .clip-frame { margin-inline: 0 !important; }
.cs-hero--tall .cs-hero-media { align-self: flex-start; margin-inline: 0 !important; }
