@font-face { font-family: "Geist"; src: url("./fonts/geist.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("./fonts/geist-mono.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root { --font-geist-sans: "Geist"; --font-geist-mono: "Geist Mono"; }
:root {
  --paper: #f3f1eb;
  --paper-bright: #faf9f6;
  --ink: #101a1f;
  --ink-soft: #364248;
  --muted: #6c777b;
  --line: rgba(16, 26, 31, 0.16);
  --blue: #326d86;
  --blue-deep: #19465c;
  --night: #0d171b;
  --night-soft: #132127;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), "Avenir Next", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
::selection { color: #fff; background: var(--blue); }
a { color: inherit; text-decoration: none; }
main { display: flex; flex-direction: column; }
main > .site-header { order: 0; }
main > .hero { order: 1; }
main > .signal-strip { order: 2; }
main > #experience { order: 3; }
main > #open-source { order: 4; }
main > .credentials-section { order: 5; }
main > #projects { order: 6; }
main > #research { order: 7; }
main > .footer { order: 8; }
main[lang="zh-CN"] h1,
main[lang="zh-CN"] h2,
main[lang="zh-CN"] h3 { letter-spacing: -0.035em; }
main[lang="zh-CN"] .hero h1 { line-height: 1.04; }
.shell { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(16, 26, 31, 0.1);
  background: rgba(243, 241, 235, 0.88);
  backdrop-filter: blur(18px);
}
.nav { height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.wordmark {
  width: fit-content;
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-geist-mono), monospace;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.wordmark-zh { color: var(--blue-deep); font-size: 0.88em; letter-spacing: 0.04em; }
.nav-links { display: flex; gap: 34px; }
.nav-links > a, .nav-profile summary, .nav-resume {
  position: relative;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links > a::after, .nav-profile summary::after, .nav-resume::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.nav-links > a:hover::after, .nav-profile summary:hover::after, .nav-resume:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-profile { position: relative; }
.nav-profile summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.nav-profile summary::-webkit-details-marker { display: none; }
.nav-profile summary span { color: var(--blue); font-size: 14px; line-height: 1; transition: transform 180ms ease; }
.nav-profile[open] summary span { transform: rotate(45deg); }
.nav-dropdown {
  position: absolute;
  top: 34px;
  right: -20px;
  width: 252px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(250, 249, 246, 0.98);
  box-shadow: 0 24px 60px rgba(13, 23, 27, 0.14);
}
.nav-dropdown a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 13px 12px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}
.nav-dropdown a:last-child { border-bottom: 0; }
.nav-dropdown a:hover { padding-left: 16px; color: var(--ink); background: rgba(50, 109, 134, 0.07); }
.nav-dropdown a span { color: var(--blue); font-size: 8px; }
.nav-utilities { justify-self: end; display: flex; align-items: center; gap: 24px; }
.language-switcher { display: flex; align-items: center; gap: 7px; font-family: var(--font-geist-mono), monospace; font-size: 9px; letter-spacing: 0.06em; }
.language-switcher a { color: var(--muted); transition: color 160ms ease; }
.language-switcher a:hover, .language-switcher a[aria-current="page"] { color: var(--ink); }
.language-switcher a[aria-current="page"] { font-weight: 650; }
.language-switcher > span { color: var(--line); }
.nav-resume { justify-self: end; }
.nav-resume span { margin-left: 5px; color: var(--blue); }

.hero {
  min-height: min(780px, calc(100vh - 74px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(50px, 8vw, 128px);
  padding-block: 70px 86px;
}
.hero-copy { max-width: 790px; }
.eyebrow, .section-index {
  margin: 0;
  color: var(--blue-deep);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 28px; height: 1px; background: var(--blue); }
.hero h1 {
  max-width: 800px;
  margin: 28px 0 26px;
  font-size: clamp(48px, 5.7vw, 80px);
  font-weight: 520;
  letter-spacing: -0.066em;
  line-height: 0.98;
}
.hero h1 span { display: block; color: var(--blue); }
.hero-lede {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}
.hero-focus { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-focus span { padding: 7px 9px; border: 1px solid var(--line); color: var(--blue-deep); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.055em; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper-bright); background: var(--ink); }
.button-primary:hover { background: var(--blue-deep); }
.button-secondary:hover { color: var(--paper-bright); background: var(--ink); }
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 42px;
  color: var(--muted);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.035em;
}
.status-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #4c8a68;
  box-shadow: 0 0 0 4px rgba(76, 138, 104, 0.12);
}
.portrait-stage { position: relative; justify-self: end; width: min(100%, 410px); }
.portrait-stage::before {
  position: absolute;
  z-index: -1;
  top: -32px;
  right: 34px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  content: "";
}
.portrait-frame { position: relative; aspect-ratio: 0.83; overflow: hidden; background: #c5c9c8; }
.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 55%, rgba(10, 20, 24, 0.18));
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.portrait-index {
  position: absolute;
  top: 14px;
  left: -22px;
  color: var(--paper-bright);
  font-family: var(--font-geist-mono), monospace;
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.08em;
  mix-blend-mode: difference;
}
.portrait-caption {
  position: absolute;
  right: -22px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 18px;
  color: white;
  background: var(--blue-deep);
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-strip { color: #f5f3ed; background: var(--night); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding-inline: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.signal:last-child { border-right: 1px solid rgba(255, 255, 255, 0.14); }
.signal strong { font-size: clamp(32px, 3.5vw, 50px); font-weight: 530; letter-spacing: -0.055em; }
.signal span {
  color: #93a0a4;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section { padding-block: 138px; }
.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.45fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 72px;
}
.section-heading h2 {
  margin: -8px 0 0;
  font-size: clamp(43px, 4.65vw, 64px);
  font-weight: 510;
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.section-heading > p:last-child {
  max-width: 400px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.work-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 18px; }
.project-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 27px 30px 30px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}
.project-card-featured::before {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  content: "";
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}
.project-card > * { position: relative; }
.project-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.project-topline a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 16px;
  transition: transform 180ms ease, background 180ms ease;
}
.project-topline a:hover { transform: rotate(45deg); background: rgba(255, 255, 255, 0.17); }
.project-number { margin: 0 0 20px; color: var(--blue); font-family: var(--font-geist-mono), monospace; font-size: 11px; }
.project-body h3, .ledger-intro h3, .upstream-header h3 {
  margin: 0;
  font-size: clamp(42px, 4.65vw, 64px);
  font-weight: 520;
  letter-spacing: -0.065em;
  line-height: 0.95;
}
.project-copy { max-width: 540px; margin: 26px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }
.system-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.system-flow span { padding: 8px 10px; border: 1px solid var(--line); background: rgba(250, 249, 246, 0.7); }
.system-flow i { color: var(--blue); font-style: normal; }
.project-metric { display: flex; align-items: baseline; gap: 10px; }
.project-metric strong { font-size: 31px; font-weight: 530; letter-spacing: -0.045em; }
.project-metric span { color: var(--muted); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; }
.project-card-blue { color: #f7f7f3; border-color: transparent; background: var(--blue-deep); }
.project-card-blue .project-number { color: #a9ccd8; }
.project-card-blue .project-copy { color: #cbdadd; }
.project-card-blue .project-metric span { color: #b9ced4; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tag-row span { padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.26); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.055em; text-transform: uppercase; }
.tag-row-light span { border-color: var(--line); color: var(--blue-deep); background: rgba(250, 249, 246, 0.72); }
.project-card-ledger {
  min-height: 560px;
  grid-column: 1 / -1;
  display: block;
  color: #f4f3ee;
  border: 0;
  background: var(--night-soft);
}
.upstream-header {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 70px;
  align-items: end;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.upstream-header h3 { max-width: 620px; }
.upstream-total { display: flex; align-items: baseline; justify-content: flex-end; gap: 16px; }
.upstream-total strong { font-size: clamp(56px, 6vw, 80px); font-weight: 520; letter-spacing: -0.075em; line-height: 0.85; }
.upstream-total span { max-width: 150px; color: #92a2a7; font-family: var(--font-geist-mono), monospace; font-size: 10.5px; letter-spacing: 0.06em; line-height: 1.5; text-transform: uppercase; }
.upstream-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 34px; }
.upstream-columns > section:first-child { padding-right: 34px; }
.upstream-columns > section:last-child { padding-left: 34px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.upstream-column-heading { min-height: 76px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.upstream-column-heading p { margin: 0 0 6px; color: #d9e5e8; font-size: 20px; font-weight: 520; letter-spacing: -0.025em; }
.upstream-column-heading span { color: #819399; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.065em; text-transform: uppercase; }
.upstream-column-heading > strong { color: #86b1c1; font-size: 29px; font-weight: 520; letter-spacing: -0.045em; }
.ledger-kicker { margin: 0 0 13px; color: #86b1c1; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.085em; text-transform: uppercase; }
.ledger-table { align-self: center; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.ledger-row { min-height: 64px; display: grid; grid-template-columns: 0.82fr 0.9fr 1fr; align-items: center; gap: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.ledger-row span:first-child { font-size: 18px; font-weight: 540; }
.ledger-row span:nth-child(2) { color: #8fa0a6; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.065em; text-transform: uppercase; }
.ledger-row strong { color: #a9ccd8; font-family: var(--font-geist-mono), monospace; font-size: 10px; font-weight: 500; letter-spacing: 0.035em; text-align: right; text-transform: uppercase; }

.experience-section { color: #f3f3ee; background: var(--night); }
.experience-inner { padding-bottom: 120px; }
.section-heading-light .section-index { color: #86b1c1; }
.section-heading-light > p:last-child { color: #9aa8ad; }
.experience-feature { display: grid; grid-template-columns: 0.75fr 1.4fr; gap: 60px; padding: 60px 0 68px; border-top: 1px solid rgba(255, 255, 255, 0.18); border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.experience-meta { display: flex; flex-direction: column; justify-content: space-between; }
.company-mark { margin: 0; color: #dbe8ec; font-size: clamp(64px, 7vw, 96px); font-weight: 600; letter-spacing: -0.08em; line-height: 0.8; }
.experience-meta > div { display: flex; flex-direction: column; gap: 5px; color: #78898e; font-family: var(--font-geist-mono), monospace; font-size: 10.5px; letter-spacing: 0.065em; text-transform: uppercase; }
.role-label { margin: 0; color: #8eb7c5; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; }
.experience-content h3 { max-width: 660px; margin: 18px 0 34px; font-size: clamp(34px, 4.2vw, 58px); font-weight: 500; letter-spacing: -0.055em; line-height: 1.03; }
.experience-content ul { max-width: 720px; margin: 0; padding: 0; list-style: none; }
.experience-content li { position: relative; padding: 16px 0 16px 28px; color: #afbbbf; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; line-height: 1.62; }
.experience-content li::before { position: absolute; left: 1px; content: "↳"; color: #79aabd; }
.experience-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.experience-list article { position: relative; min-height: 330px; padding: 32px 30px 30px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.experience-list article:not(:last-child) { margin-right: 30px; border-right: 1px solid rgba(255, 255, 255, 0.18); }
.entry-number { color: #64767c; font-family: var(--font-geist-mono), monospace; font-size: 10px; }
.entry-company { margin: 34px 0 12px; color: #97c1cf; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; }
.experience-list h3 { margin: 0; font-size: 21px; font-weight: 520; line-height: 1.35; }
.experience-list h3 span { color: #74858b; font-size: 13px; font-weight: 440; }
.experience-list article > p:last-of-type { margin: 24px 0 50px; color: #9eacb1; font-size: 14px; line-height: 1.65; }
.experience-list strong { color: #f3f3ee; font-weight: 600; }
.experience-list time { position: absolute; bottom: 26px; color: #64767c; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.065em; text-transform: uppercase; }

.research-heading { margin-bottom: 60px; }
.research-list { border-top: 1px solid var(--line); }
.research-list article { min-height: 210px; display: grid; grid-template-columns: 0.55fr 1fr 1.25fr 0.72fr; gap: 34px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding 200ms ease, background 200ms ease; }
.research-list article:hover { padding-inline: 16px; background: rgba(255, 255, 255, 0.38); }
.research-index { color: var(--blue); font-family: var(--font-geist-mono), monospace; font-size: 10px; }
.research-role { margin: 0 0 8px; color: var(--muted); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.065em; text-transform: uppercase; }
.research-list h3 { margin: 0; font-size: clamp(30px, 3vw, 46px); font-weight: 520; letter-spacing: -0.05em; }
.research-list h3 span { color: var(--blue); font-size: 0.45em; vertical-align: top; }
.research-copy { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.research-meta { margin: 2px 0 0; color: var(--blue-deep); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.055em; line-height: 1.5; text-transform: uppercase; }

.venture-section { border-top: 1px solid var(--line); background: #e8e5de; }
.venture-heading { margin-bottom: 58px; }
.venture-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 18px; }
.venture-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 30px 32px;
  border: 1px solid var(--line);
  background: var(--paper-bright);
}
.venture-card-primary { color: #eef3f1; border-color: transparent; background: var(--blue-deep); }
.venture-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; color: var(--muted); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.075em; line-height: 1.55; text-transform: uppercase; }
.venture-card-primary .venture-topline { color: #a9c3cc; }
.venture-card > div:last-child > p:first-child { margin: 0 0 14px; color: var(--blue); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.075em; text-transform: uppercase; }
.venture-card-primary > div:last-child > p:first-child { color: #9ec1ce; }
.venture-card h3 { margin: 0; font-size: clamp(44px, 4.65vw, 64px); font-weight: 520; letter-spacing: -0.065em; line-height: 0.95; }
.venture-card > div:last-child > p:last-child { max-width: 570px; margin: 27px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.venture-card-primary > div:last-child > p:last-child { color: #c6d5d9; }
.venture-card strong { color: var(--ink); font-weight: 650; }
.venture-card-primary strong { color: #fff; }

.credentials-section { padding-block: 110px; border-top: 1px solid var(--line); background: var(--paper-bright); }
.credentials-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(64px, 8vw, 120px); }
.education-entry { padding: 32px 0; border-bottom: 1px solid var(--line); }
.education-entry span { color: var(--blue); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.065em; text-transform: uppercase; }
.education-entry h3 { margin: 12px 0 7px; font-size: 22px; font-weight: 540; letter-spacing: -0.025em; }
.education-entry p { margin: 0; color: var(--muted); font-size: 14px; }
.honors-column {
  align-self: start;
  padding: 34px 38px 22px;
  color: #edf3f1;
  background: var(--blue-deep);
  box-shadow: 0 28px 70px rgba(13, 36, 46, 0.14);
}
.honors-column > .section-index { color: #9fc0cc; font-size: 11px; }
.honors-column ul { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.honors-column li { display: grid; grid-template-columns: 160px 1fr; gap: 22px; padding: 22px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.honors-column li:first-child { display: block; padding: 27px 0 31px; }
.honors-column strong { color: #fff; font-size: 15px; font-weight: 620; line-height: 1.25; }
.honors-column span { color: #b9cdd3; font-size: 13px; line-height: 1.55; }
.honors-column li:first-child strong { display: block; color: #fff; font-size: clamp(31px, 3.2vw, 44px); font-weight: 540; letter-spacing: -0.055em; }
.honors-column li:first-child span { display: block; margin-top: 9px; color: #d7e3e5; font-size: 15px; }
.skills-panel { display: grid; grid-template-columns: 0.72fr 1.45fr; gap: 70px; margin-top: 90px; padding-top: 52px; border-top: 1px solid var(--line); }
.skills-intro h3 { max-width: 320px; margin: 18px 0 0; font-size: clamp(35px, 4vw, 54px); font-weight: 520; letter-spacing: -0.055em; line-height: 1; }
.skills-groups { border-top: 1px solid var(--line); }
.skills-groups > div { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.skills-groups span { color: var(--blue-deep); font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.065em; text-transform: uppercase; }
.skills-groups p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

.footer { color: #edf0ed; background: var(--blue-deep); }
.footer-top { min-height: 400px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-top p { margin: 0; font-size: clamp(50px, 6.3vw, 84px); font-weight: 510; letter-spacing: -0.07em; line-height: 0.93; }
.footer-contact { min-width: min(100%, 330px); display: flex; flex-direction: column; }
.footer-contact a, .footer-contact > span { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.38); font-family: var(--font-geist-mono), monospace; font-size: 11px; letter-spacing: 0.025em; }
.footer-contact a { display: flex; justify-content: space-between; gap: 24px; }
.footer-contact > span { color: #aec4cc; }
.footer-bottom { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.2); color: #aec4cc; font-family: var(--font-geist-mono), monospace; font-size: 10px; letter-spacing: 0.055em; text-transform: uppercase; }
.footer-bottom div { display: flex; gap: 28px; }
.footer-bottom > span:last-child { justify-self: end; }
.footer a:hover { color: white; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .portrait-stage { animation: rise 700ms both; }
  .hero-copy > *:nth-child(2) { animation-delay: 70ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 130ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 190ms; }
  .hero-copy > *:nth-child(5) { animation-delay: 250ms; }
  .portrait-stage { animation-delay: 160ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 980px) {
  .shell { width: min(100% - 40px, 760px); }
  .nav { grid-template-columns: 1fr auto auto; gap: 24px; }
  .nav-links { display: flex; }
  .nav-links > a { display: none; }
  .nav-dropdown { right: -12px; }
  .hero { grid-template-columns: 1fr; gap: 60px; padding-block: 66px 86px; }
  .hero h1 { max-width: 720px; font-size: clamp(50px, 9vw, 70px); }
  .portrait-stage { width: min(74vw, 480px); justify-self: center; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.14); }
  .section { padding-block: 100px; }
  .section-heading { grid-template-columns: 1fr 2fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .work-grid { grid-template-columns: 1fr; }
  .project-card-ledger { grid-column: auto; }
  .upstream-header { grid-template-columns: 1fr; gap: 34px; }
  .upstream-total { justify-content: flex-start; }
  .upstream-columns { grid-template-columns: 1fr; }
  .upstream-columns > section:first-child { padding: 0 0 34px; }
  .upstream-columns > section:last-child { padding: 34px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); border-left: 0; }
  .experience-feature { grid-template-columns: 1fr; }
  .experience-meta { min-height: 160px; }
  .experience-list { grid-template-columns: 1fr; }
  .experience-list article { min-height: 270px; margin: 0 !important; border-right: 0 !important; }
  .research-list article { grid-template-columns: 0.4fr 1fr 1.5fr; }
  .research-meta { grid-column: 2 / -1; }
  .venture-grid { grid-template-columns: 1fr; }
  .credentials-grid { grid-template-columns: 1fr; gap: 80px; }
  .skills-panel { grid-template-columns: 1fr; gap: 46px; }
  .footer-top { min-height: 360px; flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .site-header { position: relative; }
  .nav { height: 66px; }
  .nav { gap: 17px; }
  .wordmark { gap: 6px; font-size: 12px; }
  .nav-profile summary, .nav-resume { font-size: 10px; }
  .nav-utilities { gap: 14px; }
  .language-switcher { gap: 5px; font-size: 10px; }
  .nav-dropdown { right: -76px; width: min(270px, calc(100vw - 32px)); }
  .hero { min-height: auto; padding-block: 52px 68px; }
  .hero h1 { margin-block: 24px 22px; font-size: clamp(42px, 12vw, 56px); line-height: 1; }
  main[lang="zh-CN"] .hero h1 { font-size: clamp(35px, 11vw, 48px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { justify-content: space-between; }
  .hero-note { align-items: flex-start; line-height: 1.5; }
  .status-dot { margin-top: 4px; }
  .portrait-stage { width: calc(100% - 18px); margin-right: 18px; }
  .portrait-stage::before { top: -15px; right: -18px; }
  .portrait-caption { right: -18px; }
  .signal { min-height: 118px; padding: 18px; }
  .signal strong { font-size: 34px; }
  .signal span { line-height: 1.45; }
  .section { padding-block: 82px; }
  .section-heading { display: block; margin-bottom: 46px; }
  .section-heading h2 { margin: 24px 0; font-size: 42px; }
  .section-heading > p:last-child { max-width: none; }
  .project-card { min-height: 480px; padding: 22px; }
  .project-body h3, .ledger-intro h3, .upstream-header h3 { font-size: 44px; }
  .project-card-ledger { min-height: auto; padding-block: 32px; }
  .upstream-total { align-items: flex-end; }
  .upstream-total strong { font-size: 56px; }
  .ledger-row { grid-template-columns: 1fr auto; }
  .ledger-row span:nth-child(2) { display: none; }
  .ledger-row strong { max-width: 130px; }
  .experience-inner { padding-bottom: 70px; }
  .experience-feature { padding-block: 42px; gap: 36px; }
  .company-mark { font-size: 64px; }
  .experience-content h3 { font-size: 38px; }
  .experience-list article { min-height: 295px; padding-right: 0; }
  .research-list article { min-height: 0; display: grid; grid-template-columns: 54px 1fr; gap: 22px 10px; padding-block: 30px; }
  .research-copy, .research-meta { grid-column: 2; }
  .venture-card { min-height: 350px; padding: 22px; }
  .venture-card h3 { font-size: 44px; }
  .credentials-section { padding-block: 80px; }
  .honors-column { padding: 28px 24px 16px; }
  .honors-column li { grid-template-columns: 1fr; gap: 7px; }
  .skills-panel { margin-top: 70px; padding-top: 42px; }
  .skills-groups > div { grid-template-columns: 1fr; gap: 8px; }
  .footer-top { min-height: 360px; }
  .footer-top p { font-size: 46px; }
  .footer-contact { width: 100%; min-width: 0; }
  .footer-bottom { min-height: 130px; grid-template-columns: 1fr auto; gap: 20px; }
  .footer-bottom div { grid-column: 1 / -1; grid-row: 1; flex-wrap: wrap; }
  .footer-bottom > span:last-child { justify-self: end; }
}

@media print {
  .site-header { position: static; }
}
