:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --bg-soft: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #f7f8fb;
  --paper: #ffffff;
  --ink: #151923;
  --text: #343b4a;
  --muted: #697386;
  --line: #e4e8f0;
  --line-strong: #d7deeb;
  --accent: #315fbd;
  --accent-2: #5a4fb3;
  --accent-3: #168371;
  --shadow: 0 14px 36px rgba(32, 45, 74, 0.055);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1100px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: "Manrope", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 0%, rgba(49, 95, 189, 0.08), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 36rem, #ffffff 100%);
  color: var(--text);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(42, 57, 86, 0.035) 1px, transparent 1px);
  background-size: 100% 28px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.42), rgba(0,0,0,.08) 36rem, transparent);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 20%), rgba(49, 95, 189, .035), transparent 22rem);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: #ffffff;
  background: #315fbd;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(18, 28, 45, .08);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--accent);
  background: #edf3ff;
  font-size: 13px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: #edf3ff;
}

.nav-links a:active {
  transform: translateY(1px);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
}

.language-switch button {
  min-width: 34px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  transition: color .2s ease, background .2s ease;
}

.language-switch button:hover,
.language-switch button.active {
  color: var(--ink);
  background: #edf3ff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
}

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

.profile-hero {
  position: relative;
  padding: clamp(52px, 7vw, 86px) 0 clamp(54px, 8vw, 96px);
}

.academic-profile {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(44px, 7vw, 84px);
}

.profile-aside {
  position: sticky;
  top: 104px;
  padding: 4px 0;
}

.profile-photo-frame {
  position: relative;
  width: 148px;
  height: 172px;
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(208, 219, 246, .34);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(32,45,74,.08);
}

.profile-photo-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(255,255,255,.16));
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
}

