/* ==========================================================================
   Bohan Hou — homepage
   Quiet by design: ink, paper and one blue accent. No gradients, glows or
   colored chips. The single showpiece is the particle model in the hero.
   No framework and no font CDN: system fonts plus a 3-glyph calligraphy subset.
   ========================================================================== */

@font-face {
  font-family: 'Bohan Kai';
  src: url('./fonts/bohan-kai.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+4FAF, U+535A, U+6DB5;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Inter Display", "Inter", "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 60px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #18181c;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .2);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #74747e;
  /* The one accent. Change it here to re-tint the site. */
  --accent: #8fb4ff;
  --accent-soft: rgba(143, 180, 255, .1);
  --solid: #f4f4f5;
  --on-solid: #09090b;
  --glass: rgba(9, 9, 11, .76);
  --flow: #dcb870;
  --flow-dim: rgba(198, 164, 100, .5);
  --flow-bright: rgba(248, 226, 176, .92);
  --star: #e8eeff;
  --figure-bg: #b9bec8;
  --figure-bg-hover: #e9ebef;
  --logo-bg: #dfe2e7;
  --hero-glow: rgba(120, 160, 255, .09);
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  /* Particle model: far, middle and near points. */
  --p-far: #3b58ad;
  --p-mid: #9dbcff;
  --p-near: #ffffff;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #eaf0f8;
  --line: rgba(16, 38, 74, .12);
  --line-strong: rgba(16, 38, 74, .26);
  --text: #0f2242;
  --text-2: #47597a;
  --text-3: #7a89a6;
  --accent: #1d5fd3;
  --accent-soft: rgba(29, 95, 211, .07);
  --solid: #12305f;
  --on-solid: #f5f8fc;
  --glass: rgba(245, 248, 252, .84);
  --flow: #2457d6;
  --flow-dim: rgba(96, 140, 204, .46);
  --flow-bright: rgba(46, 104, 214, .7);
  --star: #2457d6;
  --figure-bg: #ffffff;
  --figure-bg-hover: #ffffff;
  --logo-bg: #ffffff;
  --hero-glow: rgba(29, 95, 211, .07);
  --shadow: 0 24px 60px -32px rgba(16, 38, 74, .28);
  --p-far: #a9bdf2;
  --p-mid: #3d6ae8;
  --p-near: #0d1f55;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 36px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
kbd {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; padding: 0 .4em;
  font: 500 .72rem/1 var(--font-mono); color: var(--text-2);
  border: 1px solid var(--line-strong); border-radius: 5px;
}
::selection { background: var(--accent); color: var(--bg); }
:where(a, button, input, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: fixed; z-index: 200; top: 12px; left: 12px; padding: 10px 16px; border-radius: 999px;
  background: var(--solid); color: var(--on-solid); font-weight: 650; transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.anchor-alias { position: absolute; top: 0; pointer-events: none; }
.anchor-alias-low { top: 40%; }
.muted { color: var(--text-3); }
/* Text links inside running copy: underlined, never blue blocks. */
:is(.prose, .news-item, .tl-content, .facts, .footer, .contact-links, .also) a {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
:is(.prose, .news-item, .tl-content, .facts, .footer, .contact-links, .also) a:hover { text-decoration-color: var(--accent); color: var(--accent); }
.scroll-progress {
  position: fixed; z-index: 120; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* ---------- Backdrop ----------
   Hand-swept cloud brushwork (assets/flow.svg, used as a mask) enters from the
   top-right corner and is echoed in the bottom-left: flowing gold on the night
   sky, flowing clouds of blue ink by day. A slow glint travels along it. Stars
   are drawn by site.js. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 55% at 80% 0%, var(--hero-glow), transparent 70%); }
.backdrop-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.backdrop-flow {
  position: absolute; top: 0; right: 0; width: min(104vw, 1320px); aspect-ratio: 1100 / 460;
  background: linear-gradient(100deg, var(--flow-dim) 0%, var(--flow-dim) 45%, var(--flow-bright) 50%, var(--flow-dim) 55%, var(--flow-dim) 100%) 100% 0 / 300% 100%;
  -webkit-mask: url('./flow.svg') top right / contain no-repeat; mask: url('./flow.svg') top right / contain no-repeat;
  transform-origin: 100% 0;
  animation: flow-glint 22s linear infinite, flow-drift 54s ease-in-out infinite alternate;
}
/* The echo is the same drawing turned half a circle about its own centre, so its cut edges meet the corner. */
.backdrop-flow-echo { top: auto; right: auto; left: -9vw; bottom: -48px; width: min(60vw, 740px); transform-origin: 50% 50%; rotate: 180deg; opacity: .5; animation-delay: -11s, -27s; }
@keyframes flow-glint { to { background-position: 0% 0; } }
@keyframes flow-drift { to { transform: translate3d(-20px, 12px, 0) scale(1.04); } }

/* ---------- Navigation ---------- */
.nav-shell { position: fixed; z-index: 100; top: 12px; left: 0; right: 0; pointer-events: none; }
.nav {
  pointer-events: auto; position: relative;
  width: min(100% - 2 * var(--gutter), 980px); height: var(--nav-h); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: border-color .3s var(--ease), background-color .4s var(--ease);
}
.nav-shell.is-scrolled .nav { border-color: var(--line-strong); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.nav-logo img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-size: .9rem; font-weight: 500; transition: color .2s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="location"] { color: var(--text); }
.nav-links a[aria-current="location"]::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-search {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--text-3); font-size: .85rem;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav-search:hover { border-color: var(--line-strong); color: var(--text); }
.nav-search svg, .icon-button svg, .search-field svg, .palette-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  color: var(--text-2); border: 1px solid var(--line);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.icon-button:hover { color: var(--text); border-color: var(--line-strong); }
html[data-theme="dark"] .icon-moon, html[data-theme="light"] .icon-sun { display: none; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { color: var(--on-solid); background: var(--solid); }
.btn-primary:hover { opacity: .86; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1rem; }
.text-button { color: var(--text); font-weight: 600; font-size: .85rem; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.text-button:hover { text-decoration-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 72px) 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-status { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .9rem; font-weight: 500; }
.status-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-name { margin: 22px 0 0; font-family: var(--font-display); line-height: .95; letter-spacing: -.055em; }
.hero-name-en { display: block; font-size: clamp(3.4rem, 8.4vw, 7rem); font-weight: 750; }
.hero-name-zh {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 20px;
  font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1 'Bohan Kai', KaiTi, STKaiti, serif; letter-spacing: .18em;
  color: var(--text-2);
}
.hero-name-zh::before { content: ''; width: 40px; height: 1px; background: var(--line-strong); }
.hero-lede { max-width: 38ch; margin-top: 30px; color: var(--text-2); font-size: clamp(1.08rem, 1.5vw, 1.28rem); line-height: 1.6; }
.hero-lede strong { color: var(--text); font-weight: 650; }
/* The word for the stage the model is showing takes the accent. */
.stage-word {
  font-style: normal; color: var(--text); white-space: nowrap; padding-bottom: 2px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 1.5px no-repeat;
  transition: background-size .7s var(--ease-out), color .4s var(--ease);
}
.stage-word.is-active { color: var(--accent); background-size: 100% 1.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 580px; justify-self: end; }
.hero-visual::before {
  content: ''; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-glow), transparent 68%);
}
.world-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: pointer; }
.hud { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 380px); }
.hud-stages { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hud-stages button {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 12px 8px 4px 0; color: var(--text-3); font-size: .82rem; font-weight: 600; text-align: left;
  transition: color .3s var(--ease);
}
.hud-stages button span { font: 500 .66rem/1 var(--font-mono); letter-spacing: .06em; }
.hud-stages button:hover, .hud-stages button[aria-pressed="true"] { color: var(--text); }
.hud-stages button::after {
  content: ''; position: absolute; left: 0; right: 8px; top: -1px; height: 1px;
  background: var(--text); transform-origin: left; transform: scaleX(0);
}
.hud-stages button[aria-pressed="true"]::after { transform: scaleX(var(--stage-progress, 0)); }

/* The Rynn series: what the page leads with. */
.series-wrap { position: relative; margin-top: clamp(76px, 8vw, 108px); }
.series-label { position: absolute; left: 0; bottom: calc(100% + 14px); color: var(--text-3); font: 500 .78rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.series { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.series-item { display: grid; gap: 6px; align-content: start; padding: 22px 24px 0 0; }
.series-item + .series-item { padding-left: 24px; border-left: 1px solid var(--line); }
.series-item strong { font: 700 clamp(1.2rem, 1.9vw, 1.5rem)/1.2 var(--font-display); letter-spacing: -.03em; transition: color .2s var(--ease); }
.series-item strong::after { content: '→'; display: inline-block; margin-left: 8px; color: var(--text-3); font-weight: 400; font-size: .8em; transition: transform .25s var(--ease), color .2s var(--ease); }
.series-item:hover strong, .series-item:hover strong::after { color: var(--accent); }
.series-item:hover strong::after { transform: translateX(4px); }
.series-item span { color: var(--text-2); font-size: .88rem; line-height: 1.5; }

/* Paper counts sit beside the Publications heading. */
.pub-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.pub-head .section-head { margin-bottom: 0; }
.stats { display: flex; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; max-width: 150px; padding: 2px 22px; border-left: 1px solid var(--line); }
.stat:last-child { padding-right: 0; }
.stat dd { font: 700 1.9rem/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat dt { color: var(--text-3); font-size: .78rem; line-height: 1.35; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head-wide { max-width: 800px; }
.kicker { color: var(--text-3); font: 500 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.kicker span { margin-right: 10px; color: var(--text); }
.kicker span::after { content: ' /'; color: var(--text-3); }
.section-head h2, .contact-title { font: 700 clamp(1.9rem, 4.2vw, 3.1rem)/1.08 var(--font-display); letter-spacing: -.04em; }
.section-sub { max-width: 62ch; color: var(--text-2); }
/* Heading on the left, content on the right. */
.split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.split > .section-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }
.split .section-head h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

/* ---------- News ---------- */
.news { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.news-label { padding-top: 16px; color: var(--text-3); font: 500 .78rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.news-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-when { color: var(--text-3); font: 500 .78rem/1.5 var(--font-mono); }
.news-item.is-new .news-when::after { content: 'New'; margin-left: 10px; color: var(--accent); font-weight: 700; }
.news-item p { color: var(--text-2); }
.news-item strong { color: var(--text); font-weight: 600; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait { margin: 0; perspective: 1000px; }
.portrait-frame {
  aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; border: 1px solid var(--line);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; background: var(--surface-2); clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out), transform 1.4s var(--ease-out); }
.prose { display: grid; gap: 16px; color: var(--text-2); font-size: 1.05rem; line-height: 1.8; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2); font-size: .86rem; font-weight: 500;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--text); color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--line); }
.facts div { padding: 16px 16px 0 0; }
.facts dt { color: var(--text-3); font: 500 .7rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.facts dd { margin-top: 8px; font-size: .92rem; line-height: 1.5; }

/* ---------- Featured research ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 20px; background: var(--surface);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--line-strong); }
/* A hairline of accent follows the pointer along the tile's edge. */
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s var(--ease);
}
.tile:hover::before { opacity: .8; }
/* The lead tile runs the full width with its photo beside the text; the rest are image on top. */
.tile-hero { grid-column: 1 / -1; flex-direction: row; }
.tile-media { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; aspect-ratio: 2.2 / 1; margin: 10px 10px 0; padding: 12px; border-radius: 12px; background: var(--figure-bg); overflow: hidden; isolation: isolate; transition: background-color .35s var(--ease); }
.tile:hover .tile-media, .paper-card:hover .paper-thumb { background-color: var(--figure-bg-hover); }
.tile-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.tile-hero .tile-media { flex: 0 0 56%; aspect-ratio: 16 / 9; margin: 10px 0 10px 10px; }
.tile-hero .tile-body { justify-content: center; padding-inline: clamp(24px, 3vw, 44px); }
.tile-hero .tile-links { margin-top: 8px; }
/* Photographs fill their frame; diagrams sit on tinted paper. */
.tile-media.is-photo { padding: 0; background: var(--surface-2); }
.tile-media.is-photo img { object-fit: cover; mix-blend-mode: normal; }
.tile-media.is-video { position: relative; aspect-ratio: 16 / 9; }
.tile-media video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.highlight-playback {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 50%;
  background: rgb(15 13 24 / 76%);
  color: #fff;
  cursor: pointer;
  opacity: .9;
  transition: opacity .2s var(--ease);
}
.highlight-playback::before { content: ""; width: 9px; height: 10px; border-inline: 2px solid currentColor; }
.highlight-playback[data-playing="false"]::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: 5px solid transparent;
  border-left-width: 8px;
  border-left-color: currentColor;
  border-right: 0;
}
.highlight-playback:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: hover) {
  .tile-media:not(:hover) .highlight-playback[data-playing="true"]:not(:focus-visible) { opacity: 0; }
}
.tile-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; min-width: 0; }
.tile-badges { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--text-3); font: 500 .74rem/1.5 var(--font-mono); }
.badge-lead { color: var(--accent); }
.tile h3 { font: 700 1.3rem/1.2 var(--font-display); letter-spacing: -.03em; }
.tile-hero h3 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.tile h3 a:hover { color: var(--accent); }
.tile-sub { margin-top: -4px; font-weight: 600; }
.tile-desc { color: var(--text-2); font-size: .93rem; line-height: 1.65; }
.tile-links, .paper-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tile-links { margin-top: auto; padding-top: 8px; }
.tile-links a, .paper-links a { color: var(--text-2); font-size: .86rem; font-weight: 600; transition: color .2s var(--ease); }
.tile-links a::after { content: ' ↗'; color: var(--text-3); }
.paper-links a span { color: var(--text-3); }
.tile-links a:hover, .paper-links a:hover { color: var(--text); }
.also { margin-top: 20px; color: var(--text-3); font-size: .92rem; }

/* ---------- Publication controls ---------- */
.pub-controls { display: grid; grid-template-columns: auto auto minmax(220px, 1fr); grid-template-areas: "view role search" "topics topics topics"; gap: 12px; align-items: center; margin-bottom: 12px; }
#view-filters { grid-area: view; }
#authorship-filters { grid-area: role; }
.search-field { grid-area: search; }
.topic-chips { grid-area: topics; display: flex; flex-wrap: wrap; gap: 8px; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); }
.seg-button {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px;
  color: var(--text-2); font-size: .86rem; font-weight: 600; white-space: nowrap;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.seg-button:hover { color: var(--text); }
.seg-button[aria-pressed="true"], .topic-chip[aria-pressed="true"] { color: var(--on-solid); background: var(--solid); border-color: var(--solid); }
.filter-count { font: 500 .72rem/1 var(--font-mono); opacity: .7; font-variant-numeric: tabular-nums; }
.search-field {
  display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 16px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--text-3);
  transition: border-color .2s var(--ease);
}
.search-field:focus-within { border-color: var(--text); }
.pub-search { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font-size: .92rem; -webkit-appearance: none; appearance: none; }
.pub-search::placeholder { color: var(--text-3); }
.pub-search:is(:focus, :not(:placeholder-shown)) + .search-kbd { opacity: 0; }
.search-kbd { transition: opacity .2s; }
.topic-chip {
  display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-2); font-size: .84rem; font-weight: 500; text-align: left;
  transition: color .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.topic-chip:hover { color: var(--text); border-color: var(--line-strong); }
