:root {
  --bg: #faf9f6;
  --surface: #fffefa;
  --panel-bg: rgba(255, 255, 255, 0.62);
  --tag-bg: #f1efe9;
  --text: #252b2e;
  --text-muted: #5d6568;
  --text-light: #7b8386;
  --accent: #176f7e;
  --accent-hover: #0f5360;
  --accent-soft: #e4f0f1;
  --highlight: #f4cf62;
  --highlight-soft: #fff4c7;
  --border: #dcd9d2;
  --venue: #376853;
  --max-width: 980px;
  --nav-offset: 76px;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Source Serif 4", "Songti SC", STSong, Georgia, serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle, rgba(74, 67, 57, 0.085) 0.7px, transparent 0.8px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 300px);
  background-size: 24px 24px, 100% 100%;
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

img {
  max-width: 100%;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.top-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 26px;
  width: 100%;
  max-width: var(--max-width);
  min-height: 56px;
  margin: 0 auto;
  padding: 0 92px;
  font-family: var(--font-body);
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 3px 0 0;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}

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

.language-toggle {
  position: absolute;
  top: 14px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 55px;
  min-height: 28px;
  padding: 2px 8px;
  color: var(--text-light);
  border: 1px solid #d9e0e1;
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.9);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.language-toggle:hover {
  color: var(--text);
  border-color: #a4bcc4;
  background: var(--surface);
}

.language-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.language-toggle [data-lang-label] {
  color: var(--text-light);
  font-weight: 400;
}

.language-toggle[data-active-lang="zh"] [data-lang-label="zh"],
.language-toggle[data-active-lang="en"] [data-lang-label="en"] {
  color: var(--accent);
  font-weight: 700;
}

.language-divider {
  color: #aab3b6;
}

#main-content, .container {
  width: 100%;
  max-width: var(--max-width);
  min-width: 0;
  margin: 0 auto;
  padding: 44px 40px 32px;
}

section, .pub-item {
  scroll-margin-top: 16px;
}

section {
  margin: 0;
}

.unseen-section-divider {
  margin: 30px 0;
  border: 0;
}

.site-header {
  margin-bottom: 24px;
}

.site-header + .unseen-section-divider {
  display: none;
}

.site-header h1 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

.site-header h1 .name-signature {
  display: block;
  width: auto;
  height: 40px;
  mix-blend-mode: multiply;
  object-fit: contain;
}

.site-header h1 span {
  margin-left: 10px;
  color: var(--text-muted);
  font-size: 23px;
  font-weight: 400;
  vertical-align: 0.06em;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.6;
}

.tagline-affiliation {
  padding-left: 12px;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.bio-section {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 34px;
  align-items: start;
}

.bio-left, .bio-right {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.bio-left {
  grid-column: 1;
  grid-row: 1;
}

.bio-right {
  grid-column: 2;
  grid-row: 1;
  padding-bottom: 28px;
}

.bio-right .site-header {
  margin: 0 0 10px;
}

.bio-avatar {
  flex: none;
  width: 100%;
  margin: 0;
}

.bio-avatar img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 891;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(42, 58, 63, 0.11);
  transition: transform 0.7s cubic-bezier(.2,.7,.3,1), box-shadow 0.4s ease;
}

.bio-avatar:hover img {
  box-shadow: 0 12px 30px rgba(42, 58, 63, 0.14);
  transform: scale(1.012);
}

.bio-text {
  min-width: 0;
}

.bio-text p {
  margin: 0 0 11px;
  font-size: 15.5px;
  line-height: 1.62;
  orphans: 2;
  text-wrap: pretty;
  widows: 2;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.research-positioning {
  margin: 2px 0 12px;
  padding: 11px 13px 12px;
  border: 1px solid #d7e2e3;
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: linear-gradient(110deg, rgba(231, 241, 241, 0.88), rgba(248, 248, 245, 0.46));
}

.research-positioning-title {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.research-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 8px;
}

.research-pillar strong,
.research-pillar span {
  display: block;
}

.research-pillar strong {
  color: var(--accent-hover);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}

.research-pillar span {
  margin-top: 1px;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.phd-note {
  color: var(--text-muted);
}

.phd-note strong {
  color: var(--accent-hover);
  font-weight: 600;
}

.bio-details {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 12px;
}

.bio-details summary {
  width: fit-content;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.5;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  transition: color 0.18s ease;
}

.bio-details summary::-webkit-details-marker {
  display: none;
}

.bio-details summary::before {
  margin-right: 5px;
  color: var(--accent);
  content: "+";
}

.bio-details[open] summary::before {
  content: "−";
}

.bio-details summary:hover {
  color: var(--text);
}

.bio-details-content {
  margin-top: 16px;
  padding: 20px 0 2px;
  border-top: 1px solid var(--border);
}

.bio-details:not([open]) > .bio-details-content {
  display: none;
}

.bio-details-content p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.72;
  text-wrap: pretty;
}

.bio-details-content p:last-child {
  margin-bottom: 0;
}

.bio-details-content strong {
  color: var(--text);
  font-weight: 600;
}

.bio-details-content a strong {
  color: var(--accent-hover);
}

.profile-centerline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 13px 0 0;
  border-top: 1px solid var(--border);
}

.bio-left .bio-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.bio-left .stat-badge {
  width: 100%;
  font-size: 10.5px;
}

.bio-left .stat-label,
.bio-left .stat-value {
  justify-content: center;
  min-height: 27px;
  padding: 3px 4px;
}

.bio-left .interest-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  font-size: 11.5px;
}