.aside-section-label {
  margin: 0 0 12px;
  color: rgba(49,95,189,.68);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.profile-name {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.profile-role {
  margin: 10px 0 0;
  color: #5c6677;
  font-size: 13px;
  line-height: 1.62;
}

.profile-meta-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #596173;
  font-size: 13px;
  line-height: 1.35;
}

.meta-row {
  display: inline-grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.meta-row svg {
  width: 15px;
  height: 15px;
  color: #151923;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.meta-row:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.meta-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-meta-list a.meta-row {
  color: #315fbd;
  transition: color .2s ease;
}

.profile-meta-list a.meta-row:hover {
  color: var(--ink);
}

.profile-internships {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.internship-mini-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.internship-mini-card:hover {
  transform: translateY(-1px);
}

.internship-mini-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.logo-fallback {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #315fbd;
  background: transparent;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.04em;
}

.internship-mini-card span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.internship-mini-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.internship-mini-card em {
  overflow: hidden;
  color: #687284;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

.profile-links a {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #315fbd;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.profile-links a:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-1px);
}

.profile-main {
  min-width: 0;
}

.bio-panel {
  max-width: 860px;
  padding-bottom: clamp(32px, 5vw, 50px);
}

.bio-copy {
  max-width: 860px;
  margin: 20px 0 0;
  color: #3f4654;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 450;
  line-height: 1.72;
  text-wrap: pretty;
}

.bio-copy strong {
  color: var(--ink);
  font-weight: 800;
}

.compact-tags {
  margin-top: 24px;
}

.mini-action-row {
  margin-top: 28px;
}

.profile-block {
  max-width: 880px;
  padding: clamp(28px, 4.4vw, 44px) 0;
  border-top: 1px solid var(--line);
}

.profile-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.profile-section-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.profile-section-title span {
  color: rgba(49,95,189,.58);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.background-list {
  display: grid;
  gap: 24px;
}

.background-item {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 34px);
  min-height: 112px;
}

.school-seal {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #168371;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.school-seal.warm {
  color: #315fbd;
  background: transparent;
}

.school-seal.logo-seal {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
}

.school-seal.logo-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.background-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.background-item p {
  margin: 7px 0 0;
  color: #596173;
  font-size: 17px;
  line-height: 1.5;
}

.background-item .meta {
  color: #697386;
  font-size: 13px;
  font-weight: 700;
}

.education-link {
  color: #2a9ec4;
  font-weight: 560;
  transition: color .2s ease;
}

.education-link:hover {
  color: #176b88;
}

.research-list {
  display: grid;
  gap: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.research-row {
  display: grid;
  grid-template-columns: 48px minmax(220px, .72fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  background: transparent;
  transition: color .22s ease, transform .22s ease;
}

.research-row:hover {
  background: transparent;
  transform: translateX(3px);
}

.research-row span {
  color: rgba(49,95,189,.48);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
}

.research-row strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.research-row em {
  color: #687284;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100dvh - 72px);
  align-items: center;
  padding: clamp(64px, 10vw, 124px) 0 clamp(56px, 9vw, 104px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #315fbd;
  background: #edf3ff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  content: "";
  background: var(--accent-3);
  box-shadow: 0 0 14px rgba(22, 131, 113, .36);
}

.hero h1,
.page-hero h1 {
  max-width: 900px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: clamp(48px, 8vw, 108px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: #596173;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 450;
  line-height: 1.72;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #dce6fb;
  border-radius: 9px;
  color: #2e5aa8;
  background: #edf3ff;
  font-size: 13px;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  font-weight: 750;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.button:hover {
  border-color: rgba(49, 95, 189, .28);
  background: #f4f7ff;
  transform: translateY(-1px);
}

.button.primary {
  border-color: #151923;
  color: #ffffff;
  background: #151923;
}

.button.subtle {
  color: #596173;
  background: transparent;
}

.hero-visual,
.visual-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(circle at 22% 18%, rgba(49, 95, 189, .10), transparent 15rem),
    linear-gradient(145deg, #ffffff, #f4f6fb);
  box-shadow: var(--shadow);
}

.hero-visual::before,
.visual-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(42, 57, 86, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 57, 86, .06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 45%, black, transparent 70%);
}

.orbital {
  position: absolute;
  inset: 52px;
  border: 1px solid rgba(49, 95, 189, .14);
  border-radius: 999px;
  animation: slow-rotate 22s linear infinite;
}

.orbital:nth-child(2) {
  inset: 92px 36px;
  animation-duration: 29s;
  animation-direction: reverse;
}

.orbital:nth-child(3) {
  inset: 124px 88px 70px;
  animation-duration: 36s;
}

.research-chip {
  position: absolute;
  z-index: 2;
  padding: 10px 12px;
  border: 1px solid rgba(18, 28, 45, .10);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 10px 24px rgba(32,45,74,.07);
  font-size: 13px;
  font-weight: 720;
}

.research-chip small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.chip-a { left: 28px; top: 34px; }
.chip-b { right: 26px; top: 92px; }
.chip-c { left: 42px; bottom: 62px; }
.chip-d { right: 44px; bottom: 34px; }

.signal-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  border: 1px solid rgba(18, 28, 45, .12);
  border-radius: 16px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 0 24px rgba(49,95,189,.05), 0 14px 34px rgba(32,45,74,.08);
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.08em;
  transform: translate(-50%, -50%);
}

.section {
  padding: clamp(66px, 9vw, 112px) 0;
  border-top: 1px solid rgba(228,232,240,.72);
}

.section.compact {
  padding: clamp(46px, 6.5vw, 78px) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(280px, .38fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 30px;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1 {
  color: var(--ink);
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.055em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

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

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

.card,
.project-card,
.post-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(32,45,74,.035);
}

.card {
  padding: clamp(20px, 3vw, 26px);
}

.card h3,
.project-card h3,
.post-card h3,
.timeline-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.card p,
.project-card p,
.post-card p,
.timeline-item p,
.compact-list li {
  color: #596173;
  line-height: 1.72;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.experience-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
}

.experience-card .meta {
  margin: 0 0 24px;
}

.experience-card h3 {
  font-size: clamp(21px, 2.2vw, 28px);
}

.experience-card .placeholder-copy {
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.experience-card .experience-summary {
  margin: auto 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #596173;
  font-size: 14px;
}

.experience-card .text-link {
  margin-top: 12px;
}

.paper-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-top: 18px;
  overflow: hidden;
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(32,45,74,.045);
}

.paper-figure {
  margin: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #151923;
}

.paper-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.paper-figure figcaption {
  padding: 12px 16px;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.55;
}

.paper-copy {
  display: contents;
}

.paper-intro {
  padding: clamp(26px, 3.2vw, 38px);
}

.paper-details {
  grid-column: 1 / -1;
  padding: 0 clamp(26px, 3.2vw, 38px) clamp(24px, 3vw, 34px);
}

.paper-copy .meta {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.paper-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(27px, 3.1vw, 42px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.paper-summary {
  margin: 20px 0 0;
  color: #424b5e;
  font-size: 15px;
  line-height: 1.72;
}

.paper-contribution-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.paper-contribution-list > div {
  display: block;
  padding: 18px clamp(14px, 2vw, 22px);
  border-right: 1px solid var(--line);
}

.paper-contribution-list > div:first-child {
  padding-left: 0;
}

.paper-contribution-list > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.paper-contribution-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.paper-contribution-list span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.paper-status {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.paper-status strong {
  margin-right: 8px;
  color: var(--ink);
}

.honors-list {
  border-top: 1px solid var(--line);
}

.honor-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: baseline;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.honor-item span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.honor-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(19px, 2.4vw, 27px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.timeline-without-dates .timeline-item {
  grid-template-columns: minmax(0, 1fr);
}

.timeline-time {
  color: #315fbd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.timeline-item ul,
.compact-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.timeline-item li,
.compact-list li {
  margin: 8px 0;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(280px, .72fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: stretch;
  overflow: hidden;
  padding: clamp(24px, 4vw, 36px);
}

.project-card + .project-card {
  margin-top: 16px;
}

.project-card.featured {
  min-height: 430px;
}

.project-index {
  color: rgba(49,95,189,.58);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .14em;
}

.project-card h3 {
  margin-top: 14px;
  font-size: clamp(27px, 3.5vw, 46px);
  letter-spacing: -0.045em;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #315fbd;
  background: #f6f8fc;
  font-size: 13px;
  font-weight: 760;
  transition: transform .2s ease, border-color .2s ease;
}

.text-link:hover {
  border-color: rgba(49, 95, 189, .28);
  transform: translateY(-1px);
}

.visual-panel {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(18,28,45,.10);
  border-radius: 12px;
  background: #f6f8fc;
}

.video-panel {
  min-height: 0;
  aspect-ratio: 16 / 9;
  background: #eef2f8;
}

.project-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef2f8;
}

.video-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(18,28,45,.10);
  border-radius: 8px;
  color: #253148;
  background: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 820;
  backdrop-filter: blur(16px);
}

.lighting-stage {
  display: grid;
  min-height: 330px;
  place-items: center;
  background:
    radial-gradient(circle at var(--light-x, 76%) var(--light-y, 28%), rgba(255, 205, 127, .58), transparent 9rem),
    radial-gradient(circle at 42% 55%, rgba(49, 95, 189, .12), transparent 14rem),
    #f4f6fb;
}

.portrait-shape {
  position: relative;
  width: 150px;
  height: 206px;
  border: 1px solid rgba(18,28,45,.10);
  border-radius: 70px 70px 58px 58px;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 228, 180, .9), transparent 18%),
    linear-gradient(100deg, #dfe6f4 0%, #8899ba 48%, #d2a778 100%);
  box-shadow: inset -28px 0 42px rgba(54,67,93,.22), 0 22px 46px rgba(32,45,74,.16);
}

.portrait-shape::before {
  position: absolute;
  left: 26px;
  top: -18px;
  width: 104px;
  height: 58px;
  border-radius: 999px 999px 30px 30px;
  content: "";
  background: #2c3548;
}

.strength-strip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.strength-strip span {
  padding: 8px 0;
  border: 1px solid rgba(18,28,45,.10);
  border-radius: 10px;
  color: #384154;
  background: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.strength-strip span:nth-child(5) {
  border-color: rgba(205, 134, 54, .30);
  background: #fff3df;
}

.pipeline {
  display: grid;
  min-height: 330px;
  align-content: center;
  gap: 18px;
  padding: 28px;
}

.pipeline-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: center;
  gap: 10px;
}

.pipeline-box {
  min-height: 84px;
  padding: 16px;
  border: 1px solid rgba(18,28,45,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.78);
}

.pipeline-box strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.pipeline-box span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.arrow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(49,95,189,.45));
}

.gaussian-field {
  position: relative;
  height: 120px;
  border: 1px solid rgba(18,28,45,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.58);
}

.dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #315fbd;
  box-shadow: 0 0 14px rgba(49,95,189,.32);
}

.map-visual {
  position: relative;
  min-height: 330px;
  padding: 28px;
}

.map-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-path {
  fill: none;
  stroke: #315fbd;
  stroke-width: 2;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-route 3.5s var(--ease) infinite alternate;
}

.city-node {
  position: absolute;
  display: grid;
  width: 72px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(18,28,45,.10);
  border-radius: 9px;
  color: var(--ink);
  background: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 800;
}

.node-a { left: 12%; top: 19%; }
.node-b { right: 15%; top: 24%; }
.node-c { left: 31%; bottom: 18%; }
.node-d { right: 16%; bottom: 18%; }

.agent-stack {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.agent-stack span {
  padding: 8px;
  border: 1px solid rgba(18,28,45,.10);
  border-radius: 10px;
  color: #384154;
  background: rgba(255,255,255,.78);
  font-size: 11px;
  font-weight: 760;
  text-align: center;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
}

.screenshot-grid img {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 10px;
  object-fit: cover;
}

.post-card {
  padding: 22px 0;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform .22s ease, border-color .22s ease;
}

.post-card:hover {
  border-color: rgba(49,95,189,.24);
  transform: translateX(3px);
}

.post-card .tag-row {
  margin-top: 18px;
}

.article {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.article h1 {
  color: var(--ink);
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.article h2 {
  margin-top: 42px;
  color: var(--ink);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.article p,
.article li {
  color: #596173;
  font-size: 16px;
  line-height: 1.82;
}

.article pre {
  overflow-x: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4f6fb;
  color: #1f2937;
}

.page-hero {
  padding: clamp(64px, 9vw, 112px) 0 clamp(42px, 6vw, 70px);
}

.page-hero p {
  max-width: 760px;
  color: #596173;
  font-size: 18px;
  line-height: 1.75;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(260px, .42fr);
  gap: 18px;
  align-items: stretch;
}

.footer {
  padding: 42px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slow-rotate {
  to { transform: rotate(360deg); }
}

@keyframes draw-route {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .academic-profile {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }

  .profile-photo-frame {
    width: 136px;
    height: 158px;
  }

  .background-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 20px;
  }

  .school-seal {
    width: 86px;
    height: 86px;
  }

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

  .research-row em {
    grid-column: 2;
  }

  .hero-grid,
  .section-head,
  .project-card,
  .paper-feature,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .paper-figure {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .paper-intro {
    padding: 24px;
  }

  .paper-details {
    grid-column: 1;
    padding: 0 24px 24px;
  }

  .paper-contribution-list {
    grid-template-columns: 1fr;
  }

  .paper-contribution-list > div,
  .paper-contribution-list > div:first-child,
  .paper-contribution-list > div:last-child {
    padding: 15px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .paper-contribution-list > div:last-child {
    border-bottom: 0;
  }

  .hero-visual {
    min-height: 360px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pipeline-row {
    grid-template-columns: 1fr;
  }

  .arrow {
    height: 24px;
    width: 1px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent, rgba(49,95,189,.45));
  }
}

@media (max-width: 760px) {
  .academic-profile {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .profile-aside {
    position: relative;
    top: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 22px;
  }

  .profile-photo-frame {
    grid-row: span 3;
    width: 118px;
    height: 142px;
    margin: 0;
    border-radius: 16px;
  }

  .profile-meta-list,
  .profile-internships,
  .profile-links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .nav-shell {
    width: min(100% - 28px, var(--max));
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 42px rgba(32,45,74,.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .container,
  .article {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: auto;
  }

  .profile-hero {
    padding-top: 38px;
  }

  .profile-aside {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .profile-photo-frame {
    width: 132px;
    height: 158px;
    margin: 0 0 18px;
  }

  .profile-section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .background-item {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
  }

  .paper-contribution-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .school-seal {
    width: 82px;
    height: 82px;
    border-radius: 0;
    font-size: 12px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

  .agent-stack,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .footer .container {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}