.topic-chip[aria-pressed="true"]:hover { color: var(--on-solid); }
:is(.seg-button, .topic-chip):disabled { opacity: .35; cursor: not-allowed; }
.results-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; margin: 8px 0 0; padding-bottom: 14px; color: var(--text-3); font: 500 .76rem/1 var(--font-mono); }

/* ---------- Publication rows (markup kept from the paper list) ---------- */
.paper-list { display: grid; border-top: 1px solid var(--line); }
html.selected-pending .paper-card:not([data-selected="true"]) { display: none; }
.paper-card {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 40px);
}
.paper-card:target { box-shadow: -16px 0 0 -13px var(--accent); }
.paper-card:target .paper-title a { color: var(--accent); }
.paper-card.without-paper-image { grid-template-columns: minmax(0, 1fr); padding-left: 248px; }
.paper-thumb { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--figure-bg); border: 1px solid var(--line); isolation: isolate; transition: background-color .35s var(--ease); }
.paper-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px; object-fit: contain; mix-blend-mode: multiply; clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-out), transform 1.3s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.paper-thumb.is-photo { background: var(--surface-2); }
.paper-thumb.is-photo img { padding: 0; object-fit: cover; mix-blend-mode: normal; }
.paper-thumb[data-image-state="loading"]::before, .paper-thumb[data-image-state="error"]::before {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center;
  font: 500 .72rem/1.4 var(--font-mono); color: #71717a;
}
.paper-thumb[data-image-state="loading"]::before { content: 'Loading figure…'; }
.paper-thumb[data-image-state="error"]::before { content: 'Preview unavailable · Open original ↗'; }
.paper-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.paper-title { font: 650 1.12rem/1.4 var(--font-display); letter-spacing: -.02em; }
.paper-title a { transition: color .2s var(--ease); }
.paper-title a:hover { color: var(--accent); }
.authors, .author-summary { color: var(--text-2); font-size: .92rem; line-height: 1.7; }
.authors strong, .author-summary strong { color: var(--text); font-weight: 650; }
.lead-author :is(.authors, .author-summary) strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.author-details summary { list-style: none; cursor: pointer; }
.author-details summary::-webkit-details-marker { display: none; }
.authors-toggle { margin-left: 6px; color: var(--text-3); font-size: .84rem; white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.authors-toggle::after { content: ' +'; }
.author-details[open] .authors-toggle::after { content: ' −'; }
.author-details[open] .author-preview { display: none; }
.author-details .authors { margin-top: 4px; }
.contribution-note { margin-top: 4px; color: var(--text-3); font-size: .78rem; }
.paper-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--text-3); font: 500 .76rem/1.6 var(--font-mono); }
.paper-meta .authorship-badge { color: var(--accent); }
.paper-meta :is(.leadership-badge, .venue) { color: var(--text); }
.paper-meta .pinned-badge { order: 9; }
.paper-note { color: var(--text-2); font-size: .92rem; line-height: 1.7; }
.paper-footer { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px; margin-top: 4px; }
.topic-label { color: var(--text-3); font-size: .78rem; }
.empty-results { display: grid; justify-items: center; gap: 14px; padding: 48px 24px; border-bottom: 1px solid var(--line); color: var(--text-2); text-align: center; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; --tl-progress: 0; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 1px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--text); transform-origin: top; transform: scaleY(var(--tl-progress)); }
.tl-item { position: relative; padding: 0 0 40px 44px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-node {
  position: absolute; left: 0; top: 6px; z-index: 1; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-strong);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .7s var(--ease-out) .2s;
}
.tl-item.is-lit .tl-node { background: var(--accent); border-color: var(--accent); }
.tl-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 20px; }
.tl-logo { width: 52px; height: 52px; padding: 6px; border-radius: 12px; background: var(--logo-bg); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.tl-logo:not(.tl-logo-dark) img { mix-blend-mode: multiply; }
.tl-logo img { width: 100%; height: 100%; object-fit: contain; }
.tl-logo-dark { background: #132b44; padding: 0; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--text-3); font: 500 .76rem/1.6 var(--font-mono); }
.tl-kind { text-transform: uppercase; letter-spacing: .08em; }
.tl-content h3 { margin-top: 6px; font: 650 1.16rem/1.3 var(--font-display); letter-spacing: -.02em; }
.tl-role { margin-top: 4px; font-weight: 500; font-size: .94rem; }
.tl-content p:not(.tl-meta):not(.tl-role) { margin-top: 8px; color: var(--text-2); font-size: .92rem; line-height: 1.7; }

/* ---------- Honors ---------- */
.honors { border-top: 1px solid var(--line); }
.honor { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.honor-year { color: var(--text-3); font: 500 .78rem/1.5 var(--font-mono); }
.honor h3 { font: 500 1rem/1.5 var(--font-sans); color: var(--text-2); }
.honor-top h3 { color: var(--text); font-weight: 650; }

/* ---------- Contact ---------- */
.contact-card { display: grid; justify-items: center; gap: 20px; text-align: center; padding-top: clamp(56px, 9vw, 112px); border-top: 1px solid var(--line); }
.contact-title { max-width: 22ch; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.contact-title .muted { display: block; }
.contact-sub { max-width: 52ch; color: var(--text-2); font-size: 1.05rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.contact-links { display: flex; gap: 24px; color: var(--text-2); font-size: .95rem; }
.contact-links a { color: var(--text-2); }

/* ---------- Footer ---------- */
.footer { position: relative; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer a { color: var(--text-2); }

/* ---------- Command palette ---------- */
.palette { position: fixed; inset: 0; z-index: 300; display: grid; justify-items: center; align-items: start; padding: 12vh var(--gutter) 24px; }
.palette-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .2s var(--ease); }
.palette-panel {
  position: relative; width: min(100%, 620px); max-height: 70vh; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow);
  animation: pop .25s var(--ease-out);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.palette-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.palette-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 1.02rem; }
#palette-list { overflow-y: auto; padding: 8px; }
.palette-group { padding: 10px 10px 6px; color: var(--text-3); font: 500 .68rem/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); cursor: pointer; }
.palette-item[aria-selected="true"] { color: var(--text); background: var(--surface-2); }
.palette-item-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 7px; border: 1px solid var(--line); font: 500 .7rem/1 var(--font-mono); }
.palette-item-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; }
.palette-item-hint { color: var(--text-3); font: 500 .7rem/1 var(--font-mono); }
.palette-empty { padding: 28px; text-align: center; color: var(--text-3); }
.palette-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: .78rem; }
.palette-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 320; left: 50%; bottom: 28px; padding: 11px 18px; border-radius: 999px;
  color: var(--on-solid); background: var(--solid); box-shadow: var(--shadow);
  font-weight: 600; font-size: .9rem; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Robots ----------
   One line-drawn robot, built by site.js, in four roles: the greeter on the
   stats line, the rider on the timeline, the walker on the footer line and a
   puzzled one for empty search results. Ink strokes, accent eyes. */
