/* ============ Design tokens (danti.ai-inspired) ============ */
:root {
  color-scheme: light;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --content-width: 1120px;
  --nav-h: 78px;
  --page-gutter: 24px;
  --space-section-tight: clamp(36px, 4vw, 48px);
  --space-section: clamp(64px, 6vw, 88px);
  --space-section-large: clamp(88px, 8vw, 112px);
  --bg: #fff;
  --fg: #252525;
  --muted: #6b6b6b;
  --surface: #f5f5f5;
  --border: #e8e8e8;
  --cta: #1a6ad6;
  --cta-bright: #155fc0;
  --link: #1a6ad6;
  --link-hover: #0f4fa8;
  /* Warm brand accent carries the labels/eyebrows; blue is reserved for links. */
  --brand-mark: #fab005;
  --accent: #9a6400;
  --accent-soft: #fab005;
  --arxiv: #b31b1b;
  --green: #0f7b4d;
  --teal: #0e7490;
  --violet: #6d28d9;
  --slate: #44506b;
  --badge-tint: 15%;
  --badge-tint-hover: 26%;
  --badge-edge: 40%;
  --radius-control: 8px;
  --radius-panel: 10px;
  --shadow-sm: 0 1px 3px #00000014;
  --shadow-md: 0 2px 6px #00000014;
  --shadow-lg: 0 4px 12px #0000001a;
  --transition-fast: .12s ease;
  --nav-bg: #ffffffdd;
}
html[data-theme=dark] {
  color-scheme: dark;
  --bg: #0c1118;
  --fg: #fafafa;
  --muted: #a0a9b9;
  --surface: #121a27;
  --border: #1e2536;
  --cta: #2f80ed;
  --cta-bright: #60a5fa;
  --link: #7cb0ff;
  --link-hover: #a8caff;
  --accent: #ffc94d;
  --accent-soft: #fab005;
  --arxiv: #ff8b80;
  --green: #4cc38a;
  --teal: #5fd3e8;
  --violet: #c4a6ff;
  --slate: #b9c4da;
  --badge-tint: 18%;
  --badge-tint-hover: 30%;
  --badge-edge: 42%;
  --nav-bg: #0c1118dd;
  --shadow-sm: 0 1px 3px #00000040;
  --shadow-md: 0 2px 6px #00000040;
  --shadow-lg: 0 4px 12px #00000059;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html {
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  transition: background .25s ease, color .25s ease;
}
::selection { background: color-mix(in srgb, var(--cta) 22%, transparent); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--link-hover); text-decoration: underline; text-underline-offset: 3px; }
/* Links in dense lists stay blue but carry a soft underline so they read as
   links without hover; the warm accent is reserved for labels and chips. */
.list-rows a,
.news-body a,
.pub-venue a:not(.badge),
.project-pubs a:not(.badge),
.alumni-cols a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent);
  text-underline-offset: 3px;
}
.list-rows a:hover,
.news-body a:hover,
.pub-venue a:not(.badge):hover,
.project-pubs a:not(.badge):hover,
.alumni-cols a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
  border-radius: 4px;
}
.container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}
/* the header is fixed, so anchor targets must not land underneath it */
[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

/* ============ Nav ============ */
.nav-section {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.nav-section.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav-bar {
  position: relative;
  /* the rail strip is a click target for the easter egg; stop triple-clicks
     from selecting the header text */
  -webkit-user-select: none; user-select: none;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; height: var(--nav-h); padding-bottom: 9px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  letter-spacing: -.02em; color: var(--fg);
}
.brand:hover { color: var(--fg); text-decoration: none; }
.brand-mark {
  width: 14px; height: 14px; border-radius: 4px;
  background: var(--brand-mark); flex: none;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand-mark { transform: rotate(45deg); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: var(--radius-control);
  color: var(--fg); font-size: 15px; font-weight: 500;
}
.nav-links a:hover { background: var(--surface); text-decoration: none; }
.nav-links a[aria-current=page] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) var(--badge-tint), transparent);
}
/* ---- Nav robot arm (built by js/site.js) ---- */
.nav-robot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 2; overflow: visible;
}
.nav-bar > .brand, .nav-bar > nav, .nav-bar > div { position: relative; z-index: 1; }
.rob-rail {
  stroke: color-mix(in srgb, var(--fg) 22%, transparent);
  stroke-width: 2; stroke-linecap: round;
}
.rob-belt {
  stroke: color-mix(in srgb, var(--fg) 14%, transparent);
  stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round;
}
.rob-carriage {
  fill: var(--surface);
  stroke: color-mix(in srgb, var(--fg) 35%, transparent); stroke-width: 1.4;
}
.rob-roller { fill: color-mix(in srgb, var(--fg) 40%, transparent); }
.rob-bone {
  stroke: color-mix(in srgb, var(--fg) 52%, transparent);
  stroke-linecap: round; fill: none;
}
.rob-bone-upper { stroke-width: 5; }
.rob-bone-fore { stroke-width: 3.6; }
.rob-strut {
  stroke: color-mix(in srgb, var(--fg) 22%, transparent);
  stroke-width: 1.6; stroke-linecap: round;
}
.rob-joint {
  fill: var(--bg);
  stroke: color-mix(in srgb, var(--accent-soft) 85%, transparent); stroke-width: 2;
}
.rob-wrist { stroke-width: 1.8; }
.rob-wristlink {
  stroke: color-mix(in srgb, var(--fg) 45%, transparent);
  stroke-width: 3.2; stroke-linecap: round;
}
.rob-palm {
  stroke: color-mix(in srgb, var(--fg) 55%, transparent);
  stroke-width: 3.6; stroke-linecap: round;
}
.rob-finger {
  stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; fill: none;
}
.rob-finger-rear { stroke-width: 1.5; opacity: .55; }
.rob-glow { fill: var(--accent-soft); filter: blur(4px); }
@media (max-width: 900px) { .nav-robot { display: none; } }
@media (prefers-reduced-motion: reduce) { .rob-glow { display: none; } }

