/* wareelaktunbut.com v2. Ported from the Claude Design canvas "wareelaktunbut.com v2": ds/wareelak tokens.css + components bundle + site-v2.css layers v2.1–v2.6 (Lab and Play rules held for v2.1). Site-only additions are at the end. */

/* wareelaktunbut.com — generated from tokens.json */
/* Archivo (SIL OFL), self-hosted so the hero headline doesn't wait on a second request. Latin, width 62–125%, weight 800–900. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800 900; font-stretch: 62% 125%; font-display: swap; src: url(/assets/fonts/archivo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root, [data-theme="light"] {
  --paper: #f2efe8;
  --card: #fbfaf6;
  --ink: #16161a;
  --ink-2: #3c3c44;
  --muted: #5e5e66;
  --line-soft: #16161a26;
  --grid: #16161a0a;
  --red: #eb4d60;
  --yellow: #f8e354;
  --green: #7dba5c;
  --blue: #3159a0;
  --light-blue: #97ccee;
  --pink: #f4a6c0;
  --orange: #f39a3d;
  --purple: #8c6bc8;
  --grey: #cbcbcb;
  --ok-tint: #eaf5e2;
  --warn-tint: #fde7ea;
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;
  --space-18: 72px;
  --space-24: 96px;
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-phone: 22px;
  --radius-pill: 999px;
  --border-hair: 1px;
  --border-strong: 1.5px;
  --border-heavy: 2px;
  --page-max: 1200px;
  --prose-max: 68ch;
  --game-max: 440px;
  --grid-pitch: 32px;
  --font-display: Archivo, "Arial Black", sans-serif;
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* wareelaktunbut.com components. Loads after tokens.css; every value is a token. */

/* ---------- Ground ---------- */
.wt-ground {
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-pitch) var(--grid-pitch);
  color: var(--ink);
  font: 16px/1.5 var(--font-sans);
}
.wt-ground img { max-width: 100%; }
.wt-ground a { color: var(--ink); }
.wt-ground a:focus-visible, .wt-ground button:focus-visible { outline: var(--border-heavy) solid var(--ink); outline-offset: 3px; }
.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--space-6) var(--space-24); display: flex; flex-direction: column; gap: var(--space-24); box-sizing: border-box; }
.stack { display: flex; flex-direction: column; gap: var(--space-24); }
@media (max-width: 480px) { .page { padding-left: var(--space-4); padding-right: var(--space-4); } }

/* ---------- Type ---------- */
.label { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 48px; line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
@media (max-width: 480px) { .h2 { font-size: 40px; } }
.lede { margin: 0; max-width: 34ch; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; color: var(--ink-2); }
.prose { max-width: var(--prose-max); display: flex; flex-direction: column; gap: var(--space-3); font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.prose p { margin: 0; }
.kw { font-weight: 600; color: var(--ink); }

/* ---------- Actions ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 26px; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); text-decoration: none; font: 500 17px/1 var(--font-sans); cursor: pointer; box-sizing: border-box; }
.wt-ground a.btn { color: var(--paper); }
.btn-lg { min-height: 56px; padding: 0 28px; }
.btn-line { min-height: 48px; padding: 0 22px; background: transparent; font-size: 16px; }
.wt-ground a.btn-line, .btn-line { color: var(--ink); }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.link { font-weight: 500; }
.link-mono { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.store-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-family: var(--font-mono); font-size: 13px; }
.wt-ground .store-links a { color: var(--ink-2); }

/* ---------- Header / footer ---------- */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding: 28px 0 var(--space-4); border-bottom: var(--border-hair) solid var(--ink); }
.logo { font-family: var(--font-display); font-weight: 900; font-size: 18px; letter-spacing: -.01em; text-decoration: none; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) 28px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.nav a { text-decoration: none; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); font-family: var(--font-mono); font-size: 12px; color: var(--muted); border-top: var(--border-hair) solid var(--ink); padding-top: 14px; margin-top: calc(var(--space-10) * -1); }
.wt-ground .site-footer a { color: var(--muted); }

/* ---------- Section head ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); border-bottom: var(--border-hair) solid var(--ink); padding-bottom: 14px; }
.section-head > div { display: flex; flex-direction: column; gap: 6px; }
.ruled { border-top: var(--border-hair) solid var(--ink); padding-top: var(--space-5); }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; gap: 28px; margin-top: -56px; }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-4) var(--space-10); }
.hero-intro { margin: 0; max-width: 46ch; font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.statement { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(56px, 11vw, 158px); line-height: .86; letter-spacing: -.035em; text-transform: uppercase; display: flex; flex-direction: column; gap: .04em; }
.statement > span { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 var(--space-6); }
.statement small { font-family: var(--font-mono); font-weight: 400; font-size: 13px; letter-spacing: .08em; line-height: 1.4; padding-bottom: .9em; color: var(--muted); text-transform: none; }
.hw { position: relative; display: inline-block; z-index: 0; }
.hw::before { content: ""; position: absolute; left: -.04em; right: -.04em; top: .1em; bottom: .04em; background: var(--hc); transform: scaleX(0); transform-origin: left; transition: transform .28s ease; z-index: -1; }
.hw:hover::before, .hw.is-on::before { transform: scaleX(1); }
.hero-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) 28px; border-top: var(--border-hair) solid var(--ink); padding-top: var(--space-5); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.stats { display: flex; flex-wrap: wrap; gap: var(--space-2) 28px; margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.open-to { display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; font-size: 15px; color: var(--ink-2); }
.open-to::before { content: ""; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--green); border: var(--border-strong) solid var(--ink); flex: none; }

/* Highlight colours: set --hc on a card, step or word */
.c-red { --hc: var(--red); } .c-yel { --hc: var(--yellow); } .c-grn { --hc: var(--green); } .c-blu { --hc: var(--light-blue); }
.c-pnk { --hc: var(--pink); } .c-org { --hc: var(--orange); } .c-pur { --hc: var(--purple); }

/* ---------- Cards ---------- */
.card { background: var(--card); border: var(--border-strong) solid var(--ink); border-radius: var(--radius-md); }
.card h3 { margin: 0; font-family: var(--font-display); font-weight: 800; }
.card p { margin: 0; color: var(--ink-2); }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.work-card { padding: 18px; display: flex; flex-direction: column; gap: var(--space-4); }
.work-card h3 { font-size: 28px; line-height: 1.05; letter-spacing: -.015em; text-wrap: balance; }
.work-card.featured { grid-column: 1 / -1; padding: var(--space-6); display: flex; flex-flow: row wrap; gap: 28px; }
.work-card.featured .shot-wrap { flex: 999 1 560px; min-width: 0; }
.work-card.featured .work-body { flex: 1 1 300px; min-width: 0; }
.work-card.featured h3 { font-size: 44px; line-height: .98; letter-spacing: -.02em; }
.work-body { display: flex; flex-direction: column; gap: var(--space-3); }
.metrics { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.metric { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-3); border: var(--border-strong) solid var(--ink); border-radius: var(--radius-pill); background: var(--hc, var(--paper)); font: 600 13px/1.2 var(--font-sans); color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: auto; border-top: var(--border-hair) solid var(--line-soft); padding-top: var(--space-3); }

