:root {
  color-scheme: light;
  --ink: #152033;
  --muted: #647087;
  --line: #dce2eb;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --soft: #eef2f8;
  --accent: #2656c9;
  --accent-strong: #193f9d;
  --tint: #e7edfc;
  --header: rgba(245, 247, 251, 0.9);
  --shadow: 0 16px 42px rgba(31, 50, 88, 0.09);
  --heading: "Manrope", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --max: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2fb;
  --muted: #9aa7ba;
  --line: #263248;
  --paper: #0b1120;
  --surface: #111a2b;
  --soft: #172237;
  --accent: #81a6ff;
  --accent-strong: #a9c1ff;
  --tint: #172a52;
  --header: rgba(11, 17, 32, 0.9);
  --shadow: 0 20px 52px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .25s, color .25s; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; background: var(--ink); color: var(--paper); padding: .7rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-shell { height: 76px; max-width: var(--max); margin: auto; padding: 0 28px; display: flex; align-items: center; }
.brand { font: 800 24px/1 var(--heading); letter-spacing: -.05em; }
.brand span, .hero h1 span { color: var(--accent); }
nav { display: flex; gap: 30px; align-items: center; margin-left: auto; margin-right: 24px; }
nav a { color: var(--muted); font-size: 13px; font-weight: 600; transition: .2s; }
nav a:hover { color: var(--accent); }
.nav-toggle { display: none; border: 0; background: none; padding: 6px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 23px; height: 2px; background: var(--ink); margin: 5px; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; transition: .2s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moon-icon { display: none; }
[data-theme="dark"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: block; }

main { overflow: hidden; }
.hero { max-width: var(--max); min-height: 600px; margin: auto; padding: 72px 28px 64px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 84px; align-items: center; }
.eyebrow { margin: 0 0 17px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.hero h1 { margin: 0 0 24px; font: 800 clamp(52px, 6vw, 78px)/1 var(--heading); letter-spacing: -.052em; }
.hero-role { margin: 0 0 2px; font: 600 19px/1.45 var(--heading); }
.hero-location { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.research-line { margin: 0; color: var(--muted); font-size: 14px; }
.research-line i { margin: 0 7px; color: var(--line); font-style: normal; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.button { display: inline-flex; align-items: center; gap: 14px; padding: 12px 19px; border: 1px solid var(--accent); border-radius: 8px; font-size: 13px; font-weight: 700; transition: .2s; }
.button.primary { background: var(--accent); color: #fff; }
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.text-link, .inline-link { padding-bottom: 3px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.text-link:hover, .inline-link:hover { color: var(--accent); border-color: var(--accent); }
.portrait-wrap { position: relative; width: 300px; height: 360px; justify-self: end; align-self: center; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: var(--tint); border: 1px solid var(--line); border-radius: 18px; }
.portrait-wrap img { display: block; position: absolute; left: 50%; top: 0; width: 116%; height: auto; max-width: none; transform: translateX(-50%); filter: saturate(.9); }

.section { max-width: var(--max); margin: auto; padding: 82px 28px; display: grid; grid-template-columns: 150px 1fr; gap: 42px; border-top: 1px solid var(--line); }
.section-label { padding-top: 9px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.section-label span { margin-right: 12px; color: var(--accent); }
.section h2, .contact h2 { margin: 0; font: 700 clamp(30px, 3.3vw, 44px)/1.18 var(--heading); letter-spacing: -.035em; }
.about-grid { display: block; max-width: 850px; }
.about-grid p { margin: 0 0 18px; color: var(--muted); font-size: 16.5px; line-height: 1.78; }
.about-grid .lead { color: var(--ink); font-size: 18px; line-height: 1.7; }
.about-grid p a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.link-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.link-row a, .contact-links a { border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.compact-title { margin-bottom: 30px !important; font-size: 32px !important; }

.news { padding-top: 64px; padding-bottom: 64px; }
.news-list { max-height: 228px; overflow-y: auto; overscroll-behavior: contain; padding-right: 14px; border-top: 1px solid var(--line); scrollbar-color: var(--accent) var(--soft); scrollbar-width: thin; }
.news-list::-webkit-scrollbar { width: 6px; }
.news-list::-webkit-scrollbar-track { background: var(--soft); }
.news-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 6px; }
.news-list article { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--accent); font-size: 13px; font-weight: 700; }
.news-list p { margin: 0; color: var(--muted); }
.news-list p a { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 8px; }

.publication-list { border-top: 1px solid var(--line); }
.publication-item { display: grid; grid-template-columns: 92px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub-year { padding-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.pub-meta { display: flex; gap: 10px; margin-bottom: 14px; }
.pub-meta span { padding: 5px 8px; background: var(--tint); border-radius: 5px; color: var(--accent-strong); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pub-body h3 { max-width: 800px; margin: 0 0 10px; font: 700 20px/1.4 var(--heading); letter-spacing: -.02em; }
.pub-body p { margin: 5px 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.pub-body strong { color: var(--ink); }
.pub-detail { font-style: italic; }
.card-links { display: flex; gap: 22px; margin-top: 16px; }
.card-links a { color: var(--accent); font-size: 13px; font-weight: 700; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.timeline-copy .company { margin: 0 0 7px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.timeline-copy .company a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.timeline-copy .company a:hover { border-color: var(--accent); }
.timeline-copy h3 { margin: 0 0 12px; font: 700 25px var(--heading); letter-spacing: -.025em; }
.timeline-copy > p:not(.company), .timeline-copy li { max-width: 760px; color: var(--muted); font-size: 15.5px; line-height: 1.75; }
.timeline-copy .advisors { margin-top: -3px; color: var(--ink) !important; font-size: 13.5px !important; }
.timeline-copy ul { padding-left: 20px; }
.timeline-copy li { margin: 7px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tags span { padding: 5px 9px; background: var(--soft); border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.inline-link { display: inline-block; margin-top: 10px; color: var(--accent); }

.academic-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 56px; }
.academic-list h3 { margin: 0 0 12px; font: 700 17px var(--heading); }
.academic-list ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.academic-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.academic-list li > span { min-width: 0; }
.academic-list strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.5; }
.academic-list small { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.academic-list time { flex: 0 0 auto; padding-top: 2px; color: var(--muted); font-size: 11px; font-weight: 600; }
.full-list { grid-column: 1/-1; }

.project-list { border-top: 1px solid var(--line); }
.project-item { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.project-index { padding-top: 3px; color: var(--muted); font: 700 12px var(--heading); }
.project-type { margin: 0 0 7px !important; color: var(--accent) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-body h3 { max-width: 680px; margin: 0 0 9px; font: 700 21px/1.35 var(--heading); letter-spacing: -.02em; }
.project-body > p:not(.project-type) { max-width: 760px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.72; }
.project-body .inline-link { margin-top: 16px; }

.contact { padding: 115px 28px; background: #101a2d; color: #fff; text-align: center; }
.contact .eyebrow { color: #9db0ff; font-size: 14px; letter-spacing: .18em; }
.contact h2 { max-width: 940px; margin: 0 auto 24px; font-size: clamp(40px, 5vw, 64px); }
.contact > p:not(.eyebrow) { margin-bottom: 38px; color: #aeb7c5; }
.contact .button { background: #fff; border-color: #fff; color: #101a2d; }
.button.large { padding: 16px 24px; font-size: 15px; }
.contact-links { display: flex; justify-content: center; gap: 28px; margin-top: 50px; }
.contact-links a { color: #c7ced9; border-color: #5b6472; }
footer { max-width: var(--max); margin: auto; padding: 30px 28px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
footer a { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .65fr; gap: 20px; }
  .hero h1 { font-size: 62px; }
  .portrait-wrap { width: 270px; height: 325px; }
  .section { grid-template-columns: 120px 1fr; gap: 20px; }
}

@media (max-width: 700px) {
  .nav-shell { height: 68px; padding: 0 20px; }
  .nav-toggle { display: block; margin-left: auto; margin-right: 8px; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; padding: 12px 20px 24px; flex-direction: column; align-items: flex-start; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { width: 100%; padding: 10px 0; }
  .hero { min-height: auto; padding: 58px 20px 48px; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(50px, 16vw, 70px); }
  .hero-role { font-size: 18px; }
  .research-line { line-height: 2; }
  .portrait-wrap { width: 250px; height: 300px; justify-self: center; order: -1; }
  .section { display: block; padding: 76px 20px; }
  .section-label { margin-bottom: 38px; }
  .section-heading { align-items: flex-start; }
  .section-heading > .text-link { display: none; }
  .publication-item { grid-template-columns: 1fr; gap: 8px; padding: 24px 0; }
  .pub-body h3 { font-size: 21px; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .academic-lists { grid-template-columns: 1fr; }
  .full-list { grid-column: auto; }
  .project-item { grid-template-columns: 42px 1fr; gap: 12px; padding: 25px 0; }
  .news-list article { grid-template-columns: 95px 1fr; }
  .contact { padding: 88px 20px; }
  .contact h2 br { display: none; }
  .contact-links { flex-wrap: wrap; }
  .hero-actions { gap: 20px; }
  footer { padding: 25px 20px; }
}

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