.theme-toggle {
  appearance: none; border: 1px solid var(--border); background: transparent;
  color: var(--fg); width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--transition-fast), border-color var(--transition-fast);
  padding: 0; flex: none;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme=light] .icon-sun { display: none; }
html[data-theme=dark] .icon-moon { display: none; }
.nav-burger {
  appearance: none; border: 0; background: none; cursor: pointer;
  display: none; flex-direction: column; gap: 5px; padding: 8px; flex: none;
}
.nav-burger span {
  width: 20px; height: 2px; background: var(--fg); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav-bar { align-items: center; padding-bottom: 0; }
  .nav-burger { display: inline-flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px var(--page-gutter) 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  body.menu-open .nav-section { background: var(--bg); border-bottom-color: var(--border); }
  .nav-burger[aria-expanded=true] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded=true] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ Hero (home) ============ */
.page-intro {
  padding-top: calc(var(--nav-h) + clamp(20px, 2.6vw, 34px));
  padding-bottom: clamp(8px, 1.2vw, 14px);
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 260px;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.super-title {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 14px;
}
.page-intro__title {
  font-family: var(--font-display); letter-spacing: -.04em;
  margin: 0 0 14px; font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 600; line-height: 1.08; text-wrap: balance;
}
.page-intro__sub {
  color: var(--muted); font-size: clamp(17px, 2vw, 19px);
  line-height: 1.55; margin: 0 0 22px; max-width: 56ch;
}
.page-intro__sub a { font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 22px; border-radius: var(--radius-control);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-bright); color: #fff; }
.btn-secondary {
  background: var(--surface); color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 18%, var(--border));
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg); color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 38%, var(--border));
  box-shadow: var(--shadow-md);
}
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.fact-chips li {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 13px; background: var(--surface);
  white-space: nowrap;
}
.portrait-card { text-align: center; }
.portrait-card img.portrait {
  width: 100%; max-width: 220px; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center 42%;
  border-radius: 50%; border: 0;
  margin-inline: auto; box-shadow: var(--shadow-lg);
}
.social-row {
  display: flex; justify-content: center; gap: 12px; margin-top: 22px;
}
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--muted);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.social-row a:hover {
  color: var(--accent); background: var(--surface);
  border-color: color-mix(in srgb, var(--accent-soft) 60%, var(--border));
  text-decoration: none; transform: translateY(-2px);
}
.social-row svg { width: 22px; height: 22px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait-card { order: -1; max-width: 260px; margin-inline: auto; }
}

/* ============ Subpage header ============ */
.page-header {
  padding-top: calc(var(--nav-h) + clamp(22px, 2.6vw, 34px));
  padding-bottom: clamp(12px, 1.8vw, 20px);
}
.page-header h1 {
  font-family: var(--font-display); letter-spacing: -.04em;
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 600;
  line-height: 1.1; margin: 0 0 14px; text-wrap: balance;
}
.page-header .lede {
  color: var(--muted); font-size: clamp(16px, 2vw, 18px);
  max-width: 64ch; margin: 0;
}