/* Real screen first; the sketch shows on hover / focus / tap */
.shot-wrap { display: flex; flex-direction: column; gap: var(--space-2); }
.shot { position: relative; overflow: hidden; border: var(--border-hair) solid var(--ink); border-radius: var(--radius-sm); background: var(--paper); aspect-ratio: 16 / 10; }
.shot > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot .sk { position: absolute; inset: 0; background: var(--paper); clip-path: inset(0 0 0 100%); transition: clip-path .7s cubic-bezier(.7, 0, .2, 1); }
.work-card:hover .shot .sk, .work-card:focus-within .shot .sk, .shot.show-sketch .sk { clip-path: inset(0 0 0 0); }
.live-chip, .sketch-chip { position: absolute; top: var(--space-2); right: var(--space-2); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; padding: 3px 7px; border-radius: var(--radius-xs); }
.live-chip { background: var(--ink); color: var(--paper); }
.sketch-chip { background: var(--card); color: var(--ink); border: var(--border-hair) solid var(--ink); }
.see-sketch { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; font: 12px var(--font-mono); letter-spacing: .08em; color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.noticed-line { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.noticed-line b { font-weight: 600; color: var(--ink); }

/* ---------- Skills matrix ---------- */
.skills { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.skill-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) auto; gap: var(--space-3) var(--space-8); align-items: start; padding: var(--space-5) 0; border-bottom: var(--border-hair) solid var(--line-soft); }
.skill-row:first-child { border-top: var(--border-hair) solid var(--ink); }
.skill-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.skill-main { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.skill-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.kw-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-3); border: var(--border-strong) dashed var(--ink); border-radius: var(--radius-pill); background: var(--card); font: 500 14px/1.2 var(--font-sans); color: var(--ink); }
.kw-chip.is-collected { border-style: solid; background: var(--yellow); }
.skill-proof { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; white-space: nowrap; }
.skill-row p { margin: 0; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 720px) { .skill-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Keyword pill + tray ---------- */
.kw-pill { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 18px; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-pill); background: var(--card); font: 500 14px/1 var(--font-mono); color: var(--ink); cursor: pointer; }
.kw-pill.has-items { background: var(--ink); color: var(--paper); }
.kw-tray { width: 100%; max-width: 380px; box-sizing: border-box; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); }
.kw-tray h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; }
.kw-group { display: flex; flex-direction: column; gap: var(--space-1); padding-top: var(--space-3); border-top: var(--border-hair) solid var(--line-soft); }
.kw-group ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.kw-group li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 15px; }
.kw-group li a { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.kw-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.toast { display: inline-flex; padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); font: 13px var(--font-mono); }

/* ---------- Impact, glance, decisions (case pages) ---------- */
.case { display: flex; flex-direction: column; gap: var(--space-18); }
.case-hero { display: flex; flex-direction: column; gap: var(--space-5); margin-top: calc(var(--space-10) * -1); }
.case-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 7vw, 96px); line-height: .92; letter-spacing: -.03em; text-transform: uppercase; text-wrap: balance; }
.case-lede { margin: 0; max-width: 34ch; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; color: var(--ink-2); }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px var(--space-5); margin: 0; padding: 14px 0 0; list-style: none; border-top: var(--border-hair) solid var(--ink); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.impact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
.impact li { background: var(--card); border: var(--border-strong) solid var(--ink); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: 10px; }
.impact b { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.2vw, 42px); line-height: .95; letter-spacing: -.02em; }
.impact span { font-size: 15px; color: var(--ink-2); }
.case-sec { display: flex; flex-direction: column; gap: var(--space-5); border-top: var(--border-hair) solid var(--ink); padding-top: var(--space-5); }
.case-sec h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -.015em; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 var(--space-8); margin: 0; }
.glance div { display: flex; flex-direction: column; gap: var(--space-1); padding: 14px 0; border-bottom: var(--border-hair) solid var(--line-soft); }
.glance dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.glance dd { margin: 0; color: var(--ink-2); }
.decisions { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-14); }
.decision { display: flex; flex-direction: column; gap: var(--space-4); }
.decision h3 { margin: 0; display: flex; gap: 14px; align-items: baseline; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.decision h3 small { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: var(--muted); }
.fig { margin: 0; max-width: 1000px; display: flex; flex-direction: column; gap: var(--space-2); }
.fig figcaption { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--muted); }
.fig img, .fig svg { display: block; width: 100%; height: auto; border: var(--border-hair) solid var(--ink); border-radius: var(--radius-sm); background: var(--card); }
.fig-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.fig-row > div { flex: var(--ar) 1 0%; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fig-row .tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.fig-scroll { overflow-x: auto; border-radius: var(--radius-sm); }
@media (max-width: 600px) {
  .fig-row { flex-direction: column; } .fig-row > div { flex: none; }
  .fig-row img { width: auto; max-width: 100%; max-height: 440px; }
  .fig-scroll svg { min-width: 760px; }
}
.quote { margin: 0; max-width: 40ch; padding-left: var(--space-5); border-left: 4px solid var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.2; }
.quote p { margin: 0; }
.quote cite { display: block; margin-top: 10px; font-family: var(--font-mono); font-weight: 400; font-style: normal; font-size: 12px; color: var(--muted); }
.for-you { background: var(--card); border: var(--border-strong) solid var(--ink); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.for-you p { margin: 0; max-width: 60ch; font-size: 19px; line-height: 1.5; }
.case-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); border-top: var(--border-hair) solid var(--ink); padding-top: var(--space-5); }
.case-next .next { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 36px); line-height: 1; text-decoration: none; }
.rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 48px; }
.rule { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-10); align-items: flex-start; }
.rule-text { flex: 999 1 420px; display: flex; flex-direction: column; gap: var(--space-3); }
.rule-text h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.1; }
.rule .fig { flex: 1 1 200px; max-width: 240px; }

