/* Type: IBM Plex Serif for the big words (the intro, "Come say hi.", card names, which morph into the studies' own Plex
   titles), Atkinson Hyperlegible Next for everything small (nav, kinds, one-liners, links): it was drawn by the Braille
   Institute for low-vision reading, and the small text is where reading is hardest here. Both OFL, served from the site
   (licences beside the files in /assets/fonts/), so nothing waits on Google and the page reads the same behind a firewall. */
@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"); }

/* Layout: a horizontal page on a desktop (a vertical one on phones, at the end of this file). A pale sky on top, a meadow across the bottom half; the projects are cards standing on the meadow's back edge, and Jojo, the books and the flowers live on the grass in front of them. */
:root {
  --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);

  --ink: #16191d;
  --ink-body: #2a3329;
  --ink-muted: #46523f;
  --accent: #1d4d6e;

  --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;
  --carrot: #ee8a2f;
  --carrot-dark: #c4621c;
  --leaf: #5f9e4f;
  --heart: #e46a82;
  --page-cream: #f3ecda;
  --bk-a: #2c3a6b; --bk-a2: #1f2a4f;
  --bk-b: #7a2a2a; --bk-b2: #5a1e1e;
  --bk-c: #d9a441; --bk-c2: #b2832e;
  --bk-d: #2f5d50; --bk-d2: #22453b;
  --bk-band: #d7b24a;
  /* The signpost: plain scenery, not an accent. Wood is a warm brown a step off the grass; the paper notice is the pale, flat
     surface the words sit on (ink on it is about 15:1). Dimmer at night, as the rest of the meadow is. */
  --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;
  --daisy: #ffffff;
  --dand: #f2c832;
  --dand-2: #d39a1f;
  --stem: #6aa356;
  --stem-2: #4f8a40;
  --puff: #f6f8fa;
  --seed: #aeb6c2;
  --firefly: #fff4b8;
  --j-maw: #4a1220;
  --seed-glint: rgb(255 214 140 / 0.9);
  --firefly-glow: rgb(255 228 130 / 0.55);
  --firefly-haze: rgb(255 210 90 / 0.18);

  --sky: #e2ebee;
  --sky-dot: rgb(80 110 130 / 0.16);
  /* The light: a low afternoon sun behind the hills, the sky warming toward the horizon and a haze over the far hills. */
  --sky-top: #cfe1ec; --sky-mid: #e4ebea; --sky-low: #f5e3cd;
  --sun: #fff6d8; --sun-2: #ffe7a8; --sun-3: #fbd27e; --halo: rgb(255 214 150 / 0.55); --halo-far: rgb(255 222 175 / 0.4);
  --sun-x: 33vw; --sun-rise: 11svh; --sun-top: 9svh; --sun-cells: 20; --halo-k: 11;
  --haze: rgb(250 222 186 / 0.55);
  --ray: #ffe2ad; --ray-strength: 0.75; --rim-color: #ffb44d; --rim-k: 1;
  --hill: #cddfd6;
  --hill-2: #bdd3c6;
  --card: #ffffff;
  --card-ink: #16191d;
  --card-edge: rgb(30 50 70 / 0.10);
  --card-lift: rgb(30 50 70 / 0.22);
  --thumb-bg: #eef2f4;
  --thumb-line: #c9d0d7;
  --cut-edge: rgb(30 50 70 / 0.55);

  --font-serif: "IBM Plex Serif", Georgia, serif;
  --font-sans: "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --u: 4px;
}
@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);
    --ink: #eef0f2; --ink-body: #d3d9d2; --ink-muted: #a9b5a6; --accent: #7fb0d4;
    --j-line: #0d1117; --j-soft: #b9c2cf; --j-shade: #dde2ea; --j-deep: #bfc8d5; --page-cream: #d8d1bf;
    --daisy: #dfe3ec; --dand: #d6b02c; --puff: #d9dee6; --stem: #3f6d3a; --stem-2: #2f5530;
    --wood: #6b5239; --wood-hi: #7e6044; --wood-lo: #4e3b29; --wood-line: #1c140d; --nail: #9aa1ad; --paper: #d9d2be; --paper-shade: #bfb8a3; --paper-line: #8a846f;
    --cloud: #f3f5f9; --cloud-shade: #d9e0ea; --cloud-deep: #b4c0d2; --cloud-line: #0d1117; --cloud-edge: rgb(0 0 0 / 0.28); --cloud-ink: #16191d;
    --sky: #121a20; --sky-dot: rgb(150 180 210 / 0.08);
    --sky-top: #0a1017; --sky-mid: #111a22; --sky-low: #1a2631;
    --sun: #e9eef7; --sun-2: #cdd6e4; --sun-3: #aab6c8; --halo: rgb(170 198 236 / 0.22); --halo-far: rgb(150 182 232 / 0.13);
    --sun-x: 33vw; --sun-cells: 16; --halo-k: 8;
    --haze: rgb(40 58 76 / 0.45);
    --ray: #b4cdef; --ray-strength: 0.22; --rim-color: #d6e4ff; --rim-k: 0.75; --hill: #17241f; --hill-2: #1b2b24; --card: #222b35; --card-ink: #eef0f2; --card-edge: rgb(255 255 255 / 0.13); --card-lift: rgb(0 0 0 / 0.5); --thumb-bg: #151b21; --thumb-line: transparent; --cut-edge: transparent;    color-scheme: dark;
  }
}
: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);
  --ink: #eef0f2; --ink-body: #d3d9d2; --ink-muted: #a9b5a6; --accent: #7fb0d4;
  --j-line: #0d1117; --j-soft: #b9c2cf; --j-shade: #dde2ea; --j-deep: #bfc8d5; --page-cream: #d8d1bf;
  --daisy: #dfe3ec; --dand: #d6b02c; --puff: #d9dee6; --stem: #3f6d3a; --stem-2: #2f5530;
  --wood: #6b5239; --wood-hi: #7e6044; --wood-lo: #4e3b29; --wood-line: #1c140d; --nail: #9aa1ad; --paper: #d9d2be; --paper-shade: #bfb8a3; --paper-line: #8a846f;
  --cloud: #f3f5f9; --cloud-shade: #d9e0ea; --cloud-deep: #b4c0d2; --cloud-line: #0d1117; --cloud-edge: rgb(0 0 0 / 0.28); --cloud-ink: #16191d;
    --sky: #121a20; --sky-dot: rgb(150 180 210 / 0.08);
    --sky-top: #0a1017; --sky-mid: #111a22; --sky-low: #1a2631;
    --sun: #e9eef7; --sun-2: #cdd6e4; --sun-3: #aab6c8; --halo: rgb(170 198 236 / 0.22); --halo-far: rgb(150 182 232 / 0.13);
    --sun-x: 33vw; --sun-cells: 16; --halo-k: 8;
    --haze: rgb(40 58 76 / 0.45);
    --ray: #b4cdef; --ray-strength: 0.22; --rim-color: #d6e4ff; --rim-k: 0.75; --hill: #17241f; --hill-2: #1b2b24; --card: #222b35; --card-ink: #eef0f2; --card-edge: rgb(255 255 255 / 0.13); --card-lift: rgb(0 0 0 / 0.5); --thumb-bg: #151b21; --thumb-line: transparent; --cut-edge: transparent;  color-scheme: dark;
}
@media (max-width: 640px) { :root { --u: 2px; } }