/* ============ Sections ============ */
section { padding-block: var(--space-section-tight); }
.section-header { margin-bottom: 26px; }
/* Compact section: used for the home talks list so the news timeline
   sits closer to the fold. */
.section-compact { padding-block: clamp(4px, 0.8vw, 8px) clamp(10px, 1.4vw, 14px); }
.section-compact .section-header { margin-bottom: 10px; }
/* sits directly under a compact section, so it does not need the full
   inter-section gap on top */
.section-flush-top { padding-top: clamp(10px, 1.6vw, 16px); }
.section-compact .super-title { margin-bottom: 4px; }
.section-compact .section-title { font-size: clamp(21px, 2.5vw, 27px); }
.section-compact details.news-earlier { margin-top: 12px; }
.section-compact details.news-earlier > summary { padding: 7px 15px; }
.section-compact details.news-earlier[open] > summary { margin-bottom: 14px; }
.section-title {
  font-family: var(--font-display); letter-spacing: -.03em;
  font-size: clamp(26px, 3vw, 34px); font-weight: 600;
  line-height: 1.15; margin: 0;
}
h2.sub-title {
  font-family: var(--font-display); letter-spacing: -.02em;
  font-size: clamp(21px, 2.4vw, 26px); font-weight: 600;
  margin: 42px 0 20px;
}
h2.sub-title:first-child { margin-top: 0; }
.band-muted { background: var(--surface); }

/* ============ Callout ============ */
.callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-soft);
  background: var(--surface);
  border-radius: var(--radius-panel);
  padding: 16px 20px; margin: 0 0 28px;
  font-size: 15px;
}
.callout p { margin: 0; }

/* ============ Badges ============ */
/* Softly tinted fills — each type sets --badge-color and the fill/edge follow.
   The tint percentages differ per theme so badges stay legible in dark mode. */
.badge {
  --badge-color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  line-height: 1; padding: 5px 11px; border-radius: 999px;
  white-space: nowrap; max-width: 100%;
  color: var(--badge-color);
  background: color-mix(in srgb, var(--badge-color) var(--badge-tint), transparent);
  border: 1px solid color-mix(in srgb, var(--badge-color) var(--badge-edge), transparent);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
a.badge:hover {
  text-decoration: none; transform: none; color: var(--badge-color);
  background: color-mix(in srgb, var(--badge-color) var(--badge-tint-hover), transparent);
  border-color: color-mix(in srgb, var(--badge-color) 60%, transparent);
}
.badge-arxiv { --badge-color: var(--arxiv); }
.badge-code { --badge-color: var(--slate); }
.badge-paper { --badge-color: var(--cta); }
html[data-theme=dark] .badge-paper { --badge-color: var(--link); }
.badge-project { --badge-color: var(--green); }
.badge-video { --badge-color: var(--violet); }
.badge-slides { --badge-color: var(--accent); }
.badge-data { --badge-color: var(--teal); }
/* Badge glyphs: emoji rather than line icons. */
.badge-arxiv::before, .badge-paper::before, .badge-project::before,
.badge-code::before, .badge-video::before, .badge-slides::before,
.badge-data::before {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 11px; line-height: 1; flex: none;
}
.badge-arxiv::before { content: "\1F4C4"; }    /* page */
.badge-paper::before { content: "\1F4D6"; }    /* open book */
.badge-project::before { content: "\1F310"; }  /* globe */
.badge-code::before { content: "\1F4BB"; }     /* laptop */
.badge-video::before { content: "\1F3A5"; }    /* movie camera */
.badge-slides::before { content: "\1F4CA"; }   /* bar chart */
.badge-data::before { content: "\1F4BE"; }     /* floppy disk */
.talk-links .badge::before { font-size: 10.5px; }
.badge-award {
  color: #5c3f00; background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent-soft) 80%, #000);
  font-weight: 600;
  /* award text runs long — let it wrap instead of overflowing the row */
  white-space: normal; text-align: left; line-height: 1.35;
}

/* ============ Publications ============ */
.filter-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 14px;
}
.filter-label {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  margin-right: 2px;
}
.filter-chip {
  appearance: none; cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fg) 20%, var(--border));
  background: var(--surface); color: var(--fg);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.filter-chip:hover {
  background: var(--bg); box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--fg) 40%, var(--border));
  transform: translateY(-1px);
}
.filter-chip.active {
  background: var(--accent-soft); color: #5c3f00;
  border-color: color-mix(in srgb, var(--accent-soft) 80%, #000);
  box-shadow: var(--shadow-md);
}
.filter-chip.active:hover { background: var(--accent-soft); color: #5c3f00; }
.pub-legend {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  margin: 0 0 8px;
}
.pub-year-section { margin-top: 34px; }
.pub-year {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 30px);
  font-weight: 600; letter-spacing: -.03em; color: var(--fg);
  margin: 0 0 6px; padding-bottom: 8px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent-soft) 60%, var(--border));
}
.pub-entry {
  display: grid; grid-template-columns: 92px 1fr; gap: 18px;
  padding: 18px 4px; border-bottom: 1px solid var(--border);
}
.pub-entry:last-child { border-bottom: 0; }
.pub-ref {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  padding-top: 3px; line-height: 1.5;
}
.pub-ref b { display: block; color: var(--accent); font-weight: 600; }
.pub-title {
  display: block; font-size: 16.5px; font-weight: 600; line-height: 1.4;
  color: var(--fg); margin-bottom: 4px;
}
.pub-authors { color: var(--muted); font-size: 14.5px; margin-bottom: 2px; }
.pub-authors .me, .me { color: var(--fg); font-weight: 600; }
.pub-venue { color: var(--muted); font-size: 14px; line-height: 1.55; }
.pub-line { display: block; }
.pub-line + .pub-line { margin-top: 4px; }
.pub-badge-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 7px 0 3px;
}
.pub-badge-row:last-child { margin-bottom: 0; }
.pub-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 560px) {
  .pub-entry { grid-template-columns: 1fr; gap: 6px; }
  .pub-ref { display: flex; gap: 8px; padding-top: 0; }
  .pub-ref b { display: inline; }
}