/* ---------- Game ---------- */
.play-band { display: flex; flex-wrap: wrap; gap: var(--space-10) 56px; align-items: flex-start; }
.play-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.game { width: 100%; max-width: var(--game-max); flex: 0 1 var(--game-max); }
.g-screen { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.g-h1 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: .95; letter-spacing: -.025em; }
.g-h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.1; }
.g-lede { margin: 0; font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.skip { min-height: 44px; padding: 0; background: none; border: 0; font: 13px var(--font-mono); color: var(--muted); text-decoration: underline; cursor: pointer; }
.picks { display: flex; flex-direction: column; gap: var(--space-3); width: 100%; }
.pick { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: var(--space-4); min-height: 44px; background: var(--card); border: var(--border-strong) solid var(--ink); border-radius: var(--radius-md); font: inherit; color: var(--ink); cursor: pointer; }
.pick b { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.pick span:last-child { color: var(--ink-2); font-size: 15px; }
.pick:hover { background: var(--yellow); }
.phone { width: 100%; box-sizing: border-box; border: var(--border-heavy) solid var(--ink); border-radius: var(--radius-phone); background: var(--card); overflow: hidden; font-size: 14px; }
.ph-bar { display: flex; justify-content: space-between; padding: var(--space-2) var(--space-4); background: var(--ink); color: var(--paper); font: 600 12px var(--font-mono); }
.ph-body { display: flex; flex-direction: column; gap: var(--space-2); padding: 14px var(--space-4) var(--space-4); }
.ph-title { font-weight: 600; font-size: 17px; }
.ph-price { font-weight: 600; font-size: 20px; }
.ph-grey { color: var(--muted); font-size: 12px; }
.ph-field { border: var(--border-hair) solid var(--line-soft); border-radius: var(--radius-md); padding: 7px 10px; color: var(--muted); font-size: 13px; background: var(--paper); }
.ph-btn { border-radius: var(--radius-md); padding: 9px; text-align: center; background: var(--ink); color: var(--paper); font-weight: 600; }
.ph-btn.ghost { background: none; color: var(--ink); border: var(--border-hair) solid var(--ink); }
.ph-ins { border-radius: var(--radius-md); padding: 7px 10px; background: var(--ok-tint); border: var(--border-hair) solid var(--green); font-size: 13px; line-height: 1.4; }
.ph-ins.up { background: var(--warn-tint); border: var(--border-strong) dashed var(--red); }
.meters { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.meter-top { display: flex; justify-content: space-between; font: 12px var(--font-mono); letter-spacing: .06em; }
.meter-track { height: 12px; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-pill); background: var(--card); overflow: hidden; }
.meter-fill { height: 100%; background: var(--ink); transition: width .25s ease; }
.fine { margin: 0; font: 11px/1.4 var(--font-mono); color: var(--muted); }
.warn { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.warn li { padding: var(--space-2) 10px; border: var(--border-strong) solid var(--red); border-radius: var(--radius-md); background: var(--warn-tint); font: 12px/1.4 var(--font-mono); }
.build-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { min-height: 44px; padding: 0 14px; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-pill); background: var(--card); font: 500 14px var(--font-sans); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-disabled="true"] { opacity: .4; }
.added { width: 100%; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.added li { display: flex; align-items: center; gap: var(--space-2); padding: 6px 6px 6px var(--space-3); border: var(--border-hair) solid var(--line-soft); border-radius: var(--radius-md); background: var(--card); }
.added li > span { flex: 1; font-weight: 500; font-size: 14px; }
.seg { display: flex; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-pill); overflow: hidden; }
.seg button { min-height: 40px; padding: 0 10px; border: 0; background: none; font: 12px var(--font-mono); color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button + button[aria-pressed="true"] { background: var(--red); color: var(--ink); }
.rm { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; cursor: pointer; }
.ship { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-top: var(--border-hair) solid var(--ink); }

/* ---------- About / experience / contact (Home) ---------- */
.about { display: flex; flex-direction: column; gap: var(--space-10); }
.split { display: flex; flex-wrap: wrap; gap: 28px 48px; }
.split-side { flex: 1 1 260px; display: flex; flex-direction: column; gap: var(--space-2); }
.split-main { flex: 999 1 560px; min-width: 0; }
.about-text { display: flex; flex-direction: column; gap: var(--space-4); font-size: 19px; color: var(--ink-2); }
.about-text p { margin: 0; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr)); gap: var(--space-6) 0; }
.step { display: flex; flex-direction: column; gap: 10px; border-top: var(--border-hair) dashed var(--ink); padding: var(--space-4) var(--space-3) 0 0; }
.step .ic { width: 52px; height: 52px; border: var(--border-strong) solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--card); transition: background .2s ease; }
.step:hover .ic { background: var(--hc); }
.step-n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.step b { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; }
.step-note { font-size: 14px; color: var(--ink-2); }
.step-live { --hc: var(--ink); border-top: var(--border-strong) solid var(--ink); }
.step-live .ic { background: var(--ink); }
.split-side.exp-side { gap: var(--space-4); align-items: flex-start; }
.exp-main { display: flex; flex-direction: column; gap: var(--space-10); }
.timeline { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.timeline li { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-6); padding: 18px 0; border-bottom: var(--border-hair) solid var(--line-soft); }
.timeline li:last-child { border-bottom: 0; }
.when { flex: 0 0 170px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); padding-top: var(--space-1); }
.what { flex: 1 1 300px; display: flex; flex-direction: column; }
.what b { font-weight: 600; font-size: 18px; }
.what span { color: var(--muted); }
.boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-4); }
.box { background: var(--card); border: var(--border-hair) solid var(--ink); border-radius: var(--radius-md); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.box-strong { border-width: var(--border-heavy); }
.box-strong .label { color: var(--ink); }
.contact { display: flex; flex-direction: column; gap: var(--space-10); }
.contact-h { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 8vw, 116px); line-height: .9; letter-spacing: -.03em; text-transform: uppercase; }
.contact-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); }
.contact-box { background: var(--card); border: var(--border-strong) solid var(--ink); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.contact-box b { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.contact-box span { color: var(--ink-2); }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) 28px; }
.contact-links .btn { overflow-wrap: anywhere; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .hw::before, .shot .sk, .step .ic, .meter-fill { transition: none; }
}

/* v2 page layer, loads after the design system bundle. Tokens only. */

/* ---------- Case images: one framed stage, one height ---------- */
.fig { max-width: none; }
.fig > img, .fig-row {
  height: 520px; width: 100%; box-sizing: border-box;
  border: var(--border-hair) solid var(--ink); border-radius: var(--radius-md);
  background: var(--card);
}
.fig > img { object-fit: contain; padding: var(--space-8); }
.fig-row { max-width: none !important; padding: var(--space-8); display: flex; gap: var(--space-6); justify-content: center; align-items: flex-end; }
.fig-row > div { flex: none; height: 100%; justify-content: flex-end; }
.fig-row img { height: calc(100% - 22px); width: auto; max-width: 100%; border: var(--border-hair) solid var(--ink); border-radius: var(--radius-sm); }
.fig-scroll { border: var(--border-hair) solid var(--ink); border-radius: var(--radius-md); background: var(--card); padding: var(--space-8); }
.fig-scroll svg { border: 0; }
@media (max-width: 600px) {
  .fig > img, .fig-row { height: 360px; padding: var(--space-4); }
  .fig-row { flex-direction: row; overflow-x: auto; justify-content: flex-start; gap: var(--space-3); }
  .fig-row img { max-height: none; }
}

/* ---------- Impact row: colour cards ---------- */
.impact { gap: var(--space-5); }
.impact li { position: relative; padding: var(--space-6); gap: var(--space-3); box-shadow: 6px 6px 0 var(--ink); min-height: 196px; justify-content: flex-end; }
.impact li:nth-child(1) { background: var(--yellow); }
.impact li:nth-child(2) { background: var(--light-blue); }
.impact li:nth-child(3) { background: var(--green); }
.impact li::before { position: absolute; top: var(--space-5); left: var(--space-6); font: 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--ink); }
.impact li:nth-child(1)::before { content: "IMPACT 01"; }
.impact li:nth-child(2)::before { content: "IMPACT 02"; }
.impact li:nth-child(3)::before { content: "IMPACT 03"; }
.impact b { font-size: clamp(44px, 5vw, 72px); line-height: .9; }
.impact span { color: var(--ink); font-size: 16px; line-height: 1.4; max-width: 30ch; }

/* ---------- Section links (Home → All work) ---------- */
.more-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); border-top: var(--border-hair) solid var(--ink); padding-top: var(--space-5); }
.more-row p { margin: 0; color: var(--ink-2); }
.work-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.side-label { display: inline-flex; align-self: flex-start; padding: 2px 8px; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-xs); background: var(--yellow); font: 12px/1.4 var(--font-mono); letter-spacing: .08em; }

