:root {
  --paper: #f8f9f6;
  --ink: #121719;
  --muted: #5f6d70;
  --line: rgba(18, 23, 25, .14);
  --line-strong: rgba(18, 23, 25, .28);
  --red: #dc353e;
  --blue: #1c5dae;
  --teal: #127a70;
  --gold: #cf9832;
  --glass: rgba(255, 255, 255, .58);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

#particle-field {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .78;
}

.nav {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 32px));
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(248, 249, 246, .72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(18, 23, 25, .06);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 900;
}
.brand span {
  color: rgba(18, 23, 25, .72);
  font-family: STKaiti, KaiTi, "Kaiti SC", serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0;
}
nav { display: flex; gap: 4px; }
nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 820;
}
nav a:hover { color: var(--ink); background: rgba(18, 23, 25, .07); }

main, footer { position: relative; z-index: 1; }

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-render {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 62% 52%;
  animation: solarOrbit 120s linear infinite;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 48%, rgba(248, 249, 246, .18), transparent 22rem),
    linear-gradient(90deg, rgba(248, 249, 246, .96), rgba(248, 249, 246, .84) 42%, rgba(248, 249, 246, .36));
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 112px 0 62px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(260px, .42fr);
  gap: clamp(24px, 4vw, 56px) clamp(28px, 5vw, 70px);
  align-items: center;
}
.hero-motto {
  grid-column: 1 / -1;
  max-width: 1040px;
}
.hero-motto p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.2vw, 78px);
  font-style: italic;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  color: transparent;
  background:
    linear-gradient(110deg, var(--ink), var(--teal) 42%, var(--blue) 72%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 18px 55px rgba(18, 23, 25, .13);
}
.copy > span,
.section-title span,
.vector span,
.paper-copy .authors,
.conf-badge {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 860px;
  margin: 14px 0 20px;
  font-size: clamp(54px, 7.7vw, 104px);
  line-height: .88;
  letter-spacing: 0;
}
h1 em {
  display: block;
  margin-top: 10px;
  color: rgba(18, 23, 25, .58);
  font-style: normal;
  font-size: .38em;
  line-height: 1;
}
.copy p {
  max-width: 680px;
  color: #455154;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .56);
  font-weight: 850;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 36px rgba(18, 23, 25, .12);
}
.icon-button {
  gap: 9px;
}
.link-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
}
.link-icon svg {
  width: 20px;
  height: 20px;
}
.email-mark svg path,
.scholar-mark svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.github-mark svg path {
  fill: currentColor;
}
.email-mark {
  background: var(--teal);
}
.github-mark {
  background: #121719;
}
.scholar-mark {
  background: linear-gradient(135deg, #1c5dae, #127a70);
}

.profile-panel {
  min-height: 460px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 8px;
  background: rgba(255, 255, 255, .46);
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 90px rgba(18, 23, 25, .12);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.profile-panel:hover {
  transform: translateY(-12px) scale(1.015);
  border-color: rgba(18, 23, 25, .32);
  box-shadow: 0 42px 130px rgba(18, 23, 25, .22);
}
.profile-frame {
  height: 330px;
  overflow: hidden;
  border-radius: 6px;
}
.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.profile-panel:hover .profile-frame img { transform: scale(1.035); }
.profile-meta {
  padding: 18px 6px 4px;
}
.profile-meta span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.profile-meta strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}
.profile-meta small {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
.section-title {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: end;
  gap: 18px;
  margin-bottom: 34px;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 74px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(18, 122, 112, .62), rgba(28, 93, 174, .24), transparent);
}
.section-title span {
  position: relative;
  width: 56px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 24%, rgba(18, 122, 112, .16), transparent 34px),
    rgba(255, 255, 255, .72);
  box-shadow: 0 18px 54px rgba(18, 23, 25, .08);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}
.section-title h2 {
  max-width: 100%;
  margin: 0;
  color: transparent;
  background: linear-gradient(108deg, var(--ink), var(--teal) 46%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: clamp(40px, 5.2vw, 70px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.edu-grid { display: grid; gap: 14px; }
.edu {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
}
.edu img {
  width: 210px;
  height: 92px;
  object-fit: contain;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.edu time {
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.edu h3 {
  margin: 8px 0 8px;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1;
}
.edu p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}
.edu-details {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.edu-details li {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}
.edu-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 122, 112, .1);
}
.edu-details strong {
  color: var(--ink);
  font-weight: 900;
}
.edu-details a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.vector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.vector {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass);
}
.vector h3 {
  margin: 58px 0 12px;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1;
}
.vector p {
  color: var(--muted);
  line-height: 1.62;
}

.paper-list { display: grid; gap: 16px; }
.paper {
  display: grid;
  grid-template-columns: minmax(240px, 34%) 1fr;
  gap: 26px;
  min-height: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .52);
}
.paper-visual {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(rgba(18, 23, 25, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 23, 25, .05) 1px, transparent 1px),
    linear-gradient(135deg, rgba(18, 122, 112, .10), rgba(28, 93, 174, .08), rgba(220, 53, 62, .08));
  background-size: 26px 26px, 26px 26px, auto;
}
.paper-placeholder {
  position: absolute;
  inset: 62px 18px 18px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(18, 23, 25, .24);
  border-radius: 8px;
  color: rgba(18, 23, 25, .45);
  font-size: 13px;
  font-weight: 820;
  text-align: center;
}
.paper-placeholder.has-figure {
  inset: 62px 14px 14px;
  overflow: hidden;
  border-style: solid;
  background: rgba(255, 255, 255, .72);
}
.paper-placeholder.has-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .4s ease;
}
.paper:hover .paper-placeholder.has-figure img {
  transform: scale(1.025);
}
.conf-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid rgba(18, 23, 25, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink);
  backdrop-filter: blur(10px);
}
.conf-badge img {
  width: auto;
  height: 22px;
  max-width: 84px;
  object-fit: contain;
}
.conf-badge small {
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}
.paper-copy {
  align-self: center;
  padding: 10px 10px 10px 0;
}
.paper-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.45vw, 36px);
  line-height: 1.14;
}
.paper-copy p {
  max-width: 880px;
  color: var(--muted);
  line-height: 1.62;
}
.paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.paper-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .66);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.paper-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 23, 25, .32);
  box-shadow: 0 12px 36px rgba(18, 23, 25, .12);
}
.paper-copy .authors {
  display: block;
  margin-bottom: 12px;
  color: #465255;
  line-height: 1.5;
  text-transform: none;
}

