:root {
  /* Palette — academic ink/parchment */
  --text: #14213d;          /* deep navy ink */
  --text-soft: #334155;
  --muted: #5b6676;
  --line: #e5e2d6;          /* warm hairline */
  --line-strong: #d8d2c2;
  --link: #1a56db;          /* learned blue */
  --link-hover: #0f2a47;
  --bg: #eef3f8;
  --canvas: #ffffff;
  --card: #ffffff;
  --card-soft: #fdfcf6;
  --accent: #0f2a47;        /* heading / bar */
  --accent-warm: #6f9fc5;   /* soft blue for status highlights */
  --review: #8a6d2b;        /* muted ochre for "under review" */
  --accepted: #0f6f43;      /* muted green for accepted */
  --container: 1000px;
  --shell-container: 1080px;
  --shadow-soft: 0 1px 0 rgba(20, 33, 61, 0.04), 0 10px 24px rgba(20, 33, 61, 0.05);
  --shadow-card: 0 1px 0 rgba(20, 33, 61, 0.04), 0 14px 30px rgba(20, 33, 61, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  /* Typography */
  --serif: "Malayalam MN", Garamond, "Times New Roman", serif;
  --sans: "Malayalam MN", Garamond, "Times New Roman", serif;
  --mono: "Malayalam MN", Garamond, "Times New Roman", serif;
}

/* ===== Dark theme ===== */
html[data-theme="dark"] {
  --text: #e6ebf2;
  --text-soft: #c2ccdc;
  --muted: #8a94a7;
  --line: #2a3346;
  --line-strong: #3a4560;
  --link: #82b1ff;
  --link-hover: #c7d9ff;
  --bg: #0d1321;
  --canvas: #111827;
  --card: #161d30;
  --card-soft: #111727;
  --accent: #e6ebf2;
  --accent-warm: #8fc2e8;
  --review: #d4b168;
  --accepted: #5cc99a;
  --shadow-soft: 0 1px 0 rgba(0, 0, 0, 0.3), 0 10px 24px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.35), 0 14px 30px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(40, 55, 90, 0.5) 0%, rgba(40, 55, 90, 0) 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(30, 45, 75, 0.45) 0%, rgba(30, 45, 75, 0) 55%),
    var(--bg);
}

html[data-theme="dark"] .site-header {
  background: rgba(13, 19, 33, 0.82);
  border-bottom-color: rgba(58, 69, 96, 0.9);
}

html[data-theme="dark"] .info-link,
html[data-theme="dark"] .experience-logo,
html[data-theme="dark"] .paper-thumb,
html[data-theme="dark"] .paper-venue,
html[data-theme="dark"] .paper-link,
html[data-theme="dark"] .profile-photo-wrap {
  background: var(--card-soft);
}

html[data-theme="dark"] .research-figure-media {
  background: #0f1626;
}

html[data-theme="dark"] .research-figure:hover .research-figure-media {
  background: #12192c;
}

html[data-theme="dark"] .paper-role {
  background: rgba(130, 177, 255, 0.14);
  color: var(--link);
}

html[data-theme="dark"] .paper-role-corresponding {
  background: rgba(143, 194, 232, 0.18);
  color: var(--accent-warm);
}

html[data-theme="dark"] .paper-venue-review {
  background: rgba(212, 177, 104, 0.14);
  border-color: rgba(212, 177, 104, 0.45);
  color: var(--review);
}

html[data-theme="dark"] .paper-venue-accepted {
  background: rgba(92, 201, 154, 0.14);
  border-color: rgba(92, 201, 154, 0.4);
  color: var(--accepted);
}

html[data-theme="dark"] .paper-card-featured {
  background:
    linear-gradient(90deg, rgba(143, 194, 232, 0.08) 0%, rgba(143, 194, 232, 0) 45%),
    var(--card);
}

html[data-theme="dark"] .note {
  color: var(--accent-warm);
  border-left-color: var(--accent-warm);
}

html[data-theme="dark"] .site-footer {
  background: rgba(13, 19, 33, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(calc(100% - 32px), var(--shell-container));
  margin: 24px auto 0;
  border-bottom: 1px solid rgba(216, 210, 194, 0.9);
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 -4px 28px rgba(20, 33, 61, 0.09);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  font-size: 1rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-soft);
  position: relative;
  padding: 4px 0;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  margin-left: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--card-soft);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  display: block;
}

.theme-toggle-icon {
  display: inline-flex;
}

.theme-toggle-moon { display: none; }
html[data-theme="dark"] .theme-toggle-sun { display: none; }
html[data-theme="dark"] .theme-toggle-moon { display: inline-flex; }