/* ---------- Page hero (Work, Lab, Principles) ---------- */
.page-hero { display: flex; flex-direction: column; gap: var(--space-5); margin-top: calc(var(--space-10) * -1); }
.page-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(48px, 9vw, 128px); line-height: .88; letter-spacing: -.03em; text-transform: uppercase; }
.page-hero .lede { max-width: 40ch; }
.count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ---------- Principles: rule grid ---------- */
.p-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-10); align-items: start; }
.p-intro .prose { font-size: 19px; }
.tension { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-4); padding: var(--space-6); border: var(--border-strong) solid var(--ink); border-radius: var(--radius-md); background: var(--card); }
.tension b { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 1; }
.tension span { font: 12px/1.5 var(--font-mono); color: var(--ink-2); }
.tension .vs { font: 13px var(--font-mono); padding: 6px 10px; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-pill); background: var(--yellow); }
.rule-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: var(--space-6); }
.rule-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); background: var(--card); border: var(--border-strong) solid var(--ink); border-radius: var(--radius-md); }
.rule-num { display: flex; align-items: center; justify-content: space-between; }
.rule-num b { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: var(--border-strong) solid var(--ink); border-radius: 50%; background: var(--hc); font-family: var(--font-display); font-weight: 900; font-size: 30px; }
.rule-card h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1.05; letter-spacing: -.015em; }
.rule-card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.rule-shot { margin: auto 0 0; display: flex; flex-direction: column; gap: var(--space-2); }
.rule-shot .stage { height: 300px; display: flex; align-items: center; justify-content: center; padding: var(--space-5); box-sizing: border-box; border: var(--border-hair) solid var(--ink); border-radius: var(--radius-sm); background: var(--hc); }
.rule-shot img { height: 100%; width: auto; max-width: 100%; border: var(--border-hair) solid var(--ink); border-radius: var(--radius-sm); background: var(--card); }
.rule-shot figcaption { font: 12px/1.5 var(--font-mono); color: var(--muted); }
@media (max-width: 720px) { .p-intro { grid-template-columns: minmax(0, 1fr); } .tension { grid-template-columns: 1fr; text-align: left; } }


/* =====================================================================
   v2.1 VISUAL LAYER (23 Nov 2026): moodboard direction
   Cobalt hero · soft retro support · grain on plates only · uneven
   highlight shapes · Material Symbols Sharp · sharp corners · bands
   ===================================================================== */
:root {
  --paper: #f1ece1; --card: #faf6ee; --ink: #1f1d1b; --ink-2: #3b3834; --muted: #5d5952;
  --charcoal: #2b2a28; --cobalt: #2b3dab; --cobalt-deep: #1f2d86;
  --yellow: #f3bd45; --red: #ec6a50; --green: #6fb487; --blue: #2b3dab; --light-blue: #9cc9e6;
  --pink: #f3a9ba; --orange: #f29a4a; --purple: #a491d6;
  --ok-tint: #e6f2e9; --warn-tint: #fbe3dc;
  --radius-xs: 0; --radius-sm: 0; --radius-md: 2px; --radius-pill: 0;
  --border-strong: 2px; --border-heavy: 2.5px;
  --grain: url(/assets/img/grain/grain.png);
  --hard: 5px 5px 0 var(--ink);
  /* four uneven highlight shapes, like cut paper or a marker swipe */
  --hl-1: polygon(1% 14%, 99% 0%, 100% 86%, 0% 100%);
  --hl-2: polygon(0% 4%, 97% 16%, 100% 96%, 3% 84%);
  --hl-3: polygon(3% 0%, 100% 10%, 97% 100%, 0% 88%);
  --hl-4: polygon(0% 20%, 100% 2%, 98% 80%, 2% 98%);
}
.wt-ground { overflow-x: clip; }

/* Condensed display type (Archivo width axis) */
.statement, .page-hero h1, .case-hero h1, .contact-h, .h2, .case-sec h2, .work-card h3, .lab-card h2, .rule-card h3, .t-statement { font-stretch: 78%; }
.statement { letter-spacing: -.02em; }

/* Grain: plates and frames only, never the page ground */
.card, .impact li, .for-you, .contact-box, .box, .band::before, .postit, .rule-card { background-image: var(--grain); background-size: 240px 240px; }

/* Strong, sharp plates */
.card, .contact-box, .for-you { border-width: var(--border-strong); box-shadow: var(--hard); }
.btn { border-radius: 0; border-width: var(--border-strong); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.chip, .seg, .kw-pill, .kw-chip, .meter-track { border-radius: 0; }
.open-to::before { border-radius: 50%; }

/* Section titles step back; the items lead */
.section-head .h2 { font-size: 30px; }
.section-head { border-bottom-width: var(--border-strong); }

/* ---------- Uneven highlights ---------- */
.hl-1 { --hl: var(--hl-1); } .hl-2 { --hl: var(--hl-2); } .hl-3 { --hl: var(--hl-3); } .hl-4 { --hl: var(--hl-4); }
.hw::before { transform: none; clip-path: var(--hl, var(--hl-1)); top: .06em; bottom: 0; left: -.06em; right: -.08em; transition: none; }
.statement > span:nth-child(1) .hw { --hl: var(--hl-1); }
.statement > span:nth-child(2) .hw { --hl: var(--hl-2); }
.statement > span:nth-child(3) .hw { --hl: var(--hl-4); }
.mark { display: inline-block; padding: 2px 10px 3px; background: var(--hc, var(--yellow)); color: var(--ink); clip-path: var(--hl, var(--hl-1)); }
.metric, .side-label { border: 0; border-radius: 0; padding: 4px 12px 5px; background: var(--hc, var(--yellow)); clip-path: var(--hl-1); }
.metrics li:nth-child(2n) { clip-path: var(--hl-3); }
.side-label { clip-path: var(--hl-2); background: var(--yellow); }
.open-to { padding: 6px 14px 7px; background: var(--yellow); color: var(--ink); clip-path: var(--hl-3); font-weight: 500; }
.open-to::before { background: var(--green); }

/* ---------- Post-it: small things and Easter eggs ---------- */
.postit { display: inline-block; align-self: flex-start; max-width: 26ch; padding: 10px 14px 12px; background-color: var(--yellow); color: var(--ink); font: 12px/1.45 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-2.5deg); box-shadow: 3px 4px 0 rgba(31,29,27,.22); }
.postit.pink { background-color: var(--pink); transform: rotate(2deg); }
.postit.blue { background-color: var(--light-blue); transform: rotate(-1deg); }

/* ---------- Material Symbols ---------- */
.material-symbols-sharp { font-size: 28px; line-height: 1; font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; user-select: none; }

/* ---------- Full-width bands ---------- */
.band { position: relative; isolation: isolate; padding: var(--space-18) 0; }
.band::before { content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; background-color: var(--band-bg); }
.band-cobalt { --band-bg: var(--cobalt); color: var(--paper); }
.band-dark { --band-bg: var(--charcoal); color: var(--paper); }
.band-cobalt .label, .band-dark .label, .band-cobalt .meta, .band-dark .meta, .band-dark .count { color: rgba(241,236,225,.82); }
.band-cobalt a, .band-dark a, .band-cobalt .link-mono { color: var(--paper); }
.band-cobalt .btn, .band-dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.wt-ground .band-cobalt a.btn, .wt-ground .band-dark a.btn { color: var(--ink); }
.band-cobalt .btn-line, .band-dark .btn-line { background: transparent; color: var(--paper); }
.wt-ground .band-cobalt a.btn-line, .wt-ground .band-dark a.btn-line { color: var(--paper); }
.band-cobalt .btn:hover, .band-dark .btn:hover { box-shadow: 4px 4px 0 var(--yellow); }
.band-cobalt .section-head, .band-dark .section-head, .band-cobalt .hero-bottom { border-color: var(--paper); }
.band-dark .prose, .band-dark .g-lede, .band-cobalt .hero-intro { color: var(--paper); }
.band-cobalt .statement small { color: rgba(241,236,225,.82); }
.band-cobalt .hw { color: var(--ink); }
.band-cobalt .wt-ground a:focus-visible, .band-cobalt a:focus-visible, .band-dark a:focus-visible, .band-dark button:focus-visible { outline-color: var(--yellow); }
.hero.band { margin-top: calc(var(--space-24) * -1); padding-top: var(--space-14); }