.bio-left .interest-tags span {
  justify-content: center;
  min-height: 25px;
  padding: 2px 5px;
  text-align: center;
}

.bio-left .social-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.bio-left .social-btn {
  justify-content: center;
  min-height: 33px;
  padding: 4px 5px;
  font-size: 12px;
}

.bio-badges, .interest-tags, .social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.bio-badges {
  gap: 8px 10px;
}

.stat-badge {
  display: inline-flex;
  overflow: hidden;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 7px rgba(37, 43, 46, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.stat-badge:hover {
  color: #fff;
  text-decoration: none;
  box-shadow: 0 5px 13px rgba(37, 43, 46, 0.13);
  transform: translateY(-1px);
}

.stat-label, .stat-value {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 4px 10px;
}

.stat-label {
  background: #4a5154;
}

.stat-value {
  background: #202426;
  font-variant-numeric: tabular-nums;
}

.stat-badge-eccv .stat-label {
  color: #4f3c08;
  background: var(--highlight);
}

.stat-badge-eccv .stat-value {
  color: #5c4510;
  background: var(--highlight-soft);
}

.stat-badge-iclr .stat-value {
  background: var(--accent);
}

.stat-badge-lead .stat-value {
  background: #34526b;
}

.interest-tags {
  gap: 6px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.5;
}

.interest-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid #dde5e5;
  border-radius: 999px;
  background: #f2f6f5;
}

.social-links {
  gap: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 5px 12px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.54);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.social-btn:hover {
  color: var(--accent-hover);
  border-color: #9fb6bd;
  background: var(--surface);
  text-decoration: none;
  transform: translateY(-1px);
}

.social-btn i {
  width: 16px;
  font-size: 14px;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.section-title-icon {
  flex: 0 0 20px;
  width: 20px;
  color: var(--accent);
  font-size: 17px;
  text-align: center;
}

.news-list, .exp-list, .edu-list, .pub-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-panel {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-bg);
}

.news-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 11px;
  align-items: baseline;
  margin: 0;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 14.5px;
  line-height: 1.48;
  transition: background-color 0.15s ease;
}

.news-item:hover {
  background: rgba(37, 43, 46, 0.04);
}

.news-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 82px;
  padding: 2px 7px;
  color: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--tag-bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.news-content {
  min-width: 0;
  color: var(--text);
  text-wrap: pretty;
}

.news-content a {
  font-weight: 600;
}

