/* ==========================================================================
   Human-AI Empowerment Lab, site styles
   Generated pages: _src/templates. Edit tokens below to retheme.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --surface-3: #eceef3;
  --ink: #0d1424;
  --ink-2: #333c50;
  --muted: #646d80;
  --line: #e4e7ee;
  --line-2: #d4d8e2;
  --accent: #5524d9;
  --accent-2: #3f17b4;
  --accent-soft: #efeafe;
  --accent-ink: #ffffff;
  --deep: #0b1120;
  --deep-2: #121a2e;
  --on-deep: #eef1f8;
  --on-deep-muted: #a8b0c4;
  --orange: #f56600;
  --ok: #14966f;
  --shadow-sm: 0 1px 2px rgba(13, 20, 36, .06), 0 1px 1px rgba(13, 20, 36, .04);
  --shadow: 0 10px 30px -12px rgba(13, 20, 36, .18), 0 2px 6px rgba(13, 20, 36, .05);
  --shadow-lg: 0 30px 60px -20px rgba(13, 20, 36, .28);
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1a; --surface: #0f1522; --surface-2: #141b2b; --surface-3: #1a2336;
    --ink: #eef1f8; --ink-2: #c6ccda; --muted: #8f98ad; --line: #222b3d; --line-2: #2d3850;
    --accent: #a48bff; --accent-2: #c2b2ff; --accent-soft: #221a44; --accent-ink: #0b0f1a;
    --deep: #060a13; --deep-2: #0d1322;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1a; --surface: #0f1522; --surface-2: #141b2b; --surface-3: #1a2336;
  --ink: #eef1f8; --ink-2: #c6ccda; --muted: #8f98ad; --line: #222b3d; --line-2: #2d3850;
  --accent: #a48bff; --accent-2: #c2b2ff; --accent-soft: #221a44; --accent-ink: #0b0f1a;
  --deep: #060a13; --deep-2: #0d1322;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* Research-thrust tones (colorblind-validated categorical order) */
