:root {
  --ink: #0b1020;
  --ink-2: #111827;
  --paper: #f8fafc;
  --paper-soft: #eef2f7;
  --muted: #64748b;
  --muted-dark: #cbd5e1;
  --line: #dbe3ee;
  --line-dark: rgba(255,255,255,.12);
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --violet: #a78bfa;
  --green: #34d399;
  --radius: 12px;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
  --max: 1180px;
  --font-body: Optima, Candara, "Segoe UI", sans-serif;
}

/* One palette for every page: visitor selection is applied before first paint. */
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #162033;
  --surface-soft: #202d43;
  --text: #f1f5f9;
  --secondary: #c0cbdc;
  --border: #35445c;
  --accent: #67e8f9;
  --accent-hover: #c4b5fd;
  --accent-soft: #183744;
  --on-accent: #0b1020;
  --warm: #fbbf24;
  --header-bg: rgba(11, 16, 32, .94);
  --hero-glow: rgba(34, 211, 238, .13);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #e8eef5;
  --text: #172033;
  --secondary: #475569;
  --border: #cbd5e1;
  --accent: #036780;
  --accent-hover: #6d28d9;
  --accent-soft: #e0f2f5;
  --on-accent: #ffffff;
  --warm: #92400e;
  --header-bg: rgba(248, 250, 252, .94);
  --hero-glow: rgba(8, 145, 178, .11);
}
.theme-toggle { order: 2; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex-shrink: 0; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { background: var(--surface-soft); }
.theme-icon { flex-shrink: 0; }
.theme-icon-moon, :root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { max-width: 860px; }
.skip-link { position: absolute; top: -100px; left: 1rem; background: var(--accent); color: var(--on-accent); padding: .75rem 1rem; border-radius: .5rem; z-index: 10; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 78px; }
.brand { margin-right: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: .9rem; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, #22d3ee, #a78bfa); color: #0b1020; font-weight: 800; letter-spacing: -.04em; }
/* Temporarily suppress the monogram while retaining it for future use. */
.brand-mark { display: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; }
.brand-text small { color: var(--secondary); font-size: .76rem; margin-top: .25rem; }
.site-nav { order: 1; display: flex; align-items: center; gap: .3rem; }
.site-nav a { color: var(--secondary); padding: .65rem .85rem; border-radius: 999px; font-size: .94rem; font-weight: 600; }
.site-nav a.active, .site-nav a:hover { background: var(--surface-soft); color: var(--text); }
.nav-toggle { order: 3; display: none; background: transparent; border: 0; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px; border-radius: 999px; }

.hero { position: relative; overflow: hidden; padding: 76px 0 68px; border-bottom: 1px solid var(--border); }
.hero::before { content: ""; position: absolute; inset: -20% -20% auto auto; width: 560px; height: 560px; background: radial-gradient(circle, var(--hero-glow), transparent 68%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, .94fr); gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.academic-hero { grid-template-columns: minmax(0, 740px) minmax(0, 1fr); gap: 3rem; }
.hero-portrait { width: min(100%, 288px); margin: 0; justify-self: center; }
.hero-portrait img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center; border: 1px solid var(--border); border-radius: var(--radius); }
.hero-research-image { position: relative; margin: 0; width: 100%; height: 480px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hero-research-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero h1, .page-hero h1 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2.8rem, 5.5vw, 4.7rem); line-height: 1; letter-spacing: -.045em; margin: .3rem 0 1.4rem; font-weight: 600; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.25rem); color: var(--secondary); max-width: 780px; }
.lead strong { color: var(--text); font-weight: 650; }
.hero-intro { max-width: 740px; color: var(--secondary); font-size: 1.125rem; }
.hero-intro p { margin: 0 0 .9rem; }
.hero-intro a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(118,214,209,.45); text-underline-offset: .18em; }
.hero-intro a:hover { color: var(--accent); }
.hero-affiliation { max-width: 650px; padding-top: 1rem; border-top: 1px solid var(--border); color: #9eabba; font-size: .82rem; letter-spacing: .035em; }
.hero-link { margin-left: .3rem; }
.profile-links { margin-top: 1.35rem; }
.hero-section-links { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: 1.1rem; }
.hero-section-links a { color: var(--secondary); font-size: .8rem; font-weight: 800; letter-spacing: .025em; }
.hero-section-links a:hover { color: var(--accent); }
.academic-links { display: flex; flex-wrap: wrap; gap: .65rem 1.35rem; margin-top: 1.35rem; }
.academic-links a { color: var(--accent); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(34,211,238,.42); text-underline-offset: .2em; }
.academic-links a:hover { color: var(--text); }
.embedding-model { position: relative; min-height: 520px; border: 1px solid rgba(255,255,255,.14); background: #131e30; overflow: hidden; box-shadow: 0 34px 90px rgba(0,0,0,.28); }
.model-label { position: absolute; z-index: 4; top: 24px; left: 28px; display: grid; gap: .15rem; }
.model-label span { color: var(--accent); font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.model-label strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.environment-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; opacity: .65; }
.environment-grid span { position: relative; border-right: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.environment-grid span::after { content: ""; position: absolute; width: 6px; height: 6px; top: calc(50% - 3px); left: calc(50% - 3px); border: 1px solid rgba(118,214,209,.65); transform: rotate(45deg); }
.embedding-boundary { position: absolute; z-index: 2; inset: 112px 76px 82px; display: grid; place-items: center; border: 1px dashed rgba(237,155,104,.72); background: rgba(16,24,39,.58); }
.boundary-label { position: absolute; top: -12px; left: 18px; padding: 2px 10px; background: #131e30; color: var(--warm); font-size: .69rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.active-region { position: relative; z-index: 3; display: grid; place-items: center; align-content: center; width: 210px; aspect-ratio: 1; border-radius: 50%; background: #f7f5ef; color: var(--text); text-align: center; box-shadow: 0 0 0 18px rgba(169,158,232,.08), 0 18px 60px rgba(0,0,0,.35); }
.active-region strong { position: relative; z-index: 2; font-family: "Source Serif 4", Georgia, serif; font-size: 1.35rem; line-height: 1.05; }
.active-region small { position: relative; z-index: 2; max-width: 120px; margin-top: .55rem; color: var(--secondary); font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; }
.active-dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--warm); }
.orbital { position: absolute; width: 170px; height: 70px; border: 1px solid rgba(16,24,39,.28); border-radius: 50%; }
.orbital-one { transform: rotate(28deg); }
.orbital-two { transform: rotate(-28deg); }
.model-caption { position: absolute; z-index: 4; inset: auto 28px 22px; display: flex; justify-content: space-between; margin: 0; color: #aeb9c6; font-size: .72rem; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .18em; font-weight: 800; font-size: .7rem; margin: 0 0 .8rem; }
.eyebrow.dark { color: var(--accent); }
.hero-art { position: relative; }
.hero-art img { border-radius: 42px; box-shadow: 0 30px 120px rgba(34,211,238,.16); border: 1px solid var(--border); }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.7rem; }
.button-row.compact { margin-top: 1rem; gap: .55rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .72rem 1.05rem; border-radius: 5px; background: var(--bg); color: var(--text); font-size: .82rem; font-weight: 800; letter-spacing: .025em; border: 1px solid var(--border); box-shadow: none; }
.button:hover { color: var(--text); transform: translateY(-1px); }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.ghost { color: var(--text); background: var(--surface-soft); border-color: var(--border); box-shadow: none; }
.button.ghost.light { color: var(--text); border-color: rgba(255,255,255,.2); }
.button.small { min-height: 36px; padding: .5rem .75rem; font-size: .84rem; }
.text-link { color: var(--accent); font-weight: 800; }

.lead a, .bio-card a, .timeline a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(34,211,238,.45);
  text-underline-offset: .18em;
  font-weight: 700;
}
.section-light .lead a, .section-light .bio-card a, .section-light .timeline a {
  color: var(--accent);
  text-decoration-color: rgba(3,105,161,.35);
}
.bio-card a:hover, .timeline a:hover, .lead a:hover { color: var(--accent-hover); }


.section { padding: 76px 0; background: var(--bg); }
.section-light { background: var(--bg); color: var(--text); }
.split-heading { display: grid; grid-template-columns: minmax(0, .9fr) minmax(260px, .62fr); gap: 2rem; align-items: end; margin-bottom: 2rem; }
.split-heading h2, .section h2, .page-hero h1 { margin-top: 0; }
.split-heading h2, .research-overview h2, .talk-section > h2, .explainer-copy h2, .method-grid h2 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2rem, 3.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 0; font-weight: 600; }
.split-heading p { color: var(--secondary); margin-bottom: .2rem; }
.split-heading.inverted p { color: var(--secondary); }
.card-grid { display: grid; gap: 1rem; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.theme-card, .publication-card, .bio-card, .contact-card, .talk-card {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .055);
}
.theme-card { border-radius: 22px; box-shadow: 0 16px 40px rgba(15, 23, 42, .08); }
.theme-card h3 { margin: .25rem 0 .55rem; font-family: var(--font-body); font-size: 1.3rem; line-height: 1.25; }
.theme-card p, .publication-card p, .talk-card p { color: var(--secondary); }
.card-kicker, .pub-year { display: inline-grid; place-items: center; min-width: 48px; height: 30px; padding: 0 .7rem; background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-weight: 900; font-size: .78rem; }
.publication-strip { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; }
.publication-card { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
.publication-card.featured { background: var(--surface); }
.publication-card h2, .publication-card h3 { margin: .75rem 0 .55rem; font-family: "Source Serif 4", Georgia, serif; line-height: 1.15; letter-spacing: -.02em; }
.publication-card p { color: var(--secondary); }
.section-light .publication-card { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: 0 14px 36px rgba(15, 23, 42, .08); }
.section-light .publication-card p { color: var(--secondary); }
.publication-card .tag-row span { color: var(--accent); }
.section-light .publication-card .tag-row span { color: var(--accent); }
.section-light .publication-card .button.ghost { color: var(--text); background: transparent; border-color: var(--border); }
.tag-row { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: 1rem; }
.tag-row span { font-size: .69rem; font-weight: 800; border-radius: 3px; padding: .3rem .5rem; background: var(--accent-soft); color: var(--accent); letter-spacing: .025em; }
.publication-status { color: var(--warm); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.news-layout { display: grid; grid-template-columns: minmax(240px,.6fr) minmax(0,1fr); gap: 3rem; align-items: start; }
.timeline { border-left: 2px solid var(--border); padding-left: 1.2rem; }
.timeline article { position: relative; padding: 0 0 1.35rem; }
.timeline article::before { content: ""; position: absolute; left: calc(-1.2rem - 7px); top: .45rem; width: 12px; height: 12px; border-radius: 999px; background: var(--warm); box-shadow: 0 0 0 4px var(--surface); }
.timeline time { display: block; font-weight: 900; color: var(--warm); margin-bottom: .25rem; }
.timeline p { margin: 0; color: var(--secondary); }
.full-news article { padding-bottom: 1.7rem; }

.page-hero { position: relative; padding: 72px 0 56px; background: radial-gradient(circle at 78% 20%, var(--hero-glow), transparent 44%), var(--bg); border-bottom: 1px solid var(--border); overflow: hidden; }
.page-hero::after { display: none; }
.page-hero > .container { position: relative; z-index: 1; }
.research-overview { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: start; }
.stat-panel { display: grid; gap: .9rem; }
.stat-panel div { border-radius: var(--radius); padding: 1.15rem; background: var(--bg); color: var(--text); box-shadow: var(--shadow); }
.stat-panel strong { display: block; font-size: 1.35rem; color: var(--accent); }
.stat-panel span { color: var(--secondary); }
.research-list { display: grid; gap: 1.2rem; margin-top: 1.6rem; }
.research-item { display: grid; grid-template-columns: 90px 1fr; gap: 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 1.4rem; }
.research-item h2 { font-family: var(--font-body); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.15; margin: .25rem 0 1rem; }
.research-item p { color: var(--secondary); margin-top: 0; }
.research-number { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 20px; background: linear-gradient(135deg, #f59e0b, #a78bfa); color: #0b1020; font-weight: 900; }
.research-kicker { margin: 0 0 .25rem; color: var(--warm) !important; font-size: .69rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.filter-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 4px; padding: .62rem .85rem; font-size: .75rem; font-weight: 800; letter-spacing: .025em; cursor: pointer; }
.filter.active, .filter:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.publication-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.section-light .publication-list { display: block; }
.section-light .publication-list .publication-card { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1.5rem; padding: 1.8rem 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; box-shadow: none; }
.publication-list .publication-card > * { grid-column: 2; }
.publication-list .publication-card .pub-year { grid-column: 1; grid-row: 1 / span 5; justify-self: start; align-self: start; }
.publication-list .publication-card h2 { margin: 0 0 .55rem; font-family: var(--font-body); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.3; }
.publication-list .publication-card p { margin: 0 0 .5rem; }
.publication-list .publication-card .tag-row { margin-top: .4rem; }
.publication-list .publication-card .button-row { margin-top: .8rem; }
.section-light .publication-list .publication-card:first-child { padding-top: .5rem; }
.section-light .publication-list .publication-card:last-child { border-bottom: 0; }
.authors { font-weight: 700; }
.publication-title-link:hover, .publication-title-link:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
.publication-reference-link, .publication-doi a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
.section-light .publication-reference-link, .section-light .publication-doi a { color: var(--accent); }
.publication-doi { display: block; margin-top: .35rem; overflow-wrap: anywhere; }
.venue { margin-top: -.25rem; }
.talks-grid { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.talk-sidebar { position: sticky; top: 100px; border-radius: var(--radius); background: var(--surface); padding: 1.25rem; border: 1px solid var(--border); }
.talk-sidebar a { display: block; padding: .55rem 0; color: var(--secondary); font-weight: 800; }
.talk-section { margin-bottom: 3rem; }
.talk-list { display: grid; gap: .85rem; }
.talk-card h2 { margin: .2rem 0 .35rem; font-size: 1.1rem; line-height: 1.25; }
.talk-card time { font-weight: 900; color: var(--accent); }
.talk-section > h2 { margin-bottom: 1.25rem; }
.talk-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.talk-table-wrap:focus-visible { outline: 2px solid #0369a1; outline-offset: 4px; }
.talks-table { width: 100%; min-width: 800px; border-collapse: collapse; table-layout: fixed; font-family: var(--font-body); }
.talks-table .talk-date-col { width: 11.5rem; }
.talks-table .talk-title-col { width: 45%; }
.talks-table th, .talks-table td { padding: 1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); overflow-wrap: break-word; }
.talks-table th { background: var(--surface-soft); color: var(--secondary); font-size: .85rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.talks-table tbody tr:last-child td { border-bottom: 0; }
.talks-table .talk-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.talks-table a { color: var(--accent); text-decoration: underline; text-underline-offset: .16em; }
.talks-table a:hover { color: var(--accent-hover); }
.talk-resources { margin-top: .5rem; font-size: 1rem; }
.talk-note { margin: .5rem 0 0; color: var(--secondary); font-size: 1rem; font-style: italic; }
.about-grid { display: grid; grid-template-columns: 1fr 360px; gap: 1rem; align-items: start; }
.bio-card.big { padding: 1.7rem; }
.bio-card h2, .contact-card h2 { font-family: "Source Serif 4", Georgia, serif; font-size: 1.8rem; margin: .2rem 0 .7rem; }
.clean-list { padding: 0; margin: .5rem 0 1.5rem; list-style: none; display: grid; gap: 1rem; }
.clean-list li { display: grid; gap: .18rem; }
.clean-list span { color: var(--secondary); }
.contact-grid { display: grid; grid-template-columns: 1fr 420px; gap: 1rem; align-items: stretch; }
.contact-card { padding: 1.7rem; min-width: 0; overflow-wrap: anywhere; }
.accent-card { background: linear-gradient(145deg, var(--ink), #1e1b4b); color: var(--text); border-color: rgba(255,255,255,.14); }
.button-stack { display: grid; gap: .75rem; max-width: 280px; }
.profile-list { display: grid; gap: .8rem; }
.profile-list a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.profile-list a:hover { color: var(--accent-hover); }
.email-line span { font-weight: 900; }
.muted { color: var(--secondary); }
.dark-link { color: var(--accent); }

.method-section { background: var(--bg); }
.method-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.method-grid .lead { margin: 1.3rem 0 1.6rem; }
.method-stack { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.method-stack li { display: grid; grid-template-columns: 1fr; gap: 1rem; padding: 1.15rem 0; border-bottom: 1px solid var(--border); }
.method-stack > li > span { color: var(--accent); font-size: .72rem; font-weight: 800; }
.method-stack div { display: grid; gap: .28rem; }
.method-stack strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.method-stack small { color: var(--secondary); font-size: .88rem; }

.research-hero-grid { position: relative; z-index: 1; display: grid; gap: .5rem; }
.research-hero-grid .lead { max-width: 960px; margin: 0; }
.research-content { min-width: 0; }
.research-content .tag-row span { color: var(--accent); }
.research-content h3 { font-family: var(--font-body); font-size: 1.15rem; margin: 0 0 .6rem; }
.research-area-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.research-embedding-note { margin: 1.4rem 0; padding-left: 1.2rem; border-left: 2px solid var(--accent); max-width: 820px; }
.research-embedding-note p { margin-bottom: 0; }
.research-figure { margin: 0; }
#heterogeneous-catalysis .research-area-body { grid-template-columns: 1fr; }
.research-figure-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.research-figure-pair .research-figure { width: 100%; }
.research-figure img { width: 100%; height: auto; background: white; border-radius: 6px; }
.research-figure figcaption { margin-top: .65rem; color: var(--secondary); font-size: .95rem; line-height: 1.45; }
.research-figure figcaption a, .research-paper-reference a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
.research-related { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.research-related ul { margin: 0; padding-left: 1.25rem; }
.research-related li + li { margin-top: 1rem; }
.research-paper-title { font-weight: 700; text-decoration: underline; text-decoration-color: rgba(118,214,209,.45); text-underline-offset: .15em; }
.research-paper-reference { display: block; margin-top: .25rem; color: var(--secondary); font-size: 1rem; overflow-wrap: anywhere; }
.research-all-publications { margin: 1.75rem 0 0; }
.research-methods-summary { color: var(--secondary); }
.embedding-explainer { background: var(--bg); }
.explainer-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .8fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.explainer-copy h2 { color: var(--text); margin-top: 0; }
.explainer-copy p:not(.eyebrow) { color: var(--secondary); font-size: 1.02rem; }
.embedding-steps { border-top: 1px solid var(--border); }
.embedding-steps article { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--border); }
.embedding-steps article > span { color: var(--accent); font-weight: 900; font-size: .73rem; }
.embedding-steps h3 { margin: 0 0 .35rem; font-family: "Source Serif 4", Georgia, serif; font-size: 1.25rem; }
.embedding-steps p { margin: 0; color: var(--secondary); }
.research-programs { background: var(--bg); }
.featured-research { background: var(--surface); }
.methods-band { padding: 72px 0; }
.section-title { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 1.5rem; }
.methods-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.methods-grid div { display: grid; gap: .5rem; min-height: 150px; padding: 1.25rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.methods-grid strong { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; line-height: 1.15; }
.methods-grid span { color: var(--secondary); font-size: .84rem; }
.compact-list { margin-bottom: 0; }
.email-line a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: .2em; }

.site-footer { border-top: 1px solid var(--border); padding: 42px 0 28px; background: var(--bg); color: var(--secondary); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; align-items: start; }
.footer-grid p { margin: .35rem 0 0; max-width: 520px; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { font-weight: 800; color: var(--text); }
.footer-bottom { margin-top: 2rem; font-size: .85rem; color: var(--secondary); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; inset: 78px 14px auto 14px; padding: .8rem; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }

  .research-area-body { grid-template-columns: 1fr; }
  .research-figure { width: min(100%, 460px); }
  .hero-research-image { max-width: 740px; height: 360px; }
  .hero-grid, .split-heading, .research-overview, .talks-grid, .about-grid, .contact-grid, .news-layout, .method-grid, .research-hero-grid, .explainer-grid { grid-template-columns: 1fr; }
  .card-grid.four, .publication-strip, .publication-list, .methods-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .talk-sidebar { position: static; }
  .embedding-model { min-height: 460px; }
  .research-hero-grid { gap: 2rem; }
  .research-hero-grid .lead { padding-left: 0; border-left: 0; }
}
@media (max-width: 720px) {
  .research-figure-pair { grid-template-columns: 1fr; }
  .theme-toggle-label { display: none; }
  .theme-toggle { width: 44px; padding: .6rem; }
  .section-light .publication-list .publication-card { display: block; padding: 1.5rem 0; }
  .publication-list .publication-card .pub-year { margin-bottom: .75rem; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand-text small { display: none; }
  .hero { padding-top: 56px; }
  .embedding-model { min-height: 410px; }
  .embedding-boundary { inset: 100px 38px 72px; }
  .active-region { width: 180px; }
  .card-grid.four, .publication-strip, .publication-list, .methods-grid { grid-template-columns: 1fr; }
  .research-item { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