.exp-item, .edu-item {
  display: grid;
  grid-template-columns: 86px 72px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-child, .edu-item:first-child {
  padding-top: 4px;
}

.exp-period, .edu-years {
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.exp-logo, .edu-logo {
  display: block;
  justify-self: center;
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.exp-logo-tsinghua {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transform: scale(1.28);
}

.exp-logo-csu {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  transform: scale(1.12);
}

.exp-content .org, .edu-content .school {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-wrap: balance;
}

.exp-content .role, .edu-content .degree {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

.pub-item {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.pub-item:first-child {
  padding-top: 4px;
}

.pub-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.pub-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 1px;
  font-family: var(--font-body);
  font-size: 10.5px;
  line-height: 1.35;
}

.pub-topics span {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  color: #4d6265;
  border: 1px solid #d9e4e4;
  border-radius: 3px;
  background: #edf4f3;
}

.pub-topics span:nth-child(2) {
  color: #4d5566;
  border-color: #dfe2eb;
  background: #f0f1f6;
}

.pub-topics span:nth-child(3) {
  color: #665b42;
  border-color: #e7dfcb;
  background: #f7f3e8;
}

.pub-body:only-child {
  grid-column: 1 / -1;
}

.pub-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.42;
  text-wrap: balance;
}

.pub-title a {
  color: var(--text);
}

.pub-title a:hover {
  color: var(--accent);
}

.pub-authors {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.pub-authors .self {
  color: var(--accent-hover);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.pub-venue {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  align-items: baseline;
  color: var(--text-muted);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.55;
}

.venue-name {
  color: var(--venue);
  font-weight: 600;
  font-style: normal;
}

.venue-eccv {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 1px 8px;
  color: #60470a;
  border: 1px solid #ebca68;
  border-radius: 3px;
  background: var(--highlight-soft);
  box-shadow: inset 3px 0 0 var(--highlight);
}

a.venue-name {
  text-decoration: none;
}

a.venue-name:hover,
a.venue-name:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.venue-preprint {
  color: #7b6240;
}

.pub-desc {
  margin-top: 2px;
  padding: 7px 9px 7px 10px;
  color: #155e61;
  border-left: 3px solid #79aaa8;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(90deg, rgba(228, 240, 241, 0.9), rgba(228, 240, 241, 0.28));
  font-size: 14px;
  line-height: 1.52;
  text-wrap: pretty;
}

.pub-desc::before {
  margin-right: 7px;
  color: #4c8183;
  content: "Focus";
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

html[lang="zh-CN"] .pub-desc::before {
  content: "要点";
}

.pub-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 186px;
  overflow: hidden;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.pub-thumb img, .pub-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.42s cubic-bezier(.2,.7,.2,1), filter 0.3s ease;
}

.pub-thumb video {
  display: none;
  pointer-events: none;
}

.pub-thumb .pub-static-frame {
  display: block;
}

.pub-thumb.is-playing .pub-animation {
  display: block;
}

.pub-thumb.is-playing .pub-static-frame {
  display: none;
}

.pub-thumb:hover img, .pub-thumb:hover video {
  filter: saturate(1.06) contrast(1.025);
  transform: scale(1.045) translate3d(1px, -1px, 0);
}

.pub-thumb:hover, .project-cover:hover {
  border-color: #a4bcc4;
}

.pub-thumb::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(112deg, transparent 28%, rgba(255, 255, 255, 0.68) 46%, transparent 63%);
  content: "";
  pointer-events: none;
  transform: translateX(-125%);
}

.pub-thumb:hover::after {
  animation: publication-sheen 0.8s ease-out;
}

@keyframes publication-sheen {
  from { transform: translateX(-125%); }
  to { transform: translateX(125%); }
}

.pub-ribbon {
  position: absolute;
  top: 16px;
  left: -37px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  min-height: 24px;
  padding: 4px 0;
  color: #fff;
  background: #52666d;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(37, 43, 46, 0.18);
  transform: rotate(-45deg);
  transform-origin: center;
}

.pub-ribbon-eccv {
  color: #fff;
  background: #4a90e2;
}

.pub-ribbon-iclr {
  background: #7b519d;
}

html.reveal-ready .scroll-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.78s cubic-bezier(.2,.7,.3,1) var(--reveal-delay, 0ms),
    transform 0.78s cubic-bezier(.2,.7,.3,1) var(--reveal-delay, 0ms);
}

html.reveal-ready .scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.pub-more {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel-bg);
}

.pub-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.pub-more summary::-webkit-details-marker {
  display: none;
}

.pub-more summary::after {
  color: var(--text-light);
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.18s ease;
}

.pub-more[open] summary {
  border-bottom: 1px solid var(--border);
}

.pub-more[open] summary::after {
  transform: rotate(45deg);
}

.pub-more summary:hover {
  background: rgba(23, 111, 126, 0.045);
}

.pub-more summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.pub-list-secondary {
  padding-inline: 14px;
}

.pub-list-secondary .pub-item:first-child {
  padding-top: 18px;
}

.pub-list-secondary .pub-item:last-child {
  border-bottom: 0;
}

.pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}

.pub-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 3px 9px;
  color: #3e494c;
  border: 1px solid #d3d7d7;
  border-radius: 3px;
  background: #eceeed;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.pub-link:hover {
  color: var(--accent);
  border-color: #9fb6bd;
  text-decoration: none;
}