.tone-violet { --c: #6A2BF0; --c-soft: #f0eafe; }
.tone-cyan   { --c: #0891B2; --c-soft: #e3f5fa; }
.tone-amber  { --c: #B97A00; --c-soft: #fbf2df; }
.tone-blue   { --c: #2563EB; --c-soft: #e7eefd; }
.tone-coral  { --c: #E0533D; --c-soft: #fcebe8; }
.tone-green  { --c: #14966F; --c-soft: #e3f4ee; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tone-violet { --c: #8B5CF6; --c-soft: #211845; }
  :root:not([data-theme="light"]) .tone-cyan   { --c: #1593B5; --c-soft: #0d2630; }
  :root:not([data-theme="light"]) .tone-amber  { --c: #BF850C; --c-soft: #2a2110; }
  :root:not([data-theme="light"]) .tone-blue   { --c: #5089FA; --c-soft: #142140; }
  :root:not([data-theme="light"]) .tone-coral  { --c: #E25E47; --c-soft: #2e1814; }
  :root:not([data-theme="light"]) .tone-green  { --c: #18986C; --c-soft: #0f2a22; }
}
:root[data-theme="dark"] .tone-violet { --c: #8B5CF6; --c-soft: #211845; }
:root[data-theme="dark"] .tone-cyan   { --c: #1593B5; --c-soft: #0d2630; }
:root[data-theme="dark"] .tone-amber  { --c: #BF850C; --c-soft: #2a2110; }
:root[data-theme="dark"] .tone-blue   { --c: #5089FA; --c-soft: #142140; }
:root[data-theme="dark"] .tone-coral  { --c: #E25E47; --c-soft: #2e1814; }
:root[data-theme="dark"] .tone-green  { --c: #18986C; --c-soft: #0f2a22; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font-sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
code, pre { font-family: var(--font-mono); font-size: .86em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.7em; height: 1.7em; padding: 0 .45em; border-radius: 99px; background: var(--surface-3); color: var(--muted); font: 600 .72em/1 var(--font-sans); vertical-align: middle; letter-spacing: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; min-width: 0; }
.logo-mark { width: 46px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 700; letter-spacing: -0.015em; font-size: 1rem; white-space: nowrap; }
.brand-short { display: none; font-weight: 700; letter-spacing: -0.01em; }
.brand-sub { font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; list-style: none; gap: 2px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 500; font-size: .93rem; text-decoration: none; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-3); }
.header-tools { display: flex; gap: 4px; align-items: center; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.nav-toggle { display: none; }
.nav-toggle .icon-close { display: none; }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 70px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none; box-shadow: var(--shadow); }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 12px; font-size: 1.05rem; }
  body.nav-open .main-nav { display: block; }
  body.nav-open .nav-toggle .icon-menu { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 560px) { .site-header .brand-sub, .site-header .brand-name { display: none; } .site-header .brand-short { display: block; } .logo-mark { width: 40px; } }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 11px; font-weight: 600; font-size: .94rem; border: 1px solid transparent; text-decoration: none !important; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; line-height: 1.2; }
.btn .icon { width: 1.05em; height: 1.05em; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-2); background: var(--surface-2); }
.btn--light { background: #fff; color: #0d1424; }
.btn--light:hover { transform: translateY(-1px); }
.btn--tone { background: var(--c); color: #fff; }
.btn--tone:hover { filter: brightness(1.08); }
.btn--sm { padding: 7px 12px; font-size: .84rem; border-radius: 9px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .93rem; color: var(--accent); }
.text-link .icon { width: 1em; height: 1em; transition: transform .15s ease; }
.text-link:hover .icon { transform: translateX(3px); }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--flush { padding-top: 8px; }
.section--tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--ink { background: var(--deep); color: var(--on-deep); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .section-lead { color: var(--on-deep-muted); }
@media (max-width: 720px) { .section { padding: 52px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head > div { max-width: 760px; }
@media (max-width: 720px) { .section-head { flex-direction: column; align-items: flex-start; } }
.eyebrow { font: 600 .74rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow--light { color: #b9a6ff; }
.eyebrow--tone { color: var(--c); }
.section-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.35rem); letter-spacing: -0.02em; }
.section-title a { color: inherit; }
.section-lead { color: var(--ink-2); font-size: 1.06rem; margin: 12px 0 0; max-width: 720px; }
.group-h { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.side-h { font: 600 .74rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 22px 0 12px; }
.side-h:first-child { margin-top: 0; }

/* ---------- Page heroes ---------- */
.page-hero { padding: 64px 0 36px; position: relative; }
.page-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 320px; background: radial-gradient(60% 100% at 85% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%); pointer-events: none; }
.page-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.1rem, 4.2vw, 3.3rem); letter-spacing: -0.025em; max-width: 920px; }
.page-title--light { color: #fff; }
.page-lead { font-size: clamp(1.04rem, 1.4vw, 1.18rem); color: var(--ink-2); margin: 18px 0 0; max-width: 820px; }
.page-lead--light { color: rgba(255,255,255,.82); }
.crumbs { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; opacity: .6; }
.crumbs--light, .crumbs--light a { color: rgba(255,255,255,.7); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 28px; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 34%, color-mix(in srgb, var(--bg) 55%, transparent) 58%, transparent 80%); }
.hero-tiles { position: absolute; right: 0; top: 0; width: 58%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 9px; opacity: .9; }
.hero-tiles span { border-radius: 26%; transform: scale(var(--s, .5)); opacity: var(--o, .4); background: var(--tc); transition: transform 2.4s cubic-bezier(.2,.7,.2,1), opacity 2.4s ease; aspect-ratio: 1; }
@media (prefers-reduced-motion: reduce) { .hero-tiles span { transition: none; } }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-inner { grid-template-columns: 1fr; gap: 36px; } .hero-tiles { width: 100%; opacity: .35; } }
.eyebrow--hero { color: var(--ink-2); letter-spacing: .1em; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(245,102,0,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(245,102,0,.5); } 70% { box-shadow: 0 0 0 10px rgba(245,102,0,0); } 100% { box-shadow: 0 0 0 0 rgba(245,102,0,0); } }
.hero-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero-title em { font-style: italic; color: var(--accent); }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: var(--ink-2); margin: 24px 0 0; max-width: 640px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-panel { background: color-mix(in srgb, var(--surface) 66%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.hero-panel-label { font: 600 .74rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.hero-news { list-style: none; display: grid; gap: 16px; margin-bottom: 18px; }
.hero-news li { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--ink-2); }
.hero-news li:last-child { border-bottom: 0; padding-bottom: 0; }
.hero-news time { font-size: .78rem; font-weight: 600; color: var(--accent); }
.hero-news strong { color: var(--ink); }

/* ---------- Stats ---------- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 46px 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.stat { padding: 22px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.stat:last-child { border-right: 0; }
.stat dt { font-size: .82rem; color: var(--muted); font-weight: 500; order: 2; }
.stat dd { margin: 0; font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); letter-spacing: -0.03em; line-height: 1; order: 1; color: var(--ink); }
.stat-note { font-size: .74rem; color: var(--muted); order: 3; }
@media (max-width: 720px) { .stat { border-right: 0; border-bottom: 1px solid var(--line); } }
.stat-band--project { margin-top: -38px; }
.stat-band--project .stat dt { order: 2; }
.stat-band--profile { margin-top: 34px; }

/* ---------- Chips & tags ---------- */
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; background: var(--c-soft); color: var(--ink); font-size: .82rem; font-weight: 600; text-decoration: none !important; border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); white-space: nowrap; }
.chip:hover { border-color: var(--c); }
.chip--sm { font-size: .74rem; padding: 3px 9px; }
.chip-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); }
.chip-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { display: inline-flex; padding: 4px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .8rem; font-weight: 500; }
.tag--sm { font-size: .72rem; padding: 2px 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.area-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; margin-left: 2px; }
.venue-badge { display: inline-flex; padding: 3px 9px; border-radius: 7px; background: var(--ink); color: var(--bg); font-size: .74rem; font-weight: 700; letter-spacing: .01em; }
.track-badge { display: inline-flex; padding: 3px 8px; border-radius: 7px; background: var(--surface-3); color: var(--ink-2); font-size: .72rem; font-weight: 600; }
.status-badge { display: inline-flex; padding: 3px 8px; border-radius: 7px; background: color-mix(in srgb, var(--orange) 14%, transparent); color: color-mix(in srgb, var(--orange) 70%, var(--ink)); font-size: .72rem; font-weight: 700; }
.award-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 7px; background: #fff4d6; color: #7a5200; font-size: .72rem; font-weight: 700; }
.pub-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pub-meta--lg .venue-badge { font-size: .8rem; padding: 4px 10px; }

/* ---------- Thrust cards ---------- */
.thrust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .thrust-grid { grid-template-columns: 1fr; } }
.thrust-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; min-height: 230px; }
.thrust-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 36%; background: var(--c); opacity: .07; transform: rotate(14deg); transition: opacity .2s ease, transform .3s ease; }
.thrust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.thrust-card:hover::after { opacity: .14; transform: rotate(24deg) scale(1.05); }
.thrust-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: 10px; }
.thrust-icon .icon { width: 24px; height: 24px; }
.thrust-index { position: absolute; top: 24px; right: 26px; font: 600 .8rem var(--font-mono); color: var(--muted); }
.thrust-name { font-family: var(--font-serif); font-size: 1.32rem; font-weight: 600; }
.thrust-tag { color: var(--ink-2); font-size: .95rem; margin: 0; }
.thrust-meta { margin-top: auto; padding-top: 10px; font-size: .8rem; color: var(--muted); font-weight: 500; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
@media (max-width: 400px) { .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media--book { background: linear-gradient(135deg, var(--surface-3), var(--surface-2)); display: grid; place-items: center; padding: 14px; }
.card-media--book img { width: auto; height: 100%; object-fit: contain; border-radius: 4px; box-shadow: var(--shadow); }
.media-badge { position: absolute; left: 12px; bottom: 12px; background: rgba(8, 11, 20, .72); color: #fff; padding: 4px 10px; border-radius: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.06rem; font-weight: 650; line-height: 1.35; letter-spacing: -0.01em; }
.card-title a { color: var(--ink); }
.card-text { color: var(--ink-2); font-size: .93rem; margin: 0; }
.card-authors { font-size: .84rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-foot-meta { font-size: .78rem; color: var(--muted); font-weight: 500; }
.facepile { display: flex; }
.facepile .avatar { margin-left: -8px; border: 2px solid var(--surface); }
.facepile .avatar:first-child { margin-left: 0; }

/* ---------- Avatars ---------- */
.avatar { border-radius: 50%; object-fit: cover; background: var(--surface-3); flex: none; }
.avatar--xs { width: 30px; height: 30px; }
.avatar--sm { width: 48px; height: 48px; }
.avatar--md { width: 72px; height: 72px; }
.avatar--lg { width: 104px; height: 104px; }
.avatar--xl { width: 200px; height: 200px; }
.avatar--initials { display: inline-grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, #6119F9, #0A6BF9 55%, #2CCBF9); position: relative; overflow: hidden; }
.avatar--initials::after { content: ""; position: absolute; width: 46%; height: 46%; right: -8%; bottom: -8%; border-radius: 28%; background: rgba(255,255,255,.18); }
.avatar--initials span { position: relative; z-index: 1; letter-spacing: .02em; }
.avatar--xs.avatar--initials { font-size: .68rem; }
.avatar--sm.avatar--initials { font-size: .95rem; }
.avatar--lg.avatar--initials { font-size: 1.9rem; }
.avatar--xl.avatar--initials { font-size: 3.4rem; }

/* ---------- Publications ---------- */
.pub-list { display: grid; gap: 0; }
.pub { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pub:first-child { padding-top: 6px; }
.pub-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--deep); align-self: start; box-shadow: var(--shadow-sm); }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pub-thumb--photo { background: var(--surface-2); aspect-ratio: auto; display: grid; place-items: center; padding: 8px; }
.pub-thumb--photo img { width: auto; max-height: 150px; border-radius: 3px; }
.pub-title { font-size: 1.07rem; font-weight: 650; line-height: 1.38; letter-spacing: -0.01em; margin-bottom: 5px; }
.pub-title a { color: var(--ink); }
.pub-title a:hover { color: var(--accent); }
.pub-authors { font-size: .9rem; color: var(--muted); margin: 0 0 10px; }
.author--lab { color: var(--ink); font-weight: 600; }
.author--director { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 3px; }
.pub-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill-btn, .pill-link { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .78rem; font-weight: 600; text-decoration: none !important; }
.pill-btn:hover, .pill-link:hover { border-color: var(--accent); color: var(--accent); }
.pill-btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pub-panel { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); position: relative; }
.pub-panel p { margin: 0; }
.pub-panel--code pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: .78rem; line-height: 1.55; color: var(--ink-2); }
.copy-btn { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: .74rem; font-weight: 600; color: var(--ink-2); }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn .icon { width: .95em; height: .95em; }
@media (max-width: 640px) { .pub { grid-template-columns: 1fr; gap: 12px; } .pub-thumb { max-width: 220px; } }
.pub--compact { grid-template-columns: 1fr; }
.year-group { position: relative; }
.year-h { position: sticky; top: 70px; z-index: 2; padding: 14px 0 6px; background: var(--bg); font: 700 1rem var(--font-sans); color: var(--muted); letter-spacing: .02em; border-bottom: 2px solid var(--ink); margin-top: 26px; }
.year-h span { color: var(--ink); font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; }
.pub-toolbar { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(120px, 1fr)); gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); position: sticky; top: 78px; z-index: 5; box-shadow: var(--shadow-sm); }
@media (max-width: 960px) { .pub-toolbar { grid-template-columns: 1fr 1fr; position: static; } .pub-toolbar .search-box { grid-column: 1 / -1; } }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--muted); }
.search-box input { border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: .95rem; padding: 10px 0; width: 100%; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pub-toolbar select { appearance: none; -webkit-appearance: none; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23646d80' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; padding: 10px 32px 10px 12px; font: inherit; font-size: .9rem; color: var(--ink); min-width: 0; }
.pub-count { color: var(--muted); font-size: .88rem; margin: 16px 0 0; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
.pub-types { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.filter-chip-n { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .6; }
.filter-chip.is-active .filter-chip-n { opacity: .8; }
.pub-types-bib { margin-left: auto; font-size: .88rem; }
@media (max-width: 640px) { .pub-types-bib { margin-left: 0; flex-basis: 100%; margin-top: 6px; } }

/* ---------- Tooltip (map, network) ---------- */
.tooltip { position: fixed; z-index: 90; max-width: 300px; padding: 8px 11px; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 500; line-height: 1.4; pointer-events: none; box-shadow: var(--shadow); }

/* ---------- Books ---------- */
.books { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; }
@media (max-width: 860px) { .books { grid-template-columns: 1fr; gap: 32px; } }
.book-row { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; }
.book { display: flex; flex-direction: column; gap: 10px; width: 210px; color: inherit; text-decoration: none !important; }
.book img { width: 100%; border-radius: 4px 10px 10px 4px; box-shadow: -6px 0 0 rgba(255,255,255,.08), 0 24px 50px -14px rgba(0,0,0,.6); transition: transform .3s ease; }
.book:hover img { transform: translateY(-6px) rotate(-1deg); }
.book-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.book-meta { font-size: .8rem; opacity: .7; }
.book-row--light { justify-content: flex-start; }
.book-row--light .book { width: 170px; }

/* ---------- Split / team mosaic ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.team-mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 18px; }
.team-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-2); font-size: .84rem; font-weight: 600; text-decoration: none !important; }
.team-tile .avatar { box-shadow: var(--shadow); transition: transform .2s ease; }
.team-tile:hover .avatar { transform: translateY(-4px); }
/* Organization logos sit on white tiles in both themes so official
   full-color marks stay legible; --k (from build.py) balances wide wordmarks
   against square seals. */
.org-logo { display: block; height: calc(var(--logo-h, 56px) * var(--k, 1)); width: auto; max-width: 100%; object-fit: contain; }
.logo-wall { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.logo-wall li { display: grid; gap: 8px; align-content: start; text-align: center; }
.logo-tile { display: grid; place-items: center; height: 112px; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
a.logo-tile:hover, a.logo-tile:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); }
.logo-tile--text { font: 700 1.2rem var(--font-serif); color: #1b2130; }
.logo-cap { font-size: .78rem; line-height: 1.35; color: var(--muted); }
.logo-wall--sponsors { --logo-h: 76px; }
.logo-wall--partners { --logo-h: 54px; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.logo-wall--partners .logo-tile { height: 92px; padding: 12px; }
.logo-wall-h { margin: 34px 0 14px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logo-chip { display: inline-grid; place-items: center; height: 34px; min-width: 52px; padding: 4px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--line); flex: none; --logo-h: 28px; }
.logo-chip--lg { height: 58px; min-width: 96px; padding: 8px 12px; --logo-h: 46px; }
.inst-logo { display: grid; place-items: center; height: 84px; margin-bottom: 14px; padding: 12px; border-radius: calc(var(--radius) - 4px); background: #fff; border: 1px solid var(--line); --logo-h: 52px; }
.inst-card--home .inst-logo { width: min(320px, 100%); }
.funding-logos { margin: 22px 0 56px; }
.sponsor-tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: .7rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; flex: none; }
.sponsor-tag--lg { font-size: .8rem; padding: 5px 10px; }

/* ---------- Map & network ---------- */
.map-frame, .map-card, .net-card { border-radius: var(--radius-lg); background: var(--deep); padding: 18px; margin: 0; border: 1px solid var(--line); overflow: hidden; }
.collab-map { width: 100%; height: auto; }
.map-land { stroke: #3d4a6b; stroke-width: 6.4; stroke-linecap: round; fill: none; }
.map-arc { fill: none; stroke: #8f78ff; stroke-width: 1.6; opacity: .7; stroke-dasharray: 4 5; animation: dash 30s linear infinite; }
.map-arc--network { stroke: #2CCBF9; opacity: .45; }
@keyframes dash { to { stroke-dashoffset: -400; } }
@media (prefers-reduced-motion: reduce) { .map-arc { animation: none; } }
.map-pin circle { fill: #c4b5ff; stroke: var(--deep); stroke-width: 2.5; transition: r .15s ease; cursor: pointer; }
.map-pin--home circle { fill: #F56600; }
.map-pin--network circle { fill: #2CCBF9; }
.map-pin:hover circle, .map-pin:focus circle { fill: #fff; }
.map-pin:focus { outline: none; }
.map-pulse { fill: none; stroke: #F56600; stroke-width: 2; animation: mapPulse 2.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mapPulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; padding: 0 6px; font-size: .8rem; color: var(--on-deep-muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.lg--home { background: #F56600; } .lg--partner { background: #c4b5ff; } .lg--network { background: #2CCBF9; }
.lg--director { background: #F56600; } .lg--current { background: #a48bff; } .lg--alumni { background: #2CCBF9; } .lg--external { background: #56627d; }
.coauthor-net { width: 100%; height: auto; }
.net-edges line { stroke: #4a5675; stroke-opacity: .5; transition: stroke .15s ease, stroke-opacity .15s ease; }
.net-node circle { stroke: var(--deep); stroke-width: 2; transition: opacity .15s ease; }
.net-node--director circle { fill: #F56600; }
.net-node--current circle { fill: #a48bff; }
.net-node--alumni circle { fill: #2CCBF9; }
.net-node--external circle { fill: #56627d; }
.net-node text { fill: #dfe4f0; font: 600 13px var(--font-sans); text-anchor: middle; paint-order: stroke; stroke: var(--deep); stroke-width: 4px; pointer-events: none; }
.net-node[data-href] { cursor: pointer; }
.coauthor-net.is-focus .net-node { opacity: .18; }
.coauthor-net.is-focus .net-node.is-on { opacity: 1; }
.coauthor-net.is-focus .net-edges line { stroke-opacity: .06; }
.coauthor-net.is-focus .net-edges line.is-on { stroke: #c4b5ff; stroke-opacity: .9; }
.map-frame--home { box-shadow: var(--shadow-lg); }
.split .section-head { flex-direction: column; align-items: flex-start; }

/* ---------- Inst cards ---------- */
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.inst-card { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.inst-card--home { grid-column: 1 / -1; background: linear-gradient(135deg, color-mix(in srgb, var(--orange) 8%, var(--surface)), var(--surface)); }
.inst-card--home .inst-people { columns: 4 200px; }
.inst-name { font-size: 1.02rem; font-weight: 650; margin-bottom: 4px; }
.inst-place { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.inst-people { list-style: none; font-size: .88rem; color: var(--ink-2); display: grid; gap: 2px; }
.inst-card--home .inst-people { display: block; }
.inst-card--home .inst-people li { margin-bottom: 3px; }
.inst-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

/* ---------- CTA ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 44px; border-radius: var(--radius-lg); background: radial-gradient(120% 140% at 100% 0%, #3e1ab8 0%, #1a1240 45%, var(--deep) 100%); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: 8%; top: -30px; width: 140px; height: 140px; border-radius: 30%; background: #2CCBF9; opacity: .25; transform: rotate(18deg); }
.cta-band h2 { color: #fff; font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; max-width: 640px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band--soft { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.cta-band--soft::after { display: none; }
.cta-band--soft h2 { color: var(--ink); }
.cta-band--soft p { color: var(--ink-2); }
@media (max-width: 720px) { .cta-band { flex-direction: column; align-items: flex-start; padding: 30px; } }

/* ---------- Research page ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.approach { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.approach-n { font: 600 .8rem var(--font-mono); color: var(--accent); }
.approach h3 { font-size: 1.06rem; margin: 8px 0 6px; }
.approach p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.area-block { padding: 56px 0; border-top: 1px solid var(--line); }
.area-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 52px; align-items: center; }
.area-row--flip .area-media { order: 2; }
@media (max-width: 900px) { .area-row { grid-template-columns: 1fr; gap: 26px; } .area-row--flip .area-media { order: 0; } }
.area-media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; box-shadow: var(--shadow-lg); }
.area-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.area-media:hover img { transform: scale(1.04); }
.area-media-icon { position: absolute; left: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.2); }
.area-media-icon .icon { width: 28px; height: 28px; }
.question-list { list-style: none; display: grid; gap: 10px; margin: 20px 0; }
.question-list li { position: relative; padding-left: 26px; color: var(--ink-2); }
.question-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--accent)); }
.area-facts { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.area-facts strong { color: var(--ink); font-size: 1.1rem; }
.area-hero { position: relative; padding: 110px 0 70px; overflow: hidden; background: var(--deep); }
.area-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.area-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,13,.92) 0%, rgba(5,7,13,.6) 55%, rgba(5,7,13,.2)); }
.area-hero-inner { position: relative; z-index: 1; }
.area-hero-icon { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; background: var(--c); color: #fff; margin-bottom: 20px; }
.area-hero-icon .icon { width: 30px; height: 30px; }
.area-hero .crumbs, .area-hero .crumbs a { color: rgba(255,255,255,.7); }

/* ---------- Two-column layout & side cards ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: start; }
.two-col--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 960px) { .two-col, .two-col--even { grid-template-columns: 1fr; gap: 32px; } }
.side-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); position: sticky; top: 92px; }
.profile-side .side-card { position: static; margin-bottom: 16px; }
.side-card--muted { background: var(--surface-2); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.kv dt { font-size: .76rem; color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; }
.kv--stack { grid-template-columns: 1fr; gap: 10px; }
.kv--stack > div { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 10px; font-size: .9rem; }
.kv--stack dd { font-weight: 500; overflow-wrap: anywhere; }
.kv--grant { grid-template-columns: 1fr; gap: 8px; margin: 14px 0; }
.kv--grant > div { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 10px; font-size: .86rem; }
.kv--grant dd { font-weight: 500; color: var(--ink-2); }
.mini-people { list-style: none; display: grid; gap: 10px; }
.mini-people a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none !important; }
.mini-people a:hover span { color: var(--accent); }
.mini-people small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; line-height: 1.3; }
.plain-list { list-style: none; display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.plain-list--lg { gap: 14px; font-size: .95rem; }
.fund-mini { list-style: none; display: grid; gap: 10px; font-size: .86rem; color: var(--ink-2); }
.fund-mini li { display: flex; gap: 10px; align-items: center; }

/* ---------- Prose ---------- */
.prose { color: var(--ink-2); font-size: 1.02rem; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; margin: 0 0 14px; }
.prose h3 { font-size: 1.1rem; margin: 26px 0 10px; }
.prose em { color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: 6px; }
.prose--lead { font-size: 1.08rem; }
.prose--sm { font-size: .96rem; }

/* ---------- Project hero ---------- */
.project-hero { position: relative; padding: 110px 0 90px; background: var(--deep); overflow: hidden; }
.project-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,13,.93) 0%, rgba(5,7,13,.65) 60%, rgba(5,7,13,.3)); }
.project-hero-inner { position: relative; z-index: 1; }
.project-hero .chip { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.18); }
.status-pill { display: inline-flex; padding: 5px 11px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.status-pill--active::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; margin: auto 7px auto 0; }
.project-hero .page-title { margin-top: 16px; }

/* ---------- Paper page ---------- */
.paper-hero { padding: 52px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.paper-hero-inner { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 46px; align-items: center; }
@media (max-width: 900px) { .paper-hero-inner { grid-template-columns: 1fr; } .paper-art { max-width: 420px; } }
.paper-title { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 16px; }
.paper-authors { font-size: 1.02rem; color: var(--muted); margin-bottom: 8px; }
.paper-venue { color: var(--ink-2); font-size: .95rem; font-style: italic; }
.paper-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/10; background: var(--deep); }
.paper-art img { width: 100%; height: 100%; object-fit: cover; }
.paper-art--book { aspect-ratio: auto; background: transparent; box-shadow: none; display: flex; justify-content: center; }
.paper-art--book img { width: 220px; height: auto; border-radius: 4px 10px 10px 4px; box-shadow: var(--shadow-lg); }
.paper-section { margin-bottom: 36px; }
.paper-h { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.paper-abstract { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); }
.cite-box { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: .95rem; color: var(--ink-2); }
.code-box { position: relative; margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 16px; }
.code-box pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: .8rem; color: var(--ink-2); line-height: 1.6; }

/* ---------- People ---------- */
.director-card { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-sm); align-items: start; }
@media (max-width: 760px) { .director-card { grid-template-columns: 1fr; padding: 24px; } .director-card .avatar--xl { width: 150px; height: 150px; } }
.director-photo .avatar--xl { width: 220px; height: 220px; border-radius: 22px; box-shadow: var(--shadow); }
.director-name { font-family: var(--font-serif); font-size: 2rem; font-weight: 600; }
.director-name a { color: var(--ink); }
.director-title { color: var(--muted); font-weight: 500; margin: 6px 0 16px; }
.director-card .chip-row { margin: 6px 0 16px; }
.people-section { padding-bottom: 44px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.person-tile { display: flex; gap: 16px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; align-items: flex-start; }
.person-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.person-tile .avatar--lg { width: 88px; height: 88px; }
.people-grid--lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.people-grid--lg .person-tile { flex-direction: column; }
.people-grid--lg .person-tile .avatar--lg { width: 120px; height: 120px; border-radius: 20px; }
.person-tile-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.person-card-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.person-card-title { font-size: .86rem; color: var(--ink-2); }
.person-card-meta { font-size: .78rem; color: var(--muted); }
.person-card-stat { font-size: .78rem; color: var(--accent); font-weight: 600; margin-top: 6px; }
.alumni-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 18px; }
.alum { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: border-color .15s ease; }
.alum:hover { border-color: var(--accent); }
.alum > span { display: flex; flex-direction: column; min-width: 0; }
.alum-name { font-weight: 650; font-size: .93rem; }
.alum-role { font-size: .78rem; color: var(--muted); }
.alum-meta { font-size: .74rem; color: var(--accent); font-weight: 600; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.filter-chip:hover { border-color: var(--ink-2); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filter-chip.is-active .count { background: rgba(255,255,255,.2); color: inherit; }
.committee-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .committee-cols { grid-template-columns: 1fr; } }

/* ---------- Profile ---------- */
.profile-hero { padding: 54px 0 0; background: linear-gradient(180deg, var(--surface-2), var(--bg) 85%); border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.profile-hero-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; align-items: start; }
@media (max-width: 760px) { .profile-hero-inner { grid-template-columns: 1fr; gap: 22px; } .profile-photo .avatar--xl { width: 150px; height: 150px; } }
.profile-photo .avatar--xl { width: 220px; height: 220px; border-radius: 26px; box-shadow: var(--shadow-lg); }
.profile-name { font-family: var(--font-serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.025em; }
.profile-title { font-size: 1.1rem; color: var(--ink-2); margin: 8px 0 16px; font-weight: 500; }
.profile-facts { list-style: none; display: grid; gap: 7px; margin-bottom: 18px; color: var(--ink-2); font-size: .93rem; }
.profile-facts li { display: flex; align-items: center; gap: 9px; }
.profile-facts .icon { color: var(--muted); }
/* Whole-card link via the name; network icons stay clickable above it. */
.person-tile, .alum { position: relative; }
.stretched-link { color: inherit; text-decoration: none !important; }
.stretched-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.stretched-link:focus-visible { outline: none; }
.stretched-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.net-links { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; position: relative; z-index: 1; }
.net-links a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); transition: color .15s ease, border-color .15s ease; }
.net-links a:hover, .net-links a:focus-visible { color: var(--accent); border-color: var(--accent); text-decoration: none; }
.net-links .icon { width: 16px; height: 16px; }
.net-links--lg { gap: 7px; margin: 4px 0 18px; }
.net-links--lg a { width: 38px; height: 38px; border-radius: 10px; }
.net-links--lg .icon { width: 19px; height: 19px; }
.net-links--sm { gap: 4px; margin-top: 6px; }
.net-links--sm a { width: 26px; height: 26px; border-radius: 7px; }
.net-links--sm .icon { width: 14px; height: 14px; }
.profile-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.profile-links a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none !important; }
.profile-links a:hover { border-color: var(--accent); color: var(--accent); }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.seeking-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 13%, transparent); color: color-mix(in srgb, var(--ok) 80%, var(--ink)); font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.profile-section { margin-bottom: 44px; }
.highlight-list { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.highlight-list li { position: relative; padding-left: 28px; color: var(--ink-2); }
.highlight-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, #6119F9, #2CCBF9); }
.thesis-card { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); }
.thesis-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.honor-list, .talk-list, .grant-list { list-style: none; display: grid; gap: 12px; }
.honor-list li, .talk-list li { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 12px; font-size: .94rem; color: var(--ink-2); }
.talk-year { font: 600 .82rem var(--font-mono); color: var(--accent); padding-top: 2px; }
.grant-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; }
.side-projects { list-style: none; display: grid; gap: 10px; }
.side-projects a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: .88rem; text-decoration: none !important; }
.side-projects img { width: 54px; height: 38px; object-fit: cover; border-radius: 7px; flex: none; }
.side-projects a:hover span { color: var(--accent); }
.profile-url code { display: block; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; font-size: .76rem; overflow-wrap: anywhere; }

/* ---------- News ---------- */
.timeline { list-style: none; position: relative; max-width: 900px; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline-year { position: relative; margin: 30px 0 12px; }
.timeline-year span { display: inline-block; font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600; background: var(--bg); padding-right: 12px; position: relative; z-index: 1; }
.timeline-item { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 42px; padding: 14px 0; }
.timeline-item::before { content: ""; position: absolute; left: 127px; top: 22px; width: 12px; height: 12px; border-radius: 4px; background: var(--surface); border: 2px solid var(--accent); }
.timeline-item time { font-size: .84rem; font-weight: 600; color: var(--muted); padding-top: 3px; text-align: right; }
.timeline-body p { margin: 6px 0 6px; color: var(--ink-2); }
.timeline-body strong { color: var(--ink); }
.kind-badge { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-3); color: var(--ink-2); }
.kind-badge--grant { background: color-mix(in srgb, var(--ok) 14%, transparent); color: color-mix(in srgb, var(--ok) 75%, var(--ink)); }
.kind-badge--book { background: var(--accent-soft); color: var(--accent); }
.kind-badge--paper { background: color-mix(in srgb, #2563EB 12%, transparent); color: color-mix(in srgb, #2563EB 75%, var(--ink)); }
.kind-badge--people { background: color-mix(in srgb, var(--orange) 13%, transparent); color: color-mix(in srgb, var(--orange) 70%, var(--ink)); }
@media (max-width: 640px) {
  .timeline::before { left: 6px; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .timeline-item::before { left: 1px; top: 18px; }
  .timeline-item time { text-align: left; }
}
.news-list { list-style: none; display: grid; gap: 14px; }
.news-list li { display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 14px; font-size: .94rem; color: var(--ink-2); }
.news-list time { font-size: .8rem; font-weight: 600; color: var(--accent); padding-top: 2px; }
@media (max-width: 560px) { .news-list li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Funding ---------- */
.grant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .grant-grid { grid-template-columns: 1fr; } }
.grant-card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.grant-card--pi { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 3px var(--accent-soft); }
.grant-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.role-badge { padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.role-badge--pi { background: var(--accent); color: var(--accent-ink); }
.grant-title { font-size: 1.02rem; font-weight: 650; line-height: 1.4; }
.grant-summary { color: var(--ink-2); font-size: .9rem; margin: 10px 0 0; }
.grant-links { margin-top: auto; display: flex; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.acknowledge { margin-top: 26px; max-width: 820px; }

/* ---------- Teaching ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.course-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: flex; flex-direction: column; }
.course-code { font: 600 .8rem var(--font-mono); color: var(--accent); margin-bottom: 6px; }
.course-title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin-bottom: 10px; }
.course-card p { color: var(--ink-2); font-size: .92rem; }
.course-terms { margin-top: auto !important; display: flex; gap: 8px; align-items: flex-start; font-size: .82rem !important; color: var(--muted) !important; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 12px; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.45; color: #fff; }
.quote figcaption { color: var(--on-deep-muted); font-size: .86rem; }

/* ---------- Talks / service ---------- */
.talk-list--lg { gap: 0; }
.talk-list--lg li { grid-template-columns: 18px minmax(0,1fr); padding: 10px 0; border-bottom: 1px solid var(--line); }
.talk-yearrow { display: block !important; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--ink) !important; padding: 18px 0 6px !important; border-bottom: 2px solid var(--ink) !important; }
.talk-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--accent); margin-top: 8px; }
.service-list { list-style: none; display: grid; gap: 12px; margin-bottom: 34px; }
.service-list li { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: .92rem; color: var(--ink-2); }
.service-role { font-weight: 700; color: var(--ink); font-size: .84rem; }

/* ---------- Software ---------- */
.soft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
@media (max-width: 400px) { .soft-grid { grid-template-columns: 1fr; } }
.soft-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.soft-card p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.soft-head { display: flex; justify-content: space-between; align-items: center; }
.soft-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--bg); }
.soft-name { font-size: 1.12rem; font-weight: 700; }
.soft-name a { color: var(--ink); }
.soft-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- About ---------- */
.mvv { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.mvv-item { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.mvv-k { font: 600 .74rem var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.mvv-item p { margin: 10px 0 0; color: var(--ink-2); font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.5; }
.milestones { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; counter-reset: ms; }
.milestones li { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); position: relative; }
.milestones time { font-size: .78rem; font-weight: 700; color: var(--accent); }
.milestones p { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.explore-card { padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none !important; transition: transform .2s ease, box-shadow .2s ease; }
.explore-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.explore-card .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 14px; }
.explore-card h3 { font-size: 1.06rem; margin-bottom: 4px; }
.explore-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.visit { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); margin-bottom: 70px; }
.visit-address { font-style: normal; color: var(--ink-2); margin-bottom: 18px; line-height: 1.7; }
.logo-mark--xl { width: 200px; }
@media (max-width: 640px) { .visit { grid-template-columns: 1fr; } .logo-mark--xl { width: 140px; } }

/* ---------- Join ---------- */
.join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.join-card { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.join-card h2 { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; margin: 14px 0 10px; }
.join-card p { color: var(--ink-2); font-size: .93rem; }
.join-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.join-icon .icon { width: 24px; height: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: var(--on-deep); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.brand--footer { color: #fff; margin-bottom: 18px; }
.brand--footer .brand-sub { color: var(--on-deep-muted); }
.footer-about { font-size: .9rem; max-width: 420px; }
.footer-address { font-style: normal; font-size: .86rem; line-height: 1.7; }
.footer-h { color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.footer-list { list-style: none; display: grid; gap: 8px; font-size: .9rem; }
.footer-list a { display: inline-flex; align-items: center; gap: 6px; color: var(--on-deep-muted); }
.footer-list a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.footer-base p { margin: 0; }
.footer-sync a { color: var(--on-deep-muted); text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Print (profile "Save as PDF") ---------- */
@media print {
  .site-header, .site-footer, .profile-actions, .pub-actions, .pub-panel, .crumbs, .side-card--muted, .cta-band, .tooltip, .hero-bg { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section { padding: 16px 0; }
  .profile-hero { background: none; padding-top: 0; }
  .two-col { grid-template-columns: 1fr 220px; gap: 24px; }
  .side-card { position: static; box-shadow: none; }
  .pub { grid-template-columns: 1fr; padding: 8px 0; break-inside: avoid; }
  .pub-thumb { display: none; }
  a { color: #000; }
  .stat-band { box-shadow: none; }
}
