:root {
  --color-bg: #ffffff;
  --color-surface: #fafafa;
  --color-text: #1a1a1a;
  --color-text-soft: #555;
  --color-text-mute: #888;
  --color-border: #e6e6e6;
  --color-border-soft: #f0f0f0;
  --color-brand: #073f7c;
  --color-brand-soft: #e5eef8;
  --color-accent: #c0392b;
  --color-accent-soft: #fdecea;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 6px 18px rgba(7,63,124,0.08);
  --shadow-lg: 0 14px 32px rgba(7,63,124,0.12);
  --container-w: 1180px;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", Georgia, serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  animation: pageFadeIn 0.4s ease both;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.2s ease, background-size 0.2s ease;
}
a:hover { color: var(--color-accent); }

.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navbar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
}
.site-nav-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.site-nav-brand-logo {
  display: block;
  width: auto;
  max-width: min(320px, 46vw);
  max-height: 42px;
  object-fit: contain;
}
.site-nav-links {
  display: flex;
  gap: 4px;
}
.site-nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--color-text-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav-link:hover { background: var(--color-surface); color: var(--color-text); }
.site-nav-link.is-active {
  color: var(--color-brand);
  background: var(--color-brand-soft);
}
.site-nav-burger { display: none; }

@media (max-width: 820px) {
  .site-nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 12px;
    gap: 2px;
    display: none;
  }
  .site-nav-links.is-open { display: flex; }
  .site-nav-burger {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
  }
}

/* ---------- Page header ---------- */
.page-section { padding: 48px 0; }
.page-section--tight { padding: 28px 0; }
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.page-subtitle {
  color: var(--color-text-mute);
  font-size: 0.98rem;
  margin: 0 0 28px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--color-border-soft);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-brand);
  font-weight: 600;
  margin-bottom: 12px;
}
.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.18;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 840px;
  margin: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-title { font-size: 1.9rem; }
}
.hero-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}
.hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-figure img.is-active {
  opacity: 1;
}