/* ============ People (group) ============ */
.people-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px; margin-bottom: 8px;
}
.person-card {
  border: 1px solid var(--border); border-radius: var(--radius-panel);
  background: var(--bg); padding: 16px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}
.person-card:hover { border-color: color-mix(in srgb, var(--accent-soft) 55%, var(--border)); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.person-card img {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 12px; border: 1px solid var(--border);
}
.person-card h3 {
  font-family: var(--font-body); font-size: 15.5px; font-weight: 600;
  margin: 0 0 4px; line-height: 1.3;
}
.person-card h3 a { color: var(--fg); }
.person-card h3 a:hover { color: var(--link); text-decoration: none; }
.person-card .role {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--muted);
  margin: 0; line-height: 1.5;
}
.person-card .now { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.alumni-cols {
  columns: 3 220px; column-gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.alumni-cols li {
  font-size: 14px; color: var(--muted); padding: 6px 0;
  border-bottom: 1px solid var(--border); break-inside: avoid;
}
.alumni-cols li b { color: var(--fg); font-weight: 500; }

/* ============ Generic row lists (teaching, code) ============ */
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 13px 4px; border-bottom: 1px solid var(--border);
}
.list-rows li:first-child { border-top: 1px solid var(--border); }
.row-chip {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) var(--badge-tint), transparent);
  border: 1px solid color-mix(in srgb, var(--accent-soft) var(--badge-edge), transparent);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap; flex: none;
  min-width: 108px; text-align: center;
}

/* ============ Research project rows ============ */
.project-row {
  display: grid; grid-template-columns: 2fr 3fr;
  gap: clamp(24px, 4vw, 48px); align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--border);
}
.project-row:last-child { border-bottom: 0; }
.project-media img {
  border-radius: var(--radius-panel); border: 1px solid var(--border);
  background: #fff; box-shadow: var(--shadow-sm); width: 100%;
}
.project-body h3 {
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  letter-spacing: -.02em; margin: 0 0 8px;
}
.project-body > p { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.project-pubs { list-style: none; margin: 0; padding: 0; }
/* One compact line per paper: short name, lead author, venue, links. */
.project-pubs li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px;
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  padding: 5px 0 5px 15px; position: relative;
}
.project-pubs li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 5px; height: 5px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent-soft) 75%, transparent);
}
.proj-pub-name { font-weight: 600; color: var(--fg); font-size: 14px; }
.proj-pub-meta { font-size: 12.5px; color: var(--muted); }
.proj-pub-links { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.proj-pub-links .badge { font-size: 11px; padding: 3px 8px; }
.proj-pub-links .badge::before { font-size: 10px; }
@media (max-width: 760px) {
  .project-row { grid-template-columns: 1fr; }
  .project-media { max-width: 380px; }
}

/* ============ Home: talks ============ */
.talk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.talk-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  padding: 6px 6px; background: none;
  transition: background var(--transition-fast);
}
.talk-list li:first-child { border-top: 1px solid var(--border); }
.talk-list li:last-child { border-bottom: 0; }
.talk-list li:hover { background: var(--surface); }
.talk-title { font-weight: 600; flex: 1 1 260px; }
.talk-links {
  display: inline-flex; flex-wrap: wrap; gap: 5px;
  flex: none; align-self: center; min-width: 124px;
}
.talk-links .badge { font-size: 11.5px; padding: 4px 9px; }
.tag-new {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: #7a5200; background: var(--brand-mark);
  border-radius: 4px; padding: 2px 7px; flex: none;
}

