:root {
  --navy: #102a4c;
  --navy-2: #183b67;
  --blue: #245b9e;
  --blue-light: #eaf1f8;
  --accent: #9b334a;
  --accent-soft: #f8edf0;
  --ink: #152b47;
  --muted: #5d6d80;
  --line: #d9e1ea;
  --surface: #f5f8fb;
  --white: #ffffff;
  --max: 1160px;
  --shadow: 0 16px 44px rgba(16, 42, 76, 0.09);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { color: var(--white); background: var(--accent); }

.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;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 14px;
  color: var(--white);
  background: var(--navy);
  border-radius: 4px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.shell, .nav-shell { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(16, 42, 76, 0.04); }
.nav-shell { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-size: 14px; font-weight: 720; text-decoration: none; letter-spacing: -0.01em; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: var(--white); background: var(--navy); border-radius: 3px; box-shadow: 3px 3px 0 var(--accent); font-size: 11px; letter-spacing: 0.04em; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { position: relative; color: #40536a; font-size: 13px; font-weight: 620; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform 160ms ease; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--blue); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--navy); transition: transform 180ms ease, opacity 180ms ease; }

.hero { padding: 76px 0 70px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr); gap: clamp(50px, 8vw, 105px); align-items: center; }
.eyebrow, .card-kicker, .section-index { margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 760; letter-spacing: 0.13em; line-height: 1.3; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.17; letter-spacing: -0.025em; }
h1 { max-width: 760px; margin-bottom: 13px; font-size: clamp(2.35rem, 4.2vw, 3.4rem); font-weight: 760; }
h2 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 730; }
h3 { margin-bottom: 10px; font-size: 1.08rem; font-weight: 710; }
.hero-role { max-width: 680px; margin-bottom: 16px; color: var(--blue); font-size: clamp(1.05rem, 2vw, 1.28rem); line-height: 1.45; }
.hero-about { max-width: 720px; margin-top: 28px; padding-top: 23px; border-top: 1px solid var(--line); }
.hero-about h2 { margin-bottom: 11px; font-size: 1.1rem; letter-spacing: -0.01em; }
.hero-about p { margin-bottom: 10px; color: var(--muted); font-size: 0.96rem; line-height: 1.7; }
.eyebrow::before { content: ""; display: inline-block; width: 19px; height: 2px; margin: 0 9px 3px 0; background: var(--accent); }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border: 1px solid var(--navy); border-radius: 3px; font-size: 13px; font-weight: 680; line-height: 1; text-decoration: none; cursor: pointer; transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--navy); }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-secondary { color: var(--navy); background: var(--white); }
.button-secondary:hover { color: var(--blue); border-color: var(--blue); }