.pub-link i {
  font-size: 12px;
}

.pub-item .pub-links {
  gap: 6px;
  align-items: center;
}

.pub-item .pub-link {
  min-height: 26px;
  padding: 3px 10px;
  color: #383d40;
  border: 0;
  border-radius: 4px;
  background: #d8d9da;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: none;
}

.pub-item a.pub-link:hover {
  color: #1f2527;
  border: 0;
  filter: brightness(0.96);
  text-decoration: none;
  transform: translateY(-1px);
}

.pub-item .pub-link-split {
  overflow: hidden;
  gap: 0;
  padding: 0;
  color: #fff;
  background: transparent;
}

.pub-link-key, .pub-link-value {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
}

.pub-link-key {
  background: #4f5052;
}

.pub-link-value {
  background: #aa292f;
}

.pub-item .pub-link-arxiv,
.pub-item .pub-link-arxiv:hover {
  color: #fff;
  background: transparent;
}

.pub-item .pub-link-pdf,
.pub-item .pub-link-venue {
  color: #3b3f41;
  background: #dedfe0;
}

.pub-item .pub-link-publisher {
  color: #294b58;
  background: #c9e4ee;
}

.project-item {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 26px;
  align-items: flex-start;
  padding: 8px 0 24px;
  border-bottom: 1px solid var(--border);
}

.project-cover {
  display: block;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  line-height: 0;
}

.project-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 675;
  object-fit: contain;
  transition: transform 0.28s ease;
}

.project-cover:hover img {
  transform: scale(1.025);
}

.project-cover-award img {
  aspect-ratio: 1486 / 1024;
}

.project-body {
  min-width: 0;
}

.project-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.project-heading h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.4;
}

.project-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--venue);
  font-family: var(--font-body);
  font-size: 13px;
}

.project-subtitle {
  margin: 4px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.project-award {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin: 0 0 9px;
  padding: 4px 10px;
  color: #71551c;
  border: 1px solid #e7d8af;
  border-radius: 999px;
  background: #fbf7ea;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.project-award i {
  flex: 0 0 auto;
  color: #9a7422;
  font-size: 12px;
}

.project-description {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.58;
  text-wrap: pretty;
}

.project-paper {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.site-footer {
  max-width: var(--max-width);
  margin: 28px auto 0;
  padding: 24px 40px 36px;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer .footer-updated {
  margin-bottom: 5px;
  color: var(--text-light);
  font-size: 11px;
}

.acknowledgements-panel {
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.44);
}

.acknowledgements-panel p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.68;
  text-wrap: pretty;
}

.acknowledgements-panel strong {
  color: var(--accent-hover);
  font-weight: 600;
}

.gallery-hero {
  max-width: 720px;
  margin-bottom: 44px;
}

.gallery-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.gallery-hero > p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.65;
}

.gallery-group {
  margin-bottom: 48px;
}

.gallery-group-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 18px;
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.gallery-group-heading h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
}

.gallery-group-heading > span {
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 11px;
}

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

.gallery-card {
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-card:hover {
  border-color: #9fb6bd;
  box-shadow: 0 12px 30px rgba(42, 58, 63, 0.11);
  transform: translateY(-2px);
}

.gallery-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-card-wide {
  grid-column: 1 / -1;
}

.gallery-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #eceae4;
}

.gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.025);
}

.gallery-card-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 11px 13px 12px;
  font-family: var(--font-body);
}

.gallery-card-copy strong {
  font-size: 15px;
  font-weight: 600;
}

.gallery-card-copy span {
  color: var(--text-muted);
  font-size: 13px;
}

.gallery-grid-cssa {
  grid-template-columns: minmax(240px, 400px);
}

.gallery-card-portrait .gallery-media {
  aspect-ratio: 3 / 4;
}

