:root {
  color-scheme: light;
  --paper: #f8f8f6;
  --paper-strong: #eef1f0;
  --surface: #ffffff;
  --ink: #171a1d;
  --muted: #5e6770;
  --moss: #245f73;
  --moss-dark: #183f4c;
  --copper: #7a4f2e;
  --clay: #7a4f2e;
  --line: rgba(23, 26, 29, 0.13);
  --shadow: 0 10px 24px rgba(18, 27, 34, 0.06);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.section-band {
  padding: 76px 0;
  position: relative;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 248, 246, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1220px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(36, 95, 115, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: calc(66svh - 64px);
  display: grid;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(200px, 0.24fr);
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.tagline {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 520;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(25px, 2.9vw, 38px);
  font-weight: 560;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.lead {
  max-width: 650px;
  color: #343b40;
  font-size: 17px;
}

.hero-subtitle {
  margin-bottom: 22px;
  color: var(--moss-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.25;
}

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

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 720;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

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

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--moss-dark);
}

.button.secondary {
  border-color: rgba(24, 34, 31, 0.16);
  background: var(--surface);
  color: var(--ink);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 700px;
  margin: 34px 0 0;
}

.metrics div {
  min-height: 92px;
  padding: 15px 14px 13px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics dt {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1;
}

.metrics dd {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.profile-card {
  border: 1px solid rgba(24, 34, 31, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  color: var(--surface);
  box-shadow: var(--shadow);
  max-width: 178px;
  justify-self: end;
}

.portrait-frame {
  padding: 9px;
  background: var(--surface);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center;
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface);
}

.profile-card-body {
  padding: 12px 14px 14px;
  background: #20262a;
}

.profile-card-body p {
  margin-bottom: 2px;
  font-weight: 760;
}

.profile-card-body span,
.profile-card-body a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.45;
}

.profile-card-body a {
  width: fit-content;
  margin-top: 8px;
  color: #a8d5e2;
}

.visual-band {
  padding-top: 58px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.gallery-heading {
  margin-bottom: 20px;
}

.gallery-heading h2 {
  max-width: 560px;
  font-size: clamp(26px, 2.55vw, 34px);
}

.gallery-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.gallery-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.gallery-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(23, 26, 29, 0.26) transparent;
}

.visual-card {
  flex: 0 0 min(620px, 78vw);
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(22, 35, 31, 0.14);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visual-card.wide {
  flex-basis: min(780px, 84vw);
}

.visual-card button {
  width: 100%;
  height: 350px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 20px;
  background: var(--surface);
  cursor: zoom-in;
}

.visual-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.visual-card.wide button {
  height: 380px;
}

.visual-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.visual-card span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.visual-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.intro-band {
  padding-top: 78px;
  padding-bottom: 78px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.intro-grid h2 {
  max-width: 560px;
}

.intro-copy {
  color: var(--muted);
  font-size: 17px;
}

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

.education-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.education-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 44px;
  align-items: stretch;
}

.education-main,
.education-panel {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}

.education-main h2 {
  margin-bottom: 16px;
}

.education-main p:not(.section-kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: 17px;
}

.education-meta {
  color: var(--moss-dark) !important;
  font-weight: 720;
}

.education-panel {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.education-panel h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.course-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.course-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(22, 35, 31, 0.1);
}

.course-list div:last-child {
  border-bottom: 0;
}

.course-list dt {
  color: var(--muted);
}

.course-list dd {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 44px;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 48px;
  align-items: end;
}

.section-heading.split p:last-child {
  margin-bottom: 4px;
  color: var(--muted);
}

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

.research-item {
  overflow: hidden;
  border: 1px solid rgba(22, 35, 31, 0.16);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.honor-card button {
  width: 100%;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.visual-card img,
.honor-card img {
  transition: transform 220ms ease, filter 220ms ease;
}

.visual-card button:hover img,
.visual-card button:focus-visible img,
.honor-card button:hover img,
.honor-card button:focus-visible img {
  transform: scale(1.018);
  filter: saturate(1.04) contrast(1.02);
}

.research-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
  padding: 28px;
}

.research-text p:not(.tagline) {
  color: var(--muted);
}

.research-bullets {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.research-bullets li {
  position: relative;
  padding-left: 18px;
}

.research-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper);
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.paper-links button {
  min-height: 40px;
  border: 1px solid rgba(36, 95, 115, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(36, 95, 115, 0.07);
  color: var(--moss-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.text-link {
  width: fit-content;
  margin-top: 12px;
  color: var(--moss);
  font-weight: 760;
  border-bottom: 1px solid rgba(23, 79, 69, 0.45);
}

.honors-band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.honor-gallery-shell {
  display: flex;
  justify-content: flex-end;
  margin: -20px 0 14px;
}

.honor-controls {
  justify-content: flex-end;
}

.honor-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: rgba(23, 26, 29, 0.26) transparent;
}

.honor-card {
  flex: 0 0 min(360px, 76vw);
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(22, 35, 31, 0.15);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.honor-card.emphasis {
  background: #20262a;
  color: #fff;
}

.honor-card img {
  width: 100%;
  height: 245px;
  object-fit: contain;
  object-position: center;
  padding: 14px;
  background: var(--surface);
  border-bottom: 1px solid rgba(22, 35, 31, 0.1);
}

.honor-card.emphasis img {
  border-bottom-color: rgba(255, 250, 240, 0.14);
}

.honor-card div {
  min-height: 150px;
  padding: 18px;
}

.honor-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.honor-card.emphasis span {
  color: #dba676;
}

.honor-card h3 {
  font-size: 20px;
}

.honor-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.honor-card.emphasis p {
  color: rgba(255, 255, 255, 0.7);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.timeline article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.25;
}

.timeline p {
  margin: 0;
  color: #31403a;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

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

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 54px;
  align-items: start;
}

.profile-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 17px;
}

.profile-points {
  display: grid;
  gap: 14px;
}

.profile-points article {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.profile-points article:last-child {
  border-bottom: 1px solid var(--line);
}

.profile-points span {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
}

.profile-points h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

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

.contact-band {
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(22, 35, 31, 0.16);
  border-radius: var(--radius);
  background: #20262a;
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-panel h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.contact-panel p:not(.section-kicker) {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.contact-panel .button.secondary {
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer .page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--moss);
  font-weight: 720;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 16, 0.82);
  backdrop-filter: blur(8px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100svh - 56px);
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fffaf0;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.lightbox-dialog img {
  width: 100%;
  max-height: calc(100svh - 122px);
  object-fit: contain;
  background: #fffaf0;
}

.lightbox-dialog figcaption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 720;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 250, 240, 0.42);
  border-radius: 50%;
  background: rgba(22, 35, 31, 0.78);
  color: #fffaf0;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 980px) {
  .section-band {
    padding: 72px 0;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-grid,
  .intro-grid,
  .education-grid,
  .section-heading.split,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 40px;
  }

  .profile-card {
    max-width: 420px;
  }

  .education-panel {
    padding-left: 0;
    border-left: 0;
  }

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

  .visual-card {
    flex-basis: min(560px, 86vw);
  }

  .visual-card.wide {
    flex-basis: min(660px, 88vw);
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .nav-shell {
    width: min(100% - 24px, 1220px);
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(248, 248, 246, 0.98);
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    border-radius: var(--radius);
    padding: 13px 14px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .lead {
    font-size: 17px;
  }

  .metrics {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .metrics div {
    min-height: 0;
  }

  .profile-card {
    max-width: 340px;
  }

  .gallery-controls {
    justify-content: flex-start;
  }

  .visual-card,
  .visual-card.wide {
    flex-basis: 88vw;
  }

  .visual-card button {
    height: 300px;
    padding: 12px;
  }

  .visual-card.wide button {
    height: 320px;
  }

  .honor-gallery-shell {
    justify-content: flex-start;
    margin-top: -12px;
  }

  .honor-card img {
    height: 240px;
  }

  .profile-points article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .timeline p {
    font-size: 13px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }

  .site-footer .page-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-dialog {
    max-height: calc(100svh - 28px);
  }
}