.page-content {
  width: min(calc(100% - 32px), var(--shell-container));
  max-width: none;
  padding: 40px 40px 72px;
  background: var(--canvas);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.09);
}

/* ===== Hero ===== */
.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px 30px 26px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.intro h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--accent);
}

.subtitle {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 62ch;
  font-style: italic;
}

.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 4px 0 20px;
}

.hero-main {
  display: grid;
  gap: 12px;
}

.link-grid {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: auto;
}

.info-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  width: 50px;
  min-width: 50px;
  max-width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text-soft);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.info-link:hover {
  text-decoration: none;
  background: var(--card);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}


.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: currentColor;
  flex: 0 0 28px;
}

.info-icon svg,
.info-icon img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.info-icon-wechat img {
  filter: invert(52%) sepia(99%) saturate(1764%) hue-rotate(88deg) brightness(98%) contrast(116%);
}

.wechat-trigger {
  cursor: pointer;
  font: inherit;
}

.wechat-dialog {
  width: min(calc(100% - 32px), 420px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(20, 33, 61, 0.24);
}

.wechat-dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(3px);
}

.wechat-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.wechat-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card-soft);
  color: var(--text-soft);
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
}

.wechat-dialog > img {
  display: block;
  width: 100%;
  max-height: min(70vh, 560px);
  object-fit: contain;
  background: #ffffff;
}

.citation-counter {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.06);
}

.citation-counter:hover {
  color: var(--text);
  text-decoration: none;
  border-color: #b8c5d3;
}

.citation-counter-label {
  padding: 6px 9px;
  background: #f3f6f9;
}

.citation-counter strong {
  min-width: 42px;
  padding: 6px 9px;
  background: #dbe7f3;
  color: #274c6b;
  text-align: center;
}

html[data-theme="dark"] .citation-counter {
  border-color: var(--line-strong);
}

html[data-theme="dark"] .citation-counter-label {
  background: var(--card-soft);
}

html[data-theme="dark"] .citation-counter strong {
  background: #263754;
  color: #d8e7ff;
}

.hero-body {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-body p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

.intro p {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.intro strong {
  color: var(--text);
  font-weight: 700;
}

.note {
  margin-top: 6px !important;
  color: var(--accent-warm);
  font-style: italic;
  font-weight: 500;
  border-left: 2px solid var(--accent-warm);
  padding-left: 12px;
}

.profile-photo-wrap {
  overflow: hidden;
  border-radius: 4px;
  background: #efece1;
  width: 150px;
  height: 190px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 20px rgba(20, 33, 61, 0.08);
}

.profile-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.95);
}

/* ===== Section base ===== */
.section-block {
  margin-top: 52px;
}

.section-block h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.005em;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.section-block h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.section-title-row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.section-title-row h2 {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-title-row h2::before {
  content: none;
}

.section-title-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-style: normal;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(20, 33, 61, 0.05);
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.section-title-link:hover {
  color: var(--accent);
  border-color: var(--line-strong);
  text-decoration: none;
  transform: translateY(-1px);
}

.section-title-link img {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
}

.collaboration-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border: 1px solid rgba(111, 159, 197, 0.45);
  border-radius: 999px;
  background: rgba(111, 159, 197, 0.1);
  color: var(--accent-warm);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.section-block h3 {
  margin: 24px 0 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.plain-list li {
  margin-bottom: 6px;
}

.plain-list strong {
  color: var(--accent);
  font-weight: 700;
}

/* ===== Research gallery ===== */
.research-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
}

.research-figure {
  margin: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background-color 0.3s ease;
}

.research-figure-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #fbf9f1;
  border-bottom: 1px solid var(--line);
  transition: background 0.22s ease;
}

.research-figure-media img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.research-figure figcaption {
  padding: 14px 16px 16px;
  text-align: center;
  display: grid;
  gap: 6px;
}

.research-figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--accent);
}

.research-figure:hover .research-figure-media {
  background: #f5f1e2;
}

.research-figure:hover .research-figure-media img {
  transform: translateY(-2px) scale(1.02);
}

.research-figure figcaption strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.research-figure figcaption span {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--muted);
  font-style: italic;
}

/* ===== Experience ===== */
.experience-grid,
.paper-list {
  display: grid;
  gap: 16px;
}

.experience-card {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.experience-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 72px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.experience-logo img {
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}

.experience-logo-tencent {
  width: 102px;
  height: auto;
}

.experience-logo-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 36px;
  background: #d8dee8;
}