.gallery-lightbox {
  width: min(92vw, 1180px);
  max-width: none;
  max-height: 92vh;
  padding: 42px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #15191b;
  color: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox::backdrop {
  background: rgba(10, 14, 16, 0.82);
  backdrop-filter: blur(5px);
}

.gallery-lightbox-close {
  position: absolute;
  top: 6px;
  right: 10px;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  font: 300 30px/1 var(--font-body);
  cursor: pointer;
}

.gallery-lightbox figure {
  margin: 0;
}

.gallery-lightbox img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.gallery-lightbox figcaption {
  padding: 10px 4px 0;
  color: #d8dddf;
  font-family: var(--font-body);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 700px) {
  :root {
    --nav-offset: 96px;
  }

  .top-nav {
    justify-content: flex-start;
    gap: 0 16px;
    min-height: 38px;
    padding: 0 70px 0 14px;
  }

  .top-nav a {
    min-height: 38px;
    font-size: 13px;
  }

  .language-toggle {
    top: 6px;
    right: 10px;
    min-width: 51px;
    min-height: 26px;
    padding-inline: 7px;
  }

  #main-content, .container {
    padding: 30px 24px 24px;
  }

  .site-header h1 {
    font-size: 36px;
  }

  .bio-section {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "header"
      "avatar"
      "profile"
      "bio"
      "details";
    row-gap: 18px;
  }

  .bio-left, .bio-right {
    display: contents;
  }

  .bio-section .site-header { grid-area: header; }
  .bio-avatar { grid-area: avatar; }
  .profile-centerline { grid-area: profile; }
  .bio-text { grid-area: bio; }
  .bio-details {
    grid-area: details;
    margin-top: 0;
  }
  .bio-details summary {
    margin-left: 0;
  }

  .bio-avatar img {
    width: 100%;
    height: auto;
  }

  .research-pillars {
    grid-template-columns: minmax(0, 1fr);
  }

  .pub-item, .project-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pub-thumb, .project-cover {
    width: 100%;
    max-width: none;
    justify-self: center;
  }

  .pub-thumb {
    height: auto;
    aspect-ratio: 300 / 186;
  }

  .exp-item, .edu-item {
    grid-template-columns: 74px 58px minmax(0, 1fr);
    gap: 14px;
  }

  .exp-logo, .edu-logo {
    width: 50px;
    height: 50px;
  }

  .site-footer {
    padding-inline: 24px;
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-card-wide {
    grid-column: auto;
  }

  .gallery-grid-cssa {
    max-width: 420px;
  }
}

@media (max-width: 480px) {
  #main-content, .container {
    padding-inline: 20px;
  }

  .site-header {
    text-align: left;
  }

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

  .tagline-affiliation {
    padding: 0;
    border: 0;
    font-size: 14px;
  }

  .bio-section {
    row-gap: 16px;
  }

  .bio-avatar img {
    width: 100%;
  }

  .bio-section .site-header h1 {
    font-size: 32px;
  }

  .site-header h1 .name-signature {
    height: 34px;
  }

  .bio-text {
    margin-top: 0;
  }

  .section-title {
    font-size: 24px;
  }

  .news-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    padding-block: 7px;
  }

  .news-date {
    min-width: 0;
  }

  .exp-item, .edu-item {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .exp-logo, .edu-logo {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .exp-period, .edu-years {
    grid-column: 2;
    grid-row: 1;
  }

  .exp-period br, .edu-years br {
    display: none;
  }

  .exp-content, .edu-content {
    grid-column: 2;
    grid-row: 2;
  }

  .interest-tags {
    gap: 5px;
  }

  .profile-centerline {
    padding: 13px 0 0;
  }

  .stat-badge {
    font-size: 12px;
  }

  .stat-label, .stat-value {
    min-height: 28px;
    padding-inline: 8px;
  }

  .social-btn {
    min-height: 39px;
  }

  .unseen-section-divider {
    margin-block: 24px;
  }

  .gallery-hero {
    margin-bottom: 34px;
  }

  .gallery-hero > p:last-child {
    font-size: 16px;
  }

  .gallery-group-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }

  html.reveal-ready .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  .pub-thumb video {
    display: none;
  }

  .pub-thumb .pub-static-frame {
    display: block;
  }
}
