:root {
  --text: #20252b;
  --text-soft: #4f5964;
  --muted: #74808c;
  --blue: #315f8c;
  --blue-dark: #244c73;
  --blue-light: #eef4f9;
  --background: #ffffff;
  --background-soft: #f7f8fa;
  --border: #dce1e7;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --shell: min(1060px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

::selection {
  background: #dceaf5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.16;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 6vw, 4.4rem);
  letter-spacing: -0.035em;
}

h1 em {
  display: inline;
  color: inherit;
  font-style: normal;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
}

.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: 8px;
  left: 8px;
  padding: 9px 13px;
  background: var(--text);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-grid {
  display: none;
}

.section-shell,
.header-shell,
.footer-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-shell {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  margin-right: auto;
  align-items: center;
}

.brand-mark {
  display: none;
}

.brand > span:last-child {
  display: block;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand small {
  display: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-header nav a {
  padding: 24px 0 20px;
  border-bottom: 3px solid transparent;
  color: var(--text-soft);
  font-size: 0.87rem;
}

.site-header nav a:hover,
.site-header nav a.is-current {
  border-bottom-color: var(--blue);
  color: var(--blue-dark);
}

.site-header .faculty-link {
  color: var(--blue);
}

.menu-button {
  display: none;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  font-size: 0.75rem;
  cursor: pointer;
}

.eyebrow,
.section-index,
.module-label,
.panel-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero {
  padding: 155px 0 85px;
}

.home-hero h1 {
  max-width: 950px;
  margin: 22px 0 30px;
}

.home-hero-lead {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  margin-top: 29px;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.primary-link {
  display: inline-flex;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 4px;
  align-items: center;
  gap: 28px;
  background: var(--blue);
  color: white;
  font-size: 0.83rem;
  font-weight: 600;
}

.primary-link:hover {
  background: var(--blue-dark);
}

.quiet-link {
  color: var(--blue);
  font-size: 0.85rem;
  text-decoration: underline;
  text-decoration-color: #b7cadb;
  text-underline-offset: 4px;
}

.home-hero-line {
  display: none;
}

.home-profile-section,
.publications-section,
.visualization-section,
.home-next-section {
  padding: 80px 0;
  background: var(--background-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 28px;
}

.section-heading > div > p {
  max-width: 700px;
  margin: 17px 0 0;
  color: var(--text-soft);
}

.home-profile-copy {
  max-width: 760px;
  margin-top: 30px;
}

.home-profile-copy p {
  margin-bottom: 20px;
  color: var(--text-soft);
  font-size: 1rem;
}

.home-profile-copy p:last-child {
  margin-bottom: 0;
}

.home-profile-footer {
  display: grid;
  padding: 24px 0;
  margin-top: 42px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 30px;
}

.home-profile-footer > div:first-child {
  display: grid;
  gap: 5px;
}

.home-profile-footer strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.home-academic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.home-academic-links a {
  color: var(--blue);
  font-size: 0.82rem;
  text-decoration: underline;
  text-decoration-color: #b7cadb;
  text-underline-offset: 4px;
}

.experience-section,
.research-section {
  padding: 85px 0;
}

.experience-section .section-heading,
.research-section .section-heading {
  margin-bottom: 48px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 65px;
}

.experience-grid > div > h3 {
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 115px 1fr;
  gap: 18px;
}

.timeline time {
  color: var(--muted);
  font-size: 0.74rem;
}

.timeline strong {
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 400;
}

.timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.fellowship-card {
  padding: 21px;
  margin-top: 25px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--background-soft);
}

.fellowship-card span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
}

.fellowship-card strong {
  display: block;
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.fellowship-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.home-next-grid {
  display: grid;
  grid-template-columns: 125px repeat(2, 1fr);
  gap: 16px;
}

.home-next-card {
  display: flex;
  min-height: 190px;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 4px;
  justify-content: space-between;
  background: white;
  flex-direction: column;
}

.home-next-card:hover {
  border-color: #aebdcc;
}

.home-next-card span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.home-next-card strong {
  max-width: 390px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
}

.home-next-card i {
  color: var(--blue);
  font-size: 0.78rem;
  font-style: normal;
}

.contact-section {
  padding: 70px 0;
  border-top: 1px solid var(--border);
  background: white;
}

.contact-layout {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 270px;
  gap: 32px;
}

.contact-layout h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.contact-layout > div:nth-child(2) > p {
  max-width: 580px;
  margin: 15px 0 0;
  color: var(--text-soft);
}

.contact-actions > a {
  display: flex;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  font-size: 0.83rem;
  font-weight: 600;
}

.contact-actions p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-hero {
  padding: 145px 0 75px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 850px;
  margin: 20px 0 24px;
}

.page-hero > p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.research-page-section {
  border-top: 0;
}

.research-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.research-tab {
  display: flex;
  min-height: 210px;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 4px;
  align-items: flex-start;
  background: white;
  cursor: pointer;
  text-align: left;
  flex-direction: column;
}

.research-tab:hover,
.research-tab.is-active {
  border-color: #8eacc7;
  background: var(--blue-light);
}

.research-tab > span:first-child {
  color: var(--blue);
  font-size: 0.73rem;
  font-weight: 700;
}

.research-tab small {
  align-self: flex-end;
  margin-top: -20px;
  color: var(--muted);
  font-size: 0.65rem;
}

.research-tab strong {
  margin-top: auto;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.research-tab-description {
  display: block;
  width: 100%;
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.research-tab i {
  margin-top: 15px;
  color: var(--blue);
  font-size: 0.7rem;
  font-style: normal;
}

.research-hierarchy {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 12px;
}

.research-parent-group {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.research-parent-button,
.research-secondary-group,
.research-subtopic {
  width: 100%;
  border: 0;
  background: white;
  cursor: pointer;
  text-align: left;
}

.research-parent-button,
.research-secondary-group {
  display: grid;
  padding: 24px;
  align-items: start;
  grid-template-columns: 48px 1fr;
  gap: 15px;
}

.research-secondary-group {
  border: 1px solid var(--border);
  border-radius: 4px;
}

.research-group-number {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.research-group-copy {
  display: block;
}

.research-group-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
}

.research-group-copy > span {
  display: block;
  margin-top: 9px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.research-subtopics {
  display: grid;
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(2, 1fr);
}

.research-subtopic {
  min-height: 155px;
  padding: 20px;
  border-right: 1px solid var(--border);
  background: var(--background-soft);
}

.research-subtopic:last-child {
  border-right: 0;
}

.research-subtopic > span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.research-subtopic strong {
  display: block;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 400;
  line-height: 1.3;
}

.research-subtopic small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.research-parent-button:hover,
.research-parent-button.is-active,
.research-secondary-group:hover,
.research-secondary-group.is-active,
.research-subtopic:hover,
.research-subtopic.is-active {
  background: var(--blue-light);
}

.research-panel {
  display: grid;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
}

.research-panel-copy {
  padding: 34px;
}

.research-panel h3 {
  margin: 12px 0 15px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 400;
}

.research-panel-copy > p:not(.panel-kicker) {
  max-width: 650px;
  color: var(--text-soft);
}

.research-panel ul {
  display: flex;
  padding: 0;
  margin: 23px 0 0;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.research-panel li {
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.7rem;
}

.research-formula {
  display: flex;
  min-height: 260px;
  padding: 25px;
  border-left: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  flex-direction: column;
  text-align: center;
}

.research-formula span {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 700;
}

.research-formula strong {
  margin: 23px 0;
  color: var(--blue-dark);
  font-family: var(--serif);
  font-size: 2.3rem;
  font-weight: 400;
}

.research-formula p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.publication-tools {
  display: grid;
  margin-top: 36px;
  align-items: center;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
  gap: 20px;
}

.publication-search {
  position: relative;
  display: block;
}

.publication-search input {
  width: 100%;
  height: 43px;
  padding: 0 40px 0 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  font-size: 0.83rem;
}

.publication-search > span:last-child {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--muted);
  transform: translateY(-50%);
}

.publication-filters {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.publication-filters button {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: var(--text-soft);
  font-size: 0.72rem;
  cursor: pointer;
}

.publication-filters button:hover,
.publication-filters button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.publication-status {
  display: flex;
  padding: 15px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
}

.publication-status a {
  color: var(--blue);
}

.publication-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.publication-item {
  display: grid;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  grid-template-columns: 48px minmax(0, 1fr) 200px 30px;
  gap: 18px;
}

.publication-number {
  color: var(--muted);
  font-size: 0.72rem;
}

.publication-main h3 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.publication-main p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.publication-venue {
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

.publication-item > a {
  display: grid;
  width: 29px;
  height: 29px;
  border: 1px solid var(--border);
  border-radius: 4px;
  place-items: center;
  color: var(--blue);
  font-size: 0.75rem;
}

.publication-empty {
  padding: 40px 0;
  color: var(--muted);
  text-align: center;
}

.show-all-button {
  display: block;
  min-height: 40px;
  padding: 0 16px;
  margin: 25px auto 0;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: white;
  color: var(--blue);
  font-size: 0.78rem;
  cursor: pointer;
}

.show-all-button:hover {
  background: var(--blue-light);
}

.visualization-grid {
  display: grid;
  margin-top: 42px;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.visualization-empty {
  min-height: 180px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.visualization-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.movie-placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
  color: var(--blue);
  background: #f4f6f8;
  place-items: center;
}

.movie-placeholder svg {
  width: 82%;
}

.movie-placeholder > span {
  position: absolute;
  right: 13px;
  bottom: 12px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: white;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 600;
}

.visualization-copy {
  min-height: 175px;
  padding: 22px;
}

.visualization-copy p {
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 600;
}

.visualization-copy h3 {
  margin-bottom: 18px;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
}

.visualization-copy span {
  color: var(--muted);
  font-size: 0.72rem;
}

.movie-upload-note {
  display: grid;
  padding: 22px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  grid-template-columns: 150px 1fr;
  gap: 25px;
}

.movie-upload-note span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 700;
}

.movie-upload-note p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: white;
}

.footer-shell {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.7rem;
}

.footer-shell i {
  font-style: normal;
}

.footer-shell a {
  color: var(--blue);
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 30px, 700px);
  }

  .header-shell {
    min-height: 64px;
  }

  .menu-button {
    display: block;
  }

  .site-header nav {
    position: absolute;
    top: 64px;
    right: 15px;
    left: 15px;
    display: none;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    align-items: stretch;
    background: white;
    box-shadow: 0 10px 30px rgba(22, 36, 50, 0.1);
    flex-direction: column;
    gap: 0;
  }

  .site-header nav.is-open {
    display: flex;
  }

  .site-header nav a {
    padding: 11px 2px;
    border-bottom: 1px solid var(--border);
  }

  .site-header nav a:last-child {
    border-bottom: 0;
  }

  .section-heading,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .experience-grid,
  .research-panel {
    grid-template-columns: 1fr;
  }

  .research-hierarchy {
    grid-template-columns: 1fr;
  }

  .home-profile-footer {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .home-next-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-next-grid > .section-index {
    grid-column: 1 / -1;
  }

  .research-formula {
    min-height: 210px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .publication-tools {
    grid-template-columns: 1fr;
  }

  .publication-filters {
    justify-content: flex-start;
  }

  .publication-item {
    grid-template-columns: 42px minmax(0, 1fr) 30px;
  }

  .publication-venue {
    padding-left: 60px;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .publication-item > a {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .home-hero,
  .page-hero {
    padding: 115px 0 65px;
  }

  .hero-actions,
  .primary-link {
    width: 100%;
  }

  .primary-link {
    justify-content: space-between;
  }

  .home-profile-section,
  .publications-section,
  .visualization-section,
  .home-next-section,
  .experience-section,
  .research-section {
    padding: 65px 0;
  }

  .home-academic-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .experience-grid {
    gap: 45px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .home-next-grid,
  .research-tabs,
  .visualization-grid {
    grid-template-columns: 1fr;
  }

  .research-subtopics {
    grid-template-columns: 1fr;
  }

  .research-subtopic {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .research-subtopic:last-child {
    border-bottom: 0;
  }

  .home-next-grid > .section-index {
    grid-column: auto;
  }

  .research-tab {
    min-height: 190px;
  }

  .research-panel-copy {
    padding: 25px;
  }

  .publication-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .publication-filters button:first-child {
    grid-column: 1 / -1;
  }

  .publication-status {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .publication-item {
    gap: 11px;
  }

  .publication-venue {
    padding-left: 53px;
  }

  .movie-upload-note {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-shell {
    padding: 20px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