/* Hero stat blocks: icon + number */
.stat-blocks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: var(--border-strong) solid var(--paper); }
.stat-blocks li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 20px 16px 4px 0; }
.stat-blocks li + li { border-left: var(--border-hair) solid rgba(241,236,225,.35); padding-left: 20px; }
.stat-blocks .material-symbols-sharp { grid-row: 1 / 3; font-size: 34px; color: var(--yellow); }
.stat-blocks b { font-family: var(--font-display); font-weight: 900; font-stretch: 78%; font-size: 48px; line-height: .95; letter-spacing: -.02em; }
.stat-blocks span:last-child { font: 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(241,236,225,.85); }

/* Work cards: real screen, label, title, one impact */
.work-card { padding: 0; gap: 0; overflow: hidden; }
.work-card .shot-wrap { padding: 0; }
.work-card .shot { border: 0; border-bottom: var(--border-strong) solid var(--ink); aspect-ratio: 4 / 3; background: var(--hc, var(--paper)); }
.work-card .shot > img { object-fit: contain; object-position: center; padding: 18px; box-sizing: border-box; }
.work-card .work-body { padding: 18px 20px 20px; gap: 12px; flex: 1; }
.work-card h3 { font-size: 34px; line-height: .98; }
.live-chip { border-radius: 0; }