.experience-logo-unit {
  width: auto;
  max-width: 54px;
  max-height: 54px;
}

.experience-logo-lightspeed {
  max-width: 48px;
  max-height: 54px;
}

.experience-logo-jarvis {
  width: 48px;
  height: 49px;
}

.experience-logo-hunyuan {
  width: 50px;
  height: 50px;
}

.experience-logo-ucm {
  width: 46px;
  height: auto;
}

.experience-logo-deepmind {
  width: 105px;
  height: auto;
}

.experience-logo-partners {
  gap: 10px;
  padding-right: 10px;
  padding-left: 10px;
}

.experience-logo-hkust {
  width: 86px;
  height: auto;
}

.experience-logo-boson {
  width: 82px;
  height: auto;
}

html[data-theme="dark"] .experience-logo {
  background: #ffffff;
  border-color: #3a4560;
}

.experience-content {
  display: grid;
  gap: 6px;
}

.experience-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}

.experience-header h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--accent);
}

.experience-time {
  color: var(--muted);
  font-size: 0.98rem;
  font-style: italic;
  letter-spacing: 0.01em;
}

.experience-meta,
.experience-desc {
  margin: 0;
}

.experience-meta {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 1rem;
}

.experience-desc {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.experience-project-link {
  color: var(--link);
  font-weight: 700;
  border-bottom: 1px dotted currentColor;
}

/* ===== News ===== */
.news-panel {
  padding: 24px 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.news-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.news-heading::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 44px;
  height: 2px;
  background: var(--accent);
}

.news-heading h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--accent);
}

.news-heading h2::before {
  content: none;
}

.news-heading-accent {
  display: none;
}

.news-window {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: #c9c2a8 transparent;
}

.news-window::-webkit-scrollbar {
  width: 6px;
}

.news-window::-webkit-scrollbar-track {
  background: transparent;
}

.news-window::-webkit-scrollbar-thumb {
  background: #d6ceb4;
  border-radius: 999px;
}

html[data-theme="dark"] .news-window {
  scrollbar-color: #3a4560 transparent;
}

html[data-theme="dark"] .news-window::-webkit-scrollbar-thumb {
  background: #3a4560;
}

.news-list {
  display: grid;
  gap: 0;
  position: relative;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
}

.news-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 4px 12px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  transition: background 0.18s ease;
}

.news-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 20px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--muted);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.news-item:hover {
  background: rgba(20, 33, 61, 0.03);
}

html[data-theme="dark"] .news-item:hover {
  background: rgba(230, 235, 242, 0.04);
}

.news-item:hover::before {
  border-color: var(--accent);
  background: var(--accent);
}

.news-item-featured::before {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 3px rgba(111, 159, 197, 0.14);
}

.news-item-featured {
  background: linear-gradient(90deg, rgba(111, 159, 197, 0.07) 0%, rgba(111, 159, 197, 0) 70%);
  border-radius: 6px;
}

.news-dot {
  display: none;
}

.news-date {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
  padding-top: 1px;
}

.news-text {
  color: var(--text-soft);
  font-size: 1.02rem;
  line-height: 1.6;
  font-style: normal;
}

.news-text strong {
  color: var(--accent);
  font-weight: 700;
}

.news-item-featured .news-text strong {
  color: var(--accent-warm);
}

/* ===== Awards ===== */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.award-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-warm);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.3s ease;
}

.award-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.award-year {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--accent-warm);
  letter-spacing: 0.02em;
  line-height: 1;
}

.award-content {
  display: grid;
  gap: 4px;
}

.award-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  line-height: 1.35;
}

.award-rank {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(111, 159, 197, 0.14);
  color: var(--accent-warm);
  font-family: var(--serif);
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}

.award-org {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
}

/* ===== Publications ===== */
.paper-list {
  gap: 20px;
}

.paper-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.3s ease;
}

.paper-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.paper-card-featured {
  border-left-color: var(--accent-warm);
  background:
    linear-gradient(90deg, rgba(111, 159, 197, 0.05) 0%, rgba(111, 159, 197, 0) 45%),
    var(--card);
}

.paper-card-featured:hover {
  border-left-color: var(--accent-warm);
}

.paper-thumb {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card-soft);
  box-shadow: 0 4px 14px rgba(20, 33, 61, 0.05);
}

.paper-thumb img {
  display: block;
  width: 100%;
  height: 158px;
  object-fit: cover;
}

.paper-thumb-contain img {
  object-fit: contain;
  background: #fff;
}

.paper-content {
  display: grid;
  gap: 10px;
}