* { box-sizing: border-box; }
html { background: var(--sky); overflow-y: hidden; }
body {
  margin: 0; position: relative; height: 100svh; min-width: 100vw; width: max-content; overflow: clip;
  background-color: var(--sky);   /* the dots are painted by script, one --u pixel each, on the same grid as the meadow */
  color: var(--ink-body); font-family: var(--font-sans); font-size: 17px; line-height: 1.55;
  --horizon: 71svh;   /* the meadow is the bottom 29% of the screen */
  --s: min(41svh, calc(66svh - 100px), 80vw, 440px);
}
a { color: inherit; }

/* ---- the scenery: hills on the horizon (fixed, slid by script for parallax) and the meadow band ---- */
/* The sun (or moon) is a point: the disc is drawn on it, a round halo hugs it, and a wide soft wash reaches mostly to its right,
   an ambient spotlight across the row of cards. */
.sun { position: fixed; z-index: 0; left: var(--sun-x); top: var(--sun-top, calc(var(--horizon) - var(--sun-rise))); width: 0; height: 0; pointer-events: none; }
.sun::before { content: ""; position: absolute; left: -30vw; top: -45svh; width: 130vw; height: 90svh; background: radial-gradient(circle calc(var(--sun-cells) * var(--halo-k) * var(--u) / 2) at 23.08% 50%, var(--halo), transparent), radial-gradient(ellipse 55% 62% at 52% 50%, var(--halo-far), transparent); }
.sun::after { content: ""; position: absolute; width: calc(var(--sun-cells) * var(--u)); aspect-ratio: 1; translate: -50% -50%; background: var(--disc) center / 100% no-repeat; image-rendering: pixelated; }
/* The sun (or moon) is also the theme switch: an invisible round button over the disc, above the cards' layer. */
.sun-hit { position: fixed; z-index: 4; left: var(--sun-x); top: var(--sun-top, calc(var(--horizon) - var(--sun-rise))); width: calc(var(--sun-cells) * var(--u) + 24px); aspect-ratio: 1; translate: -50% -50%; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sun-hit:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sun-hit[disabled] { cursor: default; }
.sun::after { transition: scale 240ms cubic-bezier(0.16, 1, 0.3, 1); }
body:has(.sun-hit:hover:not([disabled])) .sun::after { scale: 1.08; }
.hills::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, var(--haze)); pointer-events: none; }
.light { position: fixed; left: 0; top: 0; width: 100vw; height: 100svh; z-index: 1; opacity: var(--ray-strength); pointer-events: none; }
.light-front { z-index: 2; opacity: calc(var(--ray-strength) * var(--ray-front, 0.3)); }
@media (forced-colors: active) { .sun, .hills::after, .mote, .light { display: none; } }
.hills { position: fixed; left: 0; right: 0; top: calc(var(--horizon) - var(--hills-h, 120px)); height: var(--hills-h, 120px); z-index: 0; background-repeat: repeat-x; background-position: 0 100%; image-rendering: pixelated; pointer-events: none; }
.meadow { position: absolute; left: 0; right: 0; top: var(--horizon); bottom: 0; z-index: 1; background-color: var(--grass); }
.meadow::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; }

/* ---- the ground layer: Jojo, books, flowers. Above the cards, so he is never hidden behind one ---- */
.world { position: absolute; left: 0; top: 0; width: 100%; height: 100svh; z-index: 3; overflow: hidden; pointer-events: none; }
.world > * { position: absolute; left: 0; top: 0; line-height: 0; will-change: transform; }
.world svg { display: block; width: calc(var(--cols) * var(--u)); height: calc(var(--rows) * var(--u)); overflow: visible; }
.shadow { background: var(--shadow); border-radius: 50%; pointer-events: none; }
.jojo { padding: 0; margin: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.jojo:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; }
.jojo > span { display: block; transform-origin: 50% 25%; }
.fx { animation: rise 1100ms steps(8, end) forwards; pointer-events: none; }
@keyframes rise { from { opacity: 1; } to { opacity: 0; translate: 0 calc(-12 * var(--u)); } }
.c-o { fill: var(--j-line); } .c-l { fill: var(--j-soft); } .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-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-c { fill: var(--page-cream); } .c-k { fill: var(--bk-band); }
.c-A { fill: var(--bk-a); } .c-B { fill: var(--bk-b); } .c-C { fill: var(--bk-c); } .c-D { fill: var(--bk-d); }
.c-1 { fill: var(--bk-a2); } .c-2 { fill: var(--bk-b2); } .c-3 { fill: var(--bk-c2); } .c-4 { fill: var(--bk-d2); }
.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); }
.flora svg { transform-origin: 50% 100%; animation: sway var(--sw, 3s) ease-in-out infinite alternate; animation-delay: var(--sd, 0s); }
@keyframes sway { from { transform: rotate(-12deg); } to { transform: rotate(9deg); } }
.flora.far { opacity: 0.8; }
.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: firefly 3s ease-in-out forwards; }
@keyframes 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); } }
.seed { pointer-events: none; animation: 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)); }
.seed .c-Q { fill: var(--puff); }
@keyframes 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); } }
.books .c-o, .flora .c-o { fill: var(--j-line); }