/* ============ Home: news timeline ============ */
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li {
  display: grid; grid-template-columns: 84px 1fr; gap: 18px;
  padding: 13px 4px; border-bottom: 1px solid var(--border);
}
.news-list li:first-child { border-top: 1px solid var(--border); }
.news-date {
  font-family: var(--font-mono); font-size: 13px; color: var(--muted);
  padding-top: 2px; white-space: nowrap;
}
.news-body b { color: var(--fg); }
@media (max-width: 560px) {
  .news-list li { grid-template-columns: 1fr; gap: 2px; }
}
details.news-earlier { margin-top: 26px; }
details.news-earlier > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--fg);
  padding: 10px 18px; border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px; transition: background var(--transition-fast), border-color var(--transition-fast);
}
details.news-earlier > summary:hover {
  background: var(--bg);
  border-color: color-mix(in srgb, var(--accent-soft) 55%, var(--border));
}
details.news-earlier > summary::-webkit-details-marker { display: none; }
details.news-earlier > summary::after { content: "+"; font-size: 15px; }
details.news-earlier[open] > summary::after { content: "−"; }
details.news-earlier[open] > summary { margin-bottom: 22px; }

.year-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px; margin-top: 26px;
}
.year-card {
  border: 1px solid var(--border); border-radius: var(--radius-panel);
  background: var(--bg); padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
}
.year-card h3 {
  font-family: var(--font-display); font-size: 26px; font-weight: 600;
  letter-spacing: -.03em; margin: 0 0 10px; color: var(--accent);
}
.year-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.year-card p b { color: var(--fg); font-weight: 600; }

/* ============ Home: bio ============ */
.bio-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.bio-text p { margin: 0 0 18px; color: var(--fg); }
.bio-text p:last-child { margin-bottom: 0; }
.lab-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-panel); padding: 26px;
  box-shadow: var(--shadow-md); text-align: center;
}
.lab-card img { margin-inline: auto; }
.lab-card p { color: #6b6b6b; font-size: 14px; margin: 16px 0 0; }
.lab-card a.btn { margin-top: 16px; }
@media (max-width: 900px) { .bio-grid { grid-template-columns: 1fr; } }

/* ============ Join CTA ============ */
.join-cta { text-align: center; padding-block: var(--space-section); }
.join-cta .section-title { margin-bottom: 14px; }
.join-cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 26px; }
.join-cta .btn-row { justify-content: center; margin-bottom: 0; }

/* ============ Join page cards ============ */
.join-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}
.join-card {
  border: 1px solid var(--border); border-radius: var(--radius-panel);
  background: var(--bg); padding: 24px; box-shadow: var(--shadow-sm);
}
.join-card h3 {
  font-family: var(--font-display); font-size: 19px; font-weight: 600;
  letter-spacing: -.02em; margin: 0 0 10px;
}
.join-card h4 { font-size: 15px; margin: 16px 0 4px; }
.join-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; line-height: 1.6; }
.join-card p:last-child { margin-bottom: 0; }
.join-card .btn { margin-top: 6px; }

/* ============ Footer ============ */
footer {
  border-top: 1px solid var(--border);
  padding-block: 40px; margin-top: var(--space-section-tight);
}
.footer-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 24px; align-items: flex-start;
}
.footer-grid p { margin: 0; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--link); }

/* ============ Reveal animation ============ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0; transform: translateY(14px);
    animation: rise .7s cubic-bezier(.22,.61,.36,1) forwards;
  }
  .reveal-1 { animation-delay: .05s; }
  .reveal-2 { animation-delay: .15s; }
  .reveal-3 { animation-delay: .25s; }
  .reveal-4 { animation-delay: .35s; }
  .reveal-5 { animation-delay: .45s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