.service-board {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .5);
}
.service-board::after {
  content: "";
  position: absolute;
  inset: auto -10% -50% 22%;
  height: 150px;
  background:
    radial-gradient(circle, rgba(18, 122, 112, .18), transparent 62%),
    radial-gradient(circle at 70% 40%, rgba(28, 93, 174, .16), transparent 58%);
  transform: translateY(26px);
  transition: transform .36s ease, opacity .36s ease;
  opacity: .35;
}
.service-board:hover::after {
  transform: translateY(0);
  opacity: .9;
}
.service-venues {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .58);
}
.service-venues {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.venue-card {
  position: relative;
  min-height: 132px;
  display: grid;
  align-content: center;
  place-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(18, 23, 25, .12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(255, 255, 255, .42)),
    radial-gradient(circle at 24% 18%, rgba(18, 122, 112, .14), transparent 34px);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.venue-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
  opacity: .72;
}
.venue-card > img {
  width: 78%;
  max-width: 174px;
  height: 54px;
  object-fit: contain;
  filter: saturate(.92) contrast(1.03);
}
.venue-card:nth-child(2) > img {
  filter: invert(1) saturate(.8) contrast(1.05);
}
.tpami-logo {
  display: grid;
  place-items: center;
  gap: 6px;
}
.tpami-logo img {
  width: min(150px, 76%);
  height: 36px;
  object-fit: contain;
}
.tpami-logo strong {
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 950;
  line-height: 1;
}
.venue-card span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(18, 23, 25, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.venue-card:nth-child(2)::before,
.venue-card:nth-child(5)::before { background: var(--blue); }
.venue-card:nth-child(3)::before,
.venue-card:nth-child(6)::before { background: var(--red); }
.venue-card:nth-child(4)::before,
.venue-card:nth-child(7)::before { background: var(--gold); }
.venue-card:hover {
  transform: translateY(-5px);
  border-color: rgba(18, 122, 112, .38);
  box-shadow: 0 18px 48px rgba(18, 23, 25, .10);
}

.interactive {
  transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease, background .26s ease;
}
.interactive:hover {
  transform: translateY(-12px) scale(1.012);
  border-color: rgba(18, 23, 25, .36);
  box-shadow: 0 34px 100px rgba(18, 23, 25, .20);
  background: rgba(255, 255, 255, .82);
}
.interactive:hover .paper-placeholder {
  animation: pulseGrid 1.2s ease-in-out infinite alternate;
}
@keyframes pulseGrid {
  from { border-color: rgba(18, 23, 25, .22); transform: scale(1); }
  to { border-color: rgba(18, 122, 112, .55); transform: scale(.985); }
}
@keyframes solarOrbit {
  from { transform: scale(1.16) rotate(0deg); }
  to { transform: scale(1.16) rotate(360deg); }
}

footer {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto;
  padding: 70px 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}
footer h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(32px, 5vw, 72px);
  line-height: .94;
  overflow-wrap: anywhere;
}
footer div { display: flex; flex-wrap: wrap; gap: 10px; }
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 850;
  transition: transform .22s ease, box-shadow .22s ease;
}
footer a:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(18, 23, 25, .16);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.is-visible.interactive:hover {
  transform: translateY(-12px) scale(1.012);
}
.reveal.is-visible.profile-panel:hover {
  transform: translateY(-12px) scale(1.015);
}

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

@media (max-width: 980px) {
  .nav {
    position: sticky;
    transform: none;
    left: auto;
    top: 0;
    width: 100%;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 64px;
  }
  .profile-panel {
    display: grid;
    grid-template-columns: 170px 1fr;
    min-height: auto;
    align-items: center;
  }
  .profile-frame { height: 210px; }
  .edu, .paper { grid-template-columns: 1fr; gap: 12px; }
  .vector-grid { grid-template-columns: 1fr; }
  .paper-copy { padding: 0; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  nav { display: none; }
  h1 { font-size: 48px; }
  .hero::after { background: rgba(248, 249, 246, .82); }
  .section-title {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 26px;
  }
  .section-title::after {
    left: 0;
  }
  .section-title h2 {
    font-size: clamp(34px, 11vw, 46px);
  }
  .service-venues {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .venue-card {
    min-height: 112px;
  }
  .profile-panel { grid-template-columns: 1fr; }
  .profile-frame { height: 320px; }
  .edu img { width: 100%; max-width: 240px; }
  .edu-details li { grid-template-columns: 1fr; gap: 2px; }
  .hero-motto p { font-size: 34px; line-height: 1.12; }
  .paper-visual { min-height: 220px; }
}