/* ---- the clouds: the name on the left (only once the intro has gone by), one cloud per nav link on the right ---- */
.top { position: fixed; z-index: 10; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + 10px); display: flex; justify-content: space-between; align-items: start; gap: 8px; padding-inline: clamp(8px, 3vw, 40px); pointer-events: none; font-family: var(--font-sans); font-weight: 500; font-size: 14px; }
.clouds { display: flex; align-items: 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; animation: drift 7s ease-in-out infinite; }
.clouds .puff:nth-child(2) { animation-delay: -2s; margin-top: 6px; }
.clouds .puff:nth-child(3) { animation-delay: -4.5s; margin-top: 2px; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
/* The name drifts down into the sky once the intro has gone by, slowly, from above the top edge, and back up when you
   return; no fade, a cloud doesn't. Hidden while away, so it isn't tabbed to off-screen. */
.puff.home { font-weight: 650; animation-delay: -2.5s; transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
.puff.home:not(.show) { visibility: hidden; transform: translateY(calc(-100% - 24px - env(safe-area-inset-top, 0px))); transition: transform 900ms cubic-bezier(0.55, 0, 0.75, 0.3), visibility 0s 900ms; }
.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); 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; } }
@media (hover: hover) { .puff:hover .nav-ico { opacity: 1; translate: 12px 0; } .puff:hover .nav-ico + .nav-word { translate: 12px 0; } }
.puff:focus-visible .nav-ico { opacity: 1; translate: 12px 0; }
.puff:focus-visible .nav-ico + .nav-word { translate: 12px 0; }
.puff:hover { text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .puff .nav-ico, .puff .nav-word { transition: none; } }
/* A theme flip changes the sky under a quick cross-fade while the sun sets and the moon rises (or back). Scoped to
   [data-theme-vt] so it and the crossing to a case study never run on each other's event. */
:root[data-theme-vt]::view-transition-old(root), :root[data-theme-vt]::view-transition-new(root) { animation-duration: 380ms; animation-timing-function: ease-in-out; }
@media (max-width: 520px) { .top { font-size: 13px; padding-inline: 8px; } .clouds { gap: 8px; } .puff { padding: 20px 22px 16px; } }
/* Cloud colours have letters of their own: C is a book colour. */
.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); }

/* ---- the track: intro cloud, then the cards, then the signpost, side by side ---- */
html { touch-action: pan-x pinch-zoom; }   /* horizontal page only; the vertical page below scrolls natively */
@media (hover: hover) and (pointer: fine) and (min-width: 601px) { html:not(.panning) .track, html:not(.panning) .meadow { cursor: grab; } html.panning, html.panning * { cursor: grabbing !important; user-select: none; } .track a, .track .intro, .track .outro { cursor: auto; } .track a { cursor: pointer; } }
.track { position: relative; z-index: 2; display: flex; align-items: flex-start; height: 100svh; padding-left: clamp(16px, 4vw, 64px); gap: clamp(28px, 4vw, 64px); }
/* The intro cloud sits in the middle of the sky, clear of the nav clouds. */
.intro-wrap { position: relative; flex: none; height: 100svh; display: grid; align-content: start; padding-top: max(76px, calc((var(--horizon) - var(--intro-h, 300px)) / 2 + 6svh)); }   /* 2026-11-03: lowered toward the middle of the cards (was - 2svh) */
.intro { position: relative; display: grid; padding: clamp(64px, 9svh, 112px) clamp(64px, 7vw, 104px) clamp(60px, 8svh, 96px); color: var(--cloud-ink); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { translate: 0 -4px; } 50% { translate: 0 6px; } }
.intro .cloud-art { position: absolute; inset: 0; z-index: -1; line-height: 0; }
.intro .cloud-art svg { width: 100%; height: 100%; display: block; }
.intro h1 { margin: 0; display: grid; font-family: var(--font-serif); color: var(--cloud-ink); font-weight: 300; line-height: 1.02; letter-spacing: -0.02em; }
.intro h1 .hi { font-size: clamp(2rem, min(4.4vw, 7svh), 3.6rem); margin-bottom: 0.22em; white-space: nowrap; }
.intro h1 .roles { display: grid; justify-items: start; text-align: left; }
.intro h1 .role { display: block; white-space: nowrap; font-size: clamp(1.25rem, min(2.5vw, 4svh), 2rem); line-height: 1.2; }
.intro-wrap .cloud-shadow { position: absolute; left: 14%; width: 72%; top: calc(var(--horizon) + 4svh); height: 26px; background: var(--shadow); border-radius: 50%; animation: shade 6s ease-in-out infinite; }
@keyframes shade { 50% { scale: 0.86 1; opacity: 0.7; } }

