:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --surface-strong: #eef6f4;
  --ink: #13231f;
  --muted: #65746f;
  --line: #d7e3df;
  --primary: #16796f;
  --primary-strong: #0d5f58;
  --accent: #d64067;
  --amber: #c98b1c;
  --shadow: 0 18px 48px rgba(19, 35, 31, 0.1);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}

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

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

.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;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(215, 227, 223, 0.86);
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.site-nav a {
  padding-block: 8px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary-strong);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--ink);
}

.section-band {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-band.muted {
  background: var(--surface-strong);
}

.hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(48px, 7vw, 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.68fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.two-column h2,
.contact-grid h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  font-weight: 820;
}

.hero h1 span {
  color: var(--primary-strong);
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.primary:hover {
  background: var(--primary-strong);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--primary);
  color: var(--primary-strong);
}

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

.quick-facts li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 7px 12px;
  font-size: 0.9rem;
}

.profile-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-panel::before {
  content: "";
  display: block;
  height: 12px;
  background:
    linear-gradient(90deg, var(--primary) 0 34%, var(--accent) 34% 68%, var(--amber) 68% 100%);
}

.profile-panel img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
  background: #e8f1ee;
}

.profile-text,
.profile-stats {
  padding: 22px;
}

.profile-text {
  border-bottom: 1px solid var(--line);
}

.profile-text p {
  margin: 0;
  color: var(--muted);
}

.profile-text .profile-name {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.profile-stats {
  display: grid;
  gap: 14px;
  margin: 0;
}

.profile-stats div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.profile-stats dt {
  color: var(--muted);
}

.profile-stats dd {
  margin: 0;
  font-weight: 700;
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
}

.two-column h2,
.section-heading h2,
.contact-grid h2 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
}

.section-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-copy p {
  margin: 0 0 18px;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading.with-controls {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

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

.feature-card,
.project-card,
.note-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-card,
.project-card {
  min-height: 210px;
  padding: 24px;
}

.feature-card h3,
.project-card h3,
.note-item h3,
.publication-item h3 {
  margin: 0;
  line-height: 1.28;
}

.feature-card p,
.project-card p,
.publication-item p {
  color: var(--muted);
}

.card-index {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--accent);
  font-weight: 850;
}

.publication-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.publication-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.pub-year {
  margin: 0;
  color: var(--accent);
  font-weight: 850;
}

.publication-item a,
.project-card a,
.contact-links a,
.site-footer a {
  color: var(--primary-strong);
  font-weight: 760;
}

.project-card a:hover,
.publication-item a:hover,
.contact-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.filter-group {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filter-button {
  min-width: 56px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.filter-button.active {
  background: var(--ink);
  color: #fff;
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 86px;
  padding: 18px 20px;
}

.note-item[hidden] {
  display: none;
}

.note-item time {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-band {
  background: var(--ink);
  color: #fff;
}

.contact-band .section-kicker,
.contact-band .section-copy {
  color: #bfe4df;
}

.contact-links {
  display: grid;
  gap: 12px;
  align-self: start;
}

.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #fff;
}

.contact-links a::after {
  content: "→";
  color: var(--accent);
}

.contact-links a[aria-disabled="true"] {
  opacity: 0.62;
}

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid,
  .two-column,
  .contact-grid,
  .feature-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 520px;
  }

  .section-heading.with-controls {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    min-height: 64px;
    padding-inline: 14px;
  }

  .site-nav {
    top: 64px;
    right: 14px;
    left: 14px;
  }

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

  .quick-facts {
    align-items: stretch;
    flex-direction: column;
  }

  .publication-item,
  .note-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .profile-stats div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