/* About steps: square icon tiles, always in colour */
.step .ic { border-radius: 0; background: var(--hc); border-width: var(--border-strong); }
.step-live .ic { background: var(--ink); color: var(--paper); }
.step-live .ic .material-symbols-sharp { color: var(--yellow); }
.step { border-top: var(--border-strong) dashed var(--ink); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-6); }
.quote-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6); min-height: 240px; box-sizing: border-box; }
.quote-card .material-symbols-sharp { font-size: 44px; color: var(--cobalt); }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 24px; line-height: 1.2; color: var(--muted); }
.quote-card cite { margin-top: auto; font: normal 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Case pages ---------- */
.case { counter-reset: sec; }
.case-hero h1 { font-size: clamp(40px, 8.5vw, 120px); line-height: .88; }
.case-meta { border-top-width: var(--border-strong); }
.case-meta li { padding: 3px 10px; background: var(--card); border: var(--border-hair) solid var(--ink); }
/* impact: stepped columns, like a bar chart */
.impact { align-items: end; gap: var(--space-5); }
.impact li { border-radius: 0; box-shadow: var(--hard); background-color: var(--card); }
.impact li:nth-child(1) { min-height: 220px; background-color: var(--yellow); }
.impact li:nth-child(2) { min-height: 270px; background-color: var(--light-blue); }
.impact li:nth-child(3) { min-height: 320px; background-color: var(--green); }
.impact b { font-stretch: 78%; font-size: clamp(52px, 6vw, 88px); }
/* numbered sections */
.case-sec { counter-increment: sec; border-top-width: var(--border-strong); display: grid; grid-template-columns: minmax(0, 1fr); }
.case-sec h2 { font-size: clamp(36px, 4.4vw, 56px); line-height: .95; text-transform: uppercase; letter-spacing: -.01em; }
.case-sec h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 10px; font: 500 14px/1 var(--font-mono); letter-spacing: .08em; color: var(--cobalt); }
/* At a glance as a timeline strip */
.glance { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0 var(--space-6); position: relative; }
.glance div { position: relative; border-bottom: 0; border-top: var(--border-strong) solid var(--ink); padding: 22px 0 0; }
.glance div::before { content: ""; position: absolute; top: -8px; left: 0; width: 12px; height: 12px; border: var(--border-strong) solid var(--ink); background: var(--yellow); border-radius: 50%; }
.glance div:nth-child(2)::before { background: var(--light-blue); } .glance div:nth-child(3)::before { background: var(--green); } .glance div:nth-child(4)::before { background: var(--pink); }
.decision h3 { font-size: 30px; font-stretch: 85%; }
.decision h3 small { padding: 2px 8px; background: var(--yellow); color: var(--ink); clip-path: var(--hl-2); }
.fig > img, .fig-row, .fig-scroll { border-width: var(--border-strong); border-radius: 0; background-image: var(--grain); background-size: 240px 240px; }
.for-you { background-color: var(--cobalt); color: var(--paper); border-color: var(--ink); }
.for-you .label { color: var(--yellow); }
.for-you p { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.quote { border-left: 0; padding: var(--space-6); background: var(--yellow); background-image: var(--grain); clip-path: var(--hl-4); font-stretch: 85%; }
.quote cite { color: var(--ink-2); }


@media (max-width: 600px) {
  .stat-blocks li + li { border-left: 0; padding-left: 0; }
  .impact li:nth-child(n) { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* =====================================================================
   v2.2 (23 Nov 2026, Yim's review): dark replaces blue · calmer grain on
   text plates · Home part 2 bands · row testimonials · live thumbnails ·
   proportional impact charts · newspaper frame (Play, Lab, game pages)
   ===================================================================== */
:root {
  --cobalt: var(--charcoal); --cobalt-deep: #1b1a19; --blue: #3a5a8c;
  --grain-soft: url(/assets/img/grain/grain-soft.png);
  /* deeper tones of the support colours, for numbers set in colour (≥3:1 at large size) */
  --yellow-ink: #9a6b00; --blue-ink: #2b6f9e; --green-ink: #3a7d52;
}
/* Readability: soft grain under text, full grain only on bands and image frames */
.card, .impact li, .for-you, .contact-box, .box, .postit, .rule-card, .quote, .band-dark .game { background-image: var(--grain-soft); }
.band-cobalt { --band-bg: var(--charcoal); }
.for-you { background-color: var(--charcoal); }
.case-sec h2::before { color: var(--muted); }
.quote-card .material-symbols-sharp { color: var(--ink); }
.statement small { font-size: 12px; }

/* Bands: dark + mustard; ruled lines switch off inside a band */
.band-yellow { --band-bg: var(--yellow); color: var(--ink); }
.band-yellow .label, .band-yellow .count { color: var(--ink-2); }
.band.ruled { border-top: 0; padding-top: var(--space-18); }
.band-dark .about-text, .band-dark .step-note { color: rgba(241,236,225,.9); }
.band-dark .step-n { color: rgba(241,236,225,.75); }
.band-dark .step { border-top-color: var(--paper); }
.band-dark .step-live .ic { border-color: var(--paper); }
.band-dark .card, .band-dark .contact-box, .band-yellow .card { color: var(--ink); }
.wt-ground .band-dark .card a, .wt-ground .band-dark .contact-box a, .wt-ground .band-dark .game a { color: var(--ink); }
.band-dark .contact-box span { color: var(--ink-2); }
.band-dark .card, .band-dark .contact-box { box-shadow: 5px 5px 0 var(--yellow); }

/* Testimonials as compact rows */
.quotes { display: flex; flex-direction: column; gap: 0; border-top: var(--border-strong) solid var(--ink); }
.quote-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(0, 240px); align-items: center; gap: var(--space-5); min-height: 0; padding: 18px 4px; background: none; border: 0; border-bottom: var(--border-hair) solid var(--ink); border-radius: 0; box-shadow: none; }
.quote-card .material-symbols-sharp { font-size: 30px; }
.quote-card blockquote { font-size: 20px; color: var(--ink-2); }
.quote-card cite { margin: 0; text-align: right; color: var(--ink-2); }
@media (max-width: 720px) { .quote-card { grid-template-columns: 32px minmax(0, 1fr); } .quote-card cite { grid-column: 2; text-align: left; } }

/* Work cards: live thumbnail fills the frame, no colour behind it */
.work-card .shot { aspect-ratio: 16 / 9; background: var(--paper); }
.work-card .shot > img { object-fit: cover; object-position: center; padding: 0; }
.work-card h3 { font-size: 27px; line-height: 1.02; min-height: 2.04em; }
.card-tag { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.card-tag .store-links { gap: 4px 12px; font-size: 12px; }
.wt-ground .card-tag .store-links a { color: var(--ink-2); }

/* Case impact: number on top in its colour, proportional bar below with the note inside */
.impact { gap: var(--space-5); align-items: stretch; }
.impact li, .impact li:nth-child(n) { min-height: 0; padding: 0; background: none; border: 0; box-shadow: none; display: flex; flex-direction: column; gap: 10px; justify-content: flex-start; }
.impact li::before { content: none !important; }
.impact b { font-size: clamp(40px, 4.4vw, 60px); line-height: .95; color: var(--tone-ink); }
.impact li:nth-child(1) { --tone: var(--yellow); --tone-ink: var(--yellow-ink); }
.impact li:nth-child(2) { --tone: var(--light-blue); --tone-ink: var(--blue-ink); }
.impact li:nth-child(3) { --tone: var(--green); --tone-ink: var(--green-ink); }
.impact .bar { position: relative; height: 176px; border: var(--border-strong) solid var(--ink); background: color-mix(in srgb, var(--tone) 22%, var(--card)); overflow: hidden; }
.impact .fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--v, 1) * 100%); background-color: var(--tone); background-image: var(--grain); border-top: var(--border-strong) solid var(--ink); }
.impact .ex { position: absolute; inset: 12px 14px auto 14px; font-size: 15px; line-height: 1.4; color: var(--ink); }
.impact .scale { font: 12px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.impact .ex span { display: inline; padding: 1px 4px; background: color-mix(in srgb, var(--card) 80%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Principles: minimal illustration instead of app screens */
.rule-shot .stage.illo { height: 180px; background-color: var(--hc); background-image: var(--grain); }
.rule-shot .stage.illo .material-symbols-sharp { font-size: 88px; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; color: var(--ink); }
.rule-card { box-shadow: var(--hard); }

.news-kicker { font: 600 12px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.impact .ex { margin: 0; }
/* hero now sits on the dark band */
.band-dark .hw { color: var(--ink); }
.band-dark .statement small, .band-dark .hero-intro { color: rgba(241,236,225,.88); }
.band-dark .hero-bottom { border-color: var(--paper); }
.band-dark .link-mono { color: var(--paper); }
.band-dark .step .ic { color: var(--ink); }
.band-dark .step-live .ic { color: var(--paper); }

/* =====================================================================
   v2.3 (23 Nov 2026, review round 3): hero rework, continuous bands,
   foundation, play + skills merged, row-free testimonials, principles on
   /work, dark Lab hub, case layout from Yim's Couple Games rework
   ===================================================================== */
:root { --sky-tint: #d7e9f4; --blush-tint: #f7dfe4; }
.band-sky { --band-bg: var(--sky-tint); color: var(--ink); }
.band-blush { --band-bg: var(--blush-tint); color: var(--ink); }
.band-paper { --band-bg: var(--paper); color: var(--ink); }
.band-sky .label, .band-blush .label, .band-paper .label { color: var(--ink-2); }
/* consecutive bands touch, so colour changes read as one rhythm */
.stack > .band + .band { margin-top: calc(var(--space-24) * -1); }
.band.split { padding: var(--space-18) 0; }

/* ---------- Hero v3: split columns, no highlight ---------- */
.hero-v3 { display: flex; flex-direction: column; gap: var(--space-14); padding: var(--space-18) 0 var(--space-14); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-14); align-items: end; }
.hero-main { display: flex; flex-direction: column; gap: 28px; }
.hero-v3 .statement { display: block; font-size: clamp(64px, 10vw, 152px); line-height: .84; letter-spacing: -.015em; }
.hero-v3 .statement .dot { display: inline; color: var(--yellow); }
.hero-lede { margin: 0; max-width: 34ch; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; color: rgba(241,236,225,.92); }
.hero-side { display: flex; flex-direction: column; gap: var(--space-6); }
.avail { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.avail span { font: 13px/1.5 var(--font-mono); color: rgba(241,236,225,.85); }
.hero-shots { position: relative; margin: 0; height: 380px; }
.hs { position: absolute; width: 80%; aspect-ratio: 16 / 9; overflow: hidden; border: var(--border-strong) solid var(--paper); background: var(--charcoal); }
.hs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hs-1 { right: 0; top: 0; box-shadow: 6px 6px 0 var(--yellow); }
.hs-2 { left: 0; bottom: 34px; box-shadow: 6px 6px 0 var(--pink); }
.hero-shots figcaption { position: absolute; left: 0; bottom: 0; font: 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(241,236,225,.82); }
.hero-v3 .stat-blocks { border-top-width: var(--border-strong); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-shots { height: 280px; } }

/* ---------- Foundation ---------- */
#foundation { display: flex; flex-direction: column; gap: var(--space-8); }
.found-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: var(--border-strong) solid var(--ink); }
.found-grid li { display: flex; flex-direction: column; gap: 10px; padding: var(--space-6) var(--space-5) 0 0; }
.found-grid li + li { border-left: var(--border-hair) solid var(--ink); padding-left: var(--space-5); }
.found-grid .material-symbols-sharp { font-size: 36px; }
.found-grid .fn { font: 12px var(--font-mono); color: var(--ink-2); }
.found-grid b { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 24px; line-height: 1.05; }
.found-grid p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 900px) { .found-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-6); } .found-grid li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 520px) { .found-grid { grid-template-columns: minmax(0, 1fr); } .found-grid li + li { border-left: 0; padding-left: 0; border-top: var(--border-hair) solid var(--ink); } }

.news-rule { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); border-top: 5px double var(--ink); padding-top: var(--space-4); margin-top: var(--space-4); }
.sk-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.sk-cell { display: flex; flex-direction: column; gap: 10px; padding: var(--space-4) var(--space-5) var(--space-5) 0; border-bottom: var(--border-hair) solid var(--line-soft); }
.sk-cell:not(:nth-child(3n+1)) { border-left: var(--border-hair) solid var(--line-soft); padding-left: var(--space-5); }
.sk-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.sk-top b { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 20px; line-height: 1.1; }
.sk-cell .skill-chips { gap: 6px; }
.sk-cell .kw-chip { min-height: 28px; font-size: 13px; padding: 0 10px; }
.sk-cell p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 900px) { .sk-grid { grid-template-columns: minmax(0, 1fr); } .sk-cell:not(:nth-child(3n+1)) { border-left: 0; padding-left: 0; } }

