:root {
  --ink: #202124;
  --muted: #5f6368;
  --line: #d9dde3;
  --soft: #f6f7f9;
  --accent: #8c1d40;
  --accent-dark: #64142f;
  --max-width: 1040px;
  --sidebar-width: 184px;
  --header-height: 61px;
}

* { box-sizing: border-box; }

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

.home-page { padding-left: var(--sidebar-width); }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.62;
}

a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { color: var(--accent-dark); }

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

.site-nav {
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  color: #3c4043;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a::after {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  background: transparent;
  content: "";
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--accent); }

.nav-links a.is-active::after { background: var(--accent); }

main, footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.section {
  padding: 62px 0 58px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.section:first-child { border-top: 0; }

.hero-section { padding-top: 52px; }

.hero {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.profile-photo {
  width: 210px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 22%;
  border: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3 { color: #1f2933; line-height: 1.25; }

h1 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4.2vw, 2.45rem);
  font-weight: 500;
}

h1 span { font-size: 0.62em; font-weight: 400; }

h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 1.72rem);
  font-weight: 500;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  font-weight: 700;
}

p { margin: 0 0 16px; }

.position { margin-bottom: 4px; font-size: 1.08rem; font-weight: 700; }
.contact { color: var(--muted); }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 19px;
  margin-top: 20px;
}

.hero-links a { font-size: 0.92rem; font-weight: 600; }

.intro {
  max-width: 860px;
  margin-top: 42px;
}

.fact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 24px;
}

.fact-row span {
  padding: 7px 12px;
  background: var(--soft);
  border-left: 3px solid var(--accent);
  color: #45494f;
  font-size: 0.9rem;
}

.section-heading { max-width: 780px; margin-bottom: 28px; }
.section-heading p:last-child { color: var(--muted); }

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

.research-card {
  padding: 21px 0 19px;
  border-top: 1px solid var(--line);
}

.research-card p { margin: 0; color: #45494f; }

ul, ol { margin-top: 0; }

.clean-list {
  margin: 0;
  padding-left: 1.25rem;
}

.clean-list li { margin-bottom: 9px; padding-left: 4px; }

.two-column-list {
  columns: 2 340px;
  column-gap: 48px;
}

.two-column-list li { break-inside: avoid; }

.subsection { margin-top: 34px; }
.subsection + .subsection { margin-top: 46px; }

.publication-group h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.publication-list {
  margin: 0;
  padding-left: 2.4rem;
}

.publication-list li {
  margin-bottom: 13px;
  padding-left: 8px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--soft);
  color: #4a4f55;
  font-size: 0.79rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td:first-child { width: 110px; white-space: nowrap; }
td:last-child { width: 260px; }

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.group-block {
  padding: 20px;
  background: var(--soft);
  border-top: 3px solid var(--accent);
}

.group-block ul { margin: 0; padding-left: 1.1rem; }
.group-block li { margin-bottom: 7px; }

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
}

.sponsor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sponsor-list li {
  padding: 7px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

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

.project-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.project-number {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-website {
  display: inline-block;
  margin-left: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.project-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 24px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.project-back { font-size: 0.9rem; font-weight: 700; text-decoration: none; }

.project-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 54px 24px 72px;
}

.project-detail h1 { max-width: 900px; margin-bottom: 34px; font-size: clamp(1.75rem, 4vw, 2.25rem); }
.project-detail h3 { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.project-detail h4 { margin: 24px 0 8px; }
.project-detail img { max-width: 100%; height: auto !important; border-width: 6px !important; }
.project-detail div[style*="float"] { max-width: 46%; margin: 0 0 18px 28px; }
.project-detail li { margin-bottom: 10px; }
.project-detail hr { display: none; }

footer {
  padding-top: 24px;
  padding-bottom: 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 820px) {
  :root { --header-height: 56px; }
  html { scroll-padding-top: calc(var(--header-height) + 18px); }
  .home-page { padding-left: 0; }
  .site-header {
    position: sticky;
    right: auto;
    bottom: auto;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .site-nav {
    min-height: var(--header-height);
    padding: 0 18px;
    flex-direction: row;
  }
  .nav-links {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 0 9px; font-size: 0.82rem; }
  .nav-links a::after {
    top: auto;
    right: 8px;
    bottom: -1px;
    left: 8px;
    width: auto;
    height: 3px;
  }
  main, footer { padding-right: 19px; padding-left: 19px; }
  .section { scroll-margin-top: calc(var(--header-height) + 16px); }
  .hero { grid-template-columns: 155px minmax(0, 1fr); gap: 26px; }
  .profile-photo { width: 155px; }
  .research-grid, .alumni-grid { grid-template-columns: 1fr; gap: 0; }
  .group-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-nav { padding: 0 8px; }
  .hero-section { padding-top: 34px; }
  .section { padding-top: 48px; padding-bottom: 46px; }
  .hero { grid-template-columns: 1fr; }
  .profile-photo { width: 142px; }
  h1 { font-size: 1.9rem; }
  .two-column-list { columns: 1; }
  td:last-child { width: auto; }
  .project-detail div[style*="float"] { float: none !important; max-width: 100%; margin: 18px 0; }
}

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