:root {
  --paper: #fff;
  --paper-soft: #f7f7fa;
  --ink: #202124;
  --muted: #707178;
  --line: #e5e5ea;
  --accent: #5f63e8;
  --accent-soft: #ededff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.section-pad { padding-left: clamp(20px, 5vw, 72px); padding-right: clamp(20px, 5vw, 72px); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 68px;
  padding: 0 clamp(20px, 4vw, 68px);
  border-bottom: 1px solid #eeeeef;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.wordmark-dot { width: 11px; height: 11px; border: 3px solid var(--accent); border-radius: 50%; }
.site-header nav { display: flex; gap: 26px; font-size: 13px; font-weight: 650; }
.site-header nav a:hover, .header-link:hover { color: var(--accent); }
.header-link { justify-self: end; font-size: 13px; font-weight: 750; }
.hero { padding-top: clamp(72px, 10vw, 132px); text-align: center; }
.hero-inner { max-width: 1080px; margin: 0 auto; }
.eyebrow, .section-kicker {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 { margin: 0; font-size: clamp(68px, 8.5vw, 122px); font-weight: 760; line-height: .92; letter-spacing: -.075em; }
.hero h1 span { color: var(--accent); }
.hero h2 { max-width: 930px; margin: 30px auto 0; color: #313238; font-size: clamp(24px, 2.7vw, 39px); font-weight: 520; line-height: 1.18; letter-spacing: -.045em; }
.hero-lede { margin: 22px auto 0; color: var(--muted); font-size: 16px; }
.authors { max-width: 1050px; margin: 32px auto 0; font-size: 15px; line-height: 1.8; }
.affiliations { margin: 7px auto 0; color: var(--muted); font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid #dedee5; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 650; }
.button-primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button:hover { transform: translateY(-1px); }
.hero-figure { max-width: 1020px; margin: 58px auto 0; padding: 28px; overflow: hidden; border-radius: 22px; background: var(--paper-soft); }
.hero-figure img { width: 100%; max-height: 630px; object-fit: contain; }
figcaption { margin-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: left; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1020px; margin: 54px auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.stats div { display: flex; min-height: 128px; padding: 24px; border-right: 1px solid var(--line); flex-direction: column; justify-content: space-between; text-align: left; }
.stats div:last-child { border: 0; }
.stats strong { font-size: clamp(34px, 4vw, 52px); line-height: 1; letter-spacing: -.06em; }
.stats span { max-width: 180px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.section { padding-bottom: clamp(70px, 9vw, 130px); }
.section-index { max-width: 1140px; margin: 0 auto; padding: 22px 0; border-bottom: 1px solid var(--line); color: #92939a; font: 700 10px/1.4 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
.section-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(52px, 9vw, 150px); max-width: 1140px; margin: 0 auto; padding-top: clamp(54px, 7vw, 100px); }
.section-title { margin: 0; font-size: clamp(38px, 4.7vw, 64px); font-weight: 650; line-height: 1.02; letter-spacing: -.055em; }
.prose { align-self: end; }
.prose p { margin: 0; color: #494a50; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 1.45vw, 23px); line-height: 1.58; }
.prose p + p { margin-top: 22px; }
.contributions { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1140px; margin: 72px auto 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contributions article { min-height: 190px; padding: 28px; border-right: 1px solid var(--line); }
.contributions article:last-child { border: 0; }
.contributions span { color: var(--accent); font: 700 11px ui-monospace, monospace; }
.contributions h3 { margin: 30px 0 8px; font-size: 19px; }
.contributions p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feature-figure { max-width: 1140px; margin: 52px auto 0; padding: clamp(16px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: #fafafa; }
.feature-figure img { width: 100%; max-height: 670px; object-fit: contain; }
.video-wrap { max-width: 980px; margin: 50px auto 0; }
.video-shell { padding: 14px; overflow: hidden; border-radius: 18px; background: #f2f2f5; }
.video-shell video { width: 100%; max-height: 620px; border-radius: 10px; background: #000; }
.result-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1140px; margin: 52px auto 0; }
.result-list article { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fafafa; }
.result-list strong { display: block; margin-bottom: 12px; color: var(--accent); font-size: 34px; letter-spacing: -.04em; }
.result-list p { margin: 0; color: var(--muted); font-size: 14px; }
.citation { border-top: 1px solid var(--line); background: #fafafa; }
.citation pre { max-width: 760px; margin: 44px 0 0; padding: 22px; overflow-x: auto; border-radius: 14px; background: #f0f0f3; color: #3d3e43; white-space: pre-wrap; font-size: 12px; line-height: 1.65; }
.projects-hero { max-width: 1050px; margin: 0 auto; padding: clamp(80px, 12vw, 150px) 20px 70px; text-align: center; }
.projects-hero h1 { margin: 0; font-size: clamp(58px, 9vw, 118px); line-height: .9; letter-spacing: -.075em; }
.projects-hero p { max-width: 680px; margin: 28px auto 0; color: var(--muted); font-family: Georgia, serif; font-size: 20px; line-height: 1.55; }
.project-list { max-width: 1140px; margin: 0 auto; padding: 0 20px 76px; }
.project-card { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.project-card:last-child { border-bottom: 1px solid var(--line); }
.project-card img { width: 100%; aspect-ratio: 16 / 10; padding: 16px; object-fit: contain; border-radius: 16px; background: var(--paper-soft); }
.project-card h2 { margin: 7px 0 14px; font-size: clamp(38px, 5vw, 68px); letter-spacing: -.06em; }
.project-card p { margin: 0 0 24px; color: var(--muted); font-family: Georgia, serif; font-size: 18px; line-height: 1.55; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.version { position: fixed; right: 14px; bottom: 14px; z-index: 30; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.94); color: var(--muted); font: 700 10px/1 ui-monospace, monospace; }
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .section-grid, .project-card { grid-template-columns: 1fr; gap: 32px; }
  .contributions, .stats, .result-list { grid-template-columns: 1fr; }
  .contributions article, .stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-figure { padding: 14px; border-radius: 14px; }
}

/* ---------- v008: author markers ---------- */
.authors sup { margin-left: 1px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: 0; }
.affiliations sup { margin-right: 2px; color: var(--accent); font-size: 9px; font-weight: 800; }
.author-notes { max-width: 900px; margin: 12px auto 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.author-notes span { display: inline-block; }
.author-notes b { color: var(--accent); font-weight: 800; }
.author-notes a { border-bottom: 1px solid #d6d6de; }
.author-notes a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- v008: institution / venue logo strip ---------- */
.orgs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 44px);
  max-width: 960px;
  margin: 30px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.orgs img { width: auto; object-fit: contain; }
.org-cuhk { height: 42px; }
.org-stanford { height: 25px; }
.org-tum { height: 29px; }
.org-mark { display: flex; align-items: center; gap: 11px; }
.org-mark i { font: 800 21px/1 "Helvetica Neue", "Segoe UI", Arial, sans-serif; font-style: normal; letter-spacing: -.045em; color: #12603c; }
.org-mark u { display: block; width: 1px; height: 30px; background: var(--line); }
.org-mark span { color: #3b3c42; font-size: 10.5px; font-weight: 700; line-height: 1.38; text-align: left; }
.org-venue {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #4a4b52;
  font: 800 10.5px/1 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.org-venue img { height: 19px; }
.affiliation-band { max-width: 1140px; margin: 0 auto; padding: 0 20px 96px; text-align: center; }
.affiliation-band .section-kicker { margin: 0; }
.orgs-plain { margin-top: 20px; padding-top: 0; border-top: 0; }
@media (max-width: 820px) {
  .orgs { gap: 22px; padding-top: 22px; }
  .org-cuhk { height: 34px; }
  .org-stanford { height: 21px; }
  .org-tum { height: 24px; }
}

/* ================= v009: homepage — playful lab sections ================= */
:root {
  --mint: #0f9d76;
  --mint-soft: #e3f7f0;
  --amber: #b5730a;
  --amber-soft: #fff1d6;
  --sky: #2f7fd4;
  --sky-soft: #e6f1fd;
  --grape: #6d3d8f;
  --grape-soft: #f4ecfa;
  --edge: #23242a;
}

/* --- hero --- */
.projects-hero { position: relative; }
.projects-hero::before {
  content: "";
  position: absolute;
  inset: -40px -50vw auto;
  z-index: -1;
  height: 520px;
  background-image: radial-gradient(#dcdef7 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(62% 78% at 50% 34%, #000 0%, transparent 76%);
          mask-image: radial-gradient(62% 78% at 50% 34%, #000 0%, transparent 76%);
}
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.chip { padding: 9px 15px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .01em; }
.chip-indigo { background: var(--accent-soft); color: var(--accent); }
.chip-mint { background: var(--mint-soft); color: var(--mint); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }
.chip-sky { background: var(--sky-soft); color: var(--sky); }

/* --- shared band + sticker card --- */
.band { max-width: 1140px; margin: 0 auto; padding: 0 20px clamp(70px, 8vw, 108px); }
.band-head { margin-bottom: 34px; text-align: center; }
.band-head .section-kicker { margin-bottom: 10px; }
.band-head h2 { margin: 0; font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.055em; }
.sticker { border: 1.5px solid var(--edge); border-radius: 24px; background: #fff; box-shadow: 0 5px 0 var(--edge); }
.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.tag-indigo { background: var(--accent-soft); color: var(--accent); }
.tag-mint { background: var(--mint-soft); color: var(--mint); }
.tag-amber { background: var(--amber-soft); color: var(--amber); }
.tag-grape { background: var(--grape-soft); color: var(--grape); }

/* --- PI card --- */
.pi-card { display: grid; grid-template-columns: auto 1fr; gap: clamp(22px, 3vw, 34px); align-items: center; padding: clamp(24px, 3vw, 34px); }
.pi-crest { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 30px; background: var(--grape-soft); }
.pi-crest img { width: 74px; }
.pi-body h3 { margin: 12px 0 10px; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.05em; }
.pi-body p { max-width: 640px; margin: 0; color: var(--muted); font-family: Georgia, serif; font-size: 16px; line-height: 1.55; }
.pi-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* --- people --- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.person { padding: 26px 22px 24px; text-align: center; transition: transform .16s ease, box-shadow .16s ease; }
.person:hover { transform: translate(-2px, -3px); box-shadow: 0 8px 0 var(--edge); }
.avatar { display: block; width: 112px; height: 112px; margin: 0 auto 16px; overflow: hidden; border: 3px solid; border-radius: 36px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-indigo { border-color: var(--accent); }
.avatar-mint { border-color: var(--mint); }
.avatar-amber { border-color: var(--amber); }
.person h3 { margin: 12px 0 6px; font-size: 21px; font-weight: 750; letter-spacing: -.035em; }
.person p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 650; }
.person-link { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 12px; font-weight: 800; }

/* --- join --- */
.join-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 46px);
  background-color: #fffdf6;
  background-image: radial-gradient(#e8e0cb 1.3px, transparent 1.3px);
  background-size: 17px 17px;
}
.join-card h2 { margin: 14px 0 14px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 720; line-height: 1.06; letter-spacing: -.055em; }
.join-copy p { margin: 0; color: #4a4b52; font-family: Georgia, serif; font-size: 17px; line-height: 1.55; }
.button-big { min-height: 52px; margin-top: 24px; padding: 0 26px; font-size: 14px; }
.join-steps { display: grid; align-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.join-steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1.5px solid var(--edge); border-radius: 16px; background: #fff; }
.join-steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--edge); color: #fff; font: 800 12px/1 ui-monospace, monospace; }
.join-steps span { color: #3b3c42; font-size: 14px; line-height: 1.55; }
.join-steps code { display: block; margin-top: 7px; padding: 8px 11px; border-radius: 9px; background: #f2f2f5; color: #2b2c31; font: 700 12.5px/1.4 ui-monospace, SFMono-Regular, monospace; word-break: break-word; }
.join-steps a { color: var(--accent); font-weight: 700; border-bottom: 1px solid #c9cbf5; }

/* --- footer + affiliations --- */
.org-round { height: 56px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .people { grid-template-columns: 1fr; }
  .pi-card { grid-template-columns: 1fr; text-align: left; }
  .join-card { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---------- v010: award badge ---------- */
.award {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: none;
  margin: 18px auto 0;
  padding: 9px 18px 9px 13px;
  border: 1px solid #f0dfae;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaef, #fff5e0);
  color: #7a5a12;
  font-size: 13px;
  line-height: 1.4;
}
.award b { color: #654a0c; font-weight: 800; }
.award-mark { font-size: 16px; line-height: 1; }
.card-award {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #fff5e0;
  color: #7a5a12;
  font-size: 11.5px;
  font-weight: 750;
}