/* ---------- Testimonials: three across ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); border-top: 0; }
.quote-card { display: flex; flex-direction: column; gap: var(--space-3); min-height: 200px; padding: var(--space-5); background-color: var(--card); border: var(--border-strong) solid var(--ink); box-shadow: var(--hard); }
.quote-card cite { margin-top: auto; text-align: left; }
@media (max-width: 860px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Principles on /work ---------- */
.pr-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.pr-card { display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); background-color: var(--card); background-image: var(--grain-soft); border: var(--border-strong) solid var(--ink); box-shadow: var(--hard); }
.pr-ic { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: var(--border-strong) solid var(--ink); background: var(--hc); }
.pr-ic .material-symbols-sharp { font-size: 30px; }
.pr-card b { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: 24px; line-height: 1.05; }
.pr-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 860px) { .pr-grid { grid-template-columns: minmax(0, 1fr); } }


/* ---------- Case pages, following Yim's Couple Games rework ---------- */
.decision.side { flex-direction: row; gap: var(--space-10); align-items: flex-start; }
.decision.side .dtext { flex: 0 0 406px; display: flex; flex-direction: column; gap: 12px; }
.decision.side .fig { flex: 1 1 0; min-width: 0; }
@media (max-width: 860px) { .decision.side { flex-direction: column; } .decision.side .dtext { flex: none; } }
.impact { gap: 32px; }
.impact li, .impact li:nth-child(n) { gap: 0; }
.impact b { line-height: .65; }
.impact li:nth-child(2) { --tone: var(--blue-ink); }
.impact li:nth-child(3) { --tone: var(--green-ink); }
.impact .bar { border: 1px solid var(--tone-ink); border-radius: 1px; background: color-mix(in srgb, var(--tone) 14%, var(--card)); }
.impact .fill { top: 0; bottom: 0; left: 0; right: auto; height: 100%; width: calc(var(--v, 1) * 100%); border-top: 0; }
.fig > img, .fig-row, .fig-scroll { border: 1px solid var(--grid); }


/* =====================================================================
   v2.5 (23 Nov 2026, post-it round 2)
   ===================================================================== */
/* side project cards: one-line description under the title */
.side-desc { margin: -4px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.work-card h3:has(+ .side-desc) { min-height: 0; }
/* case hero: store links on the label row; lede full width; impact numbers in caps */
.case-label-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.case-label-row .store-links { justify-content: flex-end; text-transform: uppercase; letter-spacing: .04em; }
.case-hero .store-links { text-transform: uppercase; letter-spacing: .04em; }
.case-lede { max-width: none; }
.impact b { text-transform: uppercase; }

/* =====================================================================
   v2.6 (23 Nov 2026, final check fixes)
   ===================================================================== */
/* 1 · nothing grows wider than its column (hand-set widths stay as a cap) */
.page [style*="width"]:not(.meter-fill):not(.ap-track i):not(svg) { max-width: 100%; }
.fig[style*="width"], .fig-row[style*="width"] { width: 100% !important; }
.hero-side > div:first-child { height: auto !important; min-height: 420px; }
@media (max-width: 860px) { .hero-side { min-height: 0 !important; } .hero-side > div:first-child { min-height: 280px; } }
.hero-fallback { width: 100%; height: 100%; min-height: 380px; }
.hero-fallback figcaption { color: rgba(241,236,225,.7); }
/* keyword pill sits in the corner on every screen size */
.kw-pill { position: static; }
/* 7 · 44 px tap areas without changing the look */
.nav a, .store-links a, .skill-proof, .card-foot a, .g-links a.link, .site-footer a, .link-mono, .case-next .next, .more-row a { display: inline-flex; align-items: center; min-height: 44px; }
.nav { gap: 0 24px; }
.site-header { padding-bottom: 4px; }
/* 12 · All work: 5 cases as 2 + 3 */
.work-grid.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.work-grid.five > :nth-child(-n+2) { grid-column: span 3; }
.work-grid.five > :nth-child(n+3) { grid-column: span 2; }
@media (max-width: 900px) { .work-grid.five { grid-template-columns: minmax(0, 1fr); } .work-grid.five > * { grid-column: auto !important; } }
/* 13 · one footer everywhere */
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.kw-dock { position: fixed; right: 24px; bottom: 24px; z-index: 5; }

/* ---------- 24 Nov: Yim's canvas notes ---------- */
/* Case pages: text and figures use the full content width */
.case .prose, .case .prose p, .case .decision p, .case .quote, .case .for-you p { max-width: none; }
.case .decision { flex-direction: column; gap: var(--space-5); }
.case .decision .dtext { display: flex; flex-direction: column; gap: 12px; }
.case .fig { width: 100%; max-width: none; }
.case .fig-row { max-width: none; }
/* Screens shown edge to edge: no frame line, no bezel */
.fig-row img.bleed { border: 0; border-radius: 0; }
/* Work page intro spans the page */
.page-hero .lede.lede-full { max-width: none; }

/* 24 Nov: thanks to the team, a personal note per case (roles only; names added once each person says OK) */
.thanks { --t: var(--yellow); position: relative; display: flex; flex-direction: column; gap: var(--space-5); max-width: 880px; padding: var(--space-8) var(--space-8) var(--space-6); border: var(--border-strong) solid var(--ink); background-color: var(--card); background-image: var(--grain-soft); background-size: 240px 240px; box-shadow: 8px 8px 0 var(--t); }
.thanks.t-pink { --t: var(--pink); } .thanks.t-blue { --t: var(--light-blue); } .thanks.t-green { --t: var(--green); } .thanks.t-orange { --t: var(--orange, var(--yellow)); } .thanks.t-yellow { --t: var(--yellow); }
.thanks-tag { position: absolute; top: -16px; left: 28px; padding: 6px 12px; background: var(--t); color: var(--ink); font: 600 12px/1 var(--font-mono); letter-spacing: .08em; clip-path: var(--hl-2); transform: rotate(-2deg); }
.thanks-body { display: flex; flex-direction: column; gap: var(--space-3); }
.thanks-body p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink); }
.thanks-body p:first-child { font-family: var(--font-display); font-weight: 800; font-stretch: 85%; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; }
.thanks-body .thanks-sign { align-self: flex-end; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.thanks-body .thanks-sign::before { content: "— "; }
.thanks-foot { display: flex; flex-direction: column; gap: 10px; padding-top: var(--space-4); border-top: var(--border-hair) dashed var(--ink); }
.thanks-crew { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.thanks-crew li { padding: 3px 8px; border: var(--border-hair) solid var(--ink); background: var(--paper); font: 12px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--ink); }
.thanks-note { margin: 0; font: 13px/1.5 var(--font-mono); color: var(--ink-2); }
@media (max-width: 600px) { .thanks { padding: var(--space-6) var(--space-5) var(--space-5); } .thanks-body p { font-size: 17px; } }


/* 24 Nov: Yim's thumbnail art and hero illustration */
.work-card .shot.art { aspect-ratio: 16 / 9; }
.work-card .shot.art > img { object-fit: cover; object-position: center; padding: 0; }
.hero-art { display: block; width: 100%; height: 100%; max-height: 100%; object-fit: contain; }

/* =====================================================================
   Site layer (not on the canvas): page frame, launch flags, keyword
   collector, case layouts from the build brief, accessibility
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
body.wt-ground { min-height: 100vh; }
.skip-link { position: absolute; left: 16px; top: 12px; z-index: 20; padding: 10px 14px; background: var(--ink); color: var(--paper); font: 500 14px/1.4 var(--font-sans); white-space: nowrap; transform: translateY(-200%); }
.wt-ground a.skip-link { color: var(--paper); }
.skip-link:focus { transform: none; }
.logo, .contact-box a, .contact-links a, .what a { display: inline-flex; align-items: center; min-height: 44px; }
.launch-hidden { display: none !important; }
.home-main { gap: 72px; }
.home-main > .band + .band { margin-top: -72px; }
.work-main, .case { gap: 44px; }

/* hero visual frame (canvas inline style) */
.hero-side { min-height: 578px; justify-content: space-between; }
.hero-frame { box-sizing: border-box; display: flex; justify-content: flex-end; align-items: flex-end; width: 100%; min-height: 420px; padding: 16px; border-radius: 2px; background-color: var(--grid); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); background-image: var(--grain); background-size: 240px 240px; }
@media (max-width: 860px) { .hero-side { min-height: 0; } .hero-frame { min-height: 280px; } }