.profile-card { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.profile-card-intro { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: center; margin-bottom: 22px; }
.profile-card-intro img { width: 90px; height: 112px; display: block; object-fit: cover; object-position: 50% 24%; border-radius: 4px; box-shadow: 7px 7px 0 var(--accent-soft); }
.profile-card-intro .card-kicker { margin-bottom: 7px; }
.profile-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.profile-facts { margin: 0 0 20px; }
.profile-facts div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.profile-facts dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.profile-facts dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.5; }
.profile-facts dd a { color: var(--blue); text-decoration: none; overflow-wrap: anywhere; }
.profile-facts dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 20px; }
.contact-links a { color: var(--blue); font-size: 12px; font-weight: 680; text-decoration: none; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy-email { padding: 0; color: var(--blue); background: none; border: 0; font-size: 12px; font-weight: 680; cursor: pointer; }
.copy-email:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link, .card-links a, .publication-links a, .hse-links a { color: var(--blue); font-size: 13px; font-weight: 680; text-decoration: none; }
.text-link:hover, .card-links a:hover, .publication-links a:hover, .hse-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.section { padding: 72px 0; }
.section-tinted { background: var(--surface); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading-row > p { max-width: 480px; margin: 0 0 3px; color: var(--muted); font-size: 13px; text-align: right; }

.education-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.education-card { min-height: 200px; padding: 27px; border: 1px solid var(--line); border-radius: 5px; }
.education-period { margin-bottom: 22px; color: var(--blue); font-size: 11px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }
.education-card h3 { max-width: 460px; font-size: 1.18rem; }
.education-org { margin-bottom: 10px; color: var(--blue); font-size: 13px; font-weight: 680; }
.education-card > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; }

.section-navy { color: #dbe6f2; background: var(--navy); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy .section-index, .section-navy .publication-meta { color: #8fb7e6; }
.section-navy .section-heading-row { border-color: rgba(255, 255, 255, 0.18); }
.section-navy .section-heading-row > p { color: #b8c7d8; }
.publication-list { margin: 0; padding: 0; list-style: none; }
.publication { display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 27px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.publication:first-child { border-top: 1px solid rgba(255, 255, 255, 0.16); }
.publication-number { color: #8fb7e6; font-size: 12px; font-weight: 720; letter-spacing: 0.08em; }
.publication-meta { margin-bottom: 8px; font-size: 11px; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase; }
.publication h3 { max-width: 900px; margin-bottom: 8px; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.authors { margin-bottom: 11px; color: #bdcad8; font-size: 13px; }
.publication-links { display: flex; flex-wrap: wrap; gap: 18px; }
.publication-links a { color: #b7d7fb; }
.paper-visual { display: grid; grid-template-columns: minmax(320px, 0.9fr) 1.1fr; gap: 34px; align-items: center; margin: 0 0 22px; padding: 24px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 5px; }
.paper-visual > a { display: block; padding: 13px; background: var(--white); border-radius: 3px; }
.paper-visual img { width: 100%; height: auto; display: block; }
.paper-visual figcaption { max-width: 470px; color: #bdcad8; font-size: 13px; line-height: 1.65; }
.paper-visual figcaption > span { display: block; margin-bottom: 5px; color: var(--white); font-size: 1.02rem; font-weight: 710; }
.paper-visual figcaption a { margin-left: 5px; color: #b7d7fb; font-weight: 680; text-decoration: none; white-space: nowrap; }
.paper-visual figcaption a:hover { text-decoration: underline; text-underline-offset: 3px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { position: relative; min-height: 255px; display: flex; flex-direction: column; padding: 23px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease; }
.project-card:hover { transform: translateY(-3px); border-color: #afc2d6; box-shadow: var(--shadow); }
.project-top { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 28px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.project-card p { margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.stretched-link { margin-top: auto; color: var(--blue); font-size: 13px; font-weight: 680; text-decoration: none; }
.stretched-link::after { content: ""; position: absolute; inset: 0; }

.timeline { max-width: 920px; margin-left: auto; }
.timeline-item { display: grid; grid-template-columns: 150px 1fr; gap: 30px; padding: 24px 0; border-top: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: 1px solid var(--line); }
.timeline-period { color: var(--blue); font-size: 12px; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase; }
.timeline-item h3 { margin-bottom: 3px; }
.timeline-org { margin-bottom: 8px; color: var(--blue); font-size: 13px; font-weight: 650; }
.timeline-item div:last-child > p:last-child { max-width: 700px; margin-bottom: 0; color: var(--muted); font-size: 13px; }
.research-gallery { max-width: 760px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(200px, 0.65fr); gap: 14px; align-items: start; margin: 30px 0 0 auto; }
.research-photo { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.research-photo img { width: 100%; height: auto; display: block; }
.research-photo figcaption { padding: 13px 15px 15px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.research-photo figcaption span { display: block; margin-bottom: 3px; color: var(--accent); font-size: 10px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }

.conference-layout { display: block; }
.conference-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 32px; }
.conference-photo { display: grid; grid-template-rows: 260px auto; margin: 0; padding: 8px; background: var(--white); border: 1px solid rgba(19, 55, 99, 0.28); border-radius: 8px; box-shadow: 0 12px 30px rgba(19, 55, 99, 0.08); overflow: hidden; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.conference-photo:hover { transform: translateY(-3px); border-color: rgba(20, 83, 154, 0.48); box-shadow: 0 17px 38px rgba(19, 55, 99, 0.13); }
.conference-photo img { width: 100%; height: 260px; padding: 9px; object-fit: contain; display: block; background: linear-gradient(145deg, #f7f9fc 0%, #edf2f8 100%); border: 1px solid rgba(19, 55, 99, 0.12); border-radius: 5px; }
.conference-photo figcaption { min-height: 72px; padding: 14px 9px 8px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.conference-photo figcaption span { display: block; margin-bottom: 3px; color: var(--accent); font-size: 10px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }
.conference-list { border-top: 1px solid var(--line); }
.conference-item { display: grid; grid-template-columns: 112px 1fr auto; gap: 20px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.conference-item > div { display: flex; flex-direction: column; }
.conference-item time { color: var(--blue); font-size: 11px; font-weight: 760; }
.conference-item div span { color: var(--muted); font-size: 12px; }
.conference-item h3 { margin: 0; font-size: 0.98rem; }
.conference-item > a { color: var(--blue); font-size: 12px; font-weight: 680; text-decoration: none; }
.conference-item > a:hover { text-decoration: underline; }

.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.skill-group { padding: 25px; border: 1px solid var(--line); border-radius: 5px; }
.skill-group h3 { margin-bottom: 17px; font-size: 1rem; }
.skill-tags, .language-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.skill-tags li, .language-list li { padding: 6px 10px; color: var(--navy-2); background: var(--surface); border: 1px solid var(--line); border-radius: 3px; font-size: 12px; font-weight: 620; }
.language-list li { min-width: 92px; text-align: center; }

.teaching-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.teaching-card { padding: 27px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.teaching-card p:not(.card-kicker) { color: var(--muted); }
.teaching-gallery { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.teaching-photo { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.teaching-photo img { width: 100%; height: auto; display: block; }
.teaching-photo figcaption { padding: 12px 14px 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.teaching-photo figcaption span { display: block; margin-bottom: 3px; color: var(--accent); font-size: 10px; font-weight: 760; letter-spacing: 0.08em; text-transform: uppercase; }

.media-feature { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: 18px; padding: 28px; color: #dbe6f2; background: var(--navy); border-radius: 5px; }
.media-feature h3 { color: var(--white); font-size: 1.32rem; }
.media-feature p:not(.card-kicker) { max-width: 760px; margin-bottom: 0; color: #bdcad8; font-size: 13px; }
.media-feature .card-kicker { color: #8fb7e6; }
.media-feature .button { white-space: nowrap; color: var(--navy); background: var(--white); border-color: var(--white); }
.coverage-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.coverage-item { display: flex; justify-content: space-between; gap: 15px; padding: 17px; color: var(--navy); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 680; text-decoration: none; }
.coverage-item:hover { color: var(--blue); background: var(--surface); }
.hse-links { display: flex; align-items: center; gap: 26px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.hse-links h3 { margin: 0 auto 0 0; font-size: 0.96rem; }

.site-footer { padding: 19px 0; color: #8798aa; background: #07182c; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .shell { display: flex; justify-content: space-between; align-items: center; }
.site-footer p { margin: 0; font-size: 12px; }
.site-footer a { color: #afc5db; font-size: 12px; text-decoration: none; }

.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; padding: 10px 14px; color: var(--white); background: var(--navy); border-radius: 3px; box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-nav { gap: 15px; }
  .site-nav a { font-size: 12px; }
  .hero-grid { grid-template-columns: 1.35fr 0.85fr; gap: 45px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .education-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .conference-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conference-item { grid-template-columns: 88px 1fr auto; gap: 14px; }
}

@media (max-width: 790px) {
  html { scroll-padding-top: 70px; }
  .shell, .nav-shell { width: min(calc(100% - 32px), var(--max)); }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 68px 0 auto; display: grid; gap: 0; padding: 12px 16px 22px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease; }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-nav a { padding: 12px 10px; font-size: 14px; }
  .site-nav a::after { display: none; }
  .hero { padding: 60px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .profile-card { max-width: 520px; }
  .section { padding: 56px 0; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 27px; }
  .section-heading-row > p { max-width: 620px; text-align: left; }
  .timeline { margin-left: 0; }
  .research-gallery { margin-left: 0; }
  .conference-item { grid-template-columns: 125px 1fr auto; gap: 18px; }
  .paper-visual { grid-template-columns: 1fr; gap: 18px; }
  .media-feature { grid-template-columns: 1fr; gap: 22px; }
  .media-feature .button { justify-self: start; }
  .hse-links { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .hero { padding: 46px 0 52px; }
  .hero-role { font-size: 1.02rem; }
  .profile-facts div { grid-template-columns: 78px 1fr; }
  .profile-card-intro { grid-template-columns: 78px 1fr; gap: 15px; }
  .profile-card-intro img { width: 78px; height: 98px; }
  .section { padding: 48px 0; }
  .project-grid, .education-grid, .skills-grid, .teaching-grid, .teaching-gallery, .coverage-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 220px; }
  .publication { grid-template-columns: 30px 1fr; gap: 11px; }
  .paper-visual { padding: 16px; }
  .publication-meta { line-height: 1.55; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .research-gallery { grid-template-columns: 1fr; }
  .research-photo-presentation { max-width: 240px; }
  .conference-gallery { grid-template-columns: 1fr; }
  .conference-photo { grid-template-rows: 280px auto; }
  .conference-photo img { height: 280px; }
  .conference-item { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .conference-item > div { grid-column: 1 / -1; flex-direction: row; gap: 10px; }
  .conference-item h3 { font-size: 0.93rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
