/* Editorial academic portfolio with generous, readable type. */
:root {
  color-scheme: light;
  --bg: #faf9f6;
  --surface: #fff;
  --ink: #20242b;
  --ink-soft: #2e343d;
  --muted: #454d58;
  --line: #dce0e6;
  --accent: #244c88;
  --accent-hover: #163766;
  --person-link: #285fba;
  --tint: #edf2f9;
  --nav-bg: rgba(250, 249, 246, .95);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading-font: 'Newsreader', Georgia, serif;
  --ui-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1240px;
}
:root[data-accent="burgundy"] { --accent: #852d47; --accent-hover: #611d32; --person-link: #ab3657; --tint: #f7edf0; }
:root[data-accent="plum"] { --accent: #704385; --accent-hover: #522e63; --person-link: #9250aa; --tint: #f3edf7; }
:root[data-accent="charcoal"] { --accent: #41464e; --accent-hover: #1c222a; --person-link: #586b87; --tint: #eff0f2; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #191b20;
  --surface: #22252c;
  --ink: #f1f2f5;
  --ink-soft: #e1e5ed;
  --muted: #c7ced9;
  --line: #3b414c;
  --accent: #a9c7fa;
  --accent-hover: #d2e1ff;
  --person-link: #bad4ff;
  --tint: #25334b;
  --nav-bg: rgba(25, 27, 32, .95);
}
:root[data-theme="dark"][data-accent="burgundy"] { --accent: #f0adbf; --accent-hover: #ffcfdb; --person-link: #ffc0d1; --tint: #432c37; }
:root[data-theme="dark"][data-accent="plum"] { --accent: #d4b8ef; --accent-hover: #e9d7fb; --person-link: #e3c5ff; --tint: #382d46; }
:root[data-theme="dark"][data-accent="charcoal"] { --accent: #d5d9e1; --accent-hover: #fff; --person-link: #c9d8ec; --tint: #30343c; }
:root[data-font="inter"] { --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
:root[data-font="source"] { --font: 'Source Sans 3', 'Segoe UI', sans-serif; }
:root[data-font="georgia"] { --font: Georgia, 'Times New Roman', serif; --heading-font: Georgia, 'Times New Roman', serif; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 18px; scroll-behavior: smooth; scroll-padding-top: 106px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; line-height: 1.35; }
h1 { font-family: var(--heading-font); font-size: 3.05rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
h2 { font-family: var(--heading-font); font-size: 1.95rem; font-weight: 500; letter-spacing: -.025em; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--tint); color: var(--ink); }
.container { width: min(var(--max-width), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 15px; z-index: 100; background: var(--accent); color: var(--bg); padding: 10px 18px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Simple navigation, with optional appearance controls. */
.nav { position: sticky; z-index: 20; top: 0; background: var(--nav-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__inner { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 11px; font-family: var(--heading-font); color: var(--ink); font-size: 23px; font-weight: 500; white-space: nowrap; }
.nav__monogram { display: grid; place-items: center; width: 38px; height: 38px; padding-top: 3px; font-family: 'Newsreader', Georgia, serif; font-size: 26px; border-radius: 10px 10px 10px 3px; color: var(--bg); background: var(--accent); }
.nav__brand:hover { text-decoration: none; }
.nav__right, .nav__links { display: flex; align-items: center; }
.nav__right { gap: 18px; }
.nav__links { gap: 24px; }
.nav__links a { font-size: 16px; font-family: var(--ui-font); color: var(--ink-soft); padding: 10px 0; }
.nav__links a.is-active { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.theme-toggle { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink); border-radius: 5px; }
.theme-toggle:hover { background: var(--tint); }
.icon-sun, :root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
.nav__toggle { display: none; width: 44px; height: 44px; padding: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 0; }
.nav__toggle span { height: 2px; width: 22px; background: var(--ink); }
.nav__toggle.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }
.appearance { position: relative; font-family: var(--ui-font); }
.appearance summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; list-style: none; font-size: 15px; }
.appearance summary::-webkit-details-marker { display: none; }
.appearance[open] summary, .appearance summary:hover { background: var(--tint); }
.appearance__icon { font-size: 18px; font-weight: 600; }
.appearance__panel { position: absolute; z-index: 30; top: calc(100% + 12px); right: 0; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 22px; box-shadow: 0 8px 28px #00000012; }
.appearance fieldset { padding: 0; margin: 0 0 20px; border: 0; min-width: 0; }
.appearance legend, .appearance label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.color-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.color-options button { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); min-height: 44px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; }
.color-options button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--tint); }
.color-swatch { width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0; }
.color-swatch--navy { background: #244c88; }
.color-swatch--burgundy { background: #852d47; }
.color-swatch--plum { background: #704385; }
.color-swatch--charcoal { background: #41464e; }
.appearance select { width: 100%; padding: 10px; min-height: 44px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 5px; font-size: 16px; }

/* Biography: normal reading text and a plain portrait. */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 58px; align-items: start; padding: 56px 0 48px; }
.about-title { display: flex; align-items: center; gap: 18px; font-size: 26px; margin-top: 28px; color: var(--ink); }
.about-title::after { content: ''; width: 42px; height: 1px; background: var(--accent); opacity: .7; }
.prose { font-size: 19px; line-height: 1.8; margin-top: 16px; color: var(--ink-soft); }
.prose p + p { margin-top: 18px; }
.prose .bio-link--org { color: var(--ink); font-weight: 600; text-decoration: none; }
.prose .bio-link--org:hover { color: var(--person-link); text-decoration: none; }
.prose .bio-link--person, .prose .bio-link--award { color: var(--person-link); font-weight: 500; text-decoration: none; }
.prose .bio-link--publication { color: var(--accent); font-weight: 400; text-decoration: none; }
.prose .bio-degree { color: var(--ink); font-weight: 600; }
.prose a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.hero__portrait { padding-top: 7px; }
.portrait-frame { position: relative; z-index: 0; border: 1px solid var(--line); padding: 8px; border-radius: 9px; background: var(--surface); }
.portrait-frame::before { content: ''; position: absolute; z-index: -1; inset: 12px -12px -12px 12px; border: 1px solid var(--line); background: var(--tint); border-radius: 9px; }
.portrait-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }
.contacts { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 25px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 7px; padding: 8px 15px; font-size: 16px; font-family: var(--ui-font); }
.button--primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.button--primary:hover { background: var(--accent-hover); color: var(--bg); text-decoration: none; }
.button--secondary { color: var(--ink); }
.button--secondary:hover { border-color: var(--accent); text-decoration: none; }
.link-type { font-size: 13px; color: var(--muted); }
.contact-link { font-size: 16px; font-family: var(--ui-font); padding-block: 9px; }
.contact-link span { margin-left: 3px; }
.contact-link--pending { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.contact-link--pending svg { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.contact-link--pending span { margin: 0; }

/* A three-stop news timeline. Cards remain ordinary links without JavaScript. */
.news-section { border-block: 1px solid var(--line); padding-block: 30px 34px; }
.news-section .section-heading { margin-bottom: 18px; }
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.news__item { position: relative; display: flex; flex-direction: column; min-width: 0; }
.news__item::before { content: ''; position: absolute; left: 0; right: -22px; top: 41px; height: 1px; background: var(--line); }
.news__item:last-child::before { right: 0; }
.news__item::after { content: ''; position: absolute; left: 0; top: 37px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--bg); background: var(--muted); box-shadow: 0 0 0 1px var(--line); }
.news__item--latest::after { background: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.news__item time { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 33px; }
.news__card { position: relative; flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.news__item--latest .news__card { background: linear-gradient(135deg, var(--tint), var(--surface)); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.news__card:hover, .news__card:focus-visible { color: var(--ink); text-decoration: none; border-color: var(--accent); box-shadow: 0 8px 24px #20242b0a; transform: translateY(-3px); }
.news__category { display: flex; align-items: center; gap: 10px; color: var(--muted); font-family: var(--ui-font); font-size: 12px; letter-spacing: .045em; font-weight: 500; }
.news__latest { color: var(--accent); background: var(--tint); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); padding: 0 7px; border-radius: 999px; font-size: 11px; }
.news__card h3 { font-family: var(--heading-font); font-size: 26px; font-weight: 500; line-height: 1.2; margin: 14px 0 10px; letter-spacing: -.015em; }
.news__card p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; margin-bottom: 20px; }
.news__card strong { font-weight: 500; color: var(--ink); }
.news__action { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: auto; font-size: 14px; font-weight: 500; color: var(--accent); }
.news__action > span { margin-left: auto; transition: transform .2s ease; }
.news__card:hover .news__action > span { transform: translate(2px, -2px); }
.research-section, .experience-section, .education-section { padding-top: 50px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-note { font-size: 15px; color: var(--muted); }
.text-link { font-size: 16px; white-space: nowrap; }

/* Research cards stack full-width figures above the paper details. */
.pubs { margin: 0; padding: 0; list-style: none; display: grid; gap: 24px; }
.pub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: center; padding: 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 12px #20242b04; transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease; }
.pub:hover, .pub:focus-within { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 10px 32px #20242b0a; }
.pub__media { position: relative; display: block; width: 100%; margin: 0; background: #fff; border-radius: 7px; overflow: hidden; cursor: zoom-in; }
.pub__media img { width: 100%; height: auto; transition: transform .28s ease; }
.pub__media:hover img { transform: scale(1.015); }
.pub__zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #dce0e6; border-radius: 50%; color: #244c88; background: #ffffffed; box-shadow: 0 2px 8px #00000012; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.pub__zoom svg { width: 18px; height: 18px; }
.pub__media:hover .pub__zoom, .pub__media:focus-visible .pub__zoom { opacity: 1; transform: none; }
.pub__media:hover { outline: 2px solid var(--accent); outline-offset: 4px; }
.pub__body { min-width: 0; width: 100%; max-width: 960px; margin-inline: auto; }
.pub__title { font-size: 21px; line-height: 1.45; font-weight: 600; margin-bottom: 12px; }
.pub__name { font-family: var(--heading-font); font-size: 27px; font-weight: 600; color: var(--accent); }
.pub__authors { font-size: 16px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 11px; }
.pub__authors strong { font-weight: 600; color: var(--ink); }
.pub__venue { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 14px; }
.pub__badge { display: inline-block; color: var(--accent); background: var(--tint); padding: 2px 8px; border-radius: 3px; font-size: 14px; font-weight: 600; margin-right: 5px; }
.pub__badge--muted { background: var(--tint); color: var(--ink-soft); }
.pub__badge--accent2 { background: var(--accent); color: var(--bg); }
.pub__desc { font-size: 17px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 18px; }
.pub__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pub__links a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; border: 1px solid var(--line); padding: 6px 12px; border-radius: 4px; font-size: 15px; }
.pub__links a:hover { background: var(--tint); border-color: var(--accent); text-decoration: none; }
.pub__availability { font-size: 14px; color: var(--muted); }

/* A continuous, fully visible experience and education timeline. */
.experience-section, .education-section { padding-bottom: 25px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline__item { display: flex; position: relative; gap: 30px; align-items: flex-start; padding-bottom: 34px; }
.timeline__item:not(:last-child)::after { content: ''; position: absolute; left: 47px; top: 102px; bottom: 8px; width: 2px; background: var(--line); }
.timeline__logo-wrap { box-shadow: 0 2px 8px #20242b05; display: grid; place-items: center; width: 96px; height: 96px; flex: 0 0 auto; background: #fff; border: 1px solid #e1e3e8; border-radius: 10px; padding: 5px; }
.timeline__logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.timeline__body { flex: 1; min-width: 0; padding-top: 2px; }
.timeline__body h3 { font-size: 21px; margin-bottom: 5px; }
.timeline__top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.timeline__body p { font-size: 18px; color: var(--ink-soft); line-height: 1.6; }
.timeline__meta { display: block; margin-top: 5px; font-size: 16px; color: var(--muted); }
.timeline__body .timeline__detail { margin-top: 10px; font-size: 17px; max-width: 820px; }
.timeline__body .timeline__advisor { margin-top: 7px; font-size: 16px; }
.timeline__advisor a { color: var(--person-link); }
.current-badge { display: inline-block; font-family: var(--ui-font); font-size: 13px; color: var(--accent); background: var(--tint); padding: 2px 8px; border-radius: 3px; margin-bottom: 5px; }

/* Service, awards, and a practical footer. */
.recognition-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; border-top: 1px solid var(--line); padding-block: 32px 40px; }
.recognition-grid h2 { font-size: 30px; margin-bottom: 22px; }
.recognition-grid h3 { font-size: 18px; margin-bottom: 7px; }
.recognition-grid p { font-size: 17px; color: var(--ink-soft); line-height: 1.7; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; padding-block: 26px; color: var(--muted); font-size: 15px; }
.footer a { white-space: nowrap; }

@media (max-width: 1080px) {
  .container { width: calc(100% - 56px); }
  .nav__right { gap: 12px; }
  .nav__links { gap: 18px; }
  .appearance__label { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) 204px; gap: 32px; }
  .pub { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 20px; }
}
@media (max-width: 900px) {
  .pub { grid-template-columns: 1fr; gap: 24px; }
  .pub__media { max-width: 100%; }
  .pub__title { font-size: 22px; }
  .pub__desc { font-size: 18px; }
  .recognition-grid { gap: 35px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 90px; }
  .container { width: calc(100% - 40px); }
  .nav__inner { min-height: 72px; flex-wrap: wrap; gap: 8px; }
  .nav__brand { font-size: 18px; }
  .nav__right { gap: 4px; }
  .appearance summary { width: 44px; padding: 6px; }
  .appearance__panel { right: -88px; }
  .nav__links { flex-wrap: wrap; gap: 16px; }
  .js .nav__toggle { display: flex; }
  .js .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 18px; }
  .js .nav__links.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav__links a { padding: 12px 0; font-size: 17px; }
  .hero { grid-template-columns: minmax(0, 1fr) 136px; gap: 22px; padding-block: 32px; }
  .hero__copy { display: contents; }
  h1 { font-size: 42px; align-self: center; }
  .about-title { grid-column: 1 / -1; font-size: 26px; margin: 5px 0 -8px; }
  .hero__portrait { grid-column: 2; grid-row: 1; padding: 0; }
  .portrait-frame { padding: 5px; }
  .portrait-frame::before { inset: 6px -6px -6px 6px; }
  .prose { grid-column: 1 / -1; margin: 0; font-size: 18px; line-height: 1.75; }
  .contacts { grid-column: 1 / -1; margin: 0; gap: 12px 18px; }
  .news-section { padding-block: 25px; }
  .news { grid-template-columns: 1fr; gap: 22px; }
  .news__item { padding-left: 24px; }
  .news__item::before { top: 8px; bottom: -30px; left: 4px; right: auto; width: 1px; height: auto; }
  .news__item:last-child::before { bottom: 0; right: auto; }
  .news__item::after { top: 8px; left: 0; }
  .news__item time { margin-bottom: 10px; }
  .news__card { padding: 18px 20px; }
  .news__card p { margin-bottom: 16px; }
  .pub__zoom { opacity: 1; transform: none; width: 32px; height: 32px; }
  .research-section, .experience-section, .education-section { padding-top: 34px; }
  .section-heading { flex-wrap: wrap; align-items: baseline; gap: 9px 16px; margin-bottom: 23px; }
  h2, .recognition-grid h2 { font-size: 30px; }
  .section-note { font-size: 14px; }
  .pub { gap: 20px; padding: 18px; }
  .pub__media { margin: 0; }
  .pub__title { font-size: 21px; }
  .pub__desc { font-size: 17px; }
  .timeline__item { gap: 20px; padding-bottom: 30px; }
  .timeline__logo-wrap { width: 80px; height: 80px; padding: 4px; }
  .timeline__item:not(:last-child)::after { left: 39px; top: 87px; }
  .timeline__body h3 { font-size: 19px; }
  .timeline__body p { font-size: 17px; }
  .timeline__meta, .timeline__body .timeline__detail { font-size: 15px; }
  .recognition-grid { grid-template-columns: 1fr; padding-block: 28px 32px; gap: 32px; }
  .footer { font-size: 14px; gap: 12px 20px; }
}
@media (max-width: 430px) {
  .nav__monogram { display: none; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .nav__brand { font-size: 16px; }
  .nav__right { gap: 0; }
  .hero { grid-template-columns: minmax(0, 1fr) 110px; gap: 20px 15px; }
  h1 { font-size: 37px; }
  .contacts { gap: 10px 14px; }
  .timeline__item { gap: 16px; }
  .timeline__logo-wrap { width: 72px; height: 72px; }
  .timeline__item:not(:last-child)::after { left: 35px; top: 79px; }
  .pub__title { overflow-wrap: anywhere; }
}

/* Small interaction cues, with no hidden content or automatic motion. */
.reading-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.button, .pub__links a, .timeline__logo-wrap, .portrait-frame { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px #20242b0c; }
.timeline__item:hover .timeline__logo-wrap { border-color: var(--accent); box-shadow: 0 4px 14px #20242b0c; transform: translateY(-2px); }
.timeline__item:hover::after { background: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.portrait-frame:hover { transform: translateY(-2px); box-shadow: 0 8px 24px #20242b0a; }
.section-heading h2 { display: flex; align-items: center; gap: 18px; }
.section-heading h2::after { content: ''; width: 36px; height: 1px; background: var(--accent); opacity: .55; }

/* Native dialog supplies keyboard focus containment and Escape dismissal. */
html.figure-open { overflow: hidden; }
.figure-dialog { width: min(1400px, calc(100vw - 56px)); max-width: none; max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 90px #00000050; }
.figure-dialog::backdrop { background: #111622c9; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.figure-dialog__header, .figure-dialog__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 22px; }
.figure-dialog__header { border-bottom: 1px solid var(--line); }
.figure-dialog__header h2 { font-size: 27px; }
.figure-dialog button { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: transparent; font-size: 22px; }
.figure-dialog button:hover:not(:disabled) { background: var(--tint); border-color: var(--accent); }
.figure-dialog button:disabled { opacity: .35; cursor: default; }
.figure-dialog__canvas { background: #fff; padding: 14px; }
.figure-dialog__canvas img { width: 100%; height: auto; max-height: calc(100dvh - 230px); object-fit: contain; }
.figure-dialog__footer { border-top: 1px solid var(--line); font-size: 15px; }
.figure-dialog__navigation { display: flex; align-items: center; gap: 15px; }
#figureCounter { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 760px) {
  .figure-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 10px; }
  .figure-dialog__header, .figure-dialog__footer { padding: 12px; gap: 8px; }
  .figure-dialog__header h2 { font-size: 24px; }
  .figure-dialog__canvas { padding: 5px; }
  .figure-dialog__footer { font-size: 13px; }
  .figure-dialog__navigation { gap: 6px; }
  .section-heading h2::after { width: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --ink: #111; --ink-soft: #333; --muted: #444; --accent: #244c88; --line: #ddd; --tint: #edf2f9; }
  .container { width: 100%; }
  .nav, .skip-link, .footer, .figure-dialog, .pub__zoom { display: none; }
  .hero { padding-top: 0; }
  .pub, .timeline__item { break-inside: avoid; }
}

/* A playful, readable finishing layer. */
.hero { grid-template-columns: 250px minmax(0,1fr); gap: 52px; }
.hero__portrait { position: relative; }
.hero__portrait::before { content: '+'; position: absolute; font: 42px var(--heading-font); color: var(--accent); top: -40px; left: -12px; }
.portrait-frame { border-radius: 50% 50% 14px 14px; padding: 9px; }
.portrait-frame img { border-radius: 50% 50% 8px 8px; }
.portrait-frame::before { border-radius: inherit; transform: rotate(-4deg); }
.portrait-play { display: flex; justify-content: center; align-items:center; gap: 12px; margin-top: 30px; font-size: 16px; }
.portrait-play > span:first-child { font-size: 30px; transition: transform .5s; }
.portrait-play:hover > span:first-child { transform: rotate(90deg); }
.contacts { gap: 10px; }
.contacts > * { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:10px 13px; min-height:50px; font:500 15px var(--ui-font); border:1px solid var(--line); border-radius:10px; background:var(--surface); color:var(--ink); transition:transform .2s, border-color .2s, background .2s; }
.contacts > a:hover { transform:translateY(-3px); border-color:var(--accent); background:var(--tint); text-decoration:none; }
.contacts svg { width:27px; height:27px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.contacts .contact-link--pending { color:var(--muted); }
.contacts .contact-link--pending svg { fill:currentColor; stroke:none; }
.news-controls { display:flex; gap:8px; }
.news-controls button { width:46px; height:46px; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--accent); font-size:24px; transition:transform .2s,background .2s; }
.news-controls button:hover:not(:disabled) { background:var(--tint); transform:scale(1.08); }
.news-controls button:disabled { opacity:.35; cursor:default; }
.news-window { max-height:340px; overflow-y:auto; padding:8px 18px 8px 6px; scrollbar-color:var(--accent) var(--tint); scrollbar-width:thin; border-radius:12px; }
.news-window:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.news { display:flex; flex-direction:column; gap:20px; }
.news__item { display:grid; grid-template-columns:165px 1fr; gap:25px; padding:0; align-items:center; }
.news__item::before,.news__item::after { display:none; }
.news__item time { margin:0; font-size:16px; color:var(--accent); }
.news__card { padding:22px 26px; }
.news__card h3 { margin:8px 0; font-size:29px; }
.news__card p { margin-bottom:10px; }
.news__category,.news__action { font-size:14px; }
.pub__badge { font-size:17px; font-weight:700; padding:5px 12px; border:1px solid color-mix(in srgb,var(--accent) 35%,var(--line)); border-radius:7px; background:var(--tint); color:var(--accent); }
.pub__links a { min-height:46px; border-radius:9px; font-size:16px; }
.pub__links svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s; }
.pub__links a:hover { transform:translateY(-3px); }
.pub__links a:hover svg { transform:rotate(-8deg); }
.timeline { max-width:1000px; margin-inline:auto; }
.timeline__logo-wrap { background:transparent; border:0; box-shadow:none; padding:0; overflow:hidden; border-radius:8px; }
.timeline__logo-wrap img { mix-blend-mode:multiply; }
[data-theme="dark"] .timeline__logo-wrap { background:#fff; }
.timeline__body h3 { color:var(--accent); font-size:23px; }
.timeline__body > p:not([class]) { color:var(--ink); font-weight:600; font-size:19px; }
.timeline__body .timeline__detail { color:var(--muted); font-size:17px; }
.timeline__item:hover .timeline__logo-wrap { transform:scale(1.06); box-shadow:none; }
@media(max-width:760px) {
  .hero { grid-template-columns:1fr; gap:32px; padding-top:40px; }
  .hero__copy { display:block; }
  .hero__portrait { grid-column:1; grid-row:auto; width:185px; padding:0; }
  .hero__copy h1 { font-size:44px; }
  .portrait-play { margin-top:18px; font-size:14px; gap:7px; }
  .hero__portrait::before { top:-28px; left:-8px; font-size:30px; }
  .news__item { grid-template-columns:1fr; gap:8px; }
  .news-window { max-height:380px; }
  .news__card { padding:18px; }
  .timeline__body h3 { font-size:21px; }
  .timeline__body > p:not([class]) { font-size:18px; }
  .timeline__body .timeline__detail,.timeline__meta { font-size:16px; }


}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }

/* Quiet character: a custom-feeling name, square portrait and concise updates. */
#name { font-family:'Space Grotesk',var(--font); font-weight:600; font-size:clamp(38px,4.5vw,58px); letter-spacing:-.065em; line-height:1.12; }
.nav__brand > span:last-child { font-family:'Space Grotesk',var(--font); font-weight:600; letter-spacing:-.045em; }
.portrait-frame,.portrait-frame::before { border-radius:10px; }
.portrait-frame img { border-radius:5px; }
.hero__portrait::before { display:none; }
.portrait-frame::before { transform:rotate(-2deg); }
.pub__authors { font-size:17px; line-height:1.9; }
.pub__authors a { color:var(--ink-soft); text-decoration:none; text-decoration-thickness:1px; }
.pub__authors a:hover { color:var(--accent); text-decoration:underline; }
.pub__authors .author-self { color:var(--person-link); font-weight:600; text-decoration:underline; text-decoration-thickness:1.5px; text-underline-offset:4px; }
.pub__authors sup { font-size:12px; color:var(--accent); margin-left:1px; }
.author-legend { display:flex; gap:6px 18px; flex-wrap:wrap; font-size:14px; }
.news-list { list-style:none; margin:0; padding:0; }
.news-list li { display:grid; grid-template-columns:110px minmax(0,1fr) auto; align-items:baseline; gap:24px; padding:21px 10px; border-top:1px solid var(--line); transition:background .2s, padding .2s; }
.news-list li:first-child { border-top:0; }
.news-list li:hover { background:var(--tint); padding-left:16px; }
.news-list time { font-size:15px; color:var(--muted); font-variant-numeric:tabular-nums; }
.news-list p { font-size:18px; line-height:1.65; color:var(--ink-soft); }
.news-list a { font-weight:600; text-decoration:underline; text-decoration-color:color-mix(in srgb,var(--accent) 35%,transparent); }
.news-list strong { font-weight:600; color:var(--ink); }
.news-tag { color:var(--muted); border:1px solid var(--line); border-radius:5px; font-size:12px; padding:2px 8px; }
.logo-filter { position:absolute; pointer-events:none; }
.timeline__logo-wrap,.timeline__item:hover .timeline__logo-wrap,[data-theme="dark"] .timeline__logo-wrap { background:transparent; overflow:visible; box-shadow:none; border-radius:0; }
.timeline__logo-wrap img { width:100%; height:100%; transform:none; object-fit:contain; mix-blend-mode:normal; }
.timeline__logo-wrap .logo-with-white { filter:url(#remove-logo-white); }
.timeline__logo-wrap:has(img[src$="ibdp-original.png"]) { width:108px; margin-inline:-6px; }
.visitor-menu { position:relative; font-family:var(--ui-font); }
.visitor-menu summary { display:flex; gap:8px; align-items:center; min-height:44px; padding:8px 12px; border:1px solid var(--line); border-radius:6px; cursor:pointer; list-style:none; font-size:15px; white-space:nowrap; }
.visitor-menu summary::-webkit-details-marker { display:none; }
.visitor-menu summary:hover,.visitor-menu[open] summary { background:var(--tint); }
.visitor-menu__panel { position:absolute; z-index:35; right:0; top:calc(100% + 12px); width:285px; padding:23px; border:1px solid var(--line); border-radius:12px; background:var(--surface); box-shadow:0 12px 30px #00000012; }
.visitor-menu__panel > p:first-child { font-family:var(--heading-font); font-size:26px; color:var(--ink); }
.visitor-menu__panel button { display:flex; justify-content:space-between; align-items:center; width:100%; margin:16px 0; padding:12px 16px; min-height:48px; border:1px solid var(--accent); border-radius:8px; color:var(--accent); background:var(--tint); font:500 17px var(--font); transition:transform .2s,background .2s; }
.visitor-menu__panel button:hover { transform:translateY(-2px); background:var(--bg); }
.visitor-menu__panel button:disabled { opacity:.6; }
.visitor-menu__stats { font-size:15px; color:var(--ink-soft); }
.visitor-menu__panel .counter-status { font-size:13px; line-height:1.5; margin-block:10px; color:var(--muted); }
.visitor-menu__panel small { font-size:11px; color:var(--muted); }
.hello-sent span { animation:hello-turn .4s ease; }
@keyframes hello-turn { to { transform:rotate(180deg); } }
@media(max-width:1080px) { .nav__brand > span:last-child { display:none; } }
@media(max-width:760px) {
  .news-list li { grid-template-columns:1fr auto; gap:8px 12px; padding:18px 2px; }
  .news-list time { grid-column:1; grid-row:1; }
  .news-tag { grid-column:2; grid-row:1; }
  .news-list p { grid-column:1/-1; font-size:17px; }
  .author-legend { font-size:13px; }
  .visitor-menu__panel { position:fixed; right:16px; top:80px; max-width:calc(100vw - 32px); }
  .visitor-menu summary { font-size:13px; padding-inline:8px; }
  .timeline__logo-wrap:has(img[src$="ibdp-original.png"]) { width:88px; margin-inline:-4px; }
  #name { font-size:40px; }
}
@media(prefers-reduced-motion:reduce) { .hello-sent span { animation:none; } }

/* Balanced portrait column and gentle, consistent interaction feedback. */
.hero { grid-template-columns:280px minmax(0,1fr); gap:48px; }
.hero__portrait .portrait-frame img { aspect-ratio:1; object-fit:cover; object-position:50% 57%; }
.hero__portrait .contacts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-top:25px; }
.hero__portrait .contacts > * { min-width:0; padding:10px 8px; font-size:14px; gap:7px; justify-content:flex-start; line-height:1.35; }
.hero__portrait .contacts svg { width:25px; height:25px; }
.hero__portrait .contacts .link-type { font-size:11px; }
.hero__portrait .contacts .contact-link--pending { font-size:13px; }
.pub__venue { font-size:17px; line-height:1.65; }
.pub { transition:background .22s, border-color .22s, box-shadow .22s, transform .22s; }
.pub:hover,.pub:focus-within { background:color-mix(in srgb,var(--tint) 48%,var(--surface)); border-color:color-mix(in srgb,var(--accent) 45%,var(--line)); }
.timeline__item { isolation:isolate; }
.timeline__item::before { content:''; position:absolute; z-index:-1; inset:-12px -16px 20px; border:1px solid transparent; border-radius:14px; background:transparent; transition:background .22s,border-color .22s; pointer-events:none; }
.timeline__item:hover::before,.timeline__item:focus-within::before { background:var(--tint); border-color:color-mix(in srgb,var(--accent) 18%,transparent); }
a,button,summary,select { transition:background-color .2s,color .2s,border-color .2s,box-shadow .2s,transform .2s; }
a:not(.pub__media):hover,a:not(.pub__media):focus-visible { background-color:var(--tint); border-radius:4px; }
.prose a:hover,.pub__authors a:hover,.timeline__body a:hover { box-shadow:0 0 0 3px var(--tint); }
button:hover:not(:disabled),summary:hover,select:hover { box-shadow:0 3px 12px color-mix(in srgb,var(--accent) 12%,transparent); }
.nav__brand:hover .nav__monogram { transform:rotate(-5deg); }
.nav__monogram { transition:transform .2s; }
.visitor-menu__panel { overflow:hidden; text-align:center; padding:25px; background:radial-gradient(circle at 50% 35%,var(--tint),var(--surface) 75%); }
.visitor-menu__panel [data-highfive] { position:relative; z-index:1; width:130px; height:130px; margin:6px auto 20px; border-radius:50%; display:flex; flex-direction:column; justify-content:center; gap:7px; background:var(--surface); box-shadow:0 0 0 7px color-mix(in srgb,var(--accent) 7%,transparent); }
.visitor-menu__panel [data-highfive]:hover { transform:scale(1.06) rotate(-3deg); background:var(--tint); }
.hello-symbol { font-size:43px; line-height:1; }
.hello-label { font-size:15px; }
.visitor-menu__stats strong { display:block; font:600 38px 'Space Grotesk',var(--font); color:var(--accent); line-height:1.2; }
.visitor-menu__stats > span { display:block; font-size:14px; margin-top:5px; }
.visitor-menu__panel .counter-status { min-height:39px; margin-bottom:0; }
.hello-sent .hello-symbol { animation:hello-turn .5s ease; }
.hello-sent .hello-label { animation:none; }
.hello-burst { position:absolute; left:50%; top:95px; pointer-events:none; z-index:2; }
.hello-burst span { position:absolute; color:var(--accent); font-size:22px; animation:hello-spark .75s ease-out forwards; }
@keyframes hello-spark { from { opacity:1; transform:rotate(var(--angle)) translateY(-45px) scale(.5); } to { opacity:0; transform:rotate(var(--angle)) translateY(-115px) scale(1.2); } }
@media(max-width:1080px) and (min-width:761px) { .hero { grid-template-columns:250px minmax(0,1fr); gap:32px; } }
@media(max-width:760px) {
  .hero { grid-template-columns:1fr; gap:30px; }
  .hero__portrait { width:100%; display:grid; grid-template-columns:minmax(0,185px) minmax(0,1fr); gap:24px; align-items:center; }
  .hero__portrait .contacts { grid-template-columns:1fr; margin-top:0; gap:6px; }
  .hero__portrait .contacts > * { padding:7px 10px; min-height:40px; }
  .hero__portrait .contacts svg { width:23px; height:23px; }
  .timeline__item::before { inset:-10px -8px 20px; }
  .research-section .section-heading { align-items:flex-start; flex-direction:column; gap:12px; }
}
@media(max-width:400px) { .hero__portrait { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:17px; } .hero__portrait .contacts > * { font-size:12px; padding:7px; gap:5px; } .hero__portrait .contacts .contact-link--pending { font-size:12px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none!important; animation:none!important; } }
@media(max-width:760px) {
  .hero__portrait .contacts { grid-column:auto; }
  .nav__monogram { display:grid; }
}

/* Portrait and biography share a row; contact links sit beneath both. */
.hero { grid-template-columns:350px minmax(0,1fr); gap:28px 48px; align-items:stretch; }
.hero__portrait { display:block; position:relative; width:auto; min-height:420px; padding:0; }
.hero__portrait .portrait-frame { position:absolute; inset:0; }
.hero__portrait .portrait-frame img { width:100%; height:100%; aspect-ratio:auto; object-fit:cover; object-position:50% 52%; }
.hero > .contacts { grid-column:1/-1; justify-content:center; margin-top:8px; }
.news-list li { grid-template-columns:110px minmax(0,1fr); }
.news-doodle { display:inline-block; width:36px; height:36px; margin-right:9px; vertical-align:middle; color:var(--accent); overflow:visible; transition:transform .25s; }
.news-new { color:var(--person-link); font-size:15px; font-weight:700; margin-right:5px; }
.news-list li:hover .news-doodle--party { transform:rotate(-9deg) scale(1.12); }
.news-list li:hover .news-doodle--grad { transform:translateY(-3px) rotate(5deg); }
.news-list li:hover .doodle-confetti { transform:translate(1px,-1px); }
@media(max-width:1080px) and (min-width:761px) { .hero { grid-template-columns:300px minmax(0,1fr); gap:26px 32px; } }
@media(max-width:760px) {
  .hero { grid-template-columns:minmax(0,1fr); gap:28px; }
  .hero__portrait { width:min(100%,320px); min-height:400px; margin-inline:auto; }
  .hero > .contacts { justify-content:flex-start; margin-top:0; }
  .news-list li { grid-template-columns:1fr; }
  .news-list p { grid-column:1; }
  .news-doodle { width:32px; height:32px; margin-right:6px; }
}
@media(prefers-reduced-motion:reduce) { .news-list li:hover .news-doodle,.news-list li:hover .doodle-confetti { transform:none; } }

/* Presentation distinctions stay orange/red across all appearance palettes. */
.oral-highlights { display:inline-flex; align-items:center; gap:7px; vertical-align:middle; white-space:nowrap; }
.oral-badge,.percent-badge { display:inline-block; border:1px solid; border-radius:6px; padding:3px 9px; font:600 15px/1.5 var(--ui-font); }
.oral-badge { color:#a34408; background:#fff0da; border-color:#edb578; }
.percent-badge { color:#ad3046; background:#ffedf0; border-color:#e7a2ae; }
.conference-name { font-size:18px; font-weight:600; color:var(--ink-soft); }
.pub__venue .oral-highlights { margin:7px 0 0 8px; }
[data-theme="dark"] .oral-badge { color:#ffc17d; background:#422c19; border-color:#886039; }
[data-theme="dark"] .percent-badge { color:#ffacbb; background:#43232d; border-color:#875061; }
@media(max-width:760px) { .pub__venue .oral-highlights { display:flex; width:max-content; margin:9px 0 0; } .conference-name { font-size:17px; } }

/* Roomier centered composition with readable research text and aligned venue badges. */
.container { width:min(var(--max-width),calc(100% - clamp(32px,5vw,80px))); margin-inline:auto; }
body { font-size:20px; }
.prose { font-size:20px; line-height:1.8; }
h2 { font-size:40px; }
.news-list p { font-size:20px; }
.timeline { max-width:1100px; }
.timeline__body h3 { font-size:25px; }
.timeline__body > p:not([class]) { font-size:21px; }
.timeline__body .timeline__detail { font-size:19px; max-width:95ch; }
.pubs { gap:34px; }
.pub { padding:32px; gap:32px; }
.pub__media { max-width:1100px; margin-inline:auto; }
.pub__body { max-width:none; }
.pub__title { font-size:28px; line-height:1.4; margin-bottom:16px; }
.pub__name { font-size:34px; }
.pub__authors { font-size:20px; line-height:1.8; margin-bottom:18px; }
.pub__desc { font-size:20px; line-height:1.75; max-width:95ch; }
.pub__links a { font-size:18px; padding:9px 15px; }
.pub__venue { display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; margin:0 0 20px; padding:14px 18px; border-left:4px solid #3d4249; background:color-mix(in srgb,var(--tint) 60%,var(--surface)); border-radius:0 8px 8px 0; }
.pub__venue .conference-name { font-size:22px; font-weight:700; line-height:1.5; color:#292d33; }
.pub__venue .oral-highlights { display:inline-flex; width:auto; margin:0; align-items:center; }
.oral-highlights { flex-wrap:wrap; max-width:100%; white-space:normal; }
.oral-badge,.percent-badge { font-size:16px; white-space:nowrap; }
[data-theme="dark"] .pub__venue { border-left-color:#cdd3dc; }
[data-theme="dark"] .pub__venue .conference-name { color:#f1f3f6; }
@media(max-width:760px) {
  body,.prose,.news-list p { font-size:18px; }
  h2 { font-size:34px; }
  .pub { padding:18px; gap:24px; }
  .pub__title { font-size:23px; }
  .pub__name { font-size:29px; }
  .pub__authors,.pub__desc { font-size:18px; }
  .pub__venue { padding:12px; gap:12px; }
  .pub__venue .conference-name { font-size:19px; }
  .oral-badge,.percent-badge { font-size:14px; padding:3px 7px; }
  .timeline__body h3 { font-size:22px; }
  .timeline__body > p:not([class]) { font-size:19px; }
  .timeline__body .timeline__detail { font-size:17px; }
}

/* Edge-to-edge navigation and footer frame the centered page. */
.nav__inner.container { width:100%; max-width:none; padding-inline:clamp(16px,3vw,48px); }
.footer.container { width:100%; max-width:none; padding:30px clamp(16px,3vw,48px); background:var(--surface); }
.hero__copy #name { font-family:'Space Grotesk',var(--ui-font); font-weight:700; line-height:1.13; letter-spacing:-.055em; }
.hero__copy .about-title { font-family:var(--ui-font); font-size:17px; font-weight:700; line-height:1.5; letter-spacing:.13em; text-transform:uppercase; color:var(--muted); margin:34px 0 20px; }
.hero__copy .prose { margin-top:0; }
.prose p + p { margin-top:22px; }
.prose .bio-link--person,.timeline__advisor a { font-weight:600; text-decoration:underline; text-decoration-thickness:1px; text-decoration-color:color-mix(in srgb,var(--person-link) 45%,transparent); text-underline-offset:4px; }
:root[data-accent="charcoal"] { --person-link:#315f99; }
:root[data-theme="dark"][data-accent="charcoal"] { --person-link:#b1cefa; }
.hero > .contacts { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; width:100%; margin-top:14px; }
.hero > .contacts > * { min-width:0; min-height:72px; padding:12px; border-radius:14px; gap:10px; justify-content:center; font-size:15px; line-height:1.4; }
.hero > .contacts svg { width:42px; height:42px; padding:7px; border-radius:12px; background:var(--tint); color:var(--accent); transition:transform .25s,background .25s; }
.hero > .contacts a:hover { border-radius:14px; transform:translateY(-4px); box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 10%,transparent); }
.hero > .contacts a:hover svg { transform:rotate(-8deg) scale(1.08); background:var(--surface); }
.hero > .contacts a:focus-visible { border-radius:14px; }
.hero > .contacts .contact-link--pending svg { color:var(--muted); }
.recognition-section { padding:38px 0; border-top:1px solid var(--line); }
.recognition-section h2 { margin-bottom:25px; }
.recognition-section h3 { font-size:21px; line-height:1.5; margin-bottom:8px; }
.recognition-section p { font-size:19px; color:var(--ink-soft); line-height:1.75; }
.recognition-section .awards { margin:0; }
.recognition-section .awards li { padding:20px 0; }
.recognition-section .awards li:first-child { padding-top:0; }
@media(max-width:1100px) { .hero > .contacts { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
  .hero { gap:38px; padding-top:38px; }
  .hero__copy #name { font-size:clamp(36px,8vw,48px); line-height:1.18; margin:0; }
  .hero__copy .about-title { font-size:15px; margin:30px 0 20px; }
  .hero__copy .prose { font-size:19px; line-height:1.85; }
  .hero__copy .prose p + p { margin-top:24px; }
  .hero > .contacts { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:0; }
  .hero > .contacts > * { min-height:68px; padding:10px; gap:8px; font-size:14px; }
  .hero > .contacts svg { width:36px; height:36px; padding:6px; border-radius:10px; }
  .recognition-section { padding-block:32px; }
  .recognition-section h3 { font-size:19px; }
  .recognition-section p { font-size:18px; }
}
@media(prefers-reduced-motion:reduce) { .hero > .contacts a:hover,.hero > .contacts a:hover svg { transform:none; } }

/* Readable detail, restrained academic notation, and a friendlier contact layer. */
.nav__monogram { padding:0; background:transparent; border-radius:11px; }
.nav__monogram img { width:100%; height:100%; }
.pub__title { font-size:32px; line-height:1.4; }
.pub__name { font-size:38px; }
.pub__desc { font-size:22px; line-height:1.8; }
.pub__authors { font-size:22px; }
.timeline__body h3 { font-size:28px; }
.timeline__body > p:not([class]) { font-size:23px; }
.timeline__body .timeline__detail { font-size:21px; line-height:1.8; }
.timeline__meta,.timeline__body .timeline__advisor { font-size:19px; line-height:1.7; }
.recognition-section h3 { font-size:25px; }
.recognition-section p { font-size:21px; line-height:1.8; }
.hero > .contacts .wechat-contact svg,.hero > .contacts a[href*="scholar.google"] svg { fill:currentColor; stroke:none; }
.hero > .contacts .wechat-contact:hover { transform:translateY(-4px); border-color:var(--accent); background:var(--tint); box-shadow:0 8px 20px color-mix(in srgb,var(--accent) 10%,transparent); }
.hero > .contacts .wechat-contact:hover svg { transform:rotate(-8deg) scale(1.08); }
.wechat-dialog { position:fixed; width:min(460px,calc(100vw - 32px)); max-height:calc(100dvh - 36px); overflow:auto; padding:30px; border:1px solid var(--line); border-radius:22px; color:var(--ink); background:var(--surface); text-align:center; box-shadow:0 25px 90px #0003; }
.wechat-dialog::backdrop { background:#10151bb3; backdrop-filter:blur(5px); }
.wechat-dialog[open] { animation:wechat-enter .25s ease-out; }
.wechat-close { position:absolute; top:10px; right:10px; width:44px; height:44px; font-size:30px; border:0; border-radius:50%; background:transparent; color:var(--muted); }
.wechat-close:hover { background:var(--tint); }
.wechat-wave { display:grid; place-items:center; width:44px; height:44px; margin:0 auto 14px; border:1px solid var(--line); border-radius:14px; background:var(--tint); font-size:26px; color:var(--accent); }
.wechat-dialog h2 { font-size:30px; line-height:1.2; margin:0 15px 12px; }
.wechat-dialog p { font-size:16px; color:var(--muted); line-height:1.6; }
.wechat-qr-frame { margin:20px auto; padding:10px; border-radius:12px; background:white; border:1px solid #e0e2e5; }
.wechat-qr-frame img { width:100%; height:auto; }
.wechat-dialog .wechat-hint { font-size:13px; margin-top:15px; }
.wechat-dialog .button { min-height:46px; }
@keyframes wechat-enter { from { opacity:0; transform:translateY(14px) scale(.97); } to { opacity:1; transform:none; } }
.visitor-menu__panel .hello-reactions { display:flex; gap:6px; margin-bottom:20px; }
.visitor-menu__panel .hello-reactions button { width:auto; flex:1; min-height:40px; margin:0; padding:7px; font-size:13px; border-color:var(--line); justify-content:center; border-radius:30px; background:var(--surface); }
.visitor-menu__panel .hello-reactions button[aria-pressed="true"] { color:var(--bg); background:var(--accent); border-color:var(--accent); }
.hello-symbol svg { width:57px; height:57px; stroke-width:2; fill:none; transition:transform .25s; }
.hello-symbol .hello-eyes { fill:currentColor; stroke:none; transform:translate(var(--eye-x,0px),var(--eye-y,0px)); }
.visitor-menu__panel [data-highfive]:hover .hello-symbol svg { transform:rotate(8deg); }
.hello-burst { top:153px; }
.hello-sent .hello-symbol { animation:hello-nod .55s ease; }
@keyframes hello-nod { 35% { transform:translateY(-7px) rotate(-10deg); } 70% { transform:translateY(2px) rotate(7deg); } }
@media(max-width:760px) {
  .pub__title { font-size:26px; }
  .pub__name { font-size:31px; }
  .pub__desc,.pub__authors { font-size:19px; }
  .timeline__body h3 { font-size:24px; }
  .timeline__body > p:not([class]) { font-size:21px; }
  .timeline__body .timeline__detail { font-size:19px; }
  .timeline__meta,.timeline__body .timeline__advisor { font-size:17px; }
  .recognition-section h3 { font-size:22px; }
  .recognition-section p { font-size:19px; }
  .wechat-dialog { padding:25px 18px; }
}
@media(prefers-reduced-motion:reduce) { .wechat-dialog[open],.hello-sent .hello-symbol { animation:none; } }

.hero-role { margin:28px 0 25px; font-family:var(--font); font-size:22px; font-weight:600; line-height:1.6; color:var(--ink-soft); }
.hero-role span { display:inline-block; margin-inline:7px; color:var(--muted); }
.research-subtitle { display:flex; align-items:center; gap:20px; font-family:var(--heading-font); font-size:32px; font-weight:500; margin:30px 0 22px; }
.research-subtitle::after { content:''; height:1px; flex:1; background:var(--line); }
.research-group + .research-group { margin-top:52px; }
.author-legend { font-size:19px; }
.author-legend > span { display:inline-flex; align-items:center; gap:9px; line-height:1.5; }
.author-legend .author-marker { display:inline-flex; align-items:center; justify-content:center; font-family:var(--ui-font); font-size:25px; line-height:1; height:30px; width:22px; vertical-align:middle; transform:none; }
.pub__links a,.pub__links .resource-pending { display:inline-flex; align-items:center; gap:8px; min-height:48px; padding:9px 15px; border:1px solid var(--line); border-radius:9px; font:500 18px/1.5 var(--ui-font); }
.pub__links .resource-pending { color:var(--muted); background:color-mix(in srgb,var(--surface) 70%,var(--tint)); }
.resource-pending small { font-size:12px; font-weight:400; }
.visitor-menu__panel { width:350px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 110px); overflow:auto; padding:25px; background:radial-gradient(ellipse at 50% 0,var(--tint),var(--surface) 65%); }
.visitor-menu__panel [data-highfive] { width:110px; height:110px; margin:4px auto 16px; }
.hello-symbol svg { width:44px; height:44px; }
.visitor-menu__stats strong { font-size:32px; }
.visitor-menu__panel .counter-status { min-height:0; margin-bottom:20px; }
.hello-burst { top:85px; }
.movie-form { border-top:1px dashed var(--line); padding-top:20px; text-align:left; }
.movie-form > p:first-child { font-size:15px; color:var(--muted); margin-bottom:6px; }
.movie-form label { display:block; font-family:var(--heading-font); font-size:24px; line-height:1.3; color:var(--ink); margin-bottom:14px; }
.movie-input-row { display:flex; gap:8px; }
.movie-input-row input { width:100%; min-width:0; border:1px solid var(--line); border-radius:9px; min-height:46px; padding:10px; background:var(--bg); color:var(--ink); font:16px var(--font); }
.movie-input-row input:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.visitor-menu__panel .movie-input-row button { width:46px; flex:none; min-height:46px; margin:0; padding:0; justify-content:center; border-radius:9px; font-size:25px; background:var(--accent); color:var(--bg); }
.movie-form small { display:block; font-size:12px; color:var(--muted); margin-top:8px; }
#movieStatus { font-size:13px; line-height:1.5; color:var(--accent); margin-top:8px; }
.movie-picks { margin-top:12px; }
.movie-picks summary { border:0; min-height:36px; padding:0; font-size:14px; }
.movie-picks summary::after { content:'⌄'; margin-left:auto; }
.movie-picks ul { padding:0; list-style:none; margin:8px 0 0; }
.movie-picks li { padding:8px 10px; margin-top:6px; font-size:15px; line-height:1.5; overflow-wrap:anywhere; background:var(--tint); border-radius:7px; }
@media(max-width:760px) { .hero-role { font-size:19px; margin:24px 0 26px; } .author-legend { font-size:17px; } .research-subtitle { font-size:29px; } .visitor-menu__panel { top:80px; } }

/* Personal landscape behind About, softened enough to keep the biography readable. */
.hero { position:relative; isolation:isolate; overflow:hidden; margin-top:24px; padding:42px 42px 38px; border:1px solid var(--line); border-radius:22px; box-shadow:0 10px 36px #20242b08; }
.hero::before { content:''; position:absolute; z-index:-1; inset:0; background-image:linear-gradient(90deg,rgba(250,249,246,.52) 0%,rgba(250,249,246,.67) 45%,rgba(250,249,246,.72) 100%),url('../img/about-landscape.jpg'); background-position:center,center 53%; background-size:cover; }
[data-theme="dark"] .hero::before { background-image:linear-gradient(90deg,rgba(25,27,32,.72) 0%,rgba(25,27,32,.77) 50%,rgba(25,27,32,.8) 100%),url('../img/about-landscape.jpg'); }
@media(max-width:760px) { .hero { margin-top:14px; padding:26px 20px 32px; border-radius:18px; } .hero::before { background-position:center,48% center; background-image:linear-gradient(rgba(250,249,246,.74),rgba(250,249,246,.74)),url('../img/about-landscape.jpg'); } [data-theme="dark"] .hero::before { background-image:linear-gradient(rgba(25,27,32,.8),rgba(25,27,32,.8)),url('../img/about-landscape.jpg'); } }
@media(max-width:400px) { .hero { padding-inline:16px; } }
@media print { .hero { box-shadow:none; background:transparent; } .hero::before { display:none; } }
/* Use a real image element so the landscape also renders in browsers that hide negative stacking layers. */
.hero::before { display:none; }
.hero { background:var(--bg); }
.hero > .hero-landscape { position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; object-position:center 53%; opacity:.61; pointer-events:none; }
.hero > :not(.hero-landscape) { position:relative; z-index:1; }
[data-theme="dark"] .hero > .hero-landscape { opacity:.27; }
@media(max-width:760px) { .hero > .hero-landscape { opacity:.47; object-position:45% center; } [data-theme="dark"] .hero > .hero-landscape { opacity:.23; } }
@media print { .hero > .hero-landscape { display:none; } }
/* Keep the scene visible while giving the biography a calm reading surface. */
.hero__copy { padding:20px 24px 24px; border:1px solid color-mix(in srgb,var(--surface) 60%,transparent); border-radius:16px; background:rgba(250,249,246,.78); }
[data-theme="dark"] .hero__copy { background:rgba(25,27,32,.86); border-color:rgba(255,255,255,.08); }
@media(max-width:760px) { .hero__copy { padding:19px 16px 23px; background:rgba(250,249,246,.83); } [data-theme="dark"] .hero__copy { background:rgba(25,27,32,.88); } }
/* The landscape spans the viewport; About content stays aligned with the page. */
.hero { width:100vw; max-width:none; margin:18px 0 0 calc(50% - 50vw); padding:48px max(clamp(16px,2.5vw,40px),calc((100vw - var(--max-width))/2)) 42px; border:0; border-radius:0; box-shadow:none; }
.hero > .hero-landscape { opacity:.52; }
.hero__copy,[data-theme="dark"] .hero__copy { padding:0; border:0; border-radius:0; background:transparent; }
[data-theme="dark"] .hero > .hero-landscape { opacity:.25; }
@media(max-width:760px) { .hero { padding-block:32px 36px; } .hero > .hero-landscape { opacity:.42; } [data-theme="dark"] .hero > .hero-landscape { opacity:.22; } }
@media print { .hero { width:100%; margin:0; padding:0; } }
.hero > .hero-landscape { transform:scale(1.025); }

/* Three viewable About treatments. The readable panel is the default. */
:root[data-about-style="panel"] .hero > .hero-landscape { opacity:.7; }
:root[data-about-style="panel"] .hero__copy { padding:24px 28px 27px; border:1px solid rgba(255,255,255,.8); border-radius:17px; background:rgba(250,249,246,.96); box-shadow:0 14px 36px #17253018; }
:root[data-theme="dark"][data-about-style="panel"] .hero__copy { background:rgba(25,27,32,.96); border-color:rgba(255,255,255,.12); }
:root[data-about-style="glass"] .hero > .hero-landscape { opacity:.72; }
:root[data-about-style="glass"] .hero__copy { padding:24px 28px 27px; border:1px solid rgba(255,255,255,.7); border-radius:17px; background:rgba(250,249,246,.8); -webkit-backdrop-filter:blur(13px); backdrop-filter:blur(13px); box-shadow:0 14px 36px #17253018; }
:root[data-theme="dark"][data-about-style="glass"] .hero__copy { background:rgba(25,27,32,.82); border-color:rgba(255,255,255,.13); }
:root[data-about-style="fade"] .hero > .hero-landscape { opacity:.76; }
:root[data-about-style="fade"] .hero::after { content:''; position:absolute; inset:0; z-index:0; pointer-events:none; background:linear-gradient(90deg,rgba(250,249,246,.05) 0%,rgba(250,249,246,.78) 39%,rgba(250,249,246,.92) 100%); }
:root[data-theme="dark"][data-about-style="fade"] .hero::after { background:linear-gradient(90deg,rgba(25,27,32,.15) 0%,rgba(25,27,32,.8) 39%,rgba(25,27,32,.94) 100%); }
:root[data-theme="dark"] .hero > .hero-landscape { opacity:.38; }
@media(max-width:760px) {
  :root[data-about-style="panel"] .hero__copy,:root[data-about-style="glass"] .hero__copy { padding:22px 18px 25px; }
  :root[data-about-style="fade"] .hero::after { background:linear-gradient(180deg,rgba(250,249,246,.08) 0%,rgba(250,249,246,.82) 38%,rgba(250,249,246,.94) 100%); }
  :root[data-theme="dark"][data-about-style="fade"] .hero::after { background:linear-gradient(180deg,rgba(25,27,32,.14) 0%,rgba(25,27,32,.82) 38%,rgba(25,27,32,.95) 100%); }
}
@media print { .hero::after { display:none; } }

/* A quiet, responsive light across the lake and a more deliberate glass reading surface. */
:root[data-about-style="glass"] .hero {
  --scene-shift-x:0px;
  --scene-shift-y:0px;
  --light-x:68%;
  --light-y:35%;
}
:root[data-about-style="glass"] .hero > .hero-landscape {
  opacity:.79;
  transform:translate3d(var(--scene-shift-x),var(--scene-shift-y),0) scale(1.065);
  transition:transform 850ms cubic-bezier(.2,.7,.2,1),opacity .35s ease;
}
:root[data-about-style="glass"] .hero::after {
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:radial-gradient(circle 380px at var(--light-x) var(--light-y),rgba(255,255,255,.34),transparent 78%),linear-gradient(90deg,rgba(229,239,248,.12),transparent 45%,rgba(248,246,238,.16));
  transition:background .2s ease;
}
:root[data-about-style="glass"] .hero__copy {
  padding:34px 38px 37px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:25px;
  background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(250,250,247,.8) 53%,rgba(245,248,248,.77));
  -webkit-backdrop-filter:blur(20px) saturate(1.12);
  backdrop-filter:blur(20px) saturate(1.12);
  box-shadow:0 24px 60px rgba(27,43,58,.17),0 2px 8px rgba(27,43,58,.08),inset 0 1px 0 rgba(255,255,255,.85);
  transition:transform .35s ease,box-shadow .35s ease;
}
:root[data-about-style="glass"] .hero__copy::before {
  content:'';
  position:absolute;
  top:-1px;
  left:38px;
  width:100px;
  height:4px;
  border-radius:0 0 5px 5px;
  background:linear-gradient(90deg,var(--accent),color-mix(in srgb,var(--accent) 18%,transparent));
}
:root[data-about-style="glass"] .hero__copy #name {
  font-size:clamp(53px,5vw,76px);
  line-height:1.02;
  letter-spacing:-.065em;
  color:var(--ink);
  text-wrap:balance;
}
:root[data-about-style="glass"] #name > span:first-child { display:inline-block; margin-right:.12em; }
:root[data-about-style="glass"] #name .name-last { color:var(--accent); }
:root[data-about-style="glass"] .hero-role {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px 12px;
  margin:24px 0 27px;
  font-family:var(--ui-font);
  font-size:19px;
  line-height:1.45;
}
:root[data-about-style="glass"] .hero-role > span { margin:0; }
:root[data-about-style="glass"] .hero-role__primary {
  padding:4px 0 4px 14px;
  border-left:3px solid var(--accent);
  color:var(--ink);
  font-weight:700;
  letter-spacing:-.025em;
}
:root[data-about-style="glass"] .hero-role__separator { color:var(--accent); font-weight:700; }
:root[data-about-style="glass"] .hero-role__secondary { color:var(--ink-soft); font-weight:500; }
:root[data-about-style="glass"] .hero__copy .prose { font-size:20px; line-height:1.78; }
:root[data-theme="dark"][data-about-style="glass"] .hero > .hero-landscape { opacity:.51; }
:root[data-theme="dark"][data-about-style="glass"] .hero::after {
  background:radial-gradient(circle 380px at var(--light-x) var(--light-y),rgba(185,206,230,.13),transparent 78%),linear-gradient(90deg,rgba(10,19,31,.12),transparent 45%,rgba(15,19,25,.19));
}
:root[data-theme="dark"][data-about-style="glass"] .hero__copy {
  border-color:rgba(255,255,255,.18);
  background:linear-gradient(145deg,rgba(31,37,44,.89),rgba(25,31,39,.83) 58%,rgba(27,34,40,.8));
  box-shadow:0 24px 60px rgba(0,0,0,.27),inset 0 1px 0 rgba(255,255,255,.1);
}
@media(hover:hover) and (pointer:fine) {
  :root[data-about-style="glass"] .hero__copy:hover { transform:translateY(-3px); box-shadow:0 30px 68px rgba(27,43,58,.22),0 2px 8px rgba(27,43,58,.08),inset 0 1px 0 rgba(255,255,255,.88); }
  :root[data-theme="dark"][data-about-style="glass"] .hero__copy:hover { box-shadow:0 30px 68px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.12); }
}
@media(max-width:760px) {
  :root[data-about-style="glass"] .hero__copy { padding:29px 20px 30px; border-radius:20px; }
  :root[data-about-style="glass"] .hero__copy::before { left:20px; width:74px; }
  :root[data-about-style="glass"] .hero__copy #name { font-size:clamp(39px,10vw,54px); line-height:1.08; }
  :root[data-about-style="glass"] .hero-role { display:grid; gap:5px; margin:20px 0 24px; font-size:17px; }
  :root[data-about-style="glass"] .hero-role__separator { display:none; }
  :root[data-about-style="glass"] .hero-role__secondary { padding-left:17px; font-size:16px; }
  :root[data-about-style="glass"] .hero__copy .prose { font-size:19px; line-height:1.78; }
  :root[data-about-style="glass"] .hero > .hero-landscape { transform:scale(1.04); }
}
@media(prefers-reduced-motion:reduce) {
  :root[data-about-style="glass"] .hero > .hero-landscape { transform:scale(1.025); }
  :root[data-about-style="glass"] .hero__copy:hover { transform:none; }
}
@media print {
  :root[data-about-style="glass"] .hero__copy { padding:0; border:0; box-shadow:none; background:transparent; }
  :root[data-about-style="glass"] .hero__copy::before { display:none; }
}

/* Finish the top edge, contact row, and wide AIDA wordmark. */
.hero { margin-top:0; }
.hero > .contacts { grid-template-columns:repeat(5,minmax(0,1fr)); }
.hero-email { display:flex; align-items:baseline; flex-wrap:wrap; gap:5px 16px; margin-top:25px; padding-top:16px; border-top:1px solid color-mix(in srgb,var(--ink) 15%,transparent); color:var(--ink-soft); font:500 16px/1.6 var(--ui-font); }
.hero-email span:first-child { color:var(--accent); font-size:13px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
.timeline__logo-wrap--aida { display:flex; justify-content:center; align-items:center; }
.timeline__logo-wrap--aida img { flex:none; width:138px; max-width:none; height:auto; }
[data-theme="dark"] .timeline__logo-wrap--aida img { filter:url(#remove-logo-white) invert(1); }
@media(max-width:1100px) { .hero > .contacts { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
  .hero > .contacts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hero-email { font-size:15px; margin-top:22px; }
  .timeline__logo-wrap--aida img { width:116px; }
}

/* A single-color editorial name and a plain, recognizable address. */
:root[data-about-style="glass"] .hero__copy #name { font-family:'Newsreader',Georgia,serif; font-size:clamp(48px,5vw,76px); font-weight:500; letter-spacing:-.045em; line-height:1.08; color:var(--ink); margin-bottom:26px; }
.hero-email { display:block; border:0; padding:0; margin-top:24px; font-size:17px; }
.hero-email a { color:var(--ink-soft); text-decoration:underline; text-decoration-color:color-mix(in srgb,var(--ink-soft) 35%,transparent); text-underline-offset:5px; }
.hero-email a:hover { color:var(--person-link); }

@media(max-width:760px) { :root[data-about-style="glass"] .hero__copy #name { font-size:clamp(40px,10vw,54px); } }

/* Put the acceptance and author hierarchy in focus. */
.pub__authors .author-credit > a { color:var(--ink); }
.pub__authors .author-credit > a:hover { color:var(--person-link); }
.oral-badge { color:#fff; background:#bf460f; border-color:#bf460f; font-weight:700; font-size:17px; box-shadow:0 2px 7px #bf460f1c; }
.news-list .news-oral { color:#b93e05; font-size:1.04em; font-weight:800; background:linear-gradient(transparent 58%,#f7bc813b 58%); padding-inline:2px; }
[data-theme="dark"] .oral-badge { color:#1f2024; background:#ffae69; border-color:#ffae69; }
[data-theme="dark"] .news-list .news-oral { color:#ffb478; background:linear-gradient(transparent 58%,#e9964b24 58%); }
.timeline__body h3 .experience-org { color:inherit; text-decoration:none; text-decoration-thickness:1px; text-underline-offset:5px; transition:color .2s; }
.timeline__body h3 .experience-org:hover { color:var(--person-link); text-decoration:underline; box-shadow:none; }
a.timeline__logo-wrap:focus-visible { outline:2px solid var(--person-link); outline-offset:7px; }
@media(max-width:760px) { .oral-badge { font-size:15px; } }