.paper-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--accent);
}

.paper-authors {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 1.02rem;
}

.paper-role {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(26, 86, 219, 0.1);
  color: var(--link);
  font-family: var(--serif);
  font-size: 0.88rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
  vertical-align: 1px;
}

.paper-role-corresponding {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(111, 159, 197, 0.14);
  color: var(--accent-warm);
}

.paper-role-icon {
  color: currentColor;
  font-size: 0.95rem;
  line-height: 1;
  font-style: normal;
}

.paper-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.paper-venue {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: var(--card-soft);
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.paper-venue-accepted {
  border-color: rgba(15, 111, 67, 0.35);
  background: rgba(15, 111, 67, 0.08);
  color: var(--accepted);
}

.paper-venue-review {
  border-color: rgba(138, 109, 43, 0.4);
  background: rgba(138, 109, 43, 0.1);
  color: var(--review);
  font-style: italic;
}

.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.paper-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card-soft);
  color: var(--link);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.paper-link:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 6px 14px rgba(20, 33, 61, 0.08);
  color: var(--accent);
  text-decoration: none;
}

.paper-link-icon {
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.85;
}

.paper-link-muted {
  color: var(--muted);
  opacity: 0.75;
  cursor: not-allowed;
}

.paper-link-muted:hover {
  transform: none;
  color: var(--muted);
  background: var(--card-soft);
  border-color: var(--line-strong);
  box-shadow: none;
}

/* ===== Footer ===== */
.site-footer {
  width: min(calc(100% - 32px), var(--shell-container));
  margin: 0 auto 24px;
  border-top: 1px solid var(--line-strong);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 0.96rem;
  background: var(--canvas);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.09);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner a {
  color: var(--text-soft);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .research-gallery,
  .awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .paper-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .page-content,
  .site-footer {
    width: calc(100% - 20px);
  }

  .site-header {
    margin-top: 10px;
  }

  .page-content {
    padding: 28px 18px 52px;
  }

  .header-inner,
  .footer-inner,
  .experience-card,
  .experience-header,
  .news-item,
  .paper-card,
  .award-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .header-inner {
    padding: 10px 0;
  }

  .site-nav {
    gap: 10px 14px;
  }

  .intro h1 {
    font-size: 2rem;
  }

  .hero-top {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 22px;
  }

  .research-gallery,
  .awards-grid {
    grid-template-columns: 1fr;
  }

  .news-panel {
    padding: 18px;
  }

  .news-heading h2 {
    font-size: 1.45rem;
  }

  .news-list {
    padding-left: 16px;
  }

  .news-item {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
  }

  .news-item::before {
    left: -21px;
    top: 18px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .research-figure-media img {
    height: 200px;
  }

  .paper-thumb img {
    height: 190px;
  }

  .paper-title {
    font-size: 1.15rem;
  }

  .award-card {
    text-align: left;
  }

  .experience-card {
    gap: 14px;
  }

  .experience-logo {
    width: min(210px, 100%);
    justify-self: start;
  }
}

/* === Job market banner === */
.job-market-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #6f9fc5;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.55;
  padding: 12px 16px;
  margin: 0 0 18px 0;
  border: 1.5px solid #6f9fc5;
  border-left: 5px solid #6f9fc5;
  border-radius: 8px;
  background: rgba(214, 40, 40, 0.06);
}

.job-market-banner strong {
  color: #4f7fa6;
}

.job-market-banner .job-market-icon {
  font-size: 1.1rem;
  line-height: 1.55;
}

html[data-theme="dark"] .job-market-banner {
  color: #8fc2e8;
  border-color: #8fc2e8;
  background: rgba(143, 194, 232, 0.10);
}

html[data-theme="dark"] .job-market-banner strong {
  color: #b9daf2;
}

/* Personal interests */
.basketball-interest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}
.basketball-copy h3 { margin: 0 0 14px; color: var(--text); }
.basketball-copy p { margin: 0 0 16px; color: var(--text-soft); line-height: 1.75; }
.basketball-copy strong { color: var(--text); }
.basketball-video { margin: 0; width: min(100%, 240px); justify-self: center; }
.basketball-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 708 / 438;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #000;
}
.basketball-video figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
}
@media (max-width: 640px) {
  .basketball-interest { grid-template-columns: 1fr; gap: 16px; }
  .basketball-video { width: min(100%, 240px); justify-self: center; }
}

/* Inline university seals in the biography. */
.bio-school-logo {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 50%;
  vertical-align: -5px;
  background: #fff;
}