.bot { position: relative; display: block; width: 52px; color: var(--text); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.bot svg { display: block; width: 100%; height: auto; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bot-fill { fill: var(--bg); transition: fill .4s var(--ease); }
.bot-tip, .bot-light, .bot-eyes { fill: var(--accent); stroke: none; }
.bot-light { animation: bot-pulse 2.6s ease-in-out infinite; }
.bot-eyes { transform: translate(var(--ex, 0px), var(--ey, 0px)); transition: transform .15s linear; }
.bot-eyes circle { transform-box: fill-box; transform-origin: center; animation: bot-blink 5s infinite; }
.bot-arm, .bot-leg, .bot-head { transform-box: fill-box; }
.bot-arm-l { transform-origin: 100% 0; }
.bot-arm-r { transform-origin: 0 0; }
.bot-head { transform-origin: 50% 100%; }
.bot.is-waving .bot-arm-r { animation: bot-wave 1.5s ease-in-out; }
.bot.is-waving .bot-head { animation: bot-nod 1.5s ease-in-out; }
.bot.is-jumping svg { animation: bot-jump .55s var(--ease-out); }
@keyframes bot-blink { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.1); } }
@keyframes bot-pulse { 50% { opacity: .35; } }
@keyframes bot-wave { 0%, 100% { transform: rotate(0deg); } 18%, 54% { transform: rotate(-112deg); } 36%, 72% { transform: rotate(-74deg); } }
@keyframes bot-nod { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(6deg); } 70% { transform: rotate(-4deg); } }
@keyframes bot-jump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-14px); } }
@keyframes bot-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes bot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }

