/* ==========================================================================
   Black, white, and one blue. Calm type. One thing on screen at a time.
   Change a colour here and the whole site (canvases included) follows.
   ========================================================================== */
@font-face {
  /* Aspekta by Ivo Dolenc, SIL Open Font License 1.1 (assets/fonts/Aspekta-LICENSE.txt). The font from Skyline. */
  font-family: "Aspekta";
  src: url("../assets/fonts/AspektaVF.woff2") format("woff2");
  font-weight: 50 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --ink: #f2f0eb;           /* headings and anything that should be read first */
  --ink-body: #bdbcb8;      /* running text: sentences you are meant to read (never fainter than #b8b8b8 on black) */
  --ink-dim: #8a8985;       /* the quiet things only: small labels, dates, the menu */
  --line: #1d1d1c;          /* hairlines */
  --red: #e8174b;           /* RESERVED for your graphs. The site itself never uses it. */
  --cobalt: #2b3fff;        /* THE ACCENT COLOUR, for solid shapes and panels (tags, the shop button, Contact). Ultramarine. The same value as the next line: one blue everywhere */
  --cobalt-hi: #2b3fff;     /* the same blue at full strength, for lines, dots and small text on black. Every drawing on the site reads this value */
  --on-accent: #ffffff;     /* text and marks that sit on a block of the accent colour (dark instead, if the accent is a light colour) */
  --on-accent-dim: rgba(255, 255, 255, 0.74);
  --on-accent-line: rgba(255, 255, 255, 0.3);
  --accent-deep: #2233cc;   /* the accent as it is used on the cream sheet, deep enough to read there */
                            /* To try another accent without editing anything: add ?accent=RRGGBB to the address, e.g. index.html?accent=2f7bff */

  --sans: "Aspekta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: var(--sans);
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", serif;      /* the second voice: a classic serif, always in italic, for everything said quietly (the same face as the cards) */

  --gut: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --soft: cubic-bezier(0.22, 1, 0.36, 1);     /* a long, soft landing: used wherever something arrives */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }      /* nothing may make the page wider than the screen */
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 330;            /* running text is light, headings are bold (700): the two should never be mistaken for each other */
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--cobalt-hi); color: var(--on-accent); }
a { color: inherit; }
canvas, img { display: block; }
h1, h2, h3, h4, p, ol, ul, dl, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt-hi); outline-offset: 4px; }

.mono { font-family: var(--serif); font-style: italic; font-size: 0.98rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-dim); }      /* the quiet voice: dates, captions, hints */
.link { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.link:hover { color: var(--cobalt-hi); text-decoration-color: var(--cobalt-hi); }
.btn { display: inline-block; padding: 12px 20px; background: var(--cobalt-hi); color: var(--on-accent); font-weight: 500; text-decoration: none; transition: background 0.2s; }
.btn:hover { filter: brightness(1.15); }

/* ---------- sheets ----------
   Each part of the page is a sheet. It scrolls up until its foot reaches the foot of the screen, then holds still
   while the next sheet slides up over it (its top corners rounded, a shadow under its edge), and it dims as it is
   covered. js/main.js sets --stick (where it holds), --cover (how much of it is covered) and .is-under (wholly
   covered: let go, so nothing in it keeps running out of sight). Most sheets are black; one is cream, the last cobalt. */
.sheet { position: sticky; top: var(--stick, 0px); z-index: 1; min-height: 100vh; min-height: 100svh; }
.sheet.is-under, .sheet:last-of-type { position: relative; top: auto; }
.sheet::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: -1; background: var(--sheet, var(--bg)); border-radius: clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px) 0 0; box-shadow: 0 -26px 70px rgba(0, 0, 0, 0.6); }
.sheet::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; z-index: 8; background: #000; opacity: calc(var(--cover, 0) * 0.45); pointer-events: none; }
.sheet--stay + .sheet { margin-top: 60vh; }      /* this sheet stays put, whole, for a full screen and more of scrolling before the next one starts up over it */
@media (max-width: 760px) { .sheet--stay + .sheet { margin-top: 90vh; } }      /* a phone gives Projects a whole extra screen of scrolling too */
#art.sheet::before { border-radius: 0; box-shadow: none; }      /* Art follows About by plain scrolling: no edge, no shadow */
/* the cream sheet: the same things, dark on light */
.sheet--cream { --sheet: #ece9df; --ink: #0b0b0b; --ink-body: #403e39; --ink-dim: #6c6a63; --line: #cfcbbf; --cobalt-hi: var(--accent-deep); color: var(--ink); }      /* on cream the accent is used deep, so it can be read */
.sheet--cream .cause__role a, .sheet--cream .link { color: var(--ink); }
/* the cobalt sheet: white on blue */
.sheet--cobalt { --sheet: var(--cobalt); --ink: var(--on-accent); --ink-dim: var(--on-accent-dim); --line: var(--on-accent-line); --cobalt-hi: var(--on-accent); --pad-ink: var(--on-accent); color: var(--on-accent); }      /* the closing sheet: a block of the accent colour */
.sheet--cobalt .pad { border-color: var(--on-accent); background-image: radial-gradient(circle, var(--on-accent-line) 1px, transparent 1.5px); }
.sheet--cobalt .pad__label { color: var(--on-accent); }
.sheet--cobalt .eight { color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .sheet { position: relative; top: auto; } .sheet::after { display: none; } }

/* ---------- the menu ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gut);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.past-hero .nav { background: var(--bg); border-bottom-color: var(--line); }
.nav__name { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; opacity: 0; transition: opacity 0.3s; }
.past-landing .nav__name { opacity: 1; }                 /* on the first screen your name is already huge */
.mark { display: block; width: 100%; height: 100%; overflow: visible; }      /* the small fan: seven lines from one corner */
.mark__fan { transform-box: fill-box; transform-origin: 0 100%; transition: transform 0.45s var(--ease); }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); margin-left: auto; }
@media (min-width: 621px) { .nav__links a:last-child { padding: 7px 16px; border: 1px solid currentColor; border-radius: 999px; color: var(--ink); } }      /* Contact is the one thing to press */
.nav__links a { font-size: 0.9rem; text-decoration: none; color: var(--ink-dim); white-space: nowrap; transition: color 0.2s; }
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="true"] { color: var(--cobalt-hi); }
@media (max-width: 620px) { .nav { padding: 12px 16px; gap: 12px; } .nav__links { gap: 10px; } .nav__links a { font-size: 0.74rem; } }      /* on a phone the whole menu has to fit across */

/* ---------- the way in: a cover. Your photo under a light screentone and your name, on a black sheet that stays put while you scroll.
   The About section is pulled up underneath it (the negative margin), so it is already in place behind the sheet when it clears.
   js/enter.js moves the photo to where the real one on that page is, and then the real one takes over ---------- */
.hero { position: relative; z-index: 4; height: 200vh; margin-bottom: -100vh; pointer-events: none; }
.hero__stage { position: sticky; top: 0; height: 100vh; overflow: hidden; pointer-events: auto; }      /* the full height of the screen, the part behind a phone's toolbar included, so nothing shows round it */
.hero.is-open .hero__stage { visibility: hidden; pointer-events: none; }      /* you are in: the sheet is out of the way of the page */
.hero__sheet { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; }
/* the black sheet is three leaves, hinged at the corner the lines open from (js/enter.js places and turns them). The first two are thin,
   so the page shows dimly through them before the last, solid one has gone */
