/* Layout: multi-page academic site (About, Publications, Projects, CV, Art) with a sticky top bar.
   Light only. Ink navy text, one cobalt accent, soft grey frames give images and side panels weight. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --frame: #f4f5f7;
  --ink: #0f1a2a;
  --text: #2c3442;
  --muted: #5f6774;
  --line: #e2e5ea;
  --accent: #2443a8;
  --accent-wash: #eef1fa;
  --int: #1d2430;
  --done: #1f2f4a;
  --now: #4f74a8;
  --track: #e2e5ea;
  --font: "Geist", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { --accent: #33507a; --accent-wash: #eef2f7; --done: #1f2f4a; --now: #5b7fb0; --track: #e2e5ea; --int: #1d2430; --font: "Geist", "Helvetica Neue", system-ui, sans-serif; }
body { background: var(--bg); color: var(--text); font: 16px/1.62 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
b, strong { color: var(--ink); font-weight: 600; }
.ntext b { font-weight: 600; color: var(--ink); }
.todo { color: var(--muted); font-style: italic; font-weight: 400; }
button.text { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: var(--muted); font-weight: 500; }
button.text:hover { color: var(--ink); }
button.text[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* top bar */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, .92); background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.top .brand { font-weight: 700; font-size: 18px; color: var(--ink); margin-right: auto; letter-spacing: -.01em; }
.top .brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 26px; font-size: 15px; overflow-x: auto; }
.top nav a { color: var(--muted); font-weight: 500; padding-block: 19px; white-space: nowrap; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav a.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

main { padding-block: 14px 88px; }
.page[hidden] { display: none; }

h1 { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.03em; color: var(--ink); margin: 0; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; color: var(--ink); margin: 0; }
.sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sechead a { font-size: 15px; }
section + section, .block + .block { margin-top: 72px; }
.tl-sec > section { margin-top: 16px; }
.tl-sec + section { margin-top: 72px; }
.tl-sec .sechead { margin-bottom: 8px; }
.lede { font-size: 18px; color: var(--muted); margin: 10px 0 0; }

/* About hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 40px; align-items: center; }
.hero .role { font-size: 17px; color: var(--muted); margin: 4px 0 10px; font-weight: 500; }
.hero p { font-size: 16.5px; line-height: 1.58; margin: 0 0 8px; max-width: 72ch; }
.hero .job { margin-top: 8px; display: flex; gap: 10px; align-items: baseline; padding: 7px 14px; background: var(--accent-wash); border-radius: 12px; color: var(--ink); font-size: 14.5px; font-weight: 500; max-width: none; }
.hero .job .smile { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; transform: translateY(4px); }
.hero .job .smile .eye { fill: var(--accent); stroke: none; }
.me { display: grid; gap: 16px; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: auto auto; gap: 8px 14px; font-size: 14px; }
.contact li:first-child { grid-column: 1 / -1; }
.contact li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.contact svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact .mail { color: var(--ink); font-weight: 500; user-select: all; }
.portrait { width: 196px; aspect-ratio: 1; border-radius: 16px; object-fit: cover; background: var(--frame); }

/* timeline */
.tl-wrap { padding: 20px 30px 14px; background: var(--frame); border-radius: 16px; }
.tl-scroll { overflow-x: auto; }
.tl { position: relative; height: 148px; min-width: 820px; }
.gl { position: absolute; top: 20px; bottom: 6px; border-left: 1px solid #e3e6ea; }
.lane-lab { display: none; }
.tl-int { position: absolute; top: 86px; height: 60px; padding: 8px 12px; background: var(--bg); border-radius: 10px; box-shadow: 0 1px 2px rgba(15, 26, 42, .06), 0 0 0 1px var(--line); display: grid; align-content: center; gap: 4px; outline: none; cursor: default; transition: box-shadow .15s; min-width: 0; z-index: 2; }
.tl-int .ihead { display: flex; align-items: center; gap: 7px; min-width: 0; }
.tl-int .ihead b { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.logo { display: inline-grid; place-items: center; flex: none; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); border-radius: 8px; width: 34px; height: 34px; padding: 5px; }
.logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tl-int .logo { width: 22px; height: 22px; padding: 2px; border-radius: 6px; box-shadow: none; }
.tl-int .role { font-size: 11.5px; color: var(--muted); line-height: 1.25; }
.tl-int:hover { box-shadow: 0 4px 14px rgba(15, 26, 42, .10), 0 0 0 1.5px var(--now); }
.ed { z-index: 0; position: absolute; top: 22px; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; outline: none; cursor: default; }
.ed .logo { width: 20px; height: 20px; padding: 1px; border-radius: 5px; box-shadow: none; flex: none; }
.ed.past { background: #e6e9ed; color: #545c68; font-weight: 500; justify-content: center; padding: 0 4px; gap: 5px; font-size: 11.5px; }
.ed.past .logo { opacity: .8; }
.ed.phd { color: #fff; background: linear-gradient(90deg, var(--now) var(--p), #dbe3ee var(--p)); background: linear-gradient(90deg, var(--now) var(--p), color-mix(in srgb, var(--now) 22%, var(--bg)) var(--p)); }
.ed:hover { filter: brightness(.95); box-shadow: 0 0 0 1.5px var(--now); }
.istem { position: absolute; top: 60px; height: 26px; border-left: 1.5px solid #c3c9d2; transform: translateX(-.75px); }
.idot { position: absolute; top: 62px; width: 9px; height: 9px; border-radius: 50%; background: #aab2bd; transform: translate(-50%, -50%); z-index: 3; cursor: default; }
.istem.hot { border-color: var(--now); } .idot.hot { background: var(--now); }
.nowline { position: absolute; top: 17px; height: 42px; border-left: 2px solid var(--ink); z-index: 2; transform: translateX(-1px); }
.nowline span { position: absolute; top: 40px; left: 0; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sc.end { left: auto !important; right: 0; width: auto !important; overflow: visible; color: var(--ink); font-weight: 600; }
.sc { position: absolute; top: 0; text-align: center; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.tl-foot { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); height: 86px; }
@media (max-width: 720px) { .tl-foot { height: auto; min-height: 96px; } }
.fd { display: flex; flex-wrap: wrap; gap: 7px 22px; align-items: baseline; font-size: 13.5px; line-height: 1.4; }
.fd .br { flex-basis: 100%; height: 0; }
.fd.prompt { color: var(--muted); font-size: 13.5px; }
.fd .ttl { flex-basis: 100%; color: var(--ink); font-weight: 650; font-size: 14px; }
.kv { color: var(--text); }
.kv i { font-style: normal; color: var(--muted); font-size: 11.5px; font-weight: 600; margin-right: 6px; }
.kv.hl { color: var(--accent); font-weight: 600; }

.filters .n { color: var(--muted); font-weight: 400; font-size: 13.5px; margin-left: 2px; }
.more { margin: 18px 0 0; font-size: 15px; }
/* highlights */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { display: grid; gap: 4px; align-content: start; color: var(--text); font-weight: 400; }
.card:hover { text-decoration: none; }
.card .frame { aspect-ratio: 4 / 3; background: var(--frame); border-radius: 12px; padding: 14px; display: grid; place-items: center; margin-bottom: 12px; transition: background .2s; }
.card:hover .frame { background: #eceef2; }
.card .frame { overflow: hidden; }
.card .frame { position: relative; }
.card .frame img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; border-radius: 4px; }
.card .nm { font-size: 17px; font-weight: 600; color: var(--ink); }
.card:hover .nm { color: var(--accent); }
.card .vn { font-size: 14px; color: var(--muted); font-weight: 500; }
.card .ln { font-size: 15px; line-height: 1.5; margin-top: 4px; }

/* news + background */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.news li:last-child { border-bottom: 1px solid var(--line); }
.nrow:hover { text-decoration: none; }
.nrow:hover .ntext { color: var(--ink); }
.nrow:hover .nthumb { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--frame); }
.nthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nthumb.fig { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.nthumb.fig img { object-fit: contain; padding: 4px; }
.news.big { margin-top: 28px; }
.back { display: inline-block; font-size: 14px; margin-bottom: 18px; }
.back::before { content: "\2190  "; }
.pgal { display: grid; gap: 18px; margin: 26px 0; }
.pgal.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pgal figure { margin: 0; }
.pimg { padding: 0; border-radius: 12px; overflow: hidden; background: var(--frame); display: block; }
.pimg img { width: 100%; display: block; }
.pgal.two .pimg { aspect-ratio: 4 / 3; }
.pgal.two .pimg img { height: 100%; object-fit: cover; }
.pgal figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.detail { }
.d-eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; }
.detail h1 { font-size: 38px; margin: 4px 0 10px; }
.pp-authors { color: var(--text); margin: 0 0 22px; font-size: 15.5px; }
.detail > h1 + .d-body { margin-top: 22px; }
.pp-hero { display: block; width: 100%; padding: 18px; background: var(--frame); border-radius: 16px; margin-bottom: 8px; }
.pp-hero img { width: 100%; max-height: 520px; object-fit: contain; display: block; margin: 0 auto; border-radius: 6px; }
.d-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 32px; align-items: start; }
.d-main h2 { font-size: 19px; margin: 0 0 12px; }
.d-main p { font-size: 16.5px; line-height: 1.7; margin: 0 0 16px; }
.d-main p + h2, .d-main .vframe + h2 { margin-top: 30px; }
.d-main .pub { border-top: 0; padding-top: 4px; }
.d-side { position: sticky; top: 84px; background: var(--frame); border-radius: 14px; padding: 20px; display: grid; gap: 18px; }
.d-side h3 { font-size: 15px; font-weight: 650; color: var(--ink); margin: 0; }
.facts { margin: 0; display: grid; gap: 10px; }
.facts dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); line-height: 1.4; }
.d-links { display: flex; flex-wrap: wrap; gap: 8px; }
.upd { list-style: none; margin: -6px 0 0; padding: 0; display: grid; gap: 12px; }
.upd li { display: grid; gap: 2px; font-size: 14.5px; }
.upd time { color: var(--muted); font-size: 13px; font-weight: 500; }
.pfig { margin: 6px 0 26px; }
.pfig .pimg { padding: 14px; background: var(--frame); }
.pfig figcaption { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
/* a large 4:3 photo on top; below, 9:16 columns give a 3:4 portrait and a 4:3 landscape the same height */
.pmosaic { display: grid; grid-template-columns: 9fr 16fr; gap: 12px; margin: 22px 0 26px; }
.pmosaic .pimg:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.pmosaic .pimg:nth-child(2) { aspect-ratio: 3 / 4; }
.pmosaic .pimg:nth-child(3) { aspect-ratio: 4 / 3; }
.pmosaic .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pmosaic figcaption { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin-top: -4px; }
@media (max-width: 720px) { .pmosaic { grid-template-columns: minmax(0, 1fr); } }
.vframe { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; margin-bottom: 8px; }
.pp-video { margin-bottom: 8px; }
.detail h1 + .pp-video { margin-top: 20px; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplay { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; border-radius: 50%; background: rgba(255,255,255,.92); transform: translate(-50%, -50%); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.3); transition: transform .15s; }
.vplay svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 4px; }
.vthumb:hover .vplay { transform: translate(-50%, -50%) scale(1.06); }
details.phase { margin-top: 12px; font-size: 14px; color: var(--muted); }
details.phase summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.phase summary::-webkit-details-marker { display: none; }
details.phase summary::before { content: "+"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; box-shadow: 0 0 0 1px currentColor; font-size: 12px; line-height: 1; }
details.phase[open] summary::before { content: "\2212"; }
details.phase > div { margin-top: 10px; padding: 12px 14px; background: var(--frame); border-radius: 10px; }
.ph1 .t { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.ph1 .au { font-size: 14px; margin-top: 4px; color: var(--text); }
.ph1 .ve { font-size: 14px; color: var(--muted); margin-top: 2px; }
.ph1 .ve em { font-style: normal; color: var(--ink); font-weight: 500; }
.ph1 .lk { margin-top: 8px; display: flex; gap: 8px; }
.stats.side { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 8px; }
.stats.side div { background: var(--bg); padding: 12px 10px; }
.stats.side b { font-size: 22px; }
.stats.side span { font-size: 12px; }
@media (max-width: 860px) { .d-body { grid-template-columns: minmax(0, 1fr); gap: 28px; } .d-side { position: static; } }
.pgh { margin: 44px 0 0; font-size: 20px; }
.pfield { display: block; margin: 4px 0 0; color: var(--accent); font-size: 14.5px; font-weight: 500; }
/* Projects opener: one large statement, then the three research threads as a map of who guides whom */
.pstate { margin: 22px 0 0; max-width: 26em; font-size: clamp(24px, 3.1vw, 32px); line-height: 1.22; font-weight: 500; letter-spacing: -.022em; color: var(--ink); }
.pstate + .lede { max-width: 44em; margin-top: 16px; font-size: 17px; }
/* chapter openers for the three threads; the two later groups stay quiet */
.ptheme.main .pch { padding-top: 40px; border-top: 1px solid var(--line); }
.ptheme.main .pgh { margin: 0; max-width: 20em; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.14; letter-spacing: -.025em; }
.ptheme.main .pfield { margin-top: 10px; font-size: 15.5px; }
.ptheme.main .pgd { max-width: 42em; margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--text); }
.ptheme.main .pgd + .pgrid { margin-top: 32px; }
.ptheme.main + .ptheme { margin-top: 96px; }
.ptheme.minor .pgh { padding-top: 40px; border-top: 1px solid var(--line); }
.ptheme + .ptheme { margin-top: 64px; }
.pwrap { position: relative; }
.prail { display: contents; }
/* category navigation: a tab bar under the header by default, a side rail outside the content width on wide screens */
.psnav { position: sticky; top: 60px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 28px 0 0; padding: 12px 0; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.psnav button { flex: none; display: flex; gap: 6px; align-items: baseline; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 15px; font-weight: 500; white-space: nowrap; transition: background .15s, border-color .15s; }
.psnav button:hover { color: var(--ink); border-color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.psnav button.on { color: #fff; background: var(--accent); border-color: var(--accent); }
.psnav .n { color: var(--muted); font-weight: 400; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.psnav button.on .n { color: rgba(255, 255, 255, .75); }
.psnav-h { display: none; }
@media (min-width: 1560px) {
  .prail { display: block; position: absolute; top: 0; bottom: 0; right: calc(100% + 32px); width: 208px; }
  .psnav { top: 96px; display: grid; gap: 0; margin: 44px 0 0; overflow: visible; border-bottom: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .psnav-h { display: block; padding: 0 0 10px 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
  .psnav button { position: relative; justify-content: flex-start; gap: 8px; padding: 8px 0 8px 16px; margin: 0; border: 0; font-size: 14.5px; line-height: 1.3; }
  .psnav button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .psnav button.on { color: var(--ink); font-weight: 600; }
  .psnav button.on::before { left: -0.5px; width: 2px; background: var(--accent); border-radius: 2px; }
  .psnav button.on .n { color: var(--accent); }
  .psnav .n { font-size: 12.5px; }
  .psnav { padding: 0; }
  .psnav button, .psnav button.on { background: none; border-radius: 0; color: var(--muted); }
  .psnav button.on { color: var(--ink); }
}
.pgd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.pgd + .pgrid { margin-top: 24px; }
.pgrid.home { margin-top: 0; }
.frame.word, .pp-hero.word { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-wash), var(--frame)); }
.frame.word span, .pp-hero.word span { font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: -.01em; text-align: center; padding: 0 24px; }
.pp-hero.word { aspect-ratio: 16 / 5; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 30px; }
.stats div { background: var(--frame); border-radius: 12px; padding: 16px 16px 14px; display: grid; gap: 4px; }
.stats b { font-size: 32px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); line-height: 1.35; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plinks { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .pgal.two { grid-template-columns: minmax(0, 1fr); } }
.nrow { display: flex; justify-content: space-between; gap: 18px; color: var(--text); font-weight: 400; }
.narrow { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); background: var(--frame); transition: background .15s, color .15s, transform .15s; align-self: center; }
.narrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
a.nrow:hover .narrow { color: #fff; background: var(--now); transform: translateX(2px); }
.news time { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.panel { background: var(--frame); border-radius: 14px; padding: 24px 24px 20px; }
.panel h3 { font-size: 15px; font-weight: 650; color: var(--ink); margin: 0 0 10px; }
.panel h3 + .rows + h3 { margin-top: 22px; }
.rows { display: grid; gap: 10px; }
.rows .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; font-size: 14.5px; line-height: 1.4; }
.rows .r b { display: block; font-weight: 600; }
.rows .r span.sub { color: var(--muted); }
.rows .r .y { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }

/* publications */
.filters { display: grid; gap: 12px; margin: 30px 0 8px; font-size: 15px; padding: 18px 20px; background: var(--frame); border-radius: 12px; }
.filters .grp { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.filters .lab { color: var(--ink); font-weight: 600; width: 76px; flex: none; }
.filters .n { color: var(--muted); font-weight: 400; font-size: 13.5px; margin-left: 2px; }
.tp { color: var(--muted); margin-left: 12px; }
.tp button.text { color: var(--muted); font-weight: 400; font-size: 14px; }
.tp button.text:hover { color: var(--accent); }
.group { margin-top: 44px; }
.gh { display: flex; align-items: baseline; gap: 10px; }
.gh h3 { font-size: 20px; font-weight: 650; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.gh span { color: var(--muted); font-weight: 500; }
.gd { margin: 4px 0 10px; color: var(--muted); font-size: 15px; }
.year { font-size: 15px; font-weight: 650; color: var(--muted); margin: 36px 0 2px; font-variant-numeric: tabular-nums; }
.pub { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-top: 1px solid var(--line); }
.pub.plain { grid-template-columns: minmax(0, 1fr); padding-left: 228px; }
.pub .thumb { aspect-ratio: 16 / 10; background: var(--frame); border-radius: 10px; padding: 10px; display: grid; place-items: center; }
.pub .thumb { overflow: hidden; }
.pub .thumb { position: relative; }
.pub .thumb img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.pub .t { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.pub a.t:hover { color: var(--accent); text-decoration: none; }
.pub .au { font-size: 15px; margin-top: 6px; }
.pub .ve { font-size: 15px; color: var(--muted); margin-top: 2px; }
.pub .ve em { font-style: normal; color: var(--ink); font-weight: 500; }
.pub .lk { font-size: 15px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pub .lk button.text { color: var(--accent); }
.lbtn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 8px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); color: var(--accent) !important; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none !important; transition: box-shadow .15s, background .15s; }
.lbtn:hover { box-shadow: 0 0 0 1px var(--accent); background: var(--accent-wash); }
button.text.lbtn { font: 600 14px var(--font); cursor: pointer; border: 0; padding: 4px 11px 4px 9px; background: var(--bg); color: var(--accent); }
button.text.lbtn[aria-expanded="true"] { background: var(--accent-wash); box-shadow: 0 0 0 1px var(--accent); }
.li { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pub .lk button.text[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }
.drawer { margin-top: 14px; padding: 14px 16px; background: var(--frame); border-radius: 10px; font-size: 14.5px; }
.drawer p { margin: 0; }
.drawer pre { margin: 0 0 8px; font: 12.5px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.foot { margin-top: 28px; font-size: 14.5px; color: var(--muted); }

/* zoomable thumbs + lightbox */
button.zoomable { font: inherit; border: 0; cursor: zoom-in; width: 100%; }
.card .frame.zoomable, .proj .frame.zoomable { display: grid; }
.pub .thumb.zoomable { padding: 10px; }
.card a.nm { color: var(--ink); }
.card a.nm:hover { color: var(--accent); text-decoration: none; }
dialog#lb { width: min(1240px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: 0 24px 80px rgba(15, 26, 42, .28); overflow: hidden; }
dialog#lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
dialog#lb:not([open]) { display: none; }
dialog#lb.nodialog[open] { position: fixed; inset: 0; margin: auto; z-index: 100; height: fit-content; }
dialog#lb::backdrop { background: rgba(15, 26, 42, .55); }
.lb-head { display: flex; gap: 20px; align-items: start; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.lb-title { font-size: 18px; font-weight: 650; color: var(--ink); line-height: 1.35; }
.lb-sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.lb-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; font-size: 15px; }
.lb-close { font: 400 28px/1 var(--font); border: 0; background: var(--frame); color: var(--ink); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; flex: none; }
.lb-close:hover { background: var(--line); }
.lb-img { overflow: auto; background: var(--frame); cursor: zoom-in; display: grid; place-items: center; padding: 16px; min-height: 0; height: calc(92vh - 170px); }
.lb-img img { max-width: 100%; max-height: calc(92vh - 202px); object-fit: contain; border-radius: 6px; background: #fff; }
.lb-img.zoomed { cursor: grab; place-items: start; touch-action: none; }
.lb-img.zoomed:active { cursor: grabbing; }
.lb-hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.lb-img.zoomed img { max-width: none; max-height: none; user-select: none; -webkit-user-drag: none; }
/* projects */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; margin-top: 40px; }
a.proj { display: block; color: var(--text); font-weight: 400; }
a.proj:hover { text-decoration: none; }
a.proj:hover .nm { color: var(--accent); }
.proj .nm { display: block; }
.proj .vn { display: block; }
.proj .frame { aspect-ratio: 16 / 9; background: var(--frame); border-radius: 14px; padding: 18px; display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; }
.proj .frame { position: relative; }
.proj .frame img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; border-radius: 4px; }
.proj .frame.photo { padding: 0; }
.proj .frame.photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; max-height: none; }
.proj .frame .word { font-size: 22px; font-weight: 650; color: var(--muted); letter-spacing: -.01em; }
.proj .nm { font-size: 20px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.proj .nm a { color: inherit; font-weight: inherit; }
.proj .nm a:hover { color: var(--accent); text-decoration: none; }
.proj a.frame { display: grid; }
.proj .vn { font-size: 14.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.proj p { margin: 8px 0 10px; font-size: 15.5px; }
.proj .lk { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; }
.proj .pt { display: block; }
/* earlier work: compact rows, small thumbnail beside the text */
.pgrid.compact { gap: 22px 32px; }
.pgrid.compact a.proj { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; }
.pgrid.compact .proj .frame { margin: 0; padding: 8px; border-radius: 10px; aspect-ratio: 4 / 3; }
.pgrid.compact .proj .frame img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.pgrid.compact .proj .nm { font-size: 16.5px; }
.pgrid.compact .proj .vn { font-size: 13.5px; }
.pgrid.compact .proj p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* CV */
.cvsec { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.cvsec:first-of-type { margin-top: 40px; }
.cvsec > h2 { font-size: 19px; }
.entry + .entry { margin-top: 22px; }
.entry.withlogo { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.entry.withlogo .logo { width: 40px; height: 40px; }
.entry .hd { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.entry .hd b { font-size: 16.5px; }
.entry .hd .y { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.entry .sub { color: var(--muted); font-size: 15px; }
.entry ul { margin: 8px 0 0; padding-left: 18px; font-size: 15px; }
.entry li + li { margin-top: 4px; }

/* art */
.art { columns: 3 260px; column-gap: 18px; margin-top: 40px; }
.artfeat { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 36px; color: var(--text); font-weight: 400; }
.artfeat:hover { text-decoration: none; }
.artfeat:hover .nm { color: var(--accent); }
.artfeat .frame { display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--frame); }
.artfeat .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artfeat .af-text { display: grid; gap: 6px; }
.artfeat .nm { font-size: 22px; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.artfeat .vn { font-size: 14.5px; color: var(--muted); font-weight: 500; }
.artfeat .af-line { font-size: 16px; margin-top: 4px; }
@media (max-width: 720px) { .artfeat { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
.art .artimg { display: block; padding: 0; margin-bottom: 18px; background: none; break-inside: avoid; }
.art img { width: 100%; display: block; border-radius: 10px; background: var(--frame); }

.sitefoot { border-top: 1px solid var(--line); padding-block: 26px; color: var(--muted); font-size: 14px; }
.sitefoot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .tl-wrap { padding: 16px 14px 12px; }
    .tl-detail em { margin-left: 0; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 720px) {
  main { padding-block: 36px 64px; }
  h1 { font-size: 36px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .me { order: -1; grid-template-columns: 120px minmax(0, 1fr); align-items: center; }
  .portrait { width: 120px; }
  .hero p { font-size: 17px; }
  .top .wrap { gap: 16px; }
  .top .brand { display: none; }
  .top nav { gap: 20px; }
  .pub { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .pub.plain { padding-left: 0; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .cvsec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .news li { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card .frame { transition: none; } }

/* illustrated story on project pages */
/* story: three layers with a clear lead, abstract prints with a printed grain */
.st { margin-top: 8px; }
.st .sart { background: var(--frame); border-radius: 12px; padding: 6px; color: var(--ink); }
.st .sart svg { display: block; width: 100%; height: auto; }
.st .sart .k { fill: var(--ink); }
.st .sart .a { fill: var(--accent); }
.st .sart .g { fill: rgba(95, 103, 116, .42); fill: color-mix(in srgb, var(--muted) 42%, transparent); }
.st .sart .ln { fill: none; stroke: var(--ink); }
.st .sart .al { fill: none; stroke: var(--accent); }
.st q { quotes: "\201C" "\201D"; }
.st .tr { display: block; margin-top: 8px; color: var(--muted); }
.st cite { display: block; margin-top: 8px; font-style: normal; font-size: 13.5px; color: var(--muted); }
.st-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 8px 0 8px; }
.st-hero blockquote { margin: 0; }
.st-hero p { margin: 0; font-size: 31px; line-height: 1.2; font-weight: 650; letter-spacing: -.015em; color: var(--ink); }
.st-h { margin: 40px 0 14px; font-size: 17px; }
.st-sub { margin: -6px 0 14px; color: var(--ink); }
.st-flow { overflow: hidden; margin: 0 -8px; padding: 4px 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.st-track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.st-track figure { width: 320px; flex: none; margin: 0; padding: 20px 22px; border-radius: 12px; background: var(--frame); }
.st-track p { margin: 0; font-size: 17px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.st-track mark { background: none; color: var(--accent); font-weight: 650; }
.st-track .tr { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.st-track figcaption { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.st-flow.all { overflow: visible; margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; }
.st-flow.all .st-track { display: block; width: auto; transform: none !important; transition: none !important; columns: 3 260px; column-gap: 16px; }
.st-flow.all figure { width: auto; margin: 0 0 16px; break-inside: avoid; }
.st-flow.all figure[aria-hidden] { display: none; }
.st-ctl { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.st-ctl.open .st-btn { display: none; }
.st-btn { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer; }
.st-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-btn:hover { border-color: var(--accent); color: var(--accent); }
.st-all { margin-left: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--accent); cursor: pointer; }
.st-all:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .st-track { transition: none !important; } }
.st-senses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.st-senses li { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.4; }
.st-senses .sart { margin-bottom: 8px; }
.st-senses b { font-size: 15px; color: var(--ink); }
.st-senses span { color: var(--muted); }
.st-senses q { display: block; margin-top: 6px; font-style: italic; color: var(--ink); }
.story { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; }
.story li { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 26px; align-items: center; }
.story li:nth-child(even) { grid-template-columns: minmax(0, 1fr) 220px; }
.story li:nth-child(even) .sart { order: 2; }
.story h4 { margin: 0 0 6px; font-size: 17px; display: flex; gap: 10px; align-items: baseline; }
.story h4 span { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 14px; }
.story p { margin: 0; }
.story blockquote { margin: 10px 0 0; padding-left: 14px; border-left: 2px solid var(--accent); }
.story blockquote p { font-style: italic; color: var(--ink); }
.story blockquote p + p { margin-top: 8px; }
.st-close { margin: 44px 0 0; padding: 30px 28px; background: var(--frame); border-radius: 14px; text-align: center; }
.st-close p { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 650; color: var(--ink); }
.st-close .tr { font-size: 17px; }
@media (max-width: 900px) { .st-senses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .st-hero, .story li, .story li:nth-child(even) { grid-template-columns: minmax(0, 1fr); }
  .story li:nth-child(even) .sart { order: 0; }
  .st-hero p { font-size: 24px; } .st-track figure { width: 270px; } .story .sart { max-width: 320px; }
}

/* project tech summary: label column beside the text */
.lenses { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: lens; display: grid; gap: 22px; }
.lenses li { counter-increment: lens; position: relative; padding-left: 40px; }
.lenses li::before { content: counter(lens); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); font-size: 13.5px; font-weight: 650; }
.lenses h3 { margin: 0; font-size: 17px; line-height: 1.4; color: var(--ink); }
.lenses p { margin: 4px 0 0; }
.tech { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 20px; margin: 0 0 28px; }
.tech dt { font-weight: 650; color: var(--ink); font-size: 15px; }
.tech dd { margin: 0; font-size: 15.5px; line-height: 1.6; }
@media (max-width: 720px) { .tech { grid-template-columns: minmax(0, 1fr); gap: 2px; } .tech dd { margin-bottom: 12px; } }

/* highlight questions and project key findings */
.seclead { margin: -6px 0 22px; color: var(--muted); font-size: 15.5px; }
.card .q { font-size: 13.5px; line-height: 1.4; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.key { margin: 0 0 22px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--frame); border-radius: 0 10px 10px 0; font-size: 16px; line-height: 1.6; }
.key b { color: var(--ink); }

/* related development elsewhere, on a project page */
.echo { margin: 6px 0 28px; padding: 18px 22px; border-radius: 12px; background: var(--frame); }
.echo h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.echo p { margin: 0; font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.echo .echo-l { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14.5px; }

.card .hb, .proj .hb { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.card .hb li, .proj .hb li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.5; }
.card .hb li::before, .proj .hb li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* bio: one sentence of prose, then three short points */
.bio-pts { margin: 2px 0 10px; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 16px; line-height: 1.5; }
.bio-pts li { position: relative; padding-left: 16px; }
.bio-pts li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.bio-pts b { color: var(--ink); }

/* skip link: visible only when focused */
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--ink); color: var(--bg); font-weight: 600; }
.skip:focus { top: 10px; text-decoration: none; }
h1:focus { outline: none; }
main:focus { outline: none; }
/* Right This Way demo: dim blurred room, feathered in-focus phone screen; the stage rim keeps the normal cursor */
.rw { margin: 28px 0 8px; }
.rw-head h2 { font-size: 19px; margin: 0 0 6px; }
.rw-head p { font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; max-width: 78ch; }
.rw-stage { padding: 4px 18px 18px; border-radius: 22px; background: var(--frame); }
.rw-ask { padding: 12px 2px 10px; }
.rw-ask-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 2px; }
.rw-ask-l { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.rw-skipdemo { font: inherit; font-size: 13.5px; font-weight: 500; color: var(--accent); background: var(--bg, #fff); border: 1px solid var(--track); border-radius: 999px; padding: 5px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rw-skipdemo:hover { border-color: var(--accent); }
.rw-skipdemo svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rw-tabs { display: flex; flex-wrap: wrap; gap: 2px 17px; }
.rw-tabs button { position: relative; font: inherit; font-size: 13.5px; color: var(--muted); background: none; border: 0; padding: 6px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.rw-tabs button:hover { color: var(--ink); }
.rw-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.rw-tabs svg { position: absolute; right: -14px; top: 9px; width: 12px; height: 12px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; display: none; }
.rw-tabs button.done svg { display: block; }
.rw-room { position: relative; height: min(clamp(440px, 54vw, 620px), 80vh); border-radius: 14px; overflow: hidden; background: #111418; cursor: none; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; isolation: isolate; }
.rw-room.free { cursor: default; }
.rw-room::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 rgba(255,255,255,0); pointer-events: none; transition: box-shadow .25s; z-index: 3; }
.rw-room.free::after { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.rw-room.free .rw-rig { opacity: .7; filter: saturate(.7); }
.rw-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.35); z-index: 3; pointer-events: none; transition: opacity .2s; }
.rw-room.free .rw-dot { opacity: 0; }
.rw-free { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 3; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.9); color: #1b2430; font-size: 13.5px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s; }
.rw-room.held.free .rw-free { opacity: 1; }
.rw-room.held.free .rw-tip { opacity: 0; }
@media (hover: none) { .rw-dot, .rw-free { display: none; } }
.rw-room:focus-visible { box-shadow: 0 0 0 3px var(--accent); }
/* touch: the room takes drags to move the phone; the wide frame around it still scrolls the page */
@media (hover: none) { .rw-room { cursor: default; height: min(66vh, 500px); } .rw-stage { padding: 4px 20px 20px; } }
.rw-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) brightness(.4) saturate(.9); }
.rw-scene { position: absolute; filter: blur(14px) brightness(.44) saturate(.85); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.rw-rig { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; transition: opacity .25s, filter .25s; }
.rw-vf { position: absolute; left: 0; top: 0; overflow: hidden; --f: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent), linear-gradient(transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent), linear-gradient(transparent, #000 var(--f), #000 calc(100% - var(--f)), transparent); mask-composite: intersect; }
.rw-view { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rw-view img { display: block; width: 100%; height: 100%; max-width: none; filter: brightness(1.04) contrast(1.03); }
.rw-box { position: absolute; border-radius: 8px; border: 2.5px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 14px rgba(255,255,255,.35); opacity: 0; transform: scale(1.08); transition: opacity .35s, transform .35s, border-color .3s; }
.rw-box.on { opacity: .9; transform: none; }
.rw-box.on:not(.in) { border-style: dashed; animation: rwbreathe 1.6s ease-in-out infinite; }
.rw-box.in { border-color: #fff; opacity: 1; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 22px rgba(255,255,255,.6); }
@keyframes rwbreathe { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .rw-box.on:not(.in) { animation: none; } }
.rw-gloss { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 34%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%); }
.rw-cam { position: absolute; left: 0; right: 0; bottom: 6%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rw-hint { font-style: normal; font-size: clamp(9px, calc(var(--vw, 200px) * .058), 12.5px); line-height: 1.3; font-weight: 500; color: #fff; background: rgba(0,0,0,.45); border-radius: 999px; padding: 3px 9px; max-width: 84%; text-align: center; }
.rw-shut { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255,255,255,.92); box-shadow: inset 0 0 0 3px rgba(0,0,0,.25), 0 1px 4px rgba(0,0,0,.4); background: rgba(255,255,255,.85); background-clip: content-box; padding: 2px; }
.rw-arrow { position: absolute; left: 50%; top: 42%; width: 64%; transform: translate(-50%, -50%) rotate(var(--a, 0deg)); filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.rw-arrow svg { display: block; width: 100%; height: auto; fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.rw-arrow.go svg { animation: rwpush 1.1s ease-in-out infinite; }
@keyframes rwpush { 0%, 100% { transform: translateX(-8%); opacity: .55; } 50% { transform: translateX(10%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rw-arrow.go svg { animation: none; } }
.rw-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.rw-flash.go { animation: rwflash .45s ease-out; }
@keyframes rwflash { 0% { opacity: .85; } 100% { opacity: 0; } }
.rw-hand { position: absolute; left: 0; top: 0; max-width: none; filter: brightness(.62) saturate(.9) drop-shadow(0 24px 40px rgba(0,0,0,.5)); }
.rw-glow { position: absolute; border-radius: 50%; background: radial-gradient(closest-side, rgba(225,235,255,.30), rgba(225,235,255,.10) 55%, rgba(225,235,255,0)); mix-blend-mode: screen; }
.rw-think, .rw-ai { position: absolute; z-index: 2; width: min(240px, calc(50% - 32px)); padding: 14px 16px; border-radius: 18px; background: rgba(250, 250, 248, .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); color: #1b2430; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.rw-think { pointer-events: none; left: 0; top: 0; width: min(230px, calc(50% - 32px)); will-change: transform; }
.rw-think, .rw-ai { transition: opacity .25s; }
.rw-think.dim, .rw-ai.dim { opacity: .28; pointer-events: none; }
.rw-ai { right: 24px; top: 26px; }
.rw-lbl { display: block; font-size: 12.5px; font-weight: 500; color: #56606d; margin-bottom: 4px; }
.rw-q { font-size: 15.5px; line-height: 1.45; font-weight: 600; margin: 0; }
.rw-think i { position: absolute; border-radius: 50%; background: rgba(250, 250, 248, .82); }
.rw-think i:nth-of-type(1) { width: 14px; height: 14px; right: -18px; bottom: 18px; }
.rw-think.r i:nth-of-type(1) { right: auto; left: -18px; }
.rw-think.r i:nth-of-type(2) { right: auto; left: -30px; }
.rw-think i:nth-of-type(2) { width: 8px; height: 8px; right: -30px; bottom: 10px; }
.rw-ai-b { display: flex; gap: 12px; align-items: flex-start; }
.rw-ai canvas { display: none; width: 46px; height: 100px; border-radius: 6px; flex: none; background: #222; }
.rw-ai canvas.on { display: block; }
.rw-r { font-size: 15.5px; line-height: 1.45; margin: 0; }
.rw-r b { font-weight: 650; }
.rw-n { display: block; margin-top: 4px; font-size: 13px; color: #56606d; }
.rw-tip { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; padding: 7px 14px; border-radius: 999px; background: rgba(20, 24, 30, .6); color: #fff; font-size: 13.5px; white-space: nowrap; transition: opacity .4s; pointer-events: none; }
.rw-tip.off { opacity: 0; }
.rw.rw-sm .rw-think, .rw.rw-sm .rw-ai { width: auto; left: 12px; right: 12px; padding: 10px 14px; }
.rw.rw-sm .rw-think { top: 12px; transform: none !important; }
.rw.rw-sm .rw-think i { display: none; }
.rw.rw-sm .rw-q { font-size: 15px; }
.rw.rw-sm .rw-ai { top: auto; bottom: 12px; }
.rw.rw-sm .rw-tip { bottom: auto; top: 92px; }
@media (max-width: 600px) { .rw-stage { border-radius: 16px; } }
.rw-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.rw-btns { display: flex; gap: 12px; align-items: center; }
.rw-btns button { font: inherit; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--track); background: transparent; color: var(--ink); cursor: pointer; }
.rw-btns button:hover { border-color: var(--accent); color: var(--accent); }
.rw-note { font-size: 12.5px; color: var(--muted); margin: 0; }
.rw-shots { font-size: 12.5px; }
.rw-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* scroll scene on the tactile-annotation page (assets/js/print-scroll.js): a tall section with a sticky stage under the header */
.ps { position: relative; height: 600vh; margin: 28px 0 8px; width: 100vw; margin-left: calc(50% - 50vw); }
html { overflow-x: clip; }
.ps-stage { position: sticky; top: 60px; height: calc(100vh - 60px); height: calc(100svh - 60px); overflow: hidden; }
.ps-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ps-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .4s ease; }
.ps.ready .ps-poster { opacity: 0; pointer-events: none; }
.ps-ov { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.ps.ready .ps-ov { opacity: 1; }
.ps-copy { position: absolute; left: max(20px, calc(50% - 520px)); top: 9vh; width: min(400px, 38%); transition: opacity .35s ease, transform .35s ease; }
.ps-copy h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.015em; margin: 0 0 12px; color: var(--ink); }
.ps-copy h2 em { font-style: normal; color: #D5682A; }
.ps-copy p { margin: 0; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.42; color: var(--muted); }
.ps-copy.off { opacity: 0; transform: translateY(14px); }
.ps-tag { position: absolute; font-size: 13.5px; line-height: 1.3; color: var(--ink); white-space: nowrap; transform: translate(10px, -50%); }
.ps-tag b { display: block; font-weight: 650; }
.ps-tag span { color: var(--muted); }
.ps-tag::before { content: ""; position: absolute; left: -10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ink); }
.ps-tag.amber::before { background: #D5682A; }
.ps-tag.left { transform: translate(calc(-100% - 10px), -50%); text-align: right; }
.ps-tag.left::before { left: auto; right: -10px; }
.ps-card { position: absolute; width: 290px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 10px 40px rgba(15, 26, 42, .12), 0 0 0 1px rgba(15, 26, 42, .06); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.ps-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); max-height: 200px; overflow: hidden; transition: opacity .35s ease, transform .35s ease, max-height .45s ease, padding .45s ease; }
.ps-row:first-child { border-top: 0; }
.ps-row.hide { opacity: 0; transform: translateY(6px); max-height: 0; padding: 0; border-top-width: 0; }
.ps-row .k { font-size: 12px; color: var(--muted); }
.ps-row .v { font-size: 15px; font-weight: 600; color: var(--ink); }
.ps-row .br { font-size: 28px; line-height: 1; letter-spacing: .08em; color: #D5682A; }
.ps-row .code { font-size: 21px; color: #D5682A; }
.ps-row dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; color: var(--text); }
.ps-row dt { color: var(--muted); }
.ps-row dd { margin: 0; }
.ps-lead { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ps-credit { position: absolute; left: max(20px, calc(50% - 520px)); bottom: 12px; font-size: 12px; color: var(--muted); }
.ps-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 16px; font-weight: 500; color: var(--text); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.ps.ready .ps-hint { opacity: 1; }
.ps.ready.moved .ps-hint { opacity: 0; }
.ps.board .ps-hint, .ps.static .ps-hint { display: none; }
.ps-hint svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; -webkit-animation: ps-bob 1.6s ease-in-out infinite; animation: ps-bob 1.6s ease-in-out infinite; }
@-webkit-keyframes ps-bob { 50% { -webkit-transform: translateY(3px); transform: translateY(3px); } }
@keyframes ps-bob { 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .ps-hint svg { -webkit-animation: none; animation: none; } }
@media (max-width: 760px) { .ps-hint { bottom: 40px; font-size: 15px; } }
/* no WebGL or no decompression: the cover image stands in, at its own height */
.ps.static { height: auto; }
.ps.static { width: auto; margin-left: 0; }
.ps.static .ps-stage { position: relative; top: 0; height: auto; }
.ps.static .ps-poster { position: static; height: auto; opacity: 1; }
.ps.static .ps-gl, .ps.static .ps-ov { display: none; }
/* no WebGL: scroll scrubs pre-rendered frames of the same scene */
.ps-seq { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ps.seq .ps-gl, .ps.seq .ps-ov { display: none; }
/* reduced motion: four key frames side by side, nothing moves */
.ps.board { height: auto; }
.ps.board .ps-stage { position: relative; top: 0; height: auto; overflow: visible; }
.ps.board .ps-poster, .ps.board .ps-gl, .ps.board .ps-ov { display: none; }
.ps-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.ps-board figure { margin: 0; }
.ps-board img { display: block; width: 100%; height: auto; border-radius: 12px; background: var(--frame); }
.ps-board figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.ps-board figcaption b { color: var(--ink); }
@media (max-width: 720px) { .ps-board { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ps-copy { top: 4vh; width: auto; right: 20px; }
  .ps-card { width: 214px; padding: 12px 14px; }
  .ps-row { grid-template-columns: 56px 1fr; padding: 5px 0; }
  .ps-row .v { font-size: 13.5px; }
  .ps-row .br { font-size: 22px; }
  .ps-row .code { font-size: 18px; }
  .ps-row dl { font-size: 12px; }
  .ps-tag { font-size: 12px; }
}
.d-main h2[tabindex="-1"]:focus { outline: none; }

/* Learning to Draw ASCII page (assets/js/ascii-scene.js): a three-step puzzle, a scene to drag, four roles */
.ax-sec { margin: 44px 0 0; }
.ax-world { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (max-width: 820px) { .ax-world { grid-template-columns: minmax(0, 1fr); } }
.ax-view:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ax-view { position: relative; user-select: none; -webkit-user-select: none; background: linear-gradient(#fbfbfc, var(--frame)); touch-action: none; }
.ax-view canvas { display: block; width: 100%; height: clamp(360px, 36vw, 440px); }
.ax-side { padding: 20px 22px; border-left: 1px solid var(--line); font-size: 14px; }
@media (max-width: 820px) { .ax-side { border-left: 0; border-top: 1px solid var(--line); } }
.ax-side .ax-k { margin-top: 16px; }
.ax-side .ax-k:first-child { margin-top: 0; }
.ax-top { margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1.1; color: #b3b9c3; }
.ax-top b { color: var(--ink); }
.ax-top b.on { color: var(--accent); }
.ax-rels li { cursor: default; border-radius: 4px; padding: 1px 4px; margin: 0 -4px; white-space: pre-wrap; }
.ax-rels li:hover { background: var(--accent-wash); }
.ax-rels { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--text); }
.ax-compass button:empty:hover::after { content: "E"; opacity: .3; }
.ax-board.picking button.ax-cell:empty:hover::after { content: var(--ghost); opacity: .3; }
.ax-lab { margin: 44px 0 8px; }
.ax-head { max-width: 680px; margin-bottom: 16px; }
.ax-head h2 { font-size: 22px; margin: 0 0 6px; }
.ax-head p { font-size: 16.5px; line-height: 1.6; margin: 0; color: var(--text); }
.ax-head code { font-family: var(--mono); font-size: .9em; font-weight: 700; color: var(--ink); background: var(--frame); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }
.ax-play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (max-width: 820px) { .ax-play { grid-template-columns: minmax(0, 1fr); } }
.ax-k { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.ax-k::before { content: "# "; }
.ax-desc { padding: 22px 22px 18px; background: var(--frame); }
.ax-sents { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 2px; font-family: var(--mono); font-size: 13.5px; }
.ax-sents li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 6px; color: var(--text); cursor: default; }
.ax-sents li b, .ax-qq b { color: var(--ink); font-weight: 700; }
.ax-sents li:hover { background: rgba(255,255,255,.8); }
.ax-mark::before { content: "."; color: #a3aab5; }
.ax-sents li.ok .ax-mark::before { content: "+"; color: var(--accent); font-weight: 700; }
.ax-sents li.bad .ax-mark::before { content: "x"; color: #b4442f; font-weight: 700; }
.ax-st { grid-column: 2; font-size: 12px; color: #b4442f; }
.ax-st:empty { display: none; }
.ax-qq { font-family: var(--mono); font-size: 14px; margin: 0; color: var(--text); }

.ax-steps { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.ax-step { padding: 18px 22px; transition: opacity .3s; }
.ax-step + .ax-step { border-top: 1px solid var(--line); }
.ax-step[data-s="1"], .ax-step[data-s="2"] { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: start; }
.ax-step[data-s="1"] > :not(.ax-grid), .ax-step[data-s="2"] > :not(.ax-grid) { grid-column: 1; }
.ax-step > .ax-grid { grid-column: 2; grid-row: 1 / span 4; }
.ax-step h3 { display: flex; align-items: center; gap: 9px; font-size: 15.5px; margin: 0 0 4px; color: var(--ink); }
.ax-step h3 span { font-family: var(--mono); font-size: 12px; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; color: var(--accent); }
.ax-step p { font-size: 14px; line-height: 1.55; margin: 0 0 12px; color: var(--text); }
.ax-play[data-step="1"] .ax-step[data-s="2"], .ax-play[data-step="1"] .ax-step[data-s="3"], .ax-play[data-step="2"] .ax-step[data-s="3"] { opacity: .42; }
.ax-play[data-step="1"] .ax-step[data-s="2"]:hover, .ax-play[data-step="2"] .ax-step[data-s="3"]:hover { opacity: .8; }
@media (max-width: 820px) { .ax-steps { border-left: 0; border-top: 1px solid var(--line); } .ax-step[data-s] { display: block; } }

/* ASCII grids with clickable cells: two characters per cell, as in the dataset's grid style */
.ax-grid { --fs: 24px; position: relative; display: inline-block; font-family: var(--mono); font-size: var(--fs); line-height: 1.1; }
.ax-compass { --fs: 20px; }
.ax-grid pre { margin: 0; font: inherit; line-height: inherit; color: #b3b9c3; user-select: none; }
.ax-cell { position: absolute; left: calc((1 + 3 * var(--c)) * 1ch); top: calc((1 + 2 * var(--r)) * 1.1em - .3em); width: 2ch; height: 1.7em; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; line-height: 1.7em; text-align: center; color: var(--ink); cursor: pointer; border-radius: 3px; }
span.ax-cell { cursor: default; color: var(--muted); }
button.ax-cell:hover { background: var(--accent-wash); }
.ax-cell.sel, .ax-cell.x { color: var(--accent); background: var(--accent-wash); }
.ax-compass .ax-cell.has { color: #fff; background: var(--accent); }
.ax-cell.in { animation: axin .42s steps(6) both; }
@keyframes axin { 0% { opacity: 0; } 30% { opacity: 1; color: #b3b9c3; } 60% { color: var(--accent); } }
.ax-said, .ax-score { font-family: var(--mono); font-size: 12.5px; color: var(--muted); min-height: 1.4em; margin: 8px 0 0; white-space: pre; }
.ax-score.done { color: var(--accent); font-weight: 600; }
.ax-lab > .ax-acts { display: flex; justify-content: flex-end; gap: 8px; margin: -46px 0 12px; }
@media (max-width: 820px) { .ax-lab > .ax-acts { justify-content: flex-start; margin: 0 0 12px; } }
.ax-acts button { font: inherit; font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--accent); background: var(--bg); border: 1.5px solid var(--accent); border-radius: 8px; padding: 9px 16px; cursor: pointer; }
.ax-acts button[data-act="show"] { color: #fff; background: var(--accent); }
.ax-acts button:hover { filter: brightness(1.1); }
.ax-tray { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ax-tok { font-family: var(--mono); font-weight: 700; font-size: 15px; width: 32px; height: 32px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 6px; cursor: pointer; transition: transform .15s, opacity .2s; }
.ax-tok:hover { border-color: var(--accent); }
.ax-tok.sel { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.ax-tok.placed:not(.sel) { opacity: .3; }
.ax-read p { font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.ax-read b { font-family: var(--mono); font-weight: 700; color: var(--ink); }
.ax-read b.ok { color: var(--accent); }
.ax-read b.bad { color: #b4442f; }
.ax-read .ax-tie { color: var(--muted); font-size: 13.5px; }
.ax-read.in { animation: axfade .5s ease both; }
@keyframes axfade { from { opacity: 0; transform: translateY(4px); } }

.ax-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .ax-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ax-roles { grid-template-columns: minmax(0, 1fr); } }
.ax-roles article { position: relative; display: flex; flex-direction: column; padding: 18px 18px 16px; border: 1px solid var(--line); }
.ax-roles article::before, .ax-roles article::after { content: "+"; position: absolute; font-family: var(--mono); font-size: 14px; line-height: 1; color: #a3aab5; background: var(--bg); }
.ax-roles article::before { left: -5px; top: -7px; }
.ax-roles article::after { right: -5px; bottom: -7px; }
.ax-rq { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.ax-roles h3 { font-size: 16px; line-height: 1.35; margin: 0 0 8px; color: var(--ink); }
.ax-roles p { font-size: 14px; line-height: 1.55; margin: 0 0 14px; color: var(--text); }
.ax-roles .ax-src { margin: auto 0 0; padding-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ax-bars { display: grid; gap: 6px; font-family: var(--mono); font-size: 11.5px; margin-bottom: 4px; }
.ax-br { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; color: var(--muted); }
.ax-br span { grid-column: 1 / -1; }
.ax-br code { font: inherit; font-size: 12px; letter-spacing: 1.5px; color: #b3b9c3; white-space: pre; overflow: hidden; }
.ax-br b { font-weight: 600; color: var(--muted); }
.ax-br.hi span, .ax-br.hi b { color: var(--ink); }
.ax-br.hi code { color: var(--accent); }
.ax-pair { display: flex; gap: 14px; margin-bottom: 4px; }
.ax-pair figure { margin: 0; }
.ax-pair figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.ax-mini { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.1; color: #b3b9c3; }
.ax-mini b { color: var(--ink); }
.ax-mini em { font-style: normal; font-weight: 700; color: #fff; background: #b4442f; }