.bot-greeter { position: absolute; right: 4px; bottom: 100%; animation: fade .8s var(--ease) .9s both; }
.bot-say {
  position: absolute; right: calc(100% + 8px); top: 0; padding: 5px 10px;
  border: 1px solid var(--line-strong); border-radius: 10px 10px 2px 10px; background: var(--surface);
  color: var(--text); font: 500 .72rem/1.3 var(--font-mono); white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(4px) scale(.96); transform-origin: 100% 100%;
  transition: opacity .25s var(--ease), transform .3s var(--ease-out);
}
.bot.is-saying .bot-say { opacity: 1; transform: none; }

.tl-rider { position: absolute; z-index: 2; left: -8px; width: 28px; margin-top: -32px; pointer-events: none; top: calc(10px + (100% - 20px) * var(--tl-progress, 0)); }
.tl-rider .bot { width: 28px; }
.tl-rider .bot svg { animation: bot-bob 1.2s ease-in-out infinite; }

.bot-track {
  position: absolute; left: 50%; bottom: calc(100% + 1px); width: min(100% - 2 * var(--gutter), var(--container)); height: 44px;
  transform: translateX(-50%); container-type: inline-size; pointer-events: none;
}
.bot-walker { position: absolute; left: 0; bottom: 0; width: 34px; pointer-events: auto; --ex: 1.6px; animation: bot-patrol 44s linear infinite; }
.bot-walker svg { animation: bot-bob .56s ease-in-out infinite; }
.bot-walker .bot-leg-l { animation: bot-step .56s ease-in-out infinite; }
.bot-walker .bot-leg-r { animation: bot-step .56s ease-in-out -.28s infinite; }
.bot-walker:hover, .bot-walker:hover svg, .bot-walker:hover .bot-leg { animation-play-state: paused; }
@keyframes bot-patrol {
  0% { transform: translateX(0) scaleX(1); }
  49.5% { transform: translateX(calc(100cqw - 34px)) scaleX(1); }
  50% { transform: translateX(calc(100cqw - 34px)) scaleX(-1); }
  99.5% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

.bot-confused { width: 60px; cursor: default; }
.bot-confused .bot-head { transform: rotate(-9deg); }
.bot-confused .bot-eyes circle { animation: none; transform: scaleY(.3); }
.bot-confused::after { content: '?'; position: absolute; left: calc(100% - 2px); top: -4px; color: var(--text-3); font: 600 1.25rem/1 var(--font-mono); }

/* ---------- Entrance, theme transition, reveal ---------- */
html.js .hero .reveal { animation: rise .9s var(--ease-out) both; }
html.js .hero .hero-name { animation-delay: .08s; }
html.js .hero .hero-lede { animation-delay: .16s; }
html.js .hero .hero-actions { animation-delay: .24s; }
html.js .hero .hero-visual { animation: fade 1.4s var(--ease) .1s both; }
html.js .hero :is(.series-label, .series-item) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
/* Only once site.js is running; the class is removed again after the reveal. */
html.reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(26px); }
html.reveal-ready .reveal { transition: opacity .8s var(--ease), transform 1s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
/* Tiles rise and settle; rows and timeline entries slide in from the line they hang on. */
html.reveal-ready .tile.reveal:not(.is-visible) { transform: translateY(36px) scale(.965); }
html.reveal-ready :is(.tl-item, .honor, .news-item).reveal:not(.is-visible) { transform: translateX(-24px); }
html.reveal-ready .tl-item.reveal:not(.is-visible) .tl-node { transform: scale(0); }
/* Figures and photos are uncovered from the top while they settle into scale. */
html.reveal-ready .reveal:not(.is-visible) :is(.tile-media img, .paper-thumb img, .portrait-frame img) { clip-path: inset(0 0 100% 0); transform: scale(1.1); }
/* Headings come up word by word from behind their baseline (spans added by site.js). */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.w > span { display: inline-block; transition: transform .9s var(--ease-out); transition-delay: calc(var(--reveal-delay, 0ms) + var(--i, 0) * 50ms); }
html.reveal-ready .reveal:not(.is-visible) .w > span { transform: translateY(115%); }
/* The name arrives letter by letter. */
.hero-name-en .w { overflow: visible; padding: 0; margin: 0; }
html.js .hero-name-en .c { display: inline-block; animation: char-rise .95s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * 55ms); }
@keyframes char-rise { from { opacity: 0; transform: translateY(.45em) rotate(7deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-search-label { display: none; }
  .pub-controls { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "view search" "role role" "topics topics"; }
  .split, .news { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .nav { padding-right: 8px; }
  .nav-links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px; border-radius: 20px; border: 1px solid var(--line-strong); background: var(--surface);
    box-shadow: var(--shadow); opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }
  .nav-links a[aria-current="location"]::after { left: 4px; top: 50%; bottom: auto; margin: -2px 0 0; }
  .nav-toggle { display: grid; }
  .nav-kbd { display: none; }
  .nav-search { width: 38px; padding: 0; justify-content: center; }
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 56px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-self: center; max-width: 480px; margin-top: 8px; }
  .series { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .series-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .series-item:nth-child(n+3) { margin-top: 22px; border-top: 1px solid var(--line); }
  .pub-head { grid-template-columns: minmax(0, 1fr); }
  .stat:first-child { padding-left: 0; border-left: 0; }
  .split, .news { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .split > .section-head { position: static; margin-bottom: 12px; }
  .news-label { padding-top: 0; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 380px; width: 100%; }
  .paper-card { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
  .paper-card.without-paper-image { padding-left: 202px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .nav-name { display: none; }
  .hero-name-en { font-size: clamp(3rem, 15vw, 4.2rem); }
  .hero-status { align-items: flex-start; line-height: 1.5; }
  .hero-status .status-dot { margin-top: 8px; }
  .status-sep { display: none; }
  .status-line { display: block; }
  .hero-visual { aspect-ratio: 1 / 1.12; }
  .hero-actions .btn { flex: 1 1 calc(50% - 10px); }
  .hero-actions .btn-primary { flex-basis: 100%; }
  .series-item { padding-right: 12px; }
  .series-item + .series-item { padding-left: 16px; }
  .series-item:nth-child(3) { padding-left: 0; }
  .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
  .stat { max-width: none; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .news-item { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-hero { flex-direction: column; }
  .tile-hero .tile-media { flex: none; margin: 10px 10px 0; }
  .tile-hero .tile-body { padding-inline: 24px; }
  .bot-greeter { width: 40px; right: 0; }
  .series-label { right: 52px; }
  .pub-controls { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "view" "role" "topics"; }
  .segmented { display: flex; }
  .segmented .seg-button { flex: 1 1 0; justify-content: center; padding: 0 8px; font-size: .8rem; }
  .topic-chip { width: 100%; border-radius: 12px; }
  .topic-chip .filter-count { margin-left: auto; }
  .paper-card, .paper-card.without-paper-image { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 0; }
  .paper-thumb { aspect-ratio: 16 / 9; }
  .tl-item { padding-left: 34px; }
  .tl-card { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tl-logo { width: 44px; height: 44px; border-radius: 10px; }
  .honor { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .contact-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-hint { display: none; }
}
@media (hover: none) {
  .search-kbd, .footer-hint, .nav-kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html.reveal-ready .reveal:not(.is-visible) { opacity: 1; transform: none; }
  html.reveal-ready .reveal:not(.is-visible) :is(img, .w > span, .tl-node) { clip-path: none; transform: none; }
}
@media print {
  .scroll-progress, .nav-shell, .hero-visual, .pub-controls, .results-row, .palette, .toast, .footer-hint, .bot, .bot-track, .tl-rider, .backdrop { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: 0; padding: 0; }
  .section { padding-block: 24px; }
  .split > .section-head { position: static; }
  .paper-card, .tile, .tl-item, .honor, .stat { break-inside: avoid; }
  .paper-card.without-paper-image { padding-left: 0; }
  html.reveal-ready .reveal { opacity: 1 !important; transform: none !important; }
  html.reveal-ready .reveal :is(img, .w > span, .tl-node) { clip-path: none !important; transform: none !important; }
  html.selected-pending .paper-card { display: grid !important; }
}