/* ---------- Generic cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: #c8d4e3; }

.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

/* ---------- News timeline ---------- */
.news-list {
  display: flex; flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border-soft);
}
.news-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.news-date {
  color: var(--color-text-mute);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.news-text {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}
.news-text b, .news-text strong { color: var(--color-text); font-weight: 600; }
.news-tag {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 2px;
  font-size: 0.78rem;
  color: var(--color-brand);
  background: var(--color-brand-soft);
  border-radius: 4px;
  font-weight: 500;
}
.news-controls {
  display: flex; justify-content: flex-end; padding-top: 14px;
}

/* ---------- People cards ---------- */
.pi-hero-card {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.pi-hero-photo {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.pi-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pi-hero-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px;
}
.pi-hero-role {
  color: var(--color-brand);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 14px;
}
.pi-hero-meta {
  color: var(--color-text-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
  word-break: break-word;
}
.pi-hero-meta + .pi-hero-meta { margin-top: 4px; }

.people-card {
  text-align: left;
}
.people-card-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  margin-bottom: 12px;
}
.people-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.people-card:hover .people-card-photo img { transform: scale(1.03); }
.people-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.people-card-role {
  color: var(--color-brand);
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 6px;
}
.people-card-meta {
  color: var(--color-text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}
.people-card-meta + .people-card-meta { margin-top: 2px; }

/* compact variant for researcher and Ph.D. cards */
.people-grid--compact { gap: 16px; }
.people-grid--compact .people-card { padding: 14px; }
.people-grid--compact .people-card-photo {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 180px;
  margin: 0 auto 10px;
}
.people-grid--compact .people-card-name { font-size: 0.98rem; }
.people-grid--compact .people-card-meta { font-size: 0.84rem; }

.master-grade-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.master-grade-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.master-grade-heading::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--color-brand);
  flex: 0 0 auto;
}

.grid--text-only {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.people-card--text-only {
  padding: 14px;
}
.people-card--text-only .people-card-name {
  margin-bottom: 7px;
}

@media (max-width: 980px) {
  .grid--text-only { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pi-hero-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }
  .pi-hero-photo { max-width: none; }
  .pi-hero-name { font-size: 1.6rem; }
}
@media (max-width: 600px) {
  .grid--text-only { grid-template-columns: 1fr; }
}

/* ---------- Paper cards ---------- */
.paper-year-block { margin-bottom: 48px; }
.paper-year-heading {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 10px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--color-text);
}
.paper-year-heading .paper-year {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.paper-year-heading .paper-year-count {
  color: var(--color-text-mute);
  font-size: 0.9rem;
}

.paper-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
}
.paper-card:hover { border-color: #c8d4e3; }
.paper-thumb {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
}
.paper-thumb img { width: 100%; height: 100%; object-fit: cover; }
.paper-meta-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
}
.paper-meta-authors {
  color: var(--color-text-soft);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0 0 10px;
  line-height: 1.55;
}
.paper-meta-venue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
}
.paper-tag {
  display: inline-block;
  padding: 1px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.paper-tag--soft {
  background: var(--color-accent-soft);
  color: var(--color-accent);
}
.paper-tag--star {
  background: #fff3cd;
  color: #856404;
  font-weight: 700;
  border: 1px solid #f7d774;
}
.paper-tag--star::before {
  content: '★ ';
}
.paper-tag--brand {
  background: var(--color-brand-soft);
  color: var(--color-brand);
}
.paper-links {
  margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.88rem;
}
.paper-links a { font-weight: 500; }
.paper-links:empty { margin-top: 0; }

@media (max-width: 600px) {
  .paper-card { grid-template-columns: 1fr; }
  .paper-thumb { max-width: 240px; }
}

/* ---------- Research areas ---------- */
.research-area {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.research-area:nth-child(even) {
  direction: rtl;
}
.research-area:nth-child(even) > * { direction: ltr; }
.research-area-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.research-area-figure img { width: 100%; height: 100%; object-fit: cover; }
.research-area-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.research-area-desc {
  color: var(--color-text-soft);
  font-size: 0.98rem;
  margin: 0 0 12px;
}
.research-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.research-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.82rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-soft);
}
@media (max-width: 820px) {
  .research-area, .research-area:nth-child(even) { grid-template-columns: 1fr; direction: ltr; }
}

/* ---------- Project / grant cards ---------- */
.project-card {
  padding: 0;
  overflow: hidden;
}
.project-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
}
.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.project-card-body {
  padding: 18px;
}
.project-card-grant {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.project-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.project-card-meta {
  color: var(--color-text-mute);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Partner logos ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}
.partner-logo {
  aspect-ratio: 8 / 3;
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  padding: 10px;
  filter: grayscale(20%);
  transition: filter 0.2s ease, border-color 0.2s ease;
}
.partner-logo:hover { filter: grayscale(0); border-color: var(--color-border); }
.partner-logo img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
@media (max-width: 820px) { .partner-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Graduates ---------- */
.graduate-year-block {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px 24px 14px;
  margin-bottom: 22px;
}
.graduate-year-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-soft);
}
.graduate-year-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.graduate-year-count { color: var(--color-text-mute); font-size: 0.88rem; }
.graduate-degree-block + .graduate-degree-block { margin-top: 14px; }
.graduate-degree-title {
  color: var(--color-brand);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 8px;
}
.graduate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 4px;
}
.graduate-entry {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--color-border-soft);
}
.graduate-entry-name { font-weight: 600; color: var(--color-text); }
.graduate-entry-dest { color: var(--color-text-soft); font-size: 0.9rem; }
@media (max-width: 820px) {
  .graduate-list { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  padding: 36px 0 30px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-mute);
  font-size: 0.88rem;
}
.site-footer-row {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
}
.site-footer-row p { margin: 0; }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brand);
  font-weight: 600;
  margin-bottom: 10px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-heading a {
  font-size: 0.9rem;
  font-weight: 500;
}
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.btn:hover { border-color: var(--color-brand); color: var(--color-brand); }
.btn--primary {
  background: var(--color-brand); color: #fff; border-color: var(--color-brand);
}
.btn--primary:hover { background: #083968; color: #fff; }

/* ---------- Prof site (English personal page) ---------- */
.prof-site { --container-w: 980px; }
.prof-site .hero { padding: 56px 0 28px; border-bottom: none; }
.prof-site .hero-title { font-size: 2.1rem; }
.prof-site .prof-hero-photo {
  width: 200px; height: 240px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--color-surface);
}
.prof-site .prof-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.prof-site .hero-grid { grid-template-columns: 1fr 200px; gap: 40px; align-items: start; }
.prof-site .prof-hero-photo { order: 2; }
@media (max-width: 700px) {
  .prof-site .hero-grid { grid-template-columns: 1fr; }
  .prof-site .prof-hero-photo { order: 0; width: 160px; height: 192px; margin: 0 auto; }
}
.prof-affil {
  color: var(--color-text-soft);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-top: 10px;
}
.prof-affil a { color: var(--color-brand); }

