@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-hover: #e7eef7;
  --text: #142e47;
  --muted: #53687d;
  --accent: #235bc4;
  --on-accent: #ffffff;
  --accent-hover: #174696;
  --line: #d2deea;
  --line-strong: #91afcb;
  --max: 1160px;
  --font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 900px;
  pointer-events: none;
  background: radial-gradient(ellipse at 85% 22%, #c5def480, transparent 65%);
}
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent); text-underline-offset: 5px; }
a:hover { color: var(--text); }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
svg { display: block; max-width: 100%; }
p { margin: 0 0 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { color: var(--text); font-weight: 500; line-height: 1.15; }
h1, h2 { text-wrap: balance; }
h3 { text-wrap: pretty; }
h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.65rem); letter-spacing: -.045em; }
h3 { margin: 0 0 .75rem; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.35; }
strong { font-weight: 600; }
.container { width: min(var(--max), calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.eyebrow, .section-number, .project-label, .visual-label {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* A compact masthead keeps the research in view. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; color: var(--accent); }
.brand-mark svg { width: 100%; height: auto; }
.brand-title { display: flex; flex-direction: column; line-height: 1.3; }
.brand-title strong { font-weight: 500; font-size: 1.0625rem; letter-spacing: -.02em; }
.brand-title span { color: var(--muted); font-size: .8125rem; margin-top: 3px; }
nav { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--muted); font-size: .9375rem; text-decoration: none; padding-block: 12px; position: relative; }
.nav-link:hover, .nav-link[aria-current] { color: var(--text); }
.nav-link[aria-current]::after { content: ''; position: absolute; bottom: 3px; left: 0; right: 0; height: 1px; background: var(--accent); }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; font-size: .875rem; }
.menu-icon { width: 15px; height: 10px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }

/* The portrait introduces the researcher; the schematic supports the background. */
.hero { display: grid; grid-template-columns: 1.3fr .9fr; gap: 64px; align-items: center; padding: 76px 0 64px; }
.hero .eyebrow { margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.hero .eyebrow::before { content: ''; width: 26px; height: 1px; background: var(--accent); }
.hero h1 { font-size: clamp(2.7rem, 5.1vw, 4.3rem); letter-spacing: -.055em; line-height: 1.07; margin: 0 0 28px; max-width: 650px; }
.hero h1 span { color: var(--accent); }
.hero .subtitle { font-size: 1.125rem; line-height: 1.75; max-width: 48ch; }
.hero-portrait { margin: 0; width: min(100%, 360px); justify-self: end; }
.hero-portrait figcaption { display: flex; flex-direction: column; gap: 5px; padding-top: 16px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
.hero-portrait figcaption strong { font-size: 1.0625rem; font-weight: 500; color: var(--text); }
.hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
.hero-collaboration { margin: 24px 0 0; font-size: .9375rem; }
.hero-collaboration a { white-space: nowrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 12px 18px; min-height: 46px; border: 1px solid var(--line); background: transparent; color: var(--text); text-decoration: none; font-size: .9375rem; cursor: pointer; border-radius: 3px; }
.btn:hover { background: var(--surface-hover); border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 500; }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.text-link { display: inline-flex; gap: 14px; align-items: center; font-size: .9375rem; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.research-visual { margin: 0; min-width: 0; }
.visual-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.visual-topline .visual-label { font-size: .75rem; letter-spacing: .06em; }
.visual-dot { height: 5px; width: 5px; background: var(--accent); border-radius: 50%; }
.river-map { width: 100%; height: auto; margin-block: 6px; }
.research-visual figcaption { display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); padding-top: 12px; font-size: .8125rem; color: var(--muted); }
.affiliations { display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: center; padding: 26px 0; border-block: 1px solid var(--line); }
.affiliation { display: flex; flex-direction: column; gap: 2px; }
.affiliation span { color: var(--muted); font-size: .875rem; }
.affiliation strong { font-weight: 500; font-size: 1rem; }
.profile-links { display: flex; flex-wrap: wrap; gap: 18px; }
.profile-links a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.profile-links a:hover { color: var(--accent); text-decoration: underline; }
.research-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.research-groups > p { grid-column: 1 / -1; margin: 0; font-size: .875rem; }
.research-groups > a, .collaboration-group { display: flex; flex-direction: column; gap: 5px; min-height: 44px; font-size: .9375rem; text-decoration: none; }
.collaboration-group a { text-decoration: none; }
.collaboration-group a:hover { text-decoration: underline; }
.group-network { font-size: .875rem; margin-top: 4px; }
.group-name { line-height: 1.5; }
.group-name > span { display: inline-block; margin-left: 6px; }
.group-lead { font-size: .875rem; color: var(--muted); }
.research-groups a:hover .group-name { text-decoration: underline; }

/* Open sections use type and fine rules instead of nested panels. */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading p { max-width: 48ch; font-size: 1rem; }
.section-number { display: block; margin-bottom: 16px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; }
.item { min-width: 0; }
.item ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 1rem; }
.item li { padding-left: 3px; margin-bottom: 8px; }
.meta { font-size: .9375rem; color: var(--muted); margin-bottom: 14px; }
.research-topics .item { border-top: 1px solid var(--line); padding-top: 22px; }
.research-topics h3 { margin-bottom: 14px; }
.research-topics p { font-size: 1rem; }
.method-note { font-size: .875rem !important; color: var(--accent); padding-top: 12px; }
.project-grid { gap: 20px; }
.project-grid .item { padding: 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; display: flex; flex-direction: column; align-items: flex-start; }
.project-grid .item:hover { border-color: var(--line-strong); }
.project-grid .current-project {
  grid-column: 1 / -1;
  color-scheme: dark;
  --surface: #102d49;
  --text: #f2f7fb;
  --muted: #c3d3e1;
  --accent: #95dce8;
  --on-accent: #102d49;
  --line: #3a536b;
  --line-strong: #547a98;
}
.current-project > p { max-width: 76ch; font-size: 1rem; }
.project-label { margin-bottom: 32px; font-size: .75rem; }
.project-grid h3 { font-size: 1.45rem; margin-bottom: 10px; }
.project-grid .meta { margin-bottom: 8px; }
.project-grid .item ul { margin-top: 8px; }
.project-grid .project-link { margin-top: auto; padding-top: 24px; }
.project-grid .project-link a { font-size: .9375rem; text-decoration: none; }
.project-grid .project-link a:hover { text-decoration: underline; }
.publication-list { border-top: 1px solid var(--line); }
.publication { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.publication-year { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .875rem; padding-top: 4px; }
.publication h3 { font-size: 1.12rem; margin-bottom: 8px; }
.publication .meta { margin: 0; }
.publication .text-link { margin-top: 4px; white-space: nowrap; }
.publication-fallback { padding: 28px 0; }
.publication-fallback p { font-size: .9rem; margin-bottom: 16px; }
.publication-footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.publication-footer p { font-size: .875rem; margin: 0; }
.about-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; }
.about-layout > .section-heading { display: block; align-self: start; margin-bottom: 0; }
.profile-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center; border: 1px solid var(--line); border-radius: 6px; }
.about-layout .research-visual { width: 100%; max-width: 340px; margin-top: 30px; }
.about-body > p { font-size: 1.05rem; }
.about-jump-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
details { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-size: .9rem; color: var(--text); padding-right: 12px; }
details[open] > summary { margin-bottom: 20px; }
details p { font-size: .95rem; }
.experience-grid { row-gap: 32px; }
.experience-grid > .item { border-top: 1px solid var(--line); padding-top: 22px; }
.contact-section { padding-bottom: 60px; border-bottom: 0; }
.contact-section > .section-heading { display: block; }
.contact-section h2 { max-width: 680px; font-size: clamp(2.25rem, 4.7vw, 3.75rem); }
.contact-section > p { max-width: 56ch; margin-top: 24px; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.contact-email { color: var(--accent); font-size: clamp(1rem, 2.5vw, 1.4rem); text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.copy-email { padding: 8px 12px; font-size: .875rem; }
.contact-section .profile-links { margin-top: 26px; }
.contact-section details { margin-top: 48px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 24px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.site-footer a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.site-footer a:hover { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  a, button { transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
  .project-grid .item { transition: border-color .18s ease; }
}
@media (min-width: 761px) {
  #primaryNav { display: flex !important; }
}
@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .hero { gap: 28px; padding-top: 76px; }
  .hero h1 { font-size: clamp(2.5rem, 5.5vw, 3.6rem); }
  .affiliations { grid-template-columns: 1fr 1fr; gap: 22px; }
  .affiliations .profile-links { grid-column: 1 / -1; }
  .about-layout { gap: 40px; }
  nav { gap: 20px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 90px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 74px; flex-wrap: wrap; gap: 0; padding-block: 12px; }
  .brand-title span { font-size: .8125rem; }
  .js .menu-toggle { display: inline-flex; }
  #primaryNav { width: 100%; gap: 0; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 12px; padding: 10px 0 0; }
  #primaryNav[hidden] { display: none; }
  .nav-link { padding: 12px 0; }
  .hero { grid-template-columns: 1fr; padding: 58px 0 40px; gap: 44px; }
  .hero h1 { font-size: clamp(2.55rem, 8.7vw, 4rem); max-width: 600px; margin-bottom: 24px; }
  .hero .subtitle { font-size: 1.0625rem; max-width: 52ch; }
  .hero .eyebrow { font-size: .75rem; margin-bottom: 20px; }
  .hero-actions { margin-top: 26px; }
  .hero-portrait { width: min(100%, 360px); justify-self: center; }
  .research-groups { grid-template-columns: 1fr 1fr; gap: 18px 28px; }
  .research-groups > p { grid-column: 1 / -1; }
  .river-map { max-height: 325px; }
  .affiliations { padding-block: 24px; gap: 22px 16px; }
  .affiliation strong { font-size: .9rem; }
  .section { padding-block: 58px; }
  .section-heading, .about-layout { grid-template-columns: 1fr; gap: 20px; }
  .section-heading { margin-bottom: 30px; }
  .grid-3 { grid-template-columns: 1fr; gap: 26px; }
  .research-topics .item { display: grid; grid-template-columns: 1fr 1.5fr; column-gap: 26px; }
  .research-topics .item h3 { grid-row: 1 / 3; }
  .research-topics .method-note { padding-top: 0; }
  .grid-2 { gap: 28px; }
  .project-grid { gap: 16px; }
  .project-grid .item { padding: 24px; }
  .project-grid h3 { font-size: 1.25rem; }
  .publication { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding-block: 24px; }
  .publication > .text-link { grid-column: 2; margin-top: 0; justify-self: start; }
  .publication h3 { font-size: 1.05rem; }
  .contact-section { padding-bottom: 40px; }
}
@media (max-width: 520px) {
  .brand { gap: 6px; }
  .brand-title strong { font-size: .9rem; }
  .brand-mark { width: 27px; }
  .menu-toggle { padding-inline: 10px; font-size: .8rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .research-topics .item { display: block; }
  .project-label { margin-bottom: 24px; }
  .affiliations { grid-template-columns: 1fr; }
  .affiliations .profile-links { grid-column: auto; margin-top: 4px; }
  .hero-actions { gap: 22px; }
  .contact-row { gap: 18px; }
  .research-groups { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  :root { color-scheme: light; --bg: white; --text: #172333; --muted: #35475b; --accent: #164d66; --line: #c7d0d9; --surface: white; }
  body { font-size: 10pt; }
  body::before, .menu-toggle, .hero-actions, .copy-email { display: none !important; }
  .site-header { position: static; }
  .container { width: 100%; }
  .hero { padding-block: 30px; gap: 24px; }
  .hero h1 { font-size: 30pt; }
  .section { padding-block: 30px; }
  .project-grid .item, .publication { break-inside: avoid; }
  .project-grid .current-project { color-scheme: light; --surface: white; --text: #172333; --muted: #35475b; --accent: #164d66; --line: #c7d0d9; }
}