.work { display: flex; align-items: flex-start; gap: clamp(28px, 4vw, 64px); height: 100svh; }
/* Square cards standing on the back edge of the meadow, alternately a step forward and back. */
.slot { --base: 65.75svh; position: relative; flex: none; width: var(--s); height: var(--s); margin-top: calc(var(--base) - var(--s)); }
.slot:nth-child(even) { --base: 68svh; --d: -2.2s; }   /* each card's foot sits 5.25svh or 3svh above the horizon */
.slot:nth-child(3n) { --d: -3.6s; }
/* The cards float a little above the meadow; each one's shadow lies on the grass just past the horizon and breathes with its bob. */
.slot::after { content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: calc(var(--s) + var(--horizon) + 2.4svh - var(--base)); height: 20px; background: var(--shadow); border-radius: 50%; animation: shade 5.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
.card {
  margin: 0; cursor: pointer; text-decoration: none;
  display: flex; flex-direction: column; width: 100%; height: 100%; padding: 14px;
  background: var(--card); color: var(--card-ink); border-radius: 28px;
  box-shadow: var(--glow, 0 0 transparent), 0 0 0 1px var(--card-edge), 0 18px 30px -24px var(--card-lift);
  transition: translate 320ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 320ms;
  animation: float 5.2s ease-in-out infinite; animation-delay: var(--d, 0s);
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
/* Rim light (set by light.js): the edge facing the sun catches it in the ray colour, and a soft glow spills onto the sky off
   that edge, cast as the card's own shadow offset toward the sun (a box with a gradient in it showed its own corners). Both scale with --rim and the theme's --ray-strength, so the moon's rim is faint and cool. */
@property --rim { syntax: "<number>"; inherits: true; initial-value: 0; }
.slot { transition: --rim 300ms ease-out; }
.card { position: relative; --glow: calc(var(--rim-dx, 0) * 10px) calc(var(--rim-dy, 0) * 10px) 34px -4px color-mix(in srgb, var(--rim-color) calc(var(--rim) * var(--rim-k) * 60%), transparent); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 3px; pointer-events: none; background: linear-gradient(var(--rim-a, 0deg), color-mix(in srgb, var(--rim-color) calc(var(--rim) * var(--rim-k) * 100%), transparent), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.card:hover, .card:focus-visible { animation-play-state: paused; translate: 0 -8px; box-shadow: var(--glow, 0 0 transparent), 0 0 0 1px var(--card-edge), 0 24px 40px -18px var(--card-lift); }
.card:focus-visible { outline: 2px dashed var(--accent); outline-offset: 4px; }
.card .name { text-decoration: underline 2px transparent; text-underline-offset: 4px; transition: text-decoration-color 200ms; }
.card:hover .name, .card:focus-visible .name { text-decoration-color: var(--accent); }
/* Coming soon (2026-10-15, Nico): a study still being reviewed opens nothing. Hover, focus or tap it (meadow.js adds
   .peeking for a tap) and a burrow opens in the middle of the card, Jojo comes straight up out of it, rests his two front
   paws on the lip, and a thought bubble says sorry; away, he ducks and the hole closes over him. The art is meadow.js's,
   drawn in --u cells in the page's own sprite classes, so it follows the theme. It is not a link, so no pointer and no underline. */
:root { --hole: #1d1610; --hole-back: #120d09; }
.c-h { fill: var(--hole); } .c-j { fill: var(--hole-back); }
.track a.soon { cursor: default; }
.card.soon:hover .name, .card.soon:focus-visible .name { text-decoration-color: transparent; }
.slot:has(> .soon:hover), .slot:has(> .soon:focus-visible), .slot:has(> .soon.peeking) { z-index: 3; }   /* the bubble lies over the next card */
.peek { position: absolute; z-index: 6; left: 50%; top: 50%; width: calc(26 * var(--u)); height: calc(15 * var(--u)); margin: calc(-10.5 * var(--u)) 0 0 calc(-13 * var(--u)); pointer-events: none; }
.peek svg { position: absolute; display: block; shape-rendering: crispEdges; }
.peek .hole { left: 0; bottom: 0; transform-origin: 50% 70%; scale: 0; transition: scale 200ms steps(4) 220ms; }
/* The head rises in a window whose floor is the hole's middle, so none of him shows below it. */
.peek .win { position: absolute; left: 0; right: 0; bottom: calc(4 * var(--u)); height: calc(14 * var(--u)); overflow: hidden; }
.peek .head { left: calc(5 * var(--u)); bottom: 0; translate: 0 100%; transition: translate 260ms steps(5); }
.peek .paws { left: calc(4 * var(--u)); bottom: var(--u); opacity: 0; }
.peek .thought { left: calc(21 * var(--u)); top: auto; bottom: calc(100% + 34px); z-index: 7; padding: 34px 44px 30px; pointer-events: none; opacity: 0; translate: 0 6px; transition: opacity 160ms, translate 220ms cubic-bezier(0.16, 1, 0.3, 1); animation: none; }
.peek .thought .tail-1 { left: 6px; bottom: -14px; }
.peek .thought .tail-2 { left: -4px; bottom: -28px; }
/* Every filter on a thumb starts with grayscale(), on or off: a browser can only ease between two filter lists of the same
   shape, and with it missing from the resting list the picture held its colour half the fade and then snapped to grey
   (Nico, 2026-10-15). */
/* The card dims as the hole opens: its picture and words go grey and faint under him, and come back as he ducks. The
   picture dims as one piece (its still, clip or pages and its shadow together), never layer by layer, or the hidden
   layers would show through each other. */
.card.soon .thumb { transition: rotate 420ms cubic-bezier(0.16, 1, 0.3, 1), translate 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms ease-out, filter 420ms, opacity 200ms ease 200ms; }
.card.soon .text { filter: grayscale(0); transition: opacity 200ms ease 200ms, filter 200ms ease 200ms; }
.card.soon:focus-visible .thumb, .card.soon.peeking .thumb { opacity: 0.35; filter: grayscale(1) drop-shadow(0 0 0.5px var(--obj-edge)) drop-shadow(0 26px 24px var(--obj-lift)); transition-delay: 0ms; }
.card.soon:focus-visible .text, .card.soon.peeking .text { opacity: 0.35; filter: grayscale(1); transition-delay: 0ms; }
/* The grey goes on each picture inside as well as on the whole. Safari draws a page that is mid-fade (a page stack
   leafing over, a clip) on a layer of its own, outside the filter of the box it is in, so each new Aoni post came in
   in colour and went grey only once its fade had finished (Nico, 2026-10-15). A cut-out keeps its soft edge. */
.card.soon .thumb :is(img, video) { filter: grayscale(0); transition: filter 420ms, opacity 300ms ease, scale 900ms cubic-bezier(0.16, 1, 0.3, 1); }
.card.soon .thumb--cut :is(img, video) { filter: grayscale(0) drop-shadow(0 0 0.6px var(--cut-edge)); }
.card.soon:is(:focus-visible, .peeking) .thumb :is(img, video) { filter: grayscale(1); }
.card.soon:is(:focus-visible, .peeking) .thumb--cut :is(img, video) { filter: grayscale(1) drop-shadow(0 0 0.6px var(--cut-edge)); }
.card.soon:focus-visible .peek .hole, .card.soon.peeking .peek .hole { scale: 1; transition-delay: 0ms; }
.card.soon:focus-visible .peek .head, .card.soon.peeking .peek .head { translate: 0 0; transition-delay: 160ms; }
.card.soon:focus-visible .peek .paws, .card.soon.peeking .peek .paws { opacity: 1; transition: opacity 0s 380ms; }
.card.soon:focus-visible .peek .thought, .card.soon.peeking .peek .thought { opacity: 1; translate: 0 0; transition-delay: 460ms; }
@media (hover: hover) {
  .card.soon:hover .thumb { opacity: 0.35; filter: grayscale(1) drop-shadow(0 0 0.5px var(--obj-edge)) drop-shadow(0 26px 24px var(--obj-lift)); transition-delay: 0ms; }
  .card.soon:hover .text { opacity: 0.35; filter: grayscale(1); transition-delay: 0ms; }
  .card.soon:hover .thumb :is(img, video) { filter: grayscale(1); }
  .card.soon:hover .thumb--cut :is(img, video) { filter: grayscale(1) drop-shadow(0 0 0.6px var(--cut-edge)); }
  .card.soon:hover .peek .hole { scale: 1; transition-delay: 0ms; }
  .card.soon:hover .peek .head { translate: 0 0; transition-delay: 160ms; }
  .card.soon:hover .peek .paws { opacity: 1; transition: opacity 0s 380ms; }
  .card.soon:hover .peek .thought { opacity: 1; translate: 0 0; transition-delay: 460ms; }
}
@media (prefers-reduced-motion: reduce) {
  .peek { opacity: 0; transition: opacity 160ms; }
  .peek .hole, .peek .head, .peek .paws, .peek .thought { scale: 1; translate: 0 0; opacity: 1; transition: none; }
  .card.soon:focus-visible .peek, .card.soon.peeking .peek { opacity: 1; }
  @media (hover: hover) { .card.soon:hover .peek { opacity: 1; } }
}
@media (forced-colors: active) { .peek .thought .cloud-art { display: none; } .peek .thought { border: 2px solid CanvasText; background: Canvas; } }
/* The picture is an object lying on the card, not a picture in a frame: no box behind it, its own corners and shadow, a
   slight tilt, and its top hanging over the card's top edge (after xinni.co's cards). Hovering straightens it, lifts it and
   leans it toward the pointer (--px and --py, -1 to 1, set by meadow.js), while its clip keeps looping. */
.thumb { flex: 1 1 auto; min-height: 0; position: relative; z-index: 2; margin: calc(-0.2 * var(--s)) -4px 4px;
  rotate: var(--tilt, 0deg); transform: perspective(900px) rotateX(calc(var(--py, 0) * -5deg)) rotateY(calc(var(--px, 0) * 6deg)) translate(calc(var(--px, 0) * 5px), calc(var(--py, 0) * 4px));
  filter: grayscale(0) drop-shadow(0 0 0.5px var(--obj-edge)) drop-shadow(0 16px 18px var(--obj-lift));
  transition: rotate 420ms cubic-bezier(0.16, 1, 0.3, 1), translate 420ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms ease-out, filter 420ms; }
:root { --obj-edge: rgb(30 50 70 / 0.35); --obj-lift: rgb(30 50 70 / 0.22); }
:root[data-theme="dark"] { --obj-edge: rgb(255 255 255 / 0.18); --obj-lift: rgb(0 0 0 / 0.55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --obj-edge: rgb(255 255 255 / 0.18); --obj-lift: rgb(0 0 0 / 0.55); } }
/* A landscape screen hangs over less at the top and further at the sides, so it fills the card rather than floating above a gap. */
.thumb--wide { margin: calc(-0.1 * var(--s)) calc(-0.07 * var(--s)) 8px; }
.slot { --tilt: -2.2deg; }
.slot:nth-child(even) { --tilt: 1.8deg; }
.slot:nth-child(3n) { --tilt: -1deg; }
.card:hover .thumb, .card:focus-visible .thumb { rotate: 0deg; translate: 0 -6px; filter: grayscale(0) drop-shadow(0 0 0.5px var(--obj-edge)) drop-shadow(0 26px 24px var(--obj-lift)); }
/* Each picture keeps its own shape: an absolutely placed replaced element with auto size and max-width/height takes the
   largest size of its own aspect that fits, so its corners are the picture's corners (object-fit would round the frame). */
.thumb img, .thumb video { position: absolute; inset: 0; margin: auto; display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; border-radius: 10px; }
/* A grey hairline round each picture, so a pale screenshot doesn't melt into the white card (Nico, 2026-10-14). Inset, so
   it sits on the picture's own rounded edge. A cut-out (WatchMeType's windows, the two phones) has no box to draw round, so
   it gets a one-pixel soft edge that follows its own outline instead: four hard one-pixel shadows did that first, and
   stair-stepped round every rounded corner in Safari. Dark mode needs neither, as a pale screen already stands off a dark
   card, and a light edge there only lit up the clip's own alpha noise. */
.thumb img, .thumb video { outline: 1px solid var(--thumb-line); outline-offset: -1px; }
.thumb--cut img, .thumb--cut video, .thumb .masked { outline: 0; }
.thumb--cut img, .thumb--cut video { filter: drop-shadow(0 0 0.6px var(--cut-edge)); }
/* Hover a card and its thumbnail comes to life: the project's own clip, faded in over the still. */
.thumb .preview { opacity: 0; transition: opacity 300ms ease; }
.thumb .preview.on { opacity: 1; }
.thumb img { transition: opacity 300ms ease; }
.thumb:has(.preview.on) img:not(.preview) { opacity: 0; }
/* A page stack's pages are opaque and exactly cover the still, so the still stays under them rather than fading out as the
   first page fades in: two half-faded layers are a half-transparent picture, and the drop shadow, cast by the picture's
   own alpha, blinked out with it (Nico, 2026-10-15). */
.thumb:has(.leaf.on) img:not(.preview) { opacity: 1; }
.leaving .thumb * { transition: none !important; }   /* the still is back at once when a card is left mid-preview */
/* A still with nothing to play leans in a little closer while hovered, so every card answers the pointer. */
.card .thumb img.drift { transition: scale 900ms cubic-bezier(0.16, 1, 0.3, 1), opacity 300ms ease; }
.card:hover .thumb img.drift { scale: 1.04; }
.thumb .masked { -webkit-mask: var(--mask) center / contain no-repeat; mask: var(--mask) center / contain no-repeat; border-radius: 0; }
.card .text { display: grid; gap: 2px; padding: 12px 8px 4px; }
/* Name, then kind, like a dictionary entry: "Quip  macOS app". It replaced a numbered, upper-case, letterspaced mono
   kicker ("01 / MACOS APP"), the most template-looking thing on the page. */
.card .title { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.55em; }
.kind { font-style: italic; font-weight: 400; font-size: clamp(0.875rem, 1.8svh, 0.95rem); color: var(--ink-muted); white-space: nowrap; }
.name { margin: 0; font-family: var(--font-serif); font-size: clamp(1.15rem, 2.6svh, 1.45rem); line-height: 1.15; font-weight: 400; color: var(--card-ink); }
.line { margin: 0; font-size: clamp(0.85rem, 1.9svh, 0.98rem); line-height: 1.38; color: var(--ink-body); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---- crossing to a case study and back ----
   A card is a link. Following it, the browser carries the card's picture, name and line to the study's hero, subtitle
   and title (meadow.js names only that one card, at the moment of leaving or returning). style.css styles the move
   toward a study, since a transition takes its styles from the page it lands on; these rules style the move back. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
::view-transition-group(*.vt-title), ::view-transition-group(*.vt-line), ::view-transition-group(*.vt-media) { animation-duration: 0.35s; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.card [data-vt$="-title"] { view-transition-class: vt-title; }
.card [data-vt$="-line"] { view-transition-class: vt-line; }
.card .thumb[data-vt] { view-transition-class: vt-media; }
/* The same three rules as style.css: titles scale by their height, lines fade at their own size, pictures fit the moving frame. */
::view-transition-old(*.vt-title), ::view-transition-new(*.vt-title) { height: 100%; width: auto; }
::view-transition-old(*.vt-line), ::view-transition-new(*.vt-line) { width: 100%; height: 100%; object-fit: none; object-position: left top; }
::view-transition-old(*.vt-media), ::view-transition-new(*.vt-media) { width: 100%; height: 100%; object-fit: contain; }

/* The end of the track: a wooden signpost planted in the meadow, two posts, a plank board and a paper notice pinned to it.
   The art is drawn by signpost() (engine.js) and paintSign() (meadow.js) behind the words, which are real text on the plain
   paper. --foot is where the posts meet the grass, in the lower part of the grass band; the board stands above that on the
   posts, its middle a little above the horizon. Jojo stays in front of it (meadow.js keeps him out from behind). */
.end { --foot: 84svh; --post: calc(28 * var(--u)); flex: none; height: var(--foot); display: flex; align-items: flex-end; margin-right: clamp(32px, 8vw, 120px); }
.outro { position: relative; 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); }
/* The board: its padding is the wood frame (--frame, which paintSign reads) plus the paper's own margin round the words. */
.outro .board { --frame: 24px; position: relative; z-index: 1; display: grid; justify-items: start; gap: 10px; padding: calc(var(--frame) + 18px) calc(var(--frame) + 26px) calc(var(--frame) + 16px); }
.outro h2 { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.8rem, min(3.4vw, 5.4svh), 2.8rem); line-height: 1.05; letter-spacing: -0.02em; white-space: nowrap; }
.outro .links { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-family: var(--font-sans); font-weight: 500; font-size: 15px; white-space: nowrap; }
.outro a { color: var(--sign-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.outro a:hover { text-decoration-thickness: 2px; }
.outro a:focus-visible { outline: 3px solid var(--sign-focus); outline-offset: 3px; }
@media (forced-colors: active) { .sign-art { display: none; } .outro .board { border: 2px solid CanvasText; } .outro .board a:focus-visible { outline-color: Highlight; } }
/* Jojo's thought 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-sans); font-size: 15px; line-height: 1.35; text-align: left; white-space: nowrap; pointer-events: auto; animation: 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; }
.thought a:hover { text-decoration-thickness: 2px; }
.thought a:focus-visible { outline: 3px solid var(--accent); 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 think { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .thought { animation: none; } }
.veil { display: none; }
.sr { position: absolute; top: 0; margin: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro-wrap .cloud-shadow, .puff { animation: none; }
  .card, .puff.home { transition: none; animation: none; }
  .card:hover .thumb img.drift { scale: none; }
  .thumb { transition: none; transform: none; }
  .card:hover .thumb, .card:focus-visible .thumb { translate: none; }
  .slot::after { animation: none; }
  .fx { animation-duration: 1ms; }
  .flora svg { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Short desktop windows: a lower horizon, and the card keeps room for its picture. (A touch screen this short is a phone on its side, and gets the vertical page below.) */
@media (max-height: 500px) and (min-width: 601px) and (pointer: fine) {
  body { --horizon: 76svh; --s: calc(72svh - 96px); }
  .slot, .slot:nth-child(even) { --base: 73svh; }
  .end { --foot: 86svh; --post: calc(18 * var(--u)); }
  .outro .board { --frame: 20px; padding-block: calc(var(--frame) + 10px) calc(var(--frame) + 8px); }
  .outro h2 { font-size: 1.8rem; }
  .intro { padding: 36px 52px 34px; }
  .card { padding: 10px; border-radius: 24px; }
  .card .text { padding: 6px 6px 2px; }
}
/* Short windows, 640px tall or less (2026-10-13): a card is as tall as the window allows, so a square one got too narrow
   for its line, and below about 610px WatchMeType's (at 844x390 five of seven) ended in an ellipsis. Height is what such a
   window lacks; width it has, so the cards turn 4:3 like the phone-on-its-side page's, and every line fits in its two. The
   vertical page below sets its own width and wins. Measured at 390 to 640 tall, 844 to 1920 wide. */
@media (min-width: 601px) and (max-height: 640px) {
  .slot, .slot:nth-child(even) { width: calc(var(--s) * 4 / 3); }
}

/* ---- Phones: a vertical page that scrolls like any other ----
   The same query lives in meadow.js as VERTICAL; change both together. The first screen is the meadow's hill: the intro
   cloud in the sky, the horizon, and a strip of grass where Jojo, the books and the flowers live, with the first card
   peeking up from below. Under that the meadow runs on down the page beneath a column of cards (two, on a phone held
   sideways) and ends in the meadow, where the signpost stands. */
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
  :root { --u: 2px; }
  html { overflow-y: auto; overflow-x: clip; touch-action: auto; scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
  body { position: relative; height: auto; width: auto; min-width: 0; overflow: visible; overflow-x: clip; --horizon: 54svh; --hero: 70svh; }
  /* Jojo can follow you down the page now, so his layer is as tall as it. */
  .world { height: 100%; }
  .hills, .sun, .sun-hit, .light { position: absolute; }
  /* Night or day, the disc sits just over the hill on the phone page: the intro cloud and the nav fill the sky above it. */
  .sun, .sun-hit { --sun-top: initial; }
  .top { font-size: 13px; padding-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px)); }
  /* Cards scroll up under the clouds: a band along the top edge keeps their words from reading through the nav. It is a
     fixed element of its own with a real background colour, the sky's or the grass's, whichever is behind it (meadow.js
     sets html.veil-grass), fading out down the band over a blur. iOS 26 Safari paints no fixed element under the status bar
     and the Dynamic Island: it fills that strip itself, from the background colour of a fixed element at the top edge, so a
     band with no colour of its own (a backdrop blur alone) left the page reading through there, sharp, above a blurred
     strip (Nico, 2026-10-15). */
  .veil { display: block; position: fixed; z-index: 9; left: 0; right: 0; top: 0; height: calc(env(safe-area-inset-top, 0px) + 92px); background-color: var(--veil); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); -webkit-mask-image: linear-gradient(#000 calc(env(safe-area-inset-top, 0px) + 6px), rgb(0 0 0 / 0.6) calc(env(safe-area-inset-top, 0px) + 40px), transparent); mask-image: linear-gradient(#000 calc(env(safe-area-inset-top, 0px) + 6px), rgb(0 0 0 / 0.6) calc(env(safe-area-inset-top, 0px) + 40px), transparent); pointer-events: none; }
  html { --veil: var(--sky-top); }
  html.veil-grass { --veil: var(--grass) !important; }
  .clouds { gap: 8px; }
  .puff { padding: 22px 24px 16px; }

  /* On its side an iPhone's notch takes 50-odd pixels off one edge: the safe areas keep the cards and clouds clear of it. */
  .track { display: block; height: auto; padding: 0 max(40px, env(safe-area-inset-right, 0px)) 0 max(40px, env(safe-area-inset-left, 0px)); }
  .intro-wrap { height: var(--hero); width: auto; display: grid; justify-items: center; align-content: start; padding-top: max(132px, calc(env(safe-area-inset-top, 0px) + 120px)); }   /* clear of the nav clouds (Nico, 2026-10-30: the intro cloud ran into them) */
  .intro { width: max-content; max-width: 100%; padding: 40px 38px 36px; }
  .intro-wrap .cloud-shadow { display: none; }

  /* Wide gaps of grass between the rows: Jojo runs in them, and each is deeper than he is tall, so he never covers a card. */
  .work { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 76px 40px; height: auto; max-width: 880px; margin: 0 auto; }
  .slot, .slot:nth-child(even) { width: 100%; height: auto; margin: 0; aspect-ratio: 1 / 1.06; }
  .slot::after, .card::after { display: none; }
  .card { --glow: 0 0 transparent; }
  /* A list you scroll past holds still; the float belongs to the horizontal page, where the cards stand in the air. */
  .card { animation: none; box-shadow: 0 0 0 1px var(--card-edge), 0 14px 28px -20px var(--card-lift); }
  .card:hover, .card:focus-visible { translate: none; }
  /* A column card is the screen's width: the bubble sits over his head, inside the card, rather than off its right edge. */
  .peek .thought { left: 50%; transform: translateX(-40%); bottom: calc(100% + 26px); padding: 28px 34px 24px; }
  .peek .thought .tail-1 { left: 50%; bottom: -14px; }
  .peek .thought .tail-2 { left: calc(50% - 4px); bottom: -26px; }

  /* The page ends in the meadow: the grass runs to the bottom edge, the signpost stands in it a little below the last row of
     cards, and under its foot a strip deeper than Jojo is tall is his last patch of grass. */
  .end { height: auto; display: grid; justify-items: center; margin: 0; padding: 56px 0 calc(44 * var(--u) + env(safe-area-inset-bottom, 0px)); }
  .outro { max-width: 100%; }
}
/* On its side the hill is short: a lower horizon, and two cards to a row that fit the screen's height. */
@media (max-height: 500px) and (pointer: coarse) {
  body { --horizon: 58svh; --hero: 78svh; }   /* a little more than half: the books need the room */
  .intro-wrap { padding-top: max(56px, calc(env(safe-area-inset-top, 0px) + 48px)); }
  .intro { padding: 30px 40px 28px; }
  .intro h1 .hi { font-size: 1.7rem; }
  .intro h1 .role { font-size: 1.1rem; }
  .slot, .slot:nth-child(even) { aspect-ratio: 4 / 3; }
  .card { padding: 10px; border-radius: 24px; }
  .card .text { padding: 6px 6px 2px; }
}
.arrow { width: 0.62em; height: 0.62em; margin-left: 0.15em; vertical-align: 0.05em; fill: currentColor; shape-rendering: crispEdges; }

/* 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); }

/* =====================================================================================================================
   Calmer homepage (2026-11-03, after Scott's review of 2026-11-02). The meadow, Jojo and the cards stay; everything that
   moved or lit up on its own, or answered a hover with more than an underline, goes. Kept here as one block of overrides so
   the review's changes read in one place.
   ===================================================================================================================== */

/* #1, #7: the nav is plain words on the sky, no clouds, no icons; a hover underlines the word. The name stays put at the
   top left from the start (no dropping in once the intro scrolls away). */
.top .puff, .clouds .puff:nth-child(n) { animation: none; margin-top: 0; padding: 14px 16px; color: var(--ink); background: none !important; font-size: 15px; }
.top .puff .cloud-art, .top .puff .cloud-art-wide, .top .puff .nav-ico { display: none; }
.top .puff .nav-word { background: none; translate: none; }
.top .puff.home, .top .puff.home:not(.show) { visibility: visible; transform: none; transition: none; }
.top .puff:hover, .top .puff:hover .nav-word { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* #8, #9: the intro is two lines of type straight on the sky, no cloud and no bob. One clear king: the greeting, big in the
   serif; the line under it, smaller and plain in the sans. No line broken by hand. */
.intro { animation: none; padding: 0 clamp(8px, 3vw, 40px) 0 clamp(24px, 4vw, 56px); color: var(--ink); max-width: min(40rem, 80vw); }
.intro .cloud-art, .intro-wrap .cloud-shadow { display: none; }
html:not(.clouds-drawn) .intro { background: none; }
.intro h1 { display: block; color: var(--ink); font-weight: 400; }
.intro h1 .hi { display: block; font-size: clamp(2.6rem, min(6vw, 10svh), 4.5rem); line-height: 1.02; margin: 0 0 0.35em; }
.intro h1 .roles { display: block; font-family: var(--font-sans); font-size: clamp(1.1rem, min(1.9vw, 3.2svh), 1.4rem); line-height: 1.4; letter-spacing: 0; color: var(--ink-body); white-space: normal; text-wrap: balance; }

/* #2, #10: cards hold still. No bob, no breathing shadow, no lift, no straightening or lean, no rim light (light.js is off).
   A hover underlines the name and plays the clip; that is all. */
.card { animation: none; transition: box-shadow 200ms; }
.slot::after { animation: none; }
.card:hover, .card:focus-visible { translate: none; }
.card:hover .thumb, .card:focus-visible .thumb { rotate: var(--tilt, 0deg); translate: none; filter: grayscale(0) drop-shadow(0 0 0.5px var(--obj-edge)) drop-shadow(0 16px 18px var(--obj-lift)); }
.thumb { transform: none; }
.card::after { display: none; }

/* #20: two levels on a card, after marissacui.com: the name in the serif, the line under it in the sans, muted. The kind
   ("Mac app") moved into the line. */
.card .text { gap: 6px; padding: 14px 8px 4px; }
.name { font-size: clamp(1.3rem, 2.9svh, 1.6rem); line-height: 1.15; }
.line { font-family: var(--font-sans); font-size: clamp(0.88rem, 1.9svh, 1rem); line-height: 1.45; color: var(--ink-muted); }
.card .kind { display: none; }

/* #10: a card still in review dims nothing and shows nothing on hover; a click or tap brings up a small tooltip. */
.card.soon .thumb, .card.soon .text, .card.soon .thumb :is(img, video) { opacity: 1 !important; filter: none !important; }
.card.soon .thumb { filter: drop-shadow(0 0 0.5px var(--obj-edge)) drop-shadow(0 16px 18px var(--obj-lift)) !important; }
.soon-tip { position: absolute; z-index: 8; left: 50%; top: 50%; translate: -50% calc(-50% + 4px); padding: 9px 14px; border-radius: 10px; background: rgb(18 22 28 / 0.94); color: #f4f6f8; font: 500 15px/20px var(--font-sans); white-space: nowrap; pointer-events: none; opacity: 0; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14), 0 10px 28px -6px rgb(0 0 0 / 0.55); transition: opacity 150ms, translate 150ms; }
/* The same dark pill in both themes, with a hairline and a shadow, so it reads over a white screenshot and a dark card alike. */
.card.soon.peeking .soon-tip { opacity: 1; translate: -50% -50%; }
.slot:has(> .soon.peeking) { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .soon-tip { transition: none; } }

/* #11: the moon's glow, halved; the sun's a little softer. */
:root { --halo: rgb(255 214 150 / 0.4); --halo-far: rgb(255 222 175 / 0.25); }
:root[data-theme="dark"] { --halo: rgb(170 198 236 / 0.11); --halo-far: rgb(150 182 232 / 0.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --halo: rgb(170 198 236 / 0.11); --halo-far: rgb(150 182 232 / 0.05); } }

/* The signpost: the same words and type as every other page's sign (study.css, .outro): the heading in the serif at 400,
   one line in the sans, then the three links. */
.outro h2 { font-weight: 400; font-size: clamp(1.6rem, min(2.6vw, 4.4svh), 2rem); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 4px; }
.outro .sign-line { margin: 0 0 8px; max-width: 30ch; font-family: var(--font-sans); font-size: 17px; line-height: 26px; color: var(--sign-ink); }
.outro .links { gap: 10px; }
.outro .board { padding: calc(var(--frame) + 32px) calc(var(--frame) + 40px) calc(var(--frame) + 30px); }