.prose { max-width: 760px; }
.prose p { color: var(--color-text); margin: 0 0 16px; line-height: 1.75; }
.prose h2 {
  font-size: 1.3rem; font-weight: 700; margin: 36px 0 14px;
  border-bottom: 1px solid var(--color-border); padding-bottom: 8px;
}
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

/* Compact publication list for prof page */
.prof-pub-list,
.prof-project-list {
  margin: 0 0 24px;
  padding-left: 28px;
}
.prof-pub-list li,
.prof-project-list li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.prof-pub-list a { color: var(--color-brand); }
.prof-pub-title,
.prof-pub-venue {
  font-weight: 700;
}
.prof-pub-authors strong {
  font-weight: 700;
  text-decoration: underline;
}
.prof-pub-list .paper-tag {
  margin-left: 6px;
  vertical-align: 1px;
}
.pub-list { display: flex; flex-direction: column; gap: 14px; }
.pub-entry {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}
.pub-entry-year {
  color: var(--color-text-mute);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pub-entry-title { font-weight: 600; color: var(--color-text); }
.pub-entry-authors { color: var(--color-text-soft); font-style: italic; }
.pub-entry-venue { color: var(--color-accent); font-weight: 600; }
.pub-entry-links { color: var(--color-text-soft); font-size: 0.86rem; }
.pub-entry-links a { margin-right: 12px; }

/* ---------- Delivery polish ---------- */
main a:not(.site-nav-link):not(.site-nav-brand):not(.partner-logo):not(.btn) {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
}
main a:not(.site-nav-link):not(.site-nav-brand):not(.partner-logo):not(.btn):hover {
  background-size: 100% 1px;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav-link:hover::after,
.site-nav-link.is-active::after {
  transform: scaleX(1);
}

.page-title,
.section-heading h2,
.research-area-title,
.project-card-title,
.paper-meta-title {
  line-height: 1.28;
}

.page-subtitle,
.hero-lead,
.research-area-desc,
.paper-meta-authors {
  line-height: 1.72;
}

.news-date,
.members-overview-value,
.project-card-grant,
.project-card-meta,
.graduate-year-title,
.graduate-year-count,
.paper-year,
.paper-year-count,
.pub-entry-year,
.contact-list a {
  font-variant-numeric: tabular-nums;
}

.card,
.pi-hero-card,
.paper-card,
.graduate-year-block,
.contact-card {
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover,
.pi-hero-card:hover,
.paper-card:hover,
.graduate-year-block:hover,
.contact-card:hover {
  transform: translateY(-3px);
  border-color: #c2d2e4;
  box-shadow: var(--shadow-lg);
}

.hero {
  background: linear-gradient(180deg, #f8fbff 0%, #fff 78%);
}
.hero-figure {
  border: 1px solid rgba(7,63,124,0.1);
}
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
}
.hero-dots {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-dot.is-active {
  background: #fff;
  transform: scale(1.35);
}

.news-item {
  position: relative;
  transition: background-color 0.2s ease;
}
.news-item:hover {
  background-color: #f8fbff;
}
.partner-logo {
  box-shadow: 0 1px 0 rgba(7,63,124,0.03);
}
.partner-logo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.members-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 8px;
}
.members-overview-item {
  padding: 14px 16px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  background: #fff;
}
.members-overview-value {
  display: block;
  color: var(--color-brand);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
}
.members-overview-label {
  color: var(--color-text-mute);
  font-size: 0.84rem;
}
.pi-hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #fff 58%, #f7fbff 100%);
}
.pi-hero-card::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px;
  width: 3px;
  border-radius: 999px;
  background: var(--color-brand);
}
.pi-hero-photo {
  margin-left: 14px;
  border: 1px solid rgba(7,63,124,0.12);
  box-shadow: 0 10px 28px rgba(7,63,124,0.12);
}
.pi-hero-name {
  font-size: 2.15rem;
  letter-spacing: -0.015em;
}
.pi-hero-title-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}
.pi-hero-title-list li {
  padding: 4px 10px;
  border: 1px solid #dbe7f4;
  border-radius: 999px;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 0.88rem;
  font-weight: 600;
}
.people-card-photo {
  border: 1px solid #e0eaf5;
  box-shadow: 0 0 0 4px #f5f9fd;
}
.people-grid--compact .people-card-photo {
  border-radius: 10px;
}
.master-grade-group {
  padding: 4px 0 0;
}
.master-grade-heading {
  font-variant-numeric: tabular-nums;
}
.master-grade-heading::before {
  height: 1.35em;
}

