/* Yao Amber Li — personal site, 2026 redesign */
:root {
  --ink: #1d2430;
  --muted: #5d6878;
  --line: #e2e6ee;
  --bg: #f6f7fa;
  --card: #ffffff;
  --accent: #5b2c83;          /* deep purple — Western Ontario */
  --accent-soft: #f0eaf6;
  --accent-2: #003366;        /* HKUST deep navy blue */
  --accent-2-soft: #e8eef5;
  --gold: #a9771a;
  --shadow: 0 8px 30px rgba(29, 36, 48, 0.06);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", "Noto Serif SC", serif; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2rem; }
li { margin-bottom: 0.35em; }
strong { font-weight: 650; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0 8px; scroll-margin-top: 80px; }
.section--tight { padding: 44px 0 8px; scroll-margin-top: 80px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head .kicker { color: var(--muted); font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 760px; }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
/* Chinese name — KaiTi for a scholarly, calligraphic feel */
.zh {
  font-size: 0.8em;
  color: var(--accent);
  font-family: "KaiTi", "STKaiti", "楷体", "TW-Kai", "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-left: 0.3em;
  white-space: nowrap;
  vertical-align: baseline;
  -webkit-text-stroke: 0.35px currentColor;
}
/* Chinese page: Chinese name leads, Latin name in the muted serif */
.zh-name {
  font-family: "KaiTi", "STKaiti", "楷体", "TW-Kai", "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  -webkit-text-stroke: 0.8px currentColor;
}
.hero h1 .zh { font-size: 0.72em; color: var(--muted); letter-spacing: 0.02em; }
/* Chinese page hero: Latin name is a quiet, light serif — not bold sans */
body[data-page="chinese"] .hero h1 .zh {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0;
  margin-left: 0.28em;
}
body[data-page="chinese"] h2,
body[data-page="chinese"] h3 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif;
  font-weight: 700;
}
body[data-page="chinese"] .lead { font-family: "Noto Serif SC", "Songti SC", "SimSun", "STSong", serif; }
body[data-page="chinese"] .card,
body[data-page="chinese"] .card p,
body[data-page="chinese"] .card li,
body[data-page="chinese"] .compact-list li,
body[data-page="chinese"] .clean-list li {
  font-family: Georgia, "Noto Serif SC", "Songti SC", "SimSun", serif;
}
body[data-page="chinese"] .eyebrow { font-family: Georgia, serif; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-name { font-family: Georgia, serif; font-size: 1.32rem; font-weight: 700; display: flex; align-items: baseline; gap: 0.12em; }
.brand-name .zh { color: var(--accent); font-size: 0.85em; font-weight: 700; }
.brand-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.site-nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.site-nav a.cv { border: 1px solid var(--line); color: var(--ink); margin-left: 6px; }
body[data-page="home"] .site-nav a[href="index.html"],
body[data-page="research"] .site-nav a[href="research.html"],
body[data-page="teaching"] .site-nav a[href="Teaching.html"],
body[data-page="mentors"] .site-nav a[href="index2.html"],
body[data-page="links"] .site-nav a[href="Links.html"],
body[data-page="activities"] .site-nav a[href="activities.html"],
body[data-page="chinese"] .site-nav a[href="Chinese.html"] { background: var(--accent-soft); color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; cursor: pointer; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: white; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* Hero */
.hero { position: relative; background: linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.93) 42%, rgba(255,255,255,0.42) 100%), url('../img/hkust-campus.jpg') center center / cover no-repeat; border-bottom: 1px solid var(--line); padding: 54px 0 46px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(220px, 0.75fr); gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 6px; }
/* Hero Chinese name — larger, warmer, with a subtle seal-red accent */
.hero h1 .zh {
  font-size: 0.82em;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 0.32em;
  -webkit-text-stroke: 0.8px currentColor;
}
.title-line { font-size: 1.2rem; color: var(--ink); font-weight: 600; margin-bottom: 14px; }

/* Honor badges — ABFER Fellow / IAS Program Leader */
.honor-badges { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.honor-badges li { margin: 0; }
.honor-badge {
  display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 100%);
  border: 1px solid #ded2ea; border-left: 3px solid var(--accent);
  border-radius: 9px; padding: 9px 15px 10px; max-width: 340px;
}
.honor-badge__label {
  font-family: Georgia, serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.honor-badge__org { font-size: 0.86rem; color: var(--ink); line-height: 1.45; }
/* Honor cards: title case, identical size/weight for all titles (homepage + research) */
body[data-page="home"] .honor-badge__label,
body[data-page="research"] .honor-badge__label { text-transform: none; letter-spacing: 0.02em; }
#leadership { padding-top: 10px; }
.honor-badges--research .honor-badge { max-width: 420px; background: var(--card); border-color: var(--line); border-left-color: var(--accent); }
.honor-badges--research .honor-badge__label { color: var(--accent); }
.honor-badges--research .honor-badge__org { color: var(--ink); }

.affil { color: var(--muted); font-size: 0.96rem; margin-bottom: 18px; }
.bio { max-width: 720px; }
.portrait { margin: 0; background: rgba(255,255,255,0.72); padding: 10px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.85); backdrop-filter: blur(4px); }
.portrait img { width: 100%; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.portrait figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; text-align: center; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #472167; color: #fff; }
.contact-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9rem; color: var(--muted); }
.contact-list li { margin: 0; }

/* Activity banner and event cards */
.activity-banner { color: #fff; padding: 94px 0 68px; background: linear-gradient(90deg, rgba(18,27,44,0.86) 0%, rgba(18,27,44,0.58) 58%, rgba(18,27,44,0.18) 100%), url('../img/activities/hkimr-ecb-bofit-panel.jpg') center 49% / cover no-repeat; border-bottom: 1px solid rgba(255,255,255,0.18); }
.activity-banner h1, .activity-banner h2 { color: #fff; }
.activity-banner .lead { color: rgba(255,255,255,0.9); }
.activity-banner .eyebrow { color: #d9c7ea; }
.activity-banner--small { padding: 40px 0; background-position: center 38%; }
.activity-banner--small h2 { margin-bottom: 16px; }
.btn-light { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-light:hover { background: #fff; color: var(--accent); border-color: #fff; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 11px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.event-photo { width: 100%; height: 210px; object-fit: cover; border-radius: 10px 10px 0 0; border-bottom: 1px solid var(--line); }
.event-body { padding: 20px 22px 22px; }
.event-meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 8px; }

/* Cards / grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.stat { font-family: Georgia, serif; font-size: 2rem; color: var(--accent); line-height: 1.1; margin-bottom: 4px; }
.stat--link { display: inline-block; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .15s ease; }
.stat--link:hover { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.stat-label { font-size: 0.85rem; color: var(--muted); }

/* Impact block — highlighted statistics */
.card--impact { background: linear-gradient(160deg, #fbf8fd 0%, var(--card) 46%); border-color: #ded2ea; }
.impact-grid { gap: 14px; }
.impact {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px 14px; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.impact:hover { border-color: #d5c4e6; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(91, 44, 131, 0.09); }
.impact .stat { font-size: 2.35rem; margin-bottom: 6px; }
.impact .stat-label { line-height: 1.5; }
.i10-highlight { font-weight: 700; color: var(--accent); }
.stat-nobreak { white-space: nowrap; }

/* Research page impact — one white strip, thin dividers, collapsed methodology */
.impact-strip { display: flex; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.impact-strip__item { flex: 1 1 150px; padding: 20px 18px; border-left: 1px solid var(--line); }
.impact-strip__item:first-child { border-left: 0; }
.impact-strip .stat { display: inline-block; font-family: Georgia, serif; font-size: 2rem; line-height: 1.1; color: var(--accent); margin-bottom: 7px; }
.impact-strip__label { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.impact-note { margin: 12px 0 0; }
.impact-details { margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px 16px; }
.impact-details summary { cursor: pointer; color: var(--accent); font-size: 0.92rem; font-weight: 700; }
.impact-details p { margin: 10px 0 0; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.impact-details p strong { color: var(--accent); }
@media (max-width: 860px) {
  .impact-strip__item { border-left: 0; border-bottom: 1px solid var(--line); }
  .impact-strip__item:last-child { border-bottom: 0; }
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.tags li { margin: 0; background: var(--accent-2-soft); color: var(--accent-2); border-radius: 999px; padding: 5px 13px; font-size: 0.86rem; font-weight: 600; }
.tags.alt li { background: var(--accent-soft); color: var(--accent); }
/* Research fields / interests — plain text, not clickable chips */
.field-list { color: var(--ink); margin: 0; }
#fields .card h3 { font-family: Georgia, serif; font-size: 1.05rem; margin: 0 0 10px; }
#fields .card h3 + .field-list { margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { margin: 0; }
.chips a { display: inline-block; border: 1px solid var(--line); background: var(--card); border-radius: 7px; padding: 5px 11px; font-size: 0.85rem; }
.chips a:hover { border-color: var(--accent); text-decoration: none; }
#profiles .chips li:nth-child(-n+2) a { font-weight: 700; }

/* AI agenda card */
.ai-card { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 30px; align-items: center; background: linear-gradient(135deg, #faf7fd 0%, var(--card) 55%); border-color: #ded2ea; }
.ai-card-body > p { font-size: 1.02rem; margin-top: 4px; }
.ai-card-body .compact-list { margin: 16px 0 20px; }
.ai-card-body .compact-list li { padding-left: 4px; }
.ai-card-side { display: flex; flex-direction: column; gap: 16px; }
.ai-stat { background: var(--card); border: 1px solid #e6dcef; border-radius: 10px; padding: 16px 18px; text-align: center; }
.ai-stat .stat { display: block; font-size: 1.9rem; color: var(--accent); margin-bottom: 4px; }
.ai-stat .stat-label { font-size: 0.8rem; color: var(--muted); line-height: 1.45; display: block; }

/* Research themes */
.theme-grid { align-items: stretch; }
.theme-card { display: flex; flex-direction: column; position: relative; padding-top: 30px; border-top: 3px solid var(--accent); }
.theme-num {
  position: absolute; top: 16px; right: 20px;
  font-family: Georgia, serif; font-size: 1.5rem; font-weight: 700;
  color: var(--accent); opacity: 0.22; line-height: 1;
}
.theme-card h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 12px; padding-right: 28px; }
.theme-card > .small { color: var(--muted); }
.theme-highlight {
  background: var(--accent-2-soft); border-left: 3px solid var(--accent-2);
  border-radius: 0 8px 8px 0; padding: 10px 13px; margin: 14px 0 0;
  font-size: 0.86rem; color: var(--ink);
}
.theme-pubs { margin: 16px 0 0; font-size: 0.86rem; flex: 1; }
.theme-pubs li { padding: 9px 0; }
.theme-pubs a { font-weight: 600; line-height: 1.4; display: block; }
.theme-pubs .meta { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.theme-more { margin-top: 18px; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.theme-more:hover { color: #472167; }

/* Research at a glance — full-width single column */
.research-block { margin-bottom: 30px; }
.research-block h3 { font-family: Georgia, serif; font-size: 1.25rem; margin-bottom: 14px; }
.research-block-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.research-block-head h3 { margin-bottom: 0; }
.impact-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.impact-grid--home .stat { font-size: 2rem; }
.impact-grid--home .stat-label { font-size: 0.82rem; }

/* Research streams — full-width horizontal rows */
.stream-list { border-top: 1px solid var(--line); }
.stream-row {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px; padding: 24px 0; border-bottom: 1px solid var(--line);
}
.stream-intro { position: relative; padding-right: 12px; }
.stream-intro .theme-num { top: 0; right: 0; }
.stream-intro h3 { font-family: Georgia, serif; font-size: 1.18rem; line-height: 1.35; margin: 0 34px 10px 0; }
.stream-intro > .small { color: var(--muted); }
.stream-pubs { margin: 0; font-size: 0.92rem; }
.stream-pubs li { padding: 0 0 14px; }
.stream-pubs li:last-child { padding-bottom: 0; }
.stream-pubs a { font-weight: 600; line-height: 1.4; display: block; }
.stream-pubs .meta { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 3px; }

/* Conference links in Academic Leadership — underline so they read as clickable */
#background .card a { text-decoration: underline; text-underline-offset: 2px; }

/* AI agenda detail (Research page) */
.ai-detail-grid { align-items: stretch; }
.ai-detail { border-top: 3px solid var(--accent); }
.ai-detail h3 { margin: 12px 0 14px; font-size: 1.15rem; }
.ai-detail p { color: var(--muted); }
.ai-detail--highlight { background: linear-gradient(155deg, #faf7fd 0%, var(--card) 55%); border-color: #ded2ea; border-top-color: var(--accent); }

/* Publication list */
.pub { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pub:last-child { border-bottom: 0; }
.pub-num { font-family: Georgia, serif; color: var(--muted); font-size: 0.95rem; padding-top: 3px; }
.pub h3 { margin: 3px 0 5px; font-family: inherit; font-size: 1.04rem; font-weight: 650; }
.pub .authors { margin: 0; color: var(--muted); font-size: 0.94rem; }
.pub .journal { margin: 0 0 6px; color: var(--ink); font-size: 0.94rem; font-style: italic; }
.pub-links { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.85rem; margin: 4px 0 0; }
.pub-links a { white-space: nowrap; }
.pub details { margin-top: 8px; }
.pub summary { cursor: pointer; color: var(--accent); font-size: 0.85rem; font-weight: 600; }
.pub details p { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.pub details ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.92rem; }
.pub details li { padding: 2px 0; }
.note { background: var(--accent-2-soft); border-left: 3px solid var(--accent-2); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 0.9rem; color: var(--ink); margin-bottom: 22px; }

/* Lists */
.clean-list { list-style: none; padding: 0; }
.clean-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.clean-list li:last-child { border-bottom: 0; }
.clean-list .meta { display: block; color: var(--muted); font-size: 0.87rem; }
.compact-list { font-size: 0.92rem; padding-left: 1.1rem; }
.compact-list li { margin-bottom: 6px; }
.subhead { font-family: Georgia, serif; font-size: 1.22rem; margin: 28px 0 10px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.94rem; background: var(--card); }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); background: #fafbfc; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; height: 170px; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; font-size: 0.82rem; color: var(--muted); }

/* People cards */
.person { display: flex; gap: 18px; align-items: flex-start; }
.person img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); flex: none; }
.person h3 { margin-bottom: 3px; }
.person .role { font-size: 0.88rem; color: var(--accent-2); font-weight: 600; margin-bottom: 8px; }

/* Research statement page */
.statement-card { max-width: 900px; }
.statement-card p { font-size: 1.02rem; line-height: 1.72; }
.statement-streams { max-width: 900px; display: flex; flex-direction: column; gap: 26px; }
.statement-stream { border-left: 3px solid var(--accent); padding-left: 22px; }
.statement-stream h3 { font-family: Georgia, serif; font-size: 1.22rem; margin-bottom: 12px; color: var(--ink); }
.statement-stream p { line-height: 1.72; }
.journal-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.journal-table th, .journal-table td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.journal-table th:first-child, .journal-table td:first-child { text-align: left; }
.journal-table thead th { background: var(--accent-soft); color: var(--accent); font-size: 0.84rem; letter-spacing: 0.03em; white-space: nowrap; }
.journal-table tbody tr:last-child td { border-bottom: none; }
.journal-table tbody tr:hover { background: #faf8fc; }

/* Footer */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: #fff; padding: 32px 0; color: var(--muted); font-size: 0.88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--accent-2); }

@media (max-width: 860px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .ai-card { grid-template-columns: 1fr; }
  .ai-card-side { flex-direction: row; }
  .ai-stat { flex: 1; }
  .hero { padding: 38px 0 30px; }
  .portrait { max-width: 280px; }
  .section { padding-top: 46px; }
  /* Research at a glance: impact 2 columns, streams stack title → intro → papers */
  .impact-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stream-row { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 58px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 18px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { flex: 1 1 40%; text-align: center; }
  .pub { grid-template-columns: 32px minmax(0,1fr); gap: 8px; }
  .person img { width: 76px; height: 76px; }
}