/* keyword chips are buttons */
button.kw-chip { cursor: pointer; position: relative; }
button.kw-chip::after { content: ""; position: absolute; inset: -8px -3px; }
.kw-chip[aria-pressed="true"] { border-style: solid; background: var(--yellow); clip-path: var(--hl-3); }
button.kw { position: relative; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: underline dashed 1.5px; text-underline-offset: 3px; }
button.kw[aria-pressed="true"] { text-decoration: none; background: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.kw-circle { position: absolute; inset: -9px -12px; width: calc(100% + 24px); height: calc(100% + 18px); pointer-events: none; overflow: visible; }
.kw-circle path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: kw-draw .45s ease-out forwards; }
@keyframes kw-draw { to { stroke-dashoffset: 0; } }
.kw-ink { position: fixed; inset: 0; z-index: 4; pointer-events: none; }

/* pill + tray, docked bottom-right */
.kw-dock { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: calc(100vw - 32px); }
.kw-dock .toast { border-radius: 0; gap: 6px; align-items: center; }
.kw-dock .material-symbols-sharp { font-size: 18px; }
.kw-dock .kw-tray { width: 380px; max-width: 100%; max-height: calc(100vh - 120px); overflow: auto; border-width: var(--border-strong); border-radius: 0; box-shadow: var(--hard); }
.kw-tray h2 { font-stretch: 85%; }
.kw-tray h2 span { padding: 0 6px; background: var(--yellow); clip-path: var(--hl-1); }
.kw-tray .kw-group li { align-items: center; }
.kw-tray .kw-group li a { display: inline-flex; align-items: center; min-height: 44px; }
.kw-tray .kw-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kw-tray .kw-actions .btn { min-height: 44px; padding: 0 10px; gap: 6px; font-size: 15px; }
.kw-tray .empty { margin: 0; color: var(--ink-2); font-size: 15px; }
.kw-tray .skip { align-self: flex-start; }
@media (max-width: 480px) { .kw-dock { right: 16px; bottom: 16px; } }

/* case pages: text on top, figure below (canvas, 24 Nov) */
.case .thanks { max-width: 1084px; }
.case .dtext > p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.case .side-row { display: flex; flex-direction: column; gap: var(--space-5); }
@media (min-width: 861px) { .case .side-row { flex-direction: row; gap: var(--space-10); align-items: flex-start; } .case .side-row .dtext { flex: 0 0 449px; } .case .side-row > .fig { flex: 1 1 0; min-width: 0; } }

.fig-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
@media (max-width: 860px) { .fig-pair { grid-template-columns: minmax(0, 1fr); } }
.fig > img.strip { height: 314px; object-fit: contain; }
.fig > img.set { height: 400px; }
@media (max-width: 600px) { .fig > img.strip, .fig > img.set { height: auto; } }
.fig-row, .fig > img, .fig-scroll { border-color: var(--grid); }
.impact li:nth-child(1) { --tone: #eba611; --tone-ink: #ab790c; }
.impact .bar { border-color: var(--tone-ink); }

/* focus on dark bands and reduced motion */
.wt-ground .band-dark button:focus-visible { outline-color: var(--yellow); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .kw-circle path { stroke-dashoffset: 0; }
}
.kw-dock [hidden] { display: none !important; }
.impact .fill { max-width: none; }
/* impact numbers stay on one line; the long one steps down a size (canvas set it to 56px) */
.impact b { white-space: nowrap; }
.impact b.nowrap { font-size: clamp(30px, 3.6vw, 52px); }
/* figure rows: wide and tall images share the row and shrink to fit it */
.fig-row > div { flex: 0 1 auto; min-width: 0; }
.fig-row img { width: auto; height: auto; max-width: 100%; max-height: calc(100% - 22px); }
@media (max-width: 600px) { .fig-row > div { flex: none; } .fig-row img { height: calc(100% - 22px); max-height: none; max-width: none; } }
.fig-row > div > img { align-self: flex-start; }
/* Kind words: 3 cards; the whole card opens the full note */
.quote-card { position: relative; margin: 0; text-align: left; align-items: flex-start; }
.quote-card blockquote { display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.quote-card blockquote p { margin: 0; max-width: 60ch; }
.quote-card figcaption { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.quote-card cite b { font-weight: 700; color: var(--ink); }
.kw-open { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: 500 15px/1.2 var(--font-sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.kw-open::after { content: ""; position: absolute; inset: 0; }
.kw-open:focus-visible { outline: none; }
.quote-card:has(.kw-open:focus-visible) { outline: 3px solid var(--ink); outline-offset: 4px; }
.quote-card:hover .kw-open { text-decoration-thickness: 2px; }
@media (hover: hover) { .quote-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); } }
.quote-card { transition: transform .15s, box-shadow .15s; }

/* Kind words note: centred dialog, bottom sheet on phone */
.kw-note { width: min(640px, calc(100% - 32px)); max-width: none; max-height: min(85vh, 760px); padding: 0; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-md); background: var(--card); color: var(--ink); box-shadow: var(--hard); overflow: hidden; }
.kw-note[open] { display: flex; flex-direction: column; animation: kw-in .2s ease-out; }
.kw-note::backdrop { background: rgba(22, 22, 26, .6); }
.kw-note-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding: var(--space-5) var(--space-5) var(--space-4) var(--space-6); border-bottom: var(--border-hair) solid var(--ink); }
.kw-note-head h3 { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-top: 6px; }
.kw-note-head b { font: 800 24px/1.1 var(--font-display); font-stretch: 85%; }
.kw-note-head h3 span { font: 12px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.kw-close { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: var(--border-strong) solid var(--ink); border-radius: var(--radius-pill); background: var(--card); color: var(--ink); cursor: pointer; }
.kw-close:hover { background: var(--yellow); }
.kw-note-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--space-5) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); font: 17px/1.6 var(--font-sans); }
.kw-note-body p { margin: 0; }
.kw-note mark { color: var(--ink); background: linear-gradient(transparent 10%, var(--yellow) 10%, var(--yellow) 94%, transparent 94%); box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 .15em; }
html.kw-lock, html.kw-lock body { overflow: hidden; }
@keyframes kw-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 767px) {
  .kw-note { width: 100%; max-height: 88vh; margin: auto 0 0; border-bottom: 0; box-shadow: none; }
  .kw-note[open] { animation: kw-up .25s ease-out; }
  .kw-note-head { padding: var(--space-4) var(--space-4) var(--space-3) var(--space-5); }
  .kw-note-body { padding: var(--space-4) var(--space-5) calc(var(--space-6) + env(safe-area-inset-bottom)); font-size: 16px; }
}
@keyframes kw-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .kw-note[open] { animation: none; } .quote-card:hover { transform: none; } }