.paper-year-heading {
  position: sticky;
  top: 65px;
  z-index: 5;
  padding: 10px 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
}
.paper-year-heading .paper-year {
  color: var(--color-brand);
}
.paper-card {
  align-items: center;
}
.paper-tag--venue {
  border: 1px solid transparent;
}
.paper-tag--ccf-a {
  background: #e8f3ff;
  color: #07508f;
  border-color: #b9d9f7;
}
.paper-tag--ccf-b {
  background: #edf7ef;
  color: #276738;
  border-color: #bfdfc7;
}
.paper-tag--ccf-c {
  background: #f1f0ff;
  color: #4d4a9a;
  border-color: #d1cef8;
}
.paper-tag--sci-1,
.paper-tag--sci-q1 {
  background: #fff4df;
  color: #8a5700;
  border-color: #f0d19a;
}
.paper-tag--sci-2,
.paper-tag--sci-q2 {
  background: #fcecef;
  color: #9a2f43;
  border-color: #efc3cc;
}

.research-area {
  padding: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
}
.research-area:nth-child(odd) {
  background: #fbfcfe;
}
.research-area:nth-child(even) {
  background: #f6f9fd;
}
.research-area-figure {
  border: 1px solid rgba(7,63,124,0.08);
  box-shadow: var(--shadow-md);
}
.research-tag {
  background: #fff;
  border-color: #d7e4f1;
  color: var(--color-brand);
  font-weight: 600;
}
.research-tag:hover {
  background: var(--color-brand-soft);
}

.project-card {
  border-color: #dfe8f2;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.project-card-thumb img {
  transition: transform 0.35s ease;
}
.project-card:hover .project-card-thumb img {
  transform: scale(1.035);
}
.project-card-grant {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-brand-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.project-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #276738;
  font-weight: 600;
}
.project-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fa84f;
  box-shadow: 0 0 0 3px rgba(47,168,79,0.12);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}