.hero__leaf { position: absolute; background: #000; transform-origin: 50% 100%; will-change: transform; }
.hero__leaf--0 { opacity: 0.5; }
.hero__leaf--1 { opacity: 0.72; }
.hero__leaf--2 { overflow: hidden; }
/* the lines from the gallery, opening out from behind the photo, on the last leaf. The box is larger than the screen so that leaning it never shows an edge */
.hero__fan { position: absolute; pointer-events: none; will-change: transform; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.hero__pleats { position: absolute; left: 0; top: 0; width: 100%; height: 100%; color: var(--ink); opacity: 0.19; }
.hero__pleats * { fill: none; stroke: currentColor; stroke-width: 0.9; }
.hero__glint { position: absolute; width: 20vmax; height: 2px; margin-top: -1px; transform-origin: 0 50%; opacity: 0; background: linear-gradient(90deg, transparent, var(--cobalt-hi) 35%, #c9cfff 50%, var(--cobalt-hi) 65%, transparent); }      /* an even length of light, the same at both ends */
@media (prefers-reduced-motion: no-preference) {
  .hero__pleats line, .hero__pleats path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: pleat-in 1.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--k, 0) * 26ms + 0.25s); }      /* the fan opens, one fold after another */
  .hero__glint { animation: glint var(--t, 10s) linear var(--d, 2s) infinite; }
}
@keyframes pleat-in { to { stroke-dashoffset: 0; } }
@keyframes glint { 0% { transform: rotate(var(--a)) translateX(6vmax); opacity: 0; } 14%, 72% { opacity: 0.95; } 100% { transform: rotate(var(--a)) translateX(var(--far, 150vmax)); opacity: 0; } }
.hero__face { position: absolute; left: 0; top: 0; margin: 0; overflow: hidden; background: #000; transform-origin: 0 0; will-change: transform; opacity: 0; transition: opacity 0.7s; cursor: crosshair; }
.hero__face.is-ready { opacity: 1; }
.hero__face-in, .hero__face img, .hero__face canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/* How heavy the screentone is while the cover stands still: --rest-photo is how much of the photograph shows through (0 = none, the old all-dots picture),
   --rest-dots how strong the dots over it are (0 = no dots). Scrolling takes --tone from 1 to 0, and at 0 it is the plain photograph whatever these are. */
.hero__face { --rest-photo: 0.62; --rest-dots: 0.5; }
.hero__face img { object-fit: cover; opacity: calc(1 - var(--tone, 1) * (1 - var(--rest-photo))); }      /* --tone: 1 = the cover at rest, 0 = the photograph */
.hero__face canvas { opacity: calc(var(--tone, 1) * var(--rest-dots)); }
.hero__face img.hero__peek { opacity: 0; transition: opacity 0.3s; -webkit-mask-image: radial-gradient(circle 130px at var(--mx, 50%) var(--my, 40%), #000 55%, transparent 100%); mask-image: radial-gradient(circle 130px at var(--mx, 50%) var(--my, 40%), #000 55%, transparent 100%); }      /* the photograph, in a soft patch under the pointer */
.hero__face.is-peek img.hero__peek { opacity: var(--tone, 1); }
.hero__name { position: absolute; left: var(--gut); margin: 0; line-height: 0.9; white-space: nowrap; pointer-events: none; will-change: transform; }
.hero__up { display: block; font-weight: 800; letter-spacing: -0.055em; text-transform: uppercase; }
.hero__it { display: block; margin-top: -0.04em; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.14em; letter-spacing: -0.03em; color: var(--cobalt-hi); }
.hero__up b, .hero__it i { display: inline-block; font-weight: inherit; }
html.opening #portrait { visibility: hidden; }      /* while the cover's copy of the photo is on its way to this place */
@media (prefers-reduced-motion: no-preference) {
  .hero__up b, .hero__it i { animation: hero-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__it i { animation-delay: 0.14s; }
  .hero__face-in { animation: hero-develop 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes hero-rise { from { transform: translateY(0.45em); opacity: 0; } }
@keyframes hero-develop { from { transform: scale(1.06); opacity: 0; } }
/* This is the same name for screen readers and search engines, plus the one line of instruction. */
.hero__title { position: absolute; left: var(--gut); bottom: clamp(22px, 5vh, 44px); bottom: calc(100vh - 100svh + clamp(22px, 5vh, 44px)); pointer-events: none; }      /* above a phone's toolbar */
.hero__title h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.reduced .hero { height: 100vh; margin-bottom: 0; }
.reduced .hero__stage { position: relative; }

/* ---------- About: you and what you are into, on one screen ----------
   Words on the left, your photo on the right, then the three threads. Nothing is written over anything. */
.about__in { max-width: 1280px; margin: 0 auto; padding: clamp(92px, 13vh, 140px) var(--gut) clamp(90px, 14vh, 170px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: clamp(28px, 6vw, 96px); row-gap: clamp(28px, 4vw, 52px); align-items: end; }
.about__in > * { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--soft), transform 1s var(--soft); }
.about.in .about__in > * { opacity: 1; transform: none; }
.about__photo { clip-path: inset(0 0 100% 0); transition: opacity 1s var(--soft), transform 1s var(--soft), clip-path 1.2s var(--soft) 0.2s !important; }
.about.in .about__photo { clip-path: inset(0 0 0 0); }
.about.in .about__in > :nth-child(2) { transition-delay: 0.12s; }
.about.in .about__in > :nth-child(3) { transition-delay: 0.24s; }
.about.in .about__in > :nth-child(4) { transition-delay: 0.36s; }
.about.in .about__in > :nth-child(5) { transition-delay: 0.48s; }
.label { font-family: var(--serif); font-style: italic; font-size: 1.1rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-dim); margin-bottom: clamp(12px, 1.6vw, 20px); }
.about__text p:first-child { font-size: clamp(2.1rem, 5vw, 4.1rem); font-weight: 700; line-height: 1.02; letter-spacing: -0.05em; }
.about__text p + p { margin-top: clamp(14px, 1.8vw, 22px); max-width: 36ch; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.45; color: #cfcfca; }
.about__links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: clamp(16px, 2vw, 24px); font-size: 0.95rem; }
/* what you are into: three threads side by side */
.threads { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(18px, 3vw, 44px); }
.threads li { padding-top: 14px; border-top: 1px solid var(--ink); }
.threads strong { display: block; font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }      /* what you are into: the clear second thing in About, after the headline */
.threads span { display: block; margin-top: 6px; color: var(--ink-body); font-size: 0.95rem; }
.interests { grid-column: 1 / -1; margin-bottom: -6px; }
/* four small live drawings, each in a frame of its own with nothing written on it (js/tech.js and js/core.js) */
/* three small live drawings, one under each interest: the row has the same columns as the row of interests above it (and an empty first one as wide as the word "Interests"), so each drawing stands under its own interest */
.tech { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(18px, 3vw, 44px); }
@media (min-width: 761px) {
  .tech { grid-template-columns: max-content repeat(3, minmax(0, 1fr)); }
  .tech::before { content: "Interests"; visibility: hidden; height: 0; overflow: hidden; padding: 0 clamp(8px, 1.6vw, 26px) 0 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.2; }
}
.tech__tile { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); cursor: crosshair; touch-action: pan-y; transition: background 0.3s; }
.tech__tile:hover { background: #070707; }
.tech__hint { display: none; }
@media (hover: none) { .tech__hint { display: block; grid-column: 1 / -1; margin-top: -14px; } }      /* on a phone nothing rides on a pointer, so one small line says it */
.tech__tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* a few figures, large: the proof (content.js, about.proof) */
.proof { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(18px, 3vw, 44px); }
.proof li { padding-top: 12px; border-top: 1px solid var(--line); }
.proof b { display: block; font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }      /* figures: clearly smaller than the headline */
.proof span { display: block; margin-top: 6px; color: var(--ink-dim); font-size: 0.82rem; line-height: 1.3; }
@media (max-width: 760px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
.facts { grid-column: 1 / -1; font-size: 0.92rem; }
.facts div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts dt { padding-top: 3px; }
.facts dd { margin: 0; color: #cfcfca; }
@media (max-width: 760px) {
  :root { --gut: 26px; }                                   /* a little more margin either side */
  .section { padding-top: 110px; }                         /* and more air between the parts of the page */
  .about__in { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding-bottom: 110px; }
  .about__photo { max-width: 240px; }
  .threads { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tech { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }      /* on a phone the three stand one under another, in the order of the interests */
  .tech__tile { aspect-ratio: 16 / 8; }
}

/* Your photo. Where the pointer is, a round lens shows it as a calm halftone
   over a soft, dark blur. Everywhere else it stays a photograph. */
.about__photo { --mx: 50%; --my: 40%; --lens: radial-gradient(circle 120px at var(--mx) var(--my), #000 62%, transparent 100%); position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 300px; justify-self: end; overflow: hidden; background: #060606; cursor: crosshair; touch-action: pan-y; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__photo .lens, .about__photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.35s; -webkit-mask-image: var(--lens); mask-image: var(--lens); pointer-events: none; }
.about__photo .lens { -webkit-backdrop-filter: blur(9px) grayscale(1) brightness(0.34); backdrop-filter: blur(9px) grayscale(1) brightness(0.34); }
.about__photo.is-lens .lens, .about__photo.is-lens canvas { opacity: 1; }
@media (max-width: 760px) { .about__photo { justify-self: start; } }

/* ---------- sections: a solid blue shape, a word, and one line of the story ---------- */
.section { padding: clamp(80px, 10vw, 150px) var(--gut) 0; max-width: 1280px; margin: 0 auto; }
.sec-head { margin-bottom: clamp(24px, 3.4vw, 46px); }      /* just the words: no shape beside them, no rule under them */
.sec-head > * { opacity: 0; transition: opacity 0.9s var(--soft) 0.12s; }
.sec-head.in > * { opacity: 1; }
.sec-head h2 { font-weight: 700; font-size: clamp(1.55rem, 3.5vw, 2.9rem); line-height: 1.04; letter-spacing: -0.045em; max-width: 27ch; }      /* the heading is a line of the story, not a one-word title */
#contact .sec-head h2 { font-size: clamp(1.2rem, 2.2vw, 1.8rem); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.3; letter-spacing: -0.02em; }
.plain li { color: var(--ink-body); padding: 10px 0; border-top: 1px solid var(--line); }

/* ---------- Art ---------- */
/* The pond is the background of the whole section: the fish swim behind and around the words. */
#art { padding-bottom: clamp(170px, 32vh, 340px); cursor: crosshair; }      /* the open water is under the shop: that is where the fish gather */
#art > .pond { position: absolute; top: 0; left: 50%; width: 100vw; height: 100%; margin-left: -50vw; z-index: 0; overflow: hidden; pointer-events: none; contain: layout paint; }      /* a plain box: the fish, the food and the lily pads are small pieces inside it (js/koi.js) */
.pond__layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.pond__fish { position: absolute; left: 0; top: 0; will-change: transform; }
.pond__pad { position: absolute; }
.pond__food { position: absolute; left: -2.7px; top: -2.7px; width: 5.4px; height: 5.4px; border-radius: 50%; background: #dfc9a9; }
.pond__ring { position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%; border: 1.5px solid rgba(242, 242, 239, 0.5); animation: pond-ring 1.3s linear both; }
.pond__fish, .pond__pad, .pond__food { opacity: 0; transition: opacity 0.45s; }      /* nothing shows before the pond has arrived; then it comes in softly, not all at once */
.pond.is-in .pond__fish, .pond.is-in .pond__pad, .pond.is-in .pond__food { opacity: 1; }
.pond:not(.is-in) .pond__ring { display: none; }
.pond::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(rgba(0, 0, 0, 0), var(--bg)); }      /* the pond fades out at its foot: nothing in it is cut by a hard line */
@keyframes pond-ring { from { transform: translate(var(--x), var(--y)) scale(0.13); opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }
@keyframes pond-rock { from { transform: translate(-2.5px, 1.5px) rotate(-2.6deg); } to { transform: translate(2.5px, -2px) rotate(2.6deg); } }
@media (prefers-reduced-motion: no-preference) { .pond__pad { animation: pond-rock var(--d, 9s) ease-in-out var(--o, 0s) infinite alternate; } }      /* each lily pad rocks a little on the water */
#art > :not(.pond) { position: relative; z-index: 1; }
.pond__hint { display: none; }                                             /* with a mouse, "Tap to feed" rides on the pointer instead (.feed-tip) */
@media (hover: none) { .pond__hint { display: block; width: max-content; color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 18px; transition: opacity 0.4s; } #art.fed .pond__hint { opacity: 0; } }
.feed-tip { position: fixed; left: 0; top: 0; z-index: 46; pointer-events: none; font-size: 0.7rem; font-weight: 450; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); text-shadow: 0 0 6px #000, 0 0 2px #000; opacity: 0; transition: opacity 0.25s; will-change: transform; }
.feed-tip.is-on { opacity: 1; }
#art a, #art button, #art .jelly__frame { cursor: pointer; }
.jelly { display: grid; gap: clamp(32px, 6vw, 90px); }
@media (min-width: 900px) { .jelly { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.jelly__name { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; margin-bottom: 14px; }
.jelly__about { font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.45; margin: 0 0 22px; max-width: 36ch; color: #cfcfca; }
.jelly__about a, .stop__role a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cobalt-hi); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.jelly__about a:hover, .stop__role a:hover { color: var(--cobalt-hi); }
#jelly-prints { scroll-margin-top: 90px; }
.jelly__text .plain { margin-top: clamp(30px, 5vw, 56px); }
.jelly__show { width: 100%; max-width: 520px; justify-self: end; }
.jelly__frame { position: relative; aspect-ratio: 1; background: #060606; overflow: hidden; cursor: pointer; }
.jelly__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.7s var(--ease); }
.jelly__frame img.is-on { opacity: 1; }
.jelly__show figcaption { display: flex; justify-content: space-between; padding-top: 12px; }
.jelly__nav { display: flex; gap: 18px; }
.jelly__nav button { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-dim); }
.jelly__nav button:hover { color: var(--cobalt-hi); }

/* ---------- what the art led to: one line, then three plain columns, under the pond ---------- */
.subline { max-width: 28ch; margin-bottom: clamp(20px, 2.8vw, 34px); font-size: clamp(1.2rem, 2.1vw, 1.7rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.12; }
.cause { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px clamp(18px, 3vw, 44px); }
.cause li { scroll-margin-top: 30vh; }
.cause h4 { margin: 8px 0 8px; font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; transition: color 0.3s; }
.cause h4 a { text-decoration: none; }
.cause h4 a:hover, .cause li.is-target h4 { color: var(--cobalt-hi); }
.cause__role { color: var(--ink-body); font-size: 0.95rem; max-width: 40ch; }
.cause__role a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--cobalt-hi); text-decoration-thickness: 2px; text-underline-offset: 0.22em; }
.cause__role a:hover { color: var(--cobalt-hi); }
@media (max-width: 760px) { .cause { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 3D work: a gallery that travels sideways ----------
   The stage stays pinned while you scroll, and the row of pieces moves left (.pan is taller than the screen by --travel,
   set in js/main.js). The pieces are cropped to one shape at three sizes and sit at different heights; the nearer (larger)
   ones move a little faster than the farther ones. Each is grey until it reaches the middle of the screen. Behind them is a
   faint fan of lines, the pleats of the paper pieces. Click a piece to see all of it, large. A phone swipes the row. */
.works { padding-top: 0; padding-bottom: clamp(80px, 11vw, 150px); }
.pan { --edge: max(var(--gut), calc((100vw - 1280px) / 2 + var(--gut))); --H: calc(100svh - 190px); width: 100vw; margin-left: calc(50% - 50vw); height: calc(100vh + var(--travel, 0px)); height: calc(100svh + var(--travel, 0px)); }
.pan__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: clamp(78px, 10vh, 104px) 0 clamp(16px, 3vh, 34px); }
.pan__motif { position: absolute; top: 0; left: -10%; width: 150%; height: 100%; pointer-events: none; color: var(--ink); opacity: 0.1; will-change: transform; }
.pan__motif * { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.works__head { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 0 var(--edge); }
.works__head .label { margin-bottom: 0; }
.pan__hint { display: none; }
.pan__view { position: relative; }
.pan__track { display: flex; align-items: center; gap: clamp(36px, 5vw, 84px); width: max-content; height: 100%; padding: 0 max(var(--edge), 30vw) 0 var(--edge); will-change: transform; }      /* room after the last piece, so the row travels until that piece is in the middle of the screen */
.pan__track li { flex: none; --k: 1; opacity: 0; translate: 0 44px; transition: opacity 0.9s var(--soft), translate 1.1s var(--soft); transition-delay: calc(var(--i, 0) * 110ms + 0.1s); }
.pan.in .pan__track li { opacity: 1; translate: 0 0; }      /* they rise into place one after another when the gallery arrives */
.pan__track li:nth-child(3n + 2) { --k: 0.7; align-self: flex-start; }
.pan__track li:nth-child(3n + 3) { --k: 0.84; align-self: flex-end; }
.work { display: flex; flex-direction: column; gap: 10px; text-align: left; will-change: transform; }
.work b { order: -1; font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.2s; }
.work__img { display: block; height: calc((var(--H) - 70px) * var(--k)); aspect-ratio: 4 / 5; overflow: hidden; background: #0a0a0a; }
.work__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(0.94); opacity: 0.6; transition: filter 0.6s, opacity 0.6s, transform 0.8s var(--ease); }
.is-focus .work__img img, .work:hover .work__img img { filter: none; opacity: 1; }
.work:hover .work__img img { transform: scale(1.03); }
.work > span:last-child { color: var(--ink-dim); font-size: 0.72rem; line-height: 1.35; max-width: 28ch; opacity: 0; transition: opacity 0.5s; }
.is-focus .work > span:last-child, .work:hover > span:last-child { opacity: 1; }
.work:hover b { color: var(--cobalt-hi); }
.works > .subline { margin-top: clamp(60px, 9vw, 120px); }
@media (prefers-reduced-motion: reduce) {      /* with motion turned off nothing is held in place: the row is swiped */
  .pan { --H: 420px; height: auto; }
  .pan__stage { position: relative; height: auto; display: block; padding: 110px 0 10px; }
  .works__head { margin-bottom: 22px; }
  .pan__hint { display: inline; margin-right: auto; }
  .pan__view { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pan__view::-webkit-scrollbar { display: none; }
  .pan__track { gap: 30px; height: auto; align-items: flex-start; transform: none !important; }
  .pan__track li { scroll-snap-align: center; align-self: flex-start !important; opacity: 1; translate: none; }
  .work { transform: none !important; }
  .work__img img { filter: none; opacity: 1; }
  .work > span:last-child { opacity: 1; }
}
/* a phone carries the same gallery: held in place while the pieces travel sideways as you scroll down. The pieces are sized
   from the width of the screen, so the largest still fits across it. A sideways swipe moves the row too (js/main.js) */
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .pan { --H: min(calc(100svh - 250px), calc(96vw + 70px)); }
  .pan__stage { padding: 84px 0 18px; touch-action: pan-y; }
  .pan__motif { width: 250%; }      /* the lines drift further than a narrow screen is wide */
  .works__head { margin-bottom: 14px; }
  .pan__track { gap: 26px; }
}
/* one piece, large, over everything */
.viewer { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; padding: clamp(16px, 3vw, 40px); background: rgba(0, 0, 0, 0.97); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.viewer.is-on { opacity: 1; visibility: visible; }
.viewer img { width: 100%; height: 100%; min-height: 0; object-fit: contain; cursor: zoom-out; }
.viewer__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.viewer__bar b { font-weight: 500; font-size: 1.05rem; letter-spacing: -0.02em; margin-right: 12px; }
.viewer__bar p span { color: var(--ink-dim); font-size: 0.85rem; }
.viewer__nav { display: flex; gap: 22px; }
.viewer__nav button { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-dim); }
.viewer__nav button:hover { color: var(--cobalt-hi); }

/* ---------- Experience: boxes left and right, and the ball's route between them ---------- */
.run { position: relative; display: grid; gap: clamp(30px, 5vw, 70px); padding: 56px 0; }
.stop { position: relative; z-index: 1; width: min(100%, 540px); padding-bottom: 24px; background: #000; border: 1px solid #2f2f2f; transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.stop:nth-of-type(even) { justify-self: end; }
.stop.has-link { cursor: pointer; }
.stop.has-link:hover, .stop.is-target { border-color: var(--cobalt-hi); transform: translate(-4px, -4px); box-shadow: 8px 8px 0 var(--cobalt); }
.stop { scroll-margin-top: 30vh; }
.stop__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; padding-right: 18px; }
.stop__group { background: var(--cobalt); color: var(--on-accent); padding: 8px 14px; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.stop__head { display: flex; align-items: center; gap: 16px; padding: 0 22px; }
.stop__head h4 { font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.stop__head h4 a { text-decoration: none; }
.stop__head .logos { display: flex; align-items: center; gap: 10px; flex: none; }
.stop__head .logos a { display: block; transition: transform 0.2s; }
.stop__head .logos a:hover { transform: scale(1.08); }
.stop__head .logos img { height: 44px; width: auto; max-width: 92px; object-fit: contain; border-radius: 7px; }        /* in its own colours */
.stop__head .logos > :nth-child(n + 2) img { height: 36px; border-radius: 0; filter: drop-shadow(1px 0 0 #f2f2ef) drop-shadow(-1px 0 0 #f2f2ef) drop-shadow(0 1px 0 #f2f2ef) drop-shadow(0 -1px 0 #f2f2ef); }   /* the second logo: smaller, with a thin white line round its own shape so it shows on black */
.stop__title { margin: 14px 22px 0; font-size: 0.74rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.stop__role { color: var(--ink-body); margin: 8px 22px 0; max-width: 46ch; font-size: 0.95rem; }
.stop__go { display: block; margin: 14px 22px 0; color: var(--cobalt-hi); }
.run__line { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.run__base { fill: none; stroke: #3a3a3a; stroke-width: 1.5; stroke-dasharray: 2 8; stroke-linecap: round; }
.run__done { fill: none; stroke: var(--cobalt-hi); stroke-width: 3; stroke-linejoin: round; }
.run__ball { position: absolute; left: 0; top: 0; z-index: 2; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; will-change: transform; pointer-events: none; opacity: 0; transition: opacity 0.5s; }      /* a point of light that runs down the line. Press it and it takes you on */
.run__ball::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--cobalt-hi) 55%, transparent), 0 0 22px 8px var(--cobalt-hi); transition: transform 0.3s var(--soft); }
.run__ball:hover::before { transform: scale(1.5); }
.run__ball.is-struck::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1.5px solid var(--cobalt-hi); animation: struck 0.7s var(--soft) forwards; }
@keyframes struck { to { transform: scale(3.4); opacity: 0; } }
@media (max-width: 760px) { .stop, .stop:nth-of-type(even) { width: auto; margin-left: 52px; justify-self: stretch; } .run__ball { width: 34px; height: 34px; } }

/* the water at the end of Experience */

/* the story headings light up a word at a time as they come up the screen (js/main.js) */
.sec-head h2 .w, .subline .w, .about__text p:first-child .w { display: inline-block; transition: opacity 0.35s linear, transform 0.7s var(--soft); }      /* each word rises into place as it lights */
/* ---------- Projects: a hand of cards (js/hand.js deals them; js/main.js builds them) ----------
   On a wide screen the section is tall and its stage stays pinned while the deal plays out as you scroll.
   Each card is a link. Its two faces sit back to back inside .pcard__in, which is the only thing that turns. */
#projects.hand { --cw: min(248px, calc((100svh - 430px) * 0.714)); min-height: 200vh; padding-top: 0; padding-bottom: 0; }
.hand__stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: clamp(84px, 13vh, 128px) 0 14vh; }      /* the cards sit in the upper part of the screen: there is always clear room under them */
.hand__stage .sec-head { margin-bottom: clamp(16px, 3vh, 34px); }
.hand__cards { display: grid; grid-template-columns: repeat(4, minmax(0, var(--cw))); gap: clamp(12px, 1.8vw, 24px); justify-content: center; align-content: center; }
.hand__slot { position: relative; }
.pcard { display: block; aspect-ratio: 5 / 7; container-type: inline-size; color: #0b0b0b; text-decoration: none; transform-origin: 50% 50%; will-change: transform; }
.pcard__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: translate 0.35s var(--ease); }
.pcard__face { position: absolute; inset: 0; border-radius: 12px; border-radius: 4.6cqw; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
/* the face: a white card, bold flat artwork in one ink (your blue or black), and nothing else. The rank and suit in two
   corners in a condensed face; the artwork is a small simulation of the project's model (js/main.js, FRONTS); the
   project's name small at the foot */
.pcard { --cond: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", "Times New Roman", serif; }      /* the deck's own face: a classic high-contrast serif */
.pcard--blue { color: var(--cobalt); }      /* white faces, printed in one ink each, turn about: your blue, then black */
.pcard--ink { color: #0b0b0b; }
.pcard__front { overflow: hidden; background: #fbfaf6; box-shadow: 0 22px 44px rgba(0, 0, 0, 0.6); }
.pcard__idx { position: absolute; left: 7cqw; top: 6.4cqw; z-index: 1; display: grid; justify-items: center; gap: 1.4cqw; width: 11cqw; font-family: var(--cond); font-size: 17px; font-size: 15cqw; font-weight: 400; letter-spacing: 0; line-height: 0.84; }
.pcard__idx svg { width: 6.4cqw; height: 6.4cqw; fill: currentColor; }
.pcard__idx + .pcard__idx { left: auto; top: auto; right: 7cqw; bottom: 6.4cqw; transform: rotate(180deg); }
.pcard__body { position: absolute; left: 8.4cqw; right: 26cqw; bottom: 8cqw; z-index: 1; }
.pcard__title { display: block; font-family: var(--cond); font-size: 12px; font-size: 6.6cqw; font-weight: 400; font-style: italic; letter-spacing: 0; line-height: 1; white-space: nowrap; }
.hand__name { display: none; }
/* the simulations on the faces (js/main.js, FRONTS). Everything marked .a moves; it holds still while the card is being
   dealt and plays once the hand is on the table. --i is how many seconds into the loop that piece comes in.
   Each drawing stays inside the middle of the card, clear of the corners and of the name at the foot */
.pcard__art .a { transform-box: fill-box; transform-origin: 50% 50%; animation: 5s cubic-bezier(0.3, 0.7, 0.3, 1) calc(var(--i, 0) * 1s) infinite both paused; }
.hand.is-dealt .pcard__art .a, .hand--loose .is-up .pcard__art .a { animation-play-state: running; }
.pcard__art .a-drop { animation-name: pc-drop; }
.pcard__art .a-fade { animation-name: pc-fade; }
.pcard__art .a-slam { animation-name: pc-slam; }
.pcard__art .a-ping { animation-name: pc-ping; }
.pcard__art .a-draw { animation-name: pc-draw; stroke-dasharray: 1; }
.pcard__art .a-grow { animation-name: pc-grow; transform-origin: 50% 100%; }
.pcard__art .a-x { animation-name: pc-x; animation-duration: 3.2s; animation-timing-function: linear; transform-box: view-box; transform-origin: 0 0; }
.pcard__art .a-y { animation-name: pc-y; animation-duration: 3.2s; transform-box: view-box; transform-origin: 0 0; }
.pcard__art .a-mark { animation-name: pc-mark; animation-duration: 3.2s; animation-timing-function: cubic-bezier(0.3, 1.2, 0.4, 1); }
@keyframes pc-drop { 0% { opacity: 0; transform: translateY(-30px) scale(0.3); animation-timing-function: cubic-bezier(0.2, 1.7, 0.4, 1); } 6%, 88% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(0) scale(0.3); } }
@keyframes pc-fade { 0% { opacity: 0; } 35%, 88% { opacity: 0.1; } 100% { opacity: 0; } }
@keyframes pc-slam { 0% { opacity: 0; transform: scale(0.3); animation-timing-function: cubic-bezier(0.2, 1.5, 0.4, 1); } 8%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
@keyframes pc-ping { 0%, 46% { opacity: 0; transform: scale(0.2); } 50% { opacity: 1; transform: scale(1); } 76%, 100% { opacity: 0; transform: scale(4); } }
@keyframes pc-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 48%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes pc-grow { 0% { transform: scaleY(0); animation-timing-function: cubic-bezier(0.2, 1.5, 0.4, 1); } 12%, 86% { transform: scaleY(1); animation-timing-function: cubic-bezier(0.6, 0, 0.9, 0.4); } 100% { transform: scaleY(0); } }
@keyframes pc-x { 0%, 100% { transform: translateX(46px); } 50% { transform: translateX(204px); } }
/* up and over as a thrown ball goes: slowing to the top, quickening down */
@keyframes pc-y { 0%, 50%, 100% { transform: translateY(232px); animation-timing-function: cubic-bezier(0.33, 0.67, 0.67, 1); } 25%, 75% { transform: translateY(136px); animation-timing-function: cubic-bezier(0.33, 0, 0.67, 0.33); } }
@keyframes pc-mark { 0%, 25%, 100% { transform: translateX(0); } 50%, 75% { transform: translateX(44px); } }
@media (prefers-reduced-motion: reduce) { .pcard__art .a { animation: none; } .pcard__art .a-fade { opacity: 0.1; } .pcard__art .a-ping { opacity: 0; } .pcard__art .a-x { transform: translateX(170px); } .pcard__art .a-y { transform: translateY(160px); } .pcard__art .a-mark { transform: translateX(20px); } }
/* the back: fans overlapping like scales, in your blue, edge to edge (js/main.js, CARD_BACK) */
.pcard__back { transform: rotateY(180deg); overflow: hidden; background: #fbfaf6; }
.pcard__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pcard__art text { font-family: var(--sans); }
@media (hover: hover) { .pcard:hover .pcard__in { translate: 0 -8px; } .pcard:hover .pcard__pic > * { filter: none; } }
@media (hover: none) { .pcard__pic > * { filter: none; } }
.pcard:focus-visible { outline-offset: 6px; }
/* phones (and reduced motion): nothing is pinned; small cards, two by two, with room round them; each turns face up as it comes into view */
.hand--loose .pcard__in { transform: perspective(1200px) rotateY(180deg); transition: transform 0.9s var(--soft); }
.hand--loose .is-up .pcard__in { transform: none; }
@media (max-width: 760px) {
  #projects.hand { min-height: 0; }
  .hand__stage { position: static; height: auto; display: block; padding: clamp(80px, 14vh, 120px) 0 clamp(70px, 12vh, 110px); }
  .hand__stage .sec-head { margin-bottom: 34px; }
  .hand__cards { grid-template-columns: repeat(2, minmax(0, 148px)); gap: 26px 22px; justify-content: space-evenly; }
  .hand__note { display: none; }
  .hand__name { display: block; margin-top: 12px; font-size: 0.8rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) { .hand__stage { position: static; height: auto; padding-bottom: 60px; } #projects.hand { min-height: 0; } .hand--loose .pcard__in { transition: none; } }

/* each project is marked the way a card is written down: its rank and its suit. The suit is the kind of project. */
.pmark { display: inline-flex; align-items: baseline; gap: 1px; font-weight: 500; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1; color: var(--ink-dim); transition: color 0.2s; }
.pmark i { font-style: normal; font-size: 0.92em; }
.detail__head .pmark { font-size: 1.5rem; color: var(--cobalt-hi); padding-bottom: 0.3em; }

/* ---------- Contact ---------- */
.contact { padding-bottom: 0; }
.contact__mail { font-weight: 700; font-size: clamp(1.5rem, 5.8vw, 5rem); letter-spacing: -0.06em; line-height: 1; text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s; }
.contact__mail:hover { color: var(--cobalt-hi); }
.contact__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; }
/* draw here: the drawing lifts into 3D a moment after you stop */
.pad { position: relative; height: clamp(280px, 50vh, 480px); margin-top: clamp(40px, 6vw, 80px); border: 2px solid var(--cobalt-hi); overflow: hidden; cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none;
  background-image: radial-gradient(circle, #14224f 1px, transparent 1.5px); background-size: 14px 14px; }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad__label { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.8rem, 5.4vw, 4.4rem); font-weight: 500; letter-spacing: -0.05em; color: var(--cobalt); pointer-events: none; transition: opacity 0.4s; }
.pad.is-used .pad__label { opacity: 0; }
.pad__how { position: absolute; left: 14px; bottom: 12px; pointer-events: none; }
.pad__clear { position: absolute; right: 14px; bottom: 10px; padding: 4px 6px; color: var(--ink); }
.pad__clear:hover { color: var(--cobalt-hi); }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: clamp(70px, 10vw, 140px); padding: 18px 0 26px; border-top: 1px solid var(--line); }      /* three columns, so the mark sits in the true middle */
.foot > :last-child { justify-self: end; }
.foot a { text-decoration: none; }

/* the black that covers the jump from the break into About, then lifts */
.veil { position: fixed; inset: 0; z-index: 80; background: #000; opacity: 1; pointer-events: none; transition: opacity 0.9s var(--soft); }
.veil.is-lifting { opacity: 0; }
/* going to a project's page and back: a short cross-fade instead of a hard cut */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.4s; }

/* things fade up once as they enter */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--soft), transform 1.1s var(--soft), border-color 0.3s, box-shadow 0.3s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv { transition-delay: calc(var(--n, 0) * 90ms); }      /* the pieces of a section come in one after another (--n is set in js/main.js) */

/* ---------- the live Kalman tracker: a clock, one big reading, then the line ---------- */
.kchart__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.kchart__label { color: var(--ink-dim); font-size: 0.88rem; margin-right: auto; }
.kchart__state { margin-left: 10px; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.kchart__state.is-live { color: var(--ink); }
.kchart__state.is-live::before, .kchart__state.is-replay::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--red); vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }
.kchart__state.is-replay::before { background: var(--ink-dim); }
@keyframes pulse { 50% { opacity: 0.2; } }
.kchart__ranges { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex: none; }
.kchart__ranges button { font-size: 0.7rem; letter-spacing: 0.06em; padding: 6px 11px; color: var(--ink-dim); }
.kchart__ranges button[aria-pressed="true"] { background: #161616; color: var(--ink); }
.kchart__clock { margin-top: 16px; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.kchart__clock b { font-weight: 450; color: var(--ink); }
.kchart__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.kchart__num { font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 0.86; letter-spacing: -0.065em; font-variant-numeric: tabular-nums; color: var(--ink); }
.kchart__unit { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.kchart__change { color: var(--ink-dim); font-size: 0.85rem; margin: 10px 0 16px; font-variant-numeric: tabular-nums; }
.kchart canvas { width: 100%; display: block; touch-action: pan-y; cursor: crosshair; }
.kchart__note { margin-top: 12px; color: var(--ink-body); font-size: 0.82rem; }
/* the small one, in the project list */
.kmini { width: 100%; height: 100%; padding: 7px 10px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr auto; gap: 0 12px; align-items: end; }
.kmini__state { grid-column: 1 / -1; font-size: 0.6rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }
.kmini__state::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--ink-dim); vertical-align: 1px; }
.kmini__state.is-live::before { background: var(--red); animation: pulse 1.4s ease-in-out infinite; }
.kmini__num { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.kmini canvas { width: 100%; height: 40px; align-self: stretch; }
.kmini__clock { grid-column: 1 / -1; font-size: 0.62rem; letter-spacing: 0.06em; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* ---------- how a project works, as a row of steps ---------- */
.pipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); }
.pipe li { position: relative; padding: 18px 18px 22px 0; border-bottom: 1px solid var(--line); }
.pipe li + li { padding-left: 18px; border-left: 1px solid var(--line); }
.pipe h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.03em; margin: 26px 0 6px; }
.pipe p { color: var(--ink-body); font-size: 0.88rem; line-height: 1.45; }
.pipe strong { display: block; margin-top: 14px; font-weight: 500; font-size: 1.5rem; letter-spacing: -0.05em; color: var(--cobalt-hi); }

/* ---------- a project's own page (project.html) ---------- */
.detail { padding-top: clamp(110px, 14vw, 170px); display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); }
.detail__head { display: flex; align-items: flex-end; gap: clamp(18px, 4vw, 44px); padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.detail__head h1 { font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3.6rem); line-height: 0.96; letter-spacing: -0.05em; margin-top: 8px; }
.detail__text { max-width: 66ch; }
.detail__text p + p { margin-top: 1em; color: var(--ink-body); }
.detail__links { display: flex; gap: 22px; }
.detail__credit { color: var(--ink-body); max-width: 62ch; font-size: 0.92rem; }
.project__visual { position: relative; max-width: 960px; }
.project__visual img, .detail__fig img { width: 100%; height: auto; }                      /* shown whole, in its own colours */
.project__visual img.is-notes { filter: invert(1) grayscale(1) contrast(1.25); mix-blend-mode: screen; }   /* handwriting: chalk on black */
.project__visual iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; background: #000; }
.detail__fig { max-width: 960px; }
.detail__fig figcaption { padding-top: 10px; }
.code figcaption { padding: 10px 0; border-top: 1px solid var(--line); }
.code pre { margin: 0; padding: 20px; background: #070707; border: 1px solid var(--line); overflow: auto; max-height: 72vh; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; line-height: 1.6; color: #c9c9c5; tab-size: 4; }
.detail__pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.detail__pager a { text-decoration: none; }
.detail__pager a:hover { color: var(--cobalt-hi); }
footer.section.foot { display: flex; justify-content: space-between; margin-top: clamp(60px, 10vw, 120px); padding-top: 18px; }

/* ---------- film grain over the whole site, very light ---------- */
body::after {
  content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; opacity: 0.055;      /* a plain see-through layer: blending it with the page under it made every frame of every animation cost a whole screen */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- small things ---------- */
/* the screentone that follows the pointer (drawn in js/main.js) */
.tone-cursor { position: fixed; left: 0; top: 0; z-index: 45; pointer-events: none; mix-blend-mode: screen; filter: blur(0.6px); will-change: transform; }      /* only as big as the patch of dots, and moved with the pointer (js/main.js) */
/* the mark at the foot of the page: press it and the fan shuts, then opens again */
.eight { width: 26px; height: 26px; color: var(--ink); }
.eight.is-shut .mark__fan { animation: mark-shut 0.9s var(--ease); }
@keyframes mark-shut { 0%, 100% { transform: scaleY(1); } 38%, 52% { transform: scaleY(0.05); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .about__in > *, .sec-head > * { opacity: 1; transform: none; transition: none; }
  .about__photo { clip-path: none !important; }
  .sec-head h2 .w, .subline .w, .about__text p:first-child .w { transform: none !important; opacity: 1 !important; }
  .veil { display: none; }
  .eight { transition: none; }
}

#experience { padding-top: clamp(40px, 6vw, 90px); }
/* the models heading is quieter than the others: the cards do the talking */
.hand__stage .sec-head h2 { font-size: clamp(1.05rem, 1.7vw, 1.5rem); letter-spacing: -0.03em; }

/* ---------- one word in each heading, in the quiet voice: italic serif inside the bold sans ---------- */
.it { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; font-size: 1.06em; }

/* ---------- bits and pieces: one small aside in each part of the page (content.js, bits) ---------- */
.about { position: relative; }
/* On a phone the cover uncovers About late, and its first words then went straight off the top of the screen. So there the first
   screen of About is held still for most of a screen's worth of scrolling before it moves on. The empty block after it is the
   room that takes; it is used up by the time About leaves, so no gap is left behind. */
[data-device="phone"] .about::after { content: ""; display: block; height: 62vh; }
[data-device="phone"] .about__in { position: sticky; top: 0; }
@media (prefers-reduced-motion: reduce) { [data-device="phone"] .about::after { display: none; } [data-device="phone"] .about__in { position: relative; top: auto; } }
.bit { position: absolute; right: var(--gut); bottom: 20px; z-index: 2; max-width: 26ch; text-align: right; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.25; color: var(--ink-dim); pointer-events: none; }
.about > .bit { right: max(var(--gut), calc((100vw - 1280px) / 2 + var(--gut))); }
@media (max-width: 760px) { .bit { font-size: 0.92rem; bottom: 14px; } }

/* ---------- the light that runs along the row of small drawings, one after the other ---------- */
.tech__tile::after { content: ""; position: absolute; top: 0; left: 0; width: 58%; height: 2px; background: linear-gradient(90deg, transparent, var(--cobalt-hi), transparent); transform: translateX(-100%); animation: relay 6.6s linear infinite; pointer-events: none; }      /* it crosses the first, then the second, then the third */
.tech__tile:nth-child(2)::after { animation-delay: 2.2s; }
.tech__tile:nth-child(3)::after { animation-delay: 4.4s; }
@keyframes relay { 0% { transform: translateX(-100%); } 33.3%, 100% { transform: translateX(175%); } }
@media (prefers-reduced-motion: reduce) { .tech__tile::after { display: none; } }

/* ---------- phones: nothing rides on a pointer there, so the hints are placed, not left floating ---------- */
@media (hover: none) {
  .feed-tip, .tech__hint { display: none; }
  .pond__hint { position: absolute; left: 50%; bottom: 84px; z-index: 2; width: max-content; margin: 0; padding: 6px 14px; transform: translateX(-50%); border: 1px solid rgba(242, 242, 239, 0.35); border-radius: 999px; background: rgba(0, 0, 0, 0.45); font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink); }      /* in the pond, where the fish are */
}
/* the 3D pieces have a set width as well as a height, so they show in every browser */
.work__img { width: calc((var(--H) - 70px) * var(--k) * 0.8); }

/* ---------- the wordmark in the menu: the two voices of the site, side by side ---------- */
.nav__name { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.nav__word { font-size: 1.28rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; opacity: 0; transition: opacity 0.4s; }
.nav__word i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; font-size: 1.14em; margin-left: 0.2em; -webkit-text-stroke: 0.3px currentColor; }      /* its own gap (the tight tracking swallows the space between the words), and a hair more weight so the thin strokes hold at this size */
.past-hero .nav__word { opacity: 1; }
@media (max-width: 620px) { .nav__word { font-size: 1rem; } }      /* the logo is your name, on a phone too */
@media (max-width: 380px) { .nav__word { font-size: 0.9rem; } }      /* narrower phones: the menu still has to fit beside it */
@media (max-width: 350px) { .nav__word { font-size: 0.74rem; } }

/* ---------- where it started: crayon on a wall (the doodles are drawn in js/main.js as you scroll) ---------- */
.wall { position: relative; z-index: 1; background: var(--bg); padding: clamp(30px, 6vh, 90px) 0 clamp(20px, 5vh, 70px); }
.wall__in { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.wall__art { display: block; width: 100%; height: auto; overflow: visible; }
.wall__lead { position: absolute; left: 0; top: 0; z-index: 3; width: 100%; height: 1px; overflow: visible; pointer-events: none; }      /* the line that comes down from About and turns into crayon (js/main.js) */
.wall__lead line { fill: none; stroke-linecap: round; }
.wall__art path, .wall__bubble path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wall__bubble { position: absolute; z-index: 1; overflow: visible; pointer-events: none; }      /* the speech bubble round the words: placed and sized by js/main.js, from where the words actually are */
.wall__say { position: absolute; left: 0; right: 0; top: 50%; z-index: 1; transform: translateY(-50%); text-align: center; font-size: clamp(1.55rem, 3.5vw, 2.9rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; pointer-events: none; text-wrap: balance; }      /* balance: when the line breaks on a phone, no word is left alone */
@media (max-width: 760px) { .wall__say { position: static; transform: none; text-align: left; margin-bottom: 14px; } }

/* ---------- the photo comes out of a screentone as it reaches the middle of the screen, and goes back into it as it leaves ---------- */
.about__photo.is-scroll:not(.is-lens) .lens, .about__photo.is-scroll:not(.is-lens) canvas { opacity: var(--tone, 0); -webkit-mask-image: none; mask-image: none; transition: none; }

/* ---------- more drama: the wall is a whole screen held in place while the crayon draws, with the line of the story large in the middle ---------- */
@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .wall { height: 200vh; padding: 0; }
  .wall__in { position: sticky; top: 0; display: grid; place-items: center; max-width: none; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
  .wall__art { position: absolute; inset: 4vh 3vw; width: calc(100% - 6vw); height: calc(100% - 8vh); }
  .wall__say { position: relative; top: auto; left: auto; right: auto; transform: none; max-width: 11ch; font-size: clamp(2.4rem, 6.2vw, 5.6rem); line-height: 0.98; letter-spacing: -0.055em; }
}
#art .sec-head h2 { font-size: clamp(2rem, 5vw, 4.4rem); letter-spacing: -0.05em; }      /* the next line of the story, as large as the one before */

/* ---------- the story, joined up ---------- */
/* the crayon fish on the wall swims once it is drawn */
.wall__fish { transform-box: fill-box; transform-origin: 50% 50%; }
.wall.is-alive .wall__fish { animation: wall-swim 3.4s ease-in-out infinite; }
@keyframes wall-swim { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(-34px, 8px) rotate(-5deg); } 50% { transform: translate(-70px, -4px) rotate(4deg); } 75% { transform: translate(-36px, -10px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .wall.is-alive .wall__fish { animation: none; } }
/* the 3D work carries the next line of the story, in the same voice as the two before it */
.works__head .label { font-family: var(--sans); font-style: normal; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.6rem); letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
@media (max-width: 760px) { .works__head { flex-wrap: wrap; row-gap: 8px; } .works__head .label { flex-basis: 100%; } }

/* what each project is: under its card, with room between them (this rule had gone missing) */
.hand__note { margin-top: 26px; color: var(--ink-body); font-size: 0.9rem; line-height: 1.42; transition: opacity 0.4s; }
@media (max-width: 760px) { .hand__note { display: none; } }
/* ---------- type a little smaller everywhere ---------- */
html { font-size: 92%; }
.about__text p:first-child { font-size: clamp(1.9rem, 4.2vw, 3.5rem); }
/* ---------- the lines of the story are all one size and one shape: bold, with one word in the italic ---------- */
.wall__say, #art .sec-head h2, .works__head .label, #cause-page .sec-head h2, .hand__stage .sec-head h2 { max-width: none; font-family: var(--sans); font-style: normal; font-size: clamp(1.7rem, 3.4vw, 3rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; color: var(--ink); }
/* ---------- the cause: a page of its own, with room ---------- */
.cause-page { display: flex; flex-direction: column; justify-content: center; padding-top: clamp(110px, 16vh, 170px); padding-bottom: clamp(90px, 14vh, 150px); }
.cause__lead { max-width: 30ch; margin: clamp(10px, 1.6vw, 20px) 0 clamp(44px, 7vw, 90px); font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.3; color: var(--ink-dim); }
.cause-page .cause li { padding-top: 18px; border-top: 1px solid var(--ink); }
.cause-page .cause h4 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
@media (max-width: 760px) { .cause-page .cause { grid-template-columns: minmax(0, 1fr); } }
/* ---------- the wall and the pond are one place: the pond reaches up over the last screen of the wall, with no fade at its top,
   so the fish cross from one to the other ---------- */
#art > .pond { top: -80vh; height: calc(100% + 80vh); }
/* ---------- from one part to the next: the sheet underneath settles back a little as the next comes over it ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .sheet { transform: scale(calc(1 - var(--cover, 0) * 0.04)); transform-origin: 50% 10%; } }      /* not on touch screens: a transformed sheet there can throw off where a finger lands */

#art > .bit { position: absolute; }      /* the aside sits in the corner here too */

@media (hover: none) { #art > .pond__hint { position: absolute; } }      /* on a phone the "Tap to feed" pill is placed in the pond (this has to outrank the rule that keeps the section's other children in the flow) */


.pad, .pad canvas { touch-action: none; }

/* the "Interests" label belongs to the row under it: pulled down so the two read as one thing */
.interests { margin-bottom: calc(-1 * clamp(28px, 4vw, 52px) + 12px); }

/* "Interests" and the three interests are one row, under one rule */
.interests { display: none; }
@media (min-width: 761px) {
  .threads { grid-template-columns: max-content repeat(3, minmax(0, 1fr)); }
  .threads::before { content: "Interests"; padding: 16px clamp(8px, 1.6vw, 26px) 0 0; border-top: 1px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.2; color: var(--ink-dim); }
}
@media (max-width: 760px) { .threads::before { content: "Interests"; display: block; margin-bottom: 4px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-dim); } }

/* the hand on the queen fans open about a point below the card, and folds again */
.pcard__art .a-fan { animation-name: pc-fan; transform-box: view-box; transform-origin: 125px 300px; }
@keyframes pc-fan { 0% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.2, 1.3, 0.4, 1); } 16%, 86% { transform: rotate(var(--r)); } 100% { transform: rotate(0deg); } }
@media (prefers-reduced-motion: reduce) { .pcard__art .a-fan { transform: rotate(var(--r)); } }

/* ==========================================================================
   The same drama on every screen. <html> carries data-device (phone, tablet, laptop, desktop) and --unit, set by the
   small script at the top of each page. The big moments are sized from --unit, per kind of screen.
   ========================================================================== */
.about__text p:first-child { font-size: clamp(1.9rem, calc(var(--unit, 1vw) * 4.4), 3.7rem); }
[data-device="phone"] .about__text p:first-child { font-size: calc(var(--unit, 1vw) * 9.6); }
.wall__say, #art .sec-head h2, .works__head .label, #cause-page .sec-head h2, .hand__stage .sec-head h2 { font-size: clamp(1.7rem, calc(var(--unit, 1vw) * 3.5), 3.1rem); }
[data-device="tablet"] .wall__say, [data-device="tablet"] #art .sec-head h2, [data-device="tablet"] .works__head .label, [data-device="tablet"] #cause-page .sec-head h2, [data-device="tablet"] .hand__stage .sec-head h2 { font-size: calc(var(--unit, 1vw) * 5); }
[data-device="phone"] .wall__say, [data-device="phone"] #art .sec-head h2, [data-device="phone"] .works__head .label, [data-device="phone"] #cause-page .sec-head h2, [data-device="phone"] .hand__stage .sec-head h2 { font-size: calc(var(--unit, 1vw) * 8.4); }
/* a phone holds the wall in place while the crayon draws, as a laptop does: the line above, the drawings filling the width under it */
@media (prefers-reduced-motion: no-preference) {
  [data-device="phone"] .wall { height: 190vh; padding: 0; }
  [data-device="phone"] .wall__in { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: 5vh; height: 100vh; height: 100svh; padding: 0 var(--gut); overflow: hidden; }
  [data-device="phone"] .wall__say { position: static; transform: none; margin: 0; text-align: left; }
  [data-device="phone"] .wall__art { position: static; width: 128%; height: auto; margin-left: -14%; }
}

.cause__lead:empty { display: none; }
/* ---------- the cause, said large: the nonprofit first, across the whole page; the other two under it ---------- */
.cause-page .cause { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(44px, 6vw, 84px); }
.cause-page .cause li.cause__top { grid-column: 1 / -1; padding-top: 0; border-top: 0; }
.cause__org { margin: 4px 0 0; font-size: clamp(3.2rem, calc(var(--unit, 1vw) * 9.6), 9.6rem); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; transition: color 0.3s; }
.cause__org i { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; color: var(--cobalt-hi); }
.cause__words { display: flex; flex-wrap: wrap; gap: 0.2em 1.3em; margin: clamp(18px, 2.4vw, 34px) 0 0; font-size: clamp(1.05rem, calc(var(--unit, 1vw) * 1.9), 1.8rem); font-weight: 500; letter-spacing: -0.02em; }
.cause__words b { font-weight: 800; color: var(--cobalt-hi); }
.cause__big { margin: 0; font-size: clamp(1.7rem, calc(var(--unit, 1vw) * 3.6), 3.6rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; }
.cause__words + .cause__big { margin-top: clamp(30px, 4.5vw, 64px); }
.cause__big em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; letter-spacing: -0.02em; color: var(--cobalt-hi); }
.cause__top .cause__role { margin-top: clamp(16px, 2vw, 26px); max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.2rem); }
[data-device="phone"] .cause__org { font-size: calc(var(--unit, 1vw) * 19); }
[data-device="phone"] .cause__words { font-size: calc(var(--unit, 1vw) * 4.6); }
[data-device="phone"] .cause__big { font-size: calc(var(--unit, 1vw) * 7.6); }
@media (max-width: 760px) { .cause-page .cause { grid-template-columns: minmax(0, 1fr); } }
.cause-page .sec-head { margin-bottom: clamp(40px, 6vw, 80px); }


/* every box in Experience lifts when you point at it, not only the ones with a link. The lift uses `translate`, which is
   separate from the `transform` the boxes arrive with, so the two never cancel each other */
.stop, .stop.rv { transition: opacity 1.1s var(--soft), transform 1.1s var(--soft), border-color 0.25s, box-shadow 0.25s var(--ease), translate 0.25s var(--ease); }
.stop:hover, .stop.is-target { border-color: var(--cobalt-hi); translate: -4px -4px; box-shadow: 8px 8px 0 var(--cobalt); }
/* the stops wait, dim, until the light on the line reaches them; the one it has just reached stands out, as a stop does when you point at it */
.run.is-live .stop > * { transition: opacity 0.6s; }
.run.is-live .stop:not(.is-lit) > * { opacity: 0.78; }      /* a stop the line has not reached yet is quieter, but still easy to read; the blue edge and the lift are what mark the one you are at */
.stop__group { transition: background 0.5s, color 0.5s; }
.run.is-live .stop:not(.is-lit) .stop__group { background: #242424; color: var(--ink-dim); }
.run.is-live .stop.is-lit { border-color: #4c4c4c; }
.run.is-live .stop.is-now { border-color: var(--cobalt-hi); translate: -4px -4px; box-shadow: 8px 8px 0 var(--cobalt); }
.stop__head h4 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.stop.has-link:hover, .stop.rv.is-target { transform: none; }

/* ---------- the first screen: one line under the name, then two plain rows, Currently and Next (content.js, hero; placed by js/enter.js).
   No box, no border, no background: a narrow column of small blue labels on the left, the words on the right. ---------- */
.hero__now { position: absolute; margin: 0; pointer-events: none; will-change: transform; }
.hero__tag { margin: 0; font-size: clamp(0.9rem, calc(var(--unit, 1vw) * 1.22), 1.1rem); font-weight: 400; letter-spacing: -0.005em; line-height: 1.35; color: var(--ink); text-wrap: balance; }
.hero__card { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 9px 20px; margin: 16px 0 0; padding: 0; }
.hero__card dt { margin: 0; padding-top: 0.36em; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.15em; line-height: 1.2; text-transform: uppercase; color: var(--cobalt-hi); }
.hero__card dd { margin: 0; font-size: 0.93rem; line-height: 1.38; letter-spacing: -0.005em; color: var(--ink); }
.hero__card small { display: block; margin-top: 3px; font-size: 0.82rem; line-height: 1.38; color: var(--ink-body); }
.hero__keep { white-space: nowrap; }
[data-device="phone"] .hero__tag { font-size: 0.86rem; }
[data-device="phone"] .hero__card { gap: 7px 14px; margin-top: 12px; }
[data-device="phone"] .hero__card dd { font-size: 0.84rem; line-height: 1.32; }
[data-device="phone"] .hero__card small { font-size: 0.76rem; line-height: 1.32; }
.hero__now.is-tight .hero__tag { font-size: 0.8rem; line-height: 1.25; }
.hero__now.is-tight .hero__card { gap: 5px 12px; margin-top: 9px; }
.hero__now.is-tight .hero__card dd { font-size: 0.78rem; line-height: 1.26; }
.hero__now.is-tight .hero__card small { font-size: 0.72rem; line-height: 1.26; }
@media (prefers-reduced-motion: no-preference) { .hero__tag, .hero__card { animation: hero-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both; } .hero__card { animation-delay: 0.42s; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- the quiet line at the foot of Projects, just above Contact (js/main.js builds it from content.js, ticker) ----------
   Small, grey, slow: it is there to be noticed late, not read first. It fades out at both ends, and stands still if motion is turned off. */
.ticker { position: absolute; left: 0; right: 0; bottom: clamp(20px, 4.4vh, 44px); overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker__track { display: flex; align-items: center; width: max-content; font-size: 16px; font-weight: 400; letter-spacing: 0.01em; line-height: 1.4; white-space: nowrap; color: #6b6b6b; animation: ticker 200s linear infinite; will-change: transform; }      /* about 16 px a second */
.ticker__dot { padding: 0 0.95em; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .ticker { bottom: 26px; } .ticker__track { font-size: 15px; animation-duration: 230s; } }
@media (prefers-reduced-motion: reduce) { .ticker { -webkit-mask-image: none; mask-image: none; } .ticker__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; white-space: normal; padding: 0 var(--gut); } .ticker__track > :nth-child(n + 19) { display: none; } }

/* ---------- the cause page, in HEART Blossom's own colours ----------
   The colours are read from heart-blossom.org: its butter yellow (#f7e8a7), its purple (#4f2f84), its plum text (#4d2d5c) and the
   teal it uses in small touches (#79c0cc). The page itself stays black like the rest of the site (a light page here was tried and
   she found it weird): the butter, a purple light enough to read on black, and the teal are the accents.
   The five letters of HEART each have their own colour, and the same colour picks out the first letter of that letter's word
   in the sentence. The photos are a loose wall of prints, each pinned a little askew, that lift when pointed at. */
#cause-page { --cobalt: #f7e8a7; --cobalt-hi: #f7e8a7;
  --heart-1: #f7e8a7; --heart-2: #b596f2; --heart-3: #79c0cc; --heart-4: #8d6be0; --heart-5: #e9d27a; --butter: #f7e8a7; }      /* butter, a light purple, teal, a deeper purple (the site's #4f2f84 lifted until it reads on black), gold */
#cause-page .cause__org { font-weight: 500; letter-spacing: -0.05em; }      /* not heavy */
#cause-page .cause__org i { color: var(--ink); }
.cause__letters span:nth-child(5n + 1), .cause__w[data-k="0"] b { color: var(--heart-1); }
.cause__letters span:nth-child(5n + 2), .cause__w[data-k="1"] b { color: var(--heart-2); }
.cause__letters span:nth-child(5n + 3), .cause__w[data-k="2"] b { color: var(--heart-3); }
.cause__letters span:nth-child(5n + 4), .cause__w[data-k="3"] b { color: var(--heart-4); }
.cause__letters span:nth-child(5n + 5), .cause__w[data-k="4"] b { color: var(--heart-5); }
.cause__w b { font-weight: 600; }
#cause-page .cause__top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); column-gap: clamp(28px, 5vw, 84px); align-items: start; }
#cause-page .cause__top > .mono, #cause-page .cause__top > .cause__org { grid-column: 1 / -1; }
#cause-page .cause__top .cause__role { margin-top: clamp(8px, 1.4vw, 22px); max-width: 34ch; font-size: clamp(1.1rem, 1.55vw, 1.42rem); line-height: 1.42; color: var(--ink); }
#cause-page .cause__org { margin-bottom: clamp(26px, 4vw, 56px); }
.cause__wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 26px) clamp(10px, 1.5vw, 22px); padding: 14px 8px 22px; }
.pin { position: relative; margin: 0; padding: 7px 7px 10px; background: #fffdf5; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.55); transform: rotate(var(--r, 0deg)) translateY(var(--dy, 0px)); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s; }
.pin::before { content: ""; position: absolute; left: 50%; top: -5px; z-index: 1; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--heart-3); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); }      /* the pin */
.pin img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.pin.is-empty::after { content: attr(data-file); display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; background: var(--butter); color: rgba(40, 24, 52, 0.55); font-size: 0.68rem; letter-spacing: 0.05em; }      /* no picture yet: blank paper, with the name of the file that goes here */
.pin:nth-child(3n + 2) img, .pin.is-empty:nth-child(3n + 2)::after { aspect-ratio: 1 / 1; }
.pin:nth-child(1) { --r: -4deg; --dy: 6px; } .pin:nth-child(2) { --r: 2.5deg; --dy: -10px; } .pin:nth-child(3) { --r: -1.5deg; --dy: 12px; }
.pin:nth-child(4) { --r: 3deg; --dy: -4px; } .pin:nth-child(5) { --r: -3deg; --dy: 10px; } .pin:nth-child(6) { --r: 4deg; --dy: -8px; } .pin:nth-child(7) { --r: -2deg; --dy: 4px; }
.pin.is-empty:nth-child(3n + 2)::after { background: #e9dff3; } .pin.is-empty:nth-child(3n + 3)::after { background: #d8ecef; }
.pin::before { background: var(--heart-1); } .pin:nth-child(2n)::before { background: var(--heart-2); } .pin:nth-child(3n)::before { background: var(--heart-3); }
@media (hover: hover) { .pin { pointer-events: auto; } .pin:hover { z-index: 2; transform: rotate(0deg) translateY(-9px) scale(1.045); box-shadow: 0 26px 46px rgba(0, 0, 0, 0.7); } }
@media (prefers-reduced-motion: reduce) { .pin { transition: none; } }
@media (max-width: 900px) {
  #cause-page .cause__top { display: block; }
  #cause-page .cause__top .cause__role { max-width: 38ch; }
  .cause__wall { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(30px, 6vw, 54px); padding: 10px 2px 16px; }
}
@media (max-width: 560px) { .cause__wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; } }

/* ---------- the rowing shell on the experience line (js/main.js draws and turns it). It replaces the point of light; it is still a button ---------- */
.run__ball.run__shell { width: auto; height: auto; border-radius: 0; padding: 0; border: 0; background: none; transform-origin: 50% 50%; }
.run__shell::before, .run__shell.is-struck::after { content: none; }
.run__shell canvas { display: block; pointer-events: none; }

/* ---------- a card turned over by a click: the same turn as the deal, to a second back that will hold something of the project ---------- */
.pcard { cursor: pointer; }
.pcard__more { display: none; flex-direction: column; padding: 9% 9% 8%; background: #fbfaf6; color: #0b0b0b; transform: rotateY(180deg); overflow: hidden; }
.pcard.has-more .pcard__more { display: flex; }
.pcard.has-more .pcard__back { visibility: hidden; }      /* once you have turned a card yourself, its other side is this one, not the pattern of the deck */
.pcard.has-more .pcard__in { transition: translate 0.35s var(--ease), transform 0.8s var(--soft); }      /* (only then: while the hand is being dealt js/hand.js moves the cards itself, frame by frame) */
.pcard.is-flipped .pcard__in, .hand--loose .is-up .pcard.is-flipped .pcard__in { transform: perspective(1400px) rotateY(180deg); }
.pcard__more-title { font-family: var(--cond); font-style: italic; font-weight: 400; font-size: 8.4cqw; line-height: 1.1; letter-spacing: -0.01em; }
.pcard--blue .pcard__more-title, .pcard--blue .pcard__more-go { color: var(--cobalt); }
.pcard__more-slot { flex: 1; display: grid; place-content: center; gap: 0.5em; margin: 7% 0; border: 1px dashed rgba(11, 11, 11, 0.3); border-radius: 3cqw; text-align: center; font-size: 6.4cqw; line-height: 1.2; }
.pcard__more-slot small { font-size: 0.58em; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; }
.pcard__more-go { align-self: stretch; padding: 0.7em 0 0.2em; font-size: max(13px, 5.6cqw); color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }      /* the only way in to the project from here: never smaller than 13 px, and as wide as the card so a thumb finds it */
@media (max-width: 760px) { .pcard__more { padding: 8% 8% 5%; } .pcard__more-title { font-size: max(13px, 9cqw); } .pcard__more-slot { margin: 5% 0 2%; font-size: max(11px, 7cqw); } .pcard__more-go { padding: 12px 0 8px; } }
@media (prefers-reduced-motion: reduce) { .pcard.has-more .pcard__in { transition: none; } }

/* ---------- the brush trail behind a mouse pointer (js/main.js) ---------- */
.trail { position: fixed; left: 0; top: 0; z-index: 44; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- the nonprofit's own address, under its sentence on the cause page ---------- */
.cause__site { display: inline-block; margin-top: clamp(14px, 1.6vw, 22px); font-size: 0.95rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--heart-2, currentColor); text-decoration-thickness: 2px; text-underline-offset: 0.24em; }
.cause__site:hover { color: var(--cobalt-hi); }

/* ---------- one voice everywhere ----------
   She asked for the fonts and everything to be more cohesive, and for the HEART Blossom page to look like part of the same site.
   So the newer pieces follow the rule the rest of the site already keeps: bold sans for statements, the italic serif for anything
   quiet, one blue. On the cause page the name is set like every other big name on the site (heavy white capitals, the second word
   in the blue italic), and its photos sit in the same sharp frames as the experience boxes, with the same lift and blue shadow. */
#cause-page { --cobalt: #2b3fff; --cobalt-hi: #5b6dff; }      /* the site's blue, in the lighter cut she asked for on this page */
#cause-page .cause__org { font-weight: 800; letter-spacing: -0.06em; }
#cause-page .cause__letters span { color: var(--ink); }
#cause-page .cause__org i { color: var(--cobalt-hi); }
#cause-page .cause__w b { color: var(--cobalt-hi); font-weight: 700; }
#cause-page .cause__site { text-decoration-color: var(--cobalt-hi); }
#cause-page .pin { padding: 0; background: #0b0b0b; border: 1px solid #3a3a3a; box-shadow: none; transform: translateY(var(--dy, 0px)); transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s; }
#cause-page .pin::before { content: none; }
#cause-page .pin img, #cause-page .pin.is-empty::after { aspect-ratio: 4 / 5; }      /* every frame the same shape */
@media (hover: hover) { #cause-page .pin:hover { transform: translateY(var(--dy, 0px)); translate: -4px -4px; border-color: var(--cobalt-hi); box-shadow: 8px 8px 0 var(--cobalt); } }
.hero__card dt { padding-top: 0.05em; font-family: var(--serif); font-style: italic; font-size: 1.04rem; font-weight: 400; letter-spacing: 0; line-height: 1.25; text-transform: none; color: var(--cobalt-hi); }      /* a label, in the voice of every other label */
.ticker__track { font-family: var(--serif); font-style: italic; font-size: 18px; letter-spacing: 0; }
@media (max-width: 760px) { .ticker__track { font-size: 16px; } }
.pcard__more-slot small { font-family: var(--cond); font-style: italic; font-size: 0.72em; letter-spacing: 0; text-transform: none; }

/* ---------- the cause page, warm (2026-11-25) ----------
   It comes straight after the cream page of 3D work, and in pure black with six bright photos it was a jolt. She asked for it to be
   warmer and easier on the eye, and had already said a light page here felt wrong. A deep warm brown page was tried next and she
   hated the brown, so the page is black like the rest of the site and the warmth is in the accent alone: the coral measured from
   her koi paintings, in place of the blue. The type keeps the site's two voices.
   The photos are one quiet row under the words: small, toned down and warmed, and in full colour only when pointed at. */
#cause-page { --cobalt: #2b3fff; --cobalt-hi: #5b6dff; }      /* the site's own blue (coral on black was tried and read as Halloween) */
#cause-page .cause__top { display: block; }
#cause-page .cause__top .cause__role { max-width: 40ch; }
#cause-page .cause__wall { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.1vw, 16px); margin-top: clamp(34px, 4.6vw, 62px); padding: 0; }
#cause-page .pin { --dy: 0px; }
#cause-page .pin img { filter: saturate(0.78) brightness(0.94); transition: filter 0.35s; }      /* a little quieter than the photos are, with no colour cast */
@media (hover: hover) { #cause-page .pin:hover img { filter: none; } }
@media (max-width: 760px) { #cause-page .cause__wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }

/* ---------- the line and the Next row on the first screen, larger: at their first size she could not read them ---------- */
.hero__tag { font-size: clamp(1.08rem, calc(var(--unit, 1vw) * 1.75), 1.6rem); }
.hero__card { gap: 10px 18px; margin-top: 14px; }
.hero__card dd { font-size: clamp(1.02rem, calc(var(--unit, 1vw) * 1.5), 1.38rem); }
.hero__card dt { padding-top: 0; font-size: clamp(1.12rem, calc(var(--unit, 1vw) * 1.62), 1.5rem); line-height: 1.3; }
[data-device="phone"] .hero__tag { font-size: 1.08rem; }
[data-device="phone"] .hero__card dd { font-size: 1.04rem; }
[data-device="phone"] .hero__card dt { font-size: 1.14rem; }
.hero__now.is-tight .hero__tag { font-size: 0.98rem; }
.hero__now.is-tight .hero__card dd { font-size: 0.95rem; }

/* ---------- the cause page: on the cream paper, set like the cover (2026-11-25) ----------
   Of three looks side by side she liked this one and the black one best, and hated how the page was laid out (a huge name, a
   paragraph, a thin strip of photos). So: it is on the same cream paper as the page of 3D work before it, with no edge between
   the two, and it is set the way the cover is: the name stacked in the two voices on the left with the sentence under it, and
   the photos as one tidy block on the right, level with the name. index.html?hb=1 shows it on black instead. */
#cause-page { --sheet: #ece9df; --ink: #0b0b0b; --ink-body: #403e39; --ink-dim: #6c6a63; --line: #cfcbbf; --cobalt: #2233cc; --cobalt-hi: #2233cc; color: var(--ink); }
#cause-page.sheet::before { border-radius: 0; box-shadow: none; }
#cause-page .cause__top { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); column-gap: clamp(30px, 5vw, 84px); align-items: start; }
#cause-page .cause__top > .mono, #cause-page .cause__top > .cause__org, #cause-page .cause__top > .cause__say { grid-column: 1; }
#cause-page .cause__org { margin: 8px 0 clamp(20px, 2.6vw, 34px); font-size: clamp(3rem, calc(var(--unit, 1vw) * 7.4), 7.2rem); line-height: 0.9; }
#cause-page .cause__org i { display: block; margin-top: -0.05em; }      /* the second word on its own line, as "Kou" is on the cover */
#cause-page .cause__top .cause__role { margin-top: 0; max-width: 34ch; }
#cause-page .cause__wall { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); margin-top: 6px; padding: 0; }
#cause-page .pin { background: #dedacd; border-color: var(--line); }
#cause-page .pin img { filter: none; }
[data-device="phone"] #cause-page .cause__org { font-size: calc(var(--unit, 1vw) * 17); }
@media (max-width: 900px) {
  #cause-page .cause__top { display: block; }
  #cause-page .cause__wall { margin-top: clamp(28px, 6vw, 48px); }
}
[data-hb="1"] #cause-page { --sheet: var(--bg); --ink: #f2f0eb; --ink-body: #bdbcb8; --ink-dim: #8a8985; --line: #1d1d1c; --cobalt: #2b3fff; --cobalt-hi: #5b6dff; }
[data-hb="1"] #cause-page.sheet::before { border-radius: clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px) 0 0; box-shadow: 0 -26px 70px rgba(0, 0, 0, 0.6); }
[data-hb="1"] #cause-page .pin { background: #0b0b0b; border-color: #3a3a3a; }

/* ---------- the cause page on a deep blue-violet, fading to black at its foot (2026-11-25) ----------
   She found the step from the cream page into the black of Experience too bold, and suggested a blue or purple page here in
   place of the light one. The colour sits between the site's blue and HEART Blossom's own purple. The last third of the page
   fades down to black, and Experience comes up over it with no edge and no shadow, so one runs into the other. The layout is
   the one above (the name stacked, the sentence, the block of photos). index.html?hb=1 still shows it on black. */
#cause-page { --sheet: #1e1c63; --ink: #f2f0eb; --ink-body: #d2d3ea; --ink-dim: #a3a5cf; --line: #3d3b97; --cobalt: #8e9bff; --cobalt-hi: #b3bcff; color: var(--ink); }
#cause-page.sheet::before { border-radius: clamp(18px, 2.6vw, 36px) clamp(18px, 2.6vw, 36px) 0 0; box-shadow: 0 -22px 60px rgba(20, 18, 70, 0.35); background: linear-gradient(180deg, var(--sheet) 0%, var(--sheet) 66%, #000 100%); }
#cause-page .pin { background: #15134c; border-color: var(--line); }
#experience.sheet::before { border-radius: 0; box-shadow: none; }      /* it meets the foot of the cause page, which is already black there */
[data-hb="1"] #cause-page.sheet::before { background: var(--sheet); }

/* ---------- Experience: the fan lines from the art pages, faint, behind the boxes (she found the section bland on bare black) ---------- */
.exp__pleats { position: absolute; left: 50%; top: 0; z-index: -1; width: 100vw; height: 100%; margin-left: -50vw; color: var(--ink); opacity: 0.11; pointer-events: none; }
.exp__pleats * { fill: none; stroke: currentColor; stroke-width: 0.9; }

/* ---------- the Next row on the first screen, heavier: in the thin italic it was too skinny to see ---------- */
.hero__card dt { font-family: var(--sans); font-style: normal; font-weight: 800; letter-spacing: -0.02em; color: #8795ff; }      /* the bold voice, in the accent a step lighter so it carries on black */
.hero__card dd { font-weight: 500; }
.hero__tag { font-weight: 500; }

/* ---------- the cause page arrives sideways (js/main.js sets --in and moves the line of words) ---------- */
#cause-page.cause-page { padding-top: clamp(156px, 21vh, 216px); }      /* room at the top for the line of words */
.cause__run { position: absolute; left: 50%; top: 88px; width: 100vw; margin-left: -50vw; overflow: hidden; pointer-events: none; }
.cause__run-track { display: flex; gap: 1em; width: max-content; white-space: nowrap; font-size: clamp(1.5rem, calc(var(--unit, 1vw) * 3.1), 3rem); line-height: 1.15; color: var(--ink); opacity: 0.92; will-change: transform; }
.cause__run-track span { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.02em; }
.cause__run-track b { font-family: var(--sans); font-style: normal; font-weight: 800; letter-spacing: -0.04em; color: var(--cobalt-hi); }
#cause-page .cause__wall { transform: translate3d(calc((1 - var(--in, 1)) * 24vw), 0, 0); transition: opacity 1.1s var(--soft), transform 0.2s linear; }
#cause-page .cause__org { transform: translate3d(calc((1 - var(--in, 1)) * -9vw), 0, 0); transition: opacity 1.1s var(--soft), transform 0.2s linear; }
[data-device="phone"] .cause__run { top: 72px; }


/* ---------- the two rows on the first screen, Currently and Next: small capital labels in her blue, plain text beside them ---------- */
.hero__card { align-items: baseline; }
.hero__card dt { padding-top: 0; font-family: var(--sans); font-style: normal; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.15em; line-height: 1.2; text-transform: uppercase; color: #2f45ff; }
[data-device="phone"] .hero__card dt { font-size: 0.7rem; }
.hero__card dd, .hero__tag { font-weight: 400; }

/* ---------- code on a project's page: closed behind "View code" until asked for ---------- */
details.code { border-top: 1px solid var(--line); }
details.code summary { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 600; letter-spacing: -0.01em; }
details.code summary::-webkit-details-marker { display: none; }
details.code summary::before { content: "+"; width: 0.8em; color: var(--cobalt-hi); font-weight: 400; }
details.code[open] summary::before { content: "\2013"; }
details.code summary span { font-weight: 400; }
details.code pre { margin-bottom: 18px; }

/* ---------- the wall on a phone: the words stand in the middle of the drawings, as they do on a laptop ----------
   They used to sit above the picture, which left a hole in the middle of it where they belong. The top row of drawings (the first
   seven, two strokes each) moves up and the bottom row down to make the room; js/main.js makes the picture taller to match. */
[data-device="phone"] .wall__in { gap: 0; }
[data-device="phone"] .wall__say { position: absolute; left: var(--gut); right: var(--gut); top: 50%; z-index: 2; margin: 0; transform: translateY(-50%); text-align: center; }
[data-device="phone"] .wall__art { width: 100%; margin-left: 0; }      /* the whole picture, edge to edge: nothing cut off at the sides */
[data-device="phone"] .wall__art > g:nth-child(-n + 5) { transform: translateY(-120px); }      /* the five things of the top row (each thing is one group now) */
[data-device="phone"] .wall__art > g:nth-child(n + 6) { transform: translateY(120px); }

/* ---------- the cursor ring (js/main.js) ---------- */
.cursor-ring { position: fixed; left: -18px; top: -18px; z-index: 96; width: 36px; height: 36px; box-sizing: border-box; border: 1.5px solid #6f7dff; border-radius: 50%; pointer-events: none; opacity: 0; scale: 1; transition: opacity 0.3s, scale 0.28s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.28s, border-color 0.28s; will-change: transform; }
.cursor-ring.is-on { opacity: 0.9; }
.cursor-ring.is-over { scale: 1.9; background-color: rgba(43, 63, 255, 0.2); border-color: #9aa5ff; }      /* over something you can press, it opens */
.cursor-ring.is-down { scale: 0.7; }

/* ---------- the cursor: a small fin that swims after the pointer (js/main.js) ---------- */
.cursor-fin { position: fixed; left: 8px; top: 10px; z-index: 96; width: 26px; height: 26px; pointer-events: none; opacity: 0; scale: 1; transition: opacity 0.3s, scale 0.25s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
.cursor-fin svg { display: block; width: 100%; height: 100%; overflow: visible; transform: scaleX(var(--dir, 1)) rotate(var(--tilt, 0deg)); transform-origin: 50% 80%; transition: transform 0.22s ease-out; }
.cursor-fin.is-on { opacity: 1; }
.cursor-fin.is-over { scale: 1.45; }      /* over something you can press, it rises */
.cursor-fin.is-down { scale: 0.8; }

/* ---------- the shark beside Contact that watches the pointer (js/main.js) ---------- */
.chase { position: absolute; right: var(--gut); top: clamp(34px, 7vh, 80px); width: clamp(110px, 15vw, 230px); pointer-events: none; }
.chase svg { display: block; width: 100%; overflow: visible; }
.chase__shark { transform-box: view-box; transform-origin: 50px 50px; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: no-preference) { .chase svg { animation: chase-bob 3.6s ease-in-out infinite alternate; } }
@keyframes chase-bob { from { translate: 0 -5px; } to { translate: 0 7px; } }
[data-device="phone"] .chase { width: 28vw; top: 22px; }

/* ---------- Experience has its line of the story, set like the others ---------- */
#experience .sec-head h2 { max-width: none; font-family: var(--sans); font-style: normal; font-size: clamp(1.7rem, calc(var(--unit, 1vw) * 3.5), 3.1rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; color: var(--ink); }
[data-device="tablet"] #experience .sec-head h2 { font-size: calc(var(--unit, 1vw) * 5); }
[data-device="phone"] #experience .sec-head h2 { font-size: calc(var(--unit, 1vw) * 8.4); }
#experience .sec-head { max-width: 1280px; margin: 0 auto clamp(30px, 5vw, 70px); }

/* ---------- the marked word of each heading: crayon, not italics. OFF (she did not want it live, 2026-11-25): these rules only apply when
   js/main.js puts the class crayon-words on <html>, which it does not do now. Until then the marked words are in the italic serif, as before. ----------
   It is set in the same bold face as the rest of the line and underlined by a crayon stroke that draws itself (js/main.js gives each
   one its colour and says when). The italic serif stays only for the small quiet things: dates, labels, captions. */
.crayon-words .it.it.it { position: relative; display: inline-block; font-family: inherit; font-style: normal; font-weight: inherit; font-size: 1em; letter-spacing: inherit; white-space: nowrap; }
.crayon-words .it.it.it::after { content: ""; position: absolute; left: -3%; right: -3%; bottom: -0.2em; height: 0.26em; background: var(--cray, #5b6dff); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7C14 2 26 11 38 6C50 1 62 11 74 6C84 2 92 5 98 7' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center; -webkit-mask-size: 0% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7C14 2 26 11 38 6C50 1 62 11 74 6C84 2 92 5 98 7' fill='none' stroke='black' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center; mask-size: 0% 100%;
  transition: -webkit-mask-size 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s, mask-size 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.crayon-words .it.it.it.is-drawn::after { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
/* ---------- a fifth card in the hand (the ten): the row holds as many columns as there are projects (js/main.js sets --n) ---------- */
@media (min-width: 761px) { .hand__cards { grid-template-columns: repeat(var(--n, 4), minmax(0, var(--cw))); } }
@media (max-width: 760px) { .hand__slot:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: 148px; max-width: 100%; } }      /* on a phone the cards go two by two: an odd one out sits in the middle of its own row */
.pcard__idx--wide b { font-size: 0.82em; letter-spacing: -0.07em; margin-left: -0.07em; }      /* "10" is two figures in a corner made for one */
/* the ten's face (js/main.js, FRONTS[10]): the bar under the chip is the cost of a token. It shrinks as one over the number of cells lit: 1, 1/2, 1/3 ... 1/10 */
.pcard__art .a-cost { animation-name: pc-cost; animation-timing-function: linear; transform-origin: 0 50%; }
@keyframes pc-cost { 0% { transform: scaleX(1); } 4% { transform: scaleX(0.5); } 8% { transform: scaleX(0.333); } 12% { transform: scaleX(0.25); } 16% { transform: scaleX(0.2); } 24% { transform: scaleX(0.143); } 36%, 88% { transform: scaleX(0.1); } 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .pcard__art .a-cost { transform: scaleX(0.1); } }

/* ---------- the other side of a project's card, filled: a real picture from the project (or a plain curve), a few words, and the way in ---------- */
.pcard__more-slot.is-filled { display: block; min-height: 0; margin: 6% 0 4%; padding: 0; border: 0; border-radius: 2.4cqw; overflow: hidden; }
.pcard__more-slot.is-filled img, .pcard__more-slot.is-filled svg { display: block; width: 100%; height: 100%; object-position: 50% 0; }
.pcard__more-slot.is-curve { background: #fbfaf6; color: #0b0b0b; border: 1px solid rgba(11, 11, 11, 0.16); }
.pcard__more-cap { font-family: var(--cond); font-style: italic; font-size: max(11px, 5.6cqw); line-height: 1.2; color: #0b0b0b; opacity: 0.78; }

/* ---------- Research (after Projects): four drawings, no numbers (content.js, research; js/research.js) ----------
   Fine lines in the quiet grey, the blue only where something is lit or matters (TSMC). Each drawing draws itself in once
   (.is-drawn) and its loops only run while it is on screen (.is-live). */
#research .sec-head h2 { max-width: none; font-family: var(--sans); font-style: normal; font-size: clamp(1.7rem, calc(var(--unit, 1vw) * 3.5), 3.1rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.04; color: var(--ink); }
[data-device="tablet"] #research .sec-head h2 { font-size: calc(var(--unit, 1vw) * 5); }
[data-device="phone"] #research .sec-head h2 { font-size: calc(var(--unit, 1vw) * 8.4); }
.research { padding-bottom: clamp(90px, 12vw, 170px); }
.research__lead { margin: calc(-1 * clamp(8px, 1.6vw, 22px)) 0 clamp(36px, 5vw, 72px); }
.research__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(56px, 7vw, 110px) clamp(32px, 5vw, 80px); align-items: start; }
.rs { min-width: 0; }
.rs--chain, .rs--map { grid-column: 1 / -1; }
.rs--map .rs__svg { max-width: 760px; margin: 0 auto; }
.rs__t { display: block; font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--ink); margin-bottom: clamp(14px, 2vw, 24px); }
.rs__cap { margin-top: clamp(14px, 1.8vw, 22px); max-width: 52ch; font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.45; color: var(--ink-dim); }
.rs__svg { display: block; width: 100%; height: auto; overflow: visible; }
.rs__svg text { font-family: var(--sans); fill: var(--ink-body); }
.rs { --rs-line: rgba(242, 240, 235, 0.34); }

/* the stack */
.st__top, .st__side, .st__sign *, .st__lead { fill: none; stroke: var(--rs-line); stroke-width: 1; transition: stroke 0.6s; }
.st__top { fill: var(--bg); }
.st__side { fill: var(--bg); }
.st__sign .rs-fill { fill: var(--rs-line); stroke: none; }
.st__name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.st { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--soft), transform 1s var(--soft); transition-delay: calc(var(--k) * 140ms); }
.is-drawn .st { opacity: 1; transform: none; }
.is-live .st__top, .is-live .st__side { animation: st-glow 5.2s linear infinite; animation-delay: calc(var(--k) * 0.55s); }
.is-live .st__sign * { animation: st-glow 5.2s linear infinite; animation-delay: calc(var(--k) * 0.55s); }
.is-live .st__sign .rs-fill { animation-name: st-glow-fill; }
@keyframes st-glow { 0% { stroke: var(--cobalt-hi); } 14% { stroke: var(--rs-line); } 100% { stroke: var(--rs-line); } }
@keyframes st-glow-fill { 0% { fill: var(--cobalt-hi); } 14% { fill: var(--rs-line); } 100% { fill: var(--rs-line); } }
.st:hover .st__top, .st:hover .st__side, .st:hover .st__sign *, .st:hover .st__lead { stroke: var(--ink); animation: none; }
.st:hover .st__name { fill: var(--ink); }

/* the two rings */
.vn__ring { fill: none; stroke: var(--rs-line); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--soft); }
.vn__ring--b { transition-delay: 0.35s; }
.is-drawn .vn__ring { stroke-dashoffset: 0; }
.vn__label { font-family: var(--serif) !important; font-style: italic; font-size: 26px; fill: var(--ink-dim) !important; }
.vn__name { font-size: 22px; font-weight: 500; opacity: 0; transition: opacity 0.8s var(--soft); transition-delay: calc(0.9s + var(--k) * 110ms); }
.vn__name--both { fill: var(--cobalt-hi) !important; font-weight: 600; }
.is-drawn .vn__name { opacity: 1; }

/* the chain */
.ch { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; padding: 0; }
.ch__rail { position: absolute; left: calc(50% / var(--n)); right: calc(50% / var(--n)); top: 30px; height: 1px; background: var(--rs-line); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--soft); }
.is-drawn .ch__rail { transform: none; }
.ch__dot { position: absolute; top: -3.5px; left: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--cobalt-hi); box-shadow: 0 0 14px var(--cobalt-hi); opacity: 0; }
.is-live .ch__dot { animation: ch-run 7.2s linear infinite; }
@keyframes ch-run { 0% { left: 0; opacity: 0; } 3% { opacity: 1; } 83% { left: 100%; opacity: 1; } 90%, 100% { left: 100%; opacity: 0; } }
.ch__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--soft), transform 0.9s var(--soft); transition-delay: calc(0.3s + var(--k) * 140ms); }
.is-drawn .ch__step { opacity: 1; transform: none; }
.ch__ic { width: 60px; height: 60px; padding: 4px; background: var(--bg); color: var(--rs-line); border-radius: 50%; margin-bottom: 8px; }
.ch__ic .ic-fill { fill: currentColor; stroke: none; }
.is-live .ch__ic { animation: ch-lit 7.2s linear infinite; animation-delay: calc(var(--k) * 7.2s * 0.83 / (var(--n) - 1) - 0.15s); }
@keyframes ch-lit { 0% { color: var(--cobalt-hi); } 16% { color: var(--rs-line); } 100% { color: var(--rs-line); } }
.ch__step b { font-weight: 600; font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; }
.ch__step span { font-family: var(--serif); font-style: italic; font-size: 0.98rem; line-height: 1.35; color: var(--ink-dim); }
.ch__step:hover .ch__ic { color: var(--ink); animation: none; }

/* the map */
.mp__ln { fill: none; stroke: var(--rs-line); stroke-width: 1.1; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--soft), stroke 0.3s, opacity 0.3s; transition-delay: calc(var(--k) * 70ms), 0s, 0s; }
.mp__ln.is-hub { stroke: var(--cobalt-hi); stroke-width: 1.6; }
.is-drawn .mp__ln { stroke-dashoffset: 0; }
.mp__d, .mp__f { cursor: default; }
.mp__d { cursor: pointer; outline: none; }
.mp__d circle, .mp__f circle { fill: var(--ink-body); }
.mp__f.is-hub circle { fill: var(--cobalt-hi); }
.mp text { font-size: 24px; font-weight: 500; transition: fill 0.3s, opacity 0.3s; }
.mp .mp__f.is-hub text { fill: var(--cobalt-hi); font-weight: 700; }
.mp.is-picking .mp__ln:not(.is-on) { opacity: 0.12; }
.mp.is-picking .mp__d:not(.is-on) text { opacity: 0.4; }
.mp .mp__d.is-on text { fill: var(--ink); }
.mp .mp__ln.is-on:not(.is-hub) { stroke: var(--ink); }
.is-live .mp__f.is-hub circle { animation: mp-beat 2.8s var(--soft) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mp-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.5); } 30% { transform: scale(1); } }

/* phones and narrow screens: one column, and the chain runs down the page */
@media (max-width: 760px) {
  .research__figs { grid-template-columns: minmax(0, 1fr); }
  .ch { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ch__rail { left: 30px; right: auto; top: calc(50% / var(--n)); bottom: calc(50% / var(--n)); width: 1px; height: auto; transform: scaleY(0); transform-origin: 50% 0; }
  .ch__dot { left: -3.5px; top: 0; margin: -4px 0 0; }
  @keyframes ch-run { 0% { top: 0; opacity: 0; } 3% { opacity: 1; } 83% { top: 100%; opacity: 1; } 90%, 100% { top: 100%; opacity: 0; } }
  .ch__step { display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 18px; row-gap: 2px; align-items: center; text-align: left; }
  .ch__ic { grid-row: 1 / 3; margin: 0; }
  .ch__step b { align-self: end; }
  .ch__step span { align-self: start; }
}
@media (prefers-reduced-motion: reduce) { .is-live .st__top, .is-live .st__side, .is-live .st__sign *, .is-live .ch__dot, .is-live .ch__ic, .is-live .mp__f.is-hub circle { animation: none; } }
[data-device="phone"] .nav__links a[href$="#research"] { display: none; }      /* the phone menu is already full; Research is reached by scrolling */

/* ---------- no italic serif anywhere (her words, 2026-11-29: "dont use this font and italics ... make it less claude and ai") ----------
   The quiet voice (dates, labels, captions, the pager, code names) is now Fragment Mono, upright and small.
   The cards and the marked word in each heading use the site's own sans instead of Didot. */
@font-face {
  /* Fragment Mono by Wei Huang and Rasmus Andersson, SIL Open Font License 1.1 (Google Fonts) */
  font-family: "Fragment Mono";
  src: url("../assets/fonts/FragmentMono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root { --serif: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.pcard { --cond: var(--sans); }
body *:not(pre):not(code) { font-style: normal !important; }
.mono, .label, .rs__cap, .ch__step span, .bit, .ticker__track, .tech::before, .threads::before { font-size: 0.78rem; letter-spacing: 0.01em; line-height: 1.5; }
.label { font-size: 0.84rem; }
.ticker__track { font-size: 14px; }
.vn__label { font-size: 20px; }
.it, .hero__it, .cause__big em, .cause__org i, .cause__run-track span { font-family: inherit; font-weight: inherit; font-size: 1em; letter-spacing: inherit; color: var(--cobalt-hi); }
.nav__word i { font-family: inherit; font-weight: 400; font-size: 1em; -webkit-text-stroke: 0; }
.pcard__title, .pcard__more-title { font-weight: 700; letter-spacing: -0.02em; }
.pcard__idx { font-weight: 700; letter-spacing: -0.04em; }
.hero__it { font-weight: 800; letter-spacing: -0.05em; margin-top: 0.02em; }
.mp text.mp__node { font-family: var(--serif); font-size: 15px; font-weight: 400; fill: var(--ink-dim) !important; }
.ch__step span { font-size: 0.74rem; }