.contact-main {
  max-width: none;
}
.contact-list {
  padding-left: 0;
  list-style: none;
}
.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.contact-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #fff, #f4f8fd);
}
.contact-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 18px;
}
.contact-card-title {
  margin: 0 0 4px;
  color: var(--color-text);
  font-weight: 700;
}
.contact-card-text {
  margin: 0 0 18px;
  color: var(--color-text-soft);
  font-size: 0.92rem;
}
.contact-map {
  display: grid;
  place-items: center;
  min-height: 130px;
  border: 1px dashed #bfd0e2;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(90deg, rgba(7,63,124,0.06) 1px, transparent 1px),
    linear-gradient(rgba(7,63,124,0.06) 1px, transparent 1px),
    #fff;
  background-size: 24px 24px;
  color: var(--color-brand);
  font-size: 0.86rem;
  font-weight: 700;
}

.prof-site .hero {
  background: #fff;
}
.prof-site .prose p {
  font-size: 1.06rem;
  line-height: 1.85;
  margin: 0 0 22px;
}
.prof-site .prose li {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 8px;
}
.prof-home-body.prose {
  max-width: var(--container-w);
}
.prof-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
  margin: 0 0 28px;
  list-style: none;
}
.prof-interest-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #d7e4f1;
  border-radius: 999px;
  background: #fff;
  color: var(--color-brand);
  font-weight: 600;
}
.prof-site .prof-hero-photo {
  border: 1px solid #dce7f3;
  box-shadow: var(--shadow-md);
}
.prof-affil-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.prof-affil-icon {
  color: var(--color-text-mute);
  font-size: 0.78em;
}
body[data-page="bio"][data-site="prof"] .prose p:first-child::first-letter {
  float: left;
  padding: 8px 8px 0 0;
  color: var(--color-brand);
  font-size: 2.9rem;
  line-height: 0.9;
  font-weight: 700;
}
body[data-page="bio"][data-site="prof"] .prose {
  max-width: 680px;
}
.prof-group {
  max-width: none;
}
.prof-group h2 {
  margin: 42px 0 18px;
}
.group-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 26px;
}
.group-timeline-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}
.group-timeline-row:last-child {
  border-bottom: none;
}
.group-flat-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.98rem;
  line-height: 1.85;
  color: var(--color-text);
}
.group-flat-row:last-child {
  border-bottom: none;
}
.group-year {
  color: var(--color-brand);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.group-year-names {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.85;
  word-break: normal;
}
.group-name {
  display: inline-block;
  white-space: nowrap;
}
.group-name-sep {
  color: var(--color-text-mute);
}
.group-award-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.group-award-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--color-border-soft);
}
.group-award-card:last-child {
  border-bottom: 1px solid var(--color-border-soft);
}
.group-award-year {
  color: var(--color-brand);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}
.group-award-list {
  display: grid;
  gap: 10px;
}
.group-award-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #dfe8f2;
  border-radius: 8px;
  background: #fff;
}
.group-award-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-brand-soft);
  color: var(--color-brand);
  font-size: 0.9rem;
  font-weight: 800;
}
.group-empty {
  color: var(--color-text-mute);
}
.prof-pub-list li,
.prof-project-list li {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}
.prof-pub-list li:hover,
.prof-project-list li:hover {
  background: #f7fbff;
}

@media (max-width: 820px) {
  .members-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .paper-year-heading {
    top: 64px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 42px;
  }
  .news-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-left: 0;
  }
  .site-nav-brand-logo {
    max-width: min(240px, 58vw);
    max-height: 38px;
  }
  .group-timeline-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .group-award-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .members-overview {
    grid-template-columns: 1fr;
  }
  .pi-hero-card::before {
    top: 18px;
    bottom: auto;
    left: 18px;
    width: 44px;
    height: 3px;
  }
  .pi-hero-photo {
    margin-left: 0;
  }
  .research-area {
    padding: 22px;
  }
  .paper-year-heading {
    position: static;
  }
  .contact-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
