@font-face {
  font-family: Sora;
  src: url('/fonts/sora-variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('/fonts/source-sans-3-variable.woff2') format('woff2');
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('/fonts/noto-sans-sc-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --canvas: light-dark(#f4f7fb, #111e2b);
  --surface: light-dark(#ffffff, #1a2b3c);
  --ink: light-dark(#18344a, #e5edf5);
  --muted: light-dark(#526477, #acbdce);
  --blue: light-dark(#2457b8, #92b9ff);
  --blue-hover: light-dark(#1d4596, #bdd3ff);
  --line: light-dark(#d4dfea, #395169);
  --soft: light-dark(#edf3fa, #233a50);
  --signal: light-dark(#b44825, #ffb397);
  --action: light-dark(#2457b8, #3466bc);
  --action-hover: light-dark(#1d4596, #2b559f);
  --on-action: #ffffff;
  --selection: light-dark(#d3e2fb, #304e70);
  --gateway: #18344a;
  --gateway-hover: #204361;
  --diagram-line: light-dark(#7d98b3, #7894b0);
  --image-surface: #ffffff;
  --sans: 'Source Sans 3', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --display: Sora, 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --page-width: 1220px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 2px rgba(24, 52, 74, 0.05);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}
:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { min-height: 100svh; display: flex; flex-direction: column; margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--selection); color: var(--ink); }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
a:hover { color: var(--blue); }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--page-width); margin-inline: auto; padding-inline: 48px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, .monogram, .proof-bar dt { font-family: var(--display); }
h2, h3, h4 { text-wrap: pretty; }
/* Chinese glyphs need more breathing room than Latin display lettering. */
:lang(zh-CN) :is(h1, h2, h3, h4, .hero-subtitle, .proof-bar dt, .profile-role) { letter-spacing: 0; }
h1 { font-size: clamp(60px, 7.3vw, 96px); line-height: 1.12; font-weight: 600; letter-spacing: -.065em; margin-bottom: 25px; }
h2 { font-size: clamp(27px, 3vw, 36px); font-weight: 500; line-height: 1.4; letter-spacing: -.04em; margin-bottom: 0; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 1px solid var(--blue); border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; line-height: 1.5; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.primary { color: var(--on-action); background: var(--action); border-color: var(--action); box-shadow: var(--shadow-sm); }
.primary:hover { background: var(--action-hover); color: var(--on-action); border-color: var(--action-hover); }
.secondary { color: var(--blue); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.secondary:hover { background: var(--soft); border-color: var(--blue); color: var(--blue); }
.text-link { color: var(--blue); padding: 10px 0; font-size: 14px; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: #91a9c4; transition: color .15s ease, text-decoration-color .15s ease; }
.text-link:hover { text-decoration-color: var(--blue); }
.section { padding-block: 80px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 38px; }
.section-note { max-width: 38ch; margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.projects-section { background: var(--surface); }
.project-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; min-width: 44px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 8px 16px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.filter:hover { background: var(--soft); color: var(--ink); }
.filter.active { color: var(--blue); background: var(--soft); border-color: var(--line); font-weight: 600; box-shadow: var(--shadow-sm); }
.search-wrap { width: min(360px, 100%); min-width: 0; flex-shrink: 0; }
.search-wrap input { width: 100%; min-height: 48px; padding: 11px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--canvas); color: var(--ink); font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 88, 190, .15); }
.search-wrap input:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.results-count { margin-bottom: 20px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.project-card { display: flex; flex-direction: column; padding: 28px 0; background: transparent; border: 0; border-top: 1px solid var(--line); min-width: 0; transition: border-color .15s ease; }
.project-card:has(h3 a:is(:hover, :focus-visible)) { border-color: var(--blue); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.org { display: inline-flex; align-items: center; color: var(--blue); font-weight: 600; font-size: 13px; }
.stars { display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.project-card h3 { font-size: 20px; font-weight: 600; line-height: 1.45; letter-spacing: -.025em; margin: 14px 0 10px; overflow-wrap: anywhere; }
.project-card h3 a { display: inline-block; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 5px; transition: text-decoration-color .15s; }
.project-card h3 a:hover { text-decoration-color: currentColor; }
.project-card h3 a > span[aria-hidden] { font-size: 15px; margin-left: 5px; color: var(--blue); }
.project-card > p { max-width: 60ch; font-size: 16px; line-height: 1.75; margin-bottom: 24px; color: var(--muted); }
.card-bottom { margin-top: auto; display: flex; gap: 14px; font-size: 14px; color: var(--muted); }
.card-bottom > span:before { content: ''; display: inline-block; height: 6px; width: 6px; background: var(--blue); border-radius: 50%; margin: 0 7px 1px 0; }
.show-more { display: flex; margin: 26px auto 0; }
.empty-state { padding: 44px 24px; background: var(--canvas); border: 1px dashed var(--line); border-radius: var(--radius-md); text-align: center; color: var(--muted); font-size: 16px; }
.empty-state p { margin-bottom: 6px; }
.project-footnote { display: flex; justify-content: space-between; gap: 24px; align-items: baseline; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.source-note { max-width: 500px; text-align: right; }
.source-note summary { cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; }
.source-note p { margin: 12px 0 0; line-height: 1.9; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.skills li { max-width: 100%; font-size: 13px; background: var(--soft); color: var(--ink); border-radius: var(--radius-sm); padding: 5px 10px; }
.company { border-top: 1px solid var(--line); }
.company:first-child { border-top: 0; }
.company:first-child .company-heading { padding-top: 0; }
.company:last-child { border-bottom: 1px solid var(--line); }
.company-heading { display: grid; grid-template-columns: minmax(0, 1fr) 140px 24px; gap: 22px; align-items: center; padding: 25px 0; cursor: pointer; list-style: none; }
.company-heading::-webkit-details-marker { display: none; }
.company-heading h3 { font-size: 20px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 5px; line-height: 1.5; overflow-wrap: anywhere; text-wrap: pretty; }
.company-heading p { font-size: 14px; margin-bottom: 0; color: var(--muted); }
.company-period { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); white-space: nowrap; }
.company-heading:hover h3 { color: var(--blue); }
.company-toggle { width: 24px; height: 24px; position: relative; }
.company-toggle:before, .company-toggle:after { content: ''; position: absolute; background: var(--blue); width: 12px; height: 1px; top: 12px; left: 6px; }
.company-toggle:after { transform: rotate(90deg); }
.company details[open] .company-toggle:after { transform: rotate(0); }
.roles { padding-right: 46px; border-left: 1px solid var(--line); padding-left: 22px; margin: 0 0 28px 7px; }
.role { margin-bottom: 22px; position: relative; }
.role:last-child { margin-bottom: 0; }
.role:before { content: ''; position: absolute; width: 5px; height: 5px; left: -25px; top: 9px; background: var(--blue); border-radius: 50%; }
.role-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 22px; }
.role h4 { font-size: 16px; font-weight: 600; margin-bottom: 0; }
.role-heading > span { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); white-space: nowrap; }
.role ul { padding-left: 17px; margin: 12px 0 0; max-width: 68ch; font-size: 16px; color: var(--muted); line-height: 1.85; }
.role li + li { margin-top: 6px; }
.footer { display: flex; flex-wrap: wrap; gap: 30px; align-items: center; padding-top: 28px; padding-bottom: 28px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.footer a { display: inline-flex; align-items: center; min-height: 44px; }
.footer > span { color: var(--ink); margin-right: auto; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-160%); z-index: 100; background: var(--action); color: var(--on-action); padding: 10px 18px; border-radius: 4px; }
.skip-link:focus { transform: none; color: #fff; }
.not-found { padding-block: clamp(64px, 15vh, 160px); }
.not-found h1 { font-size: clamp(36px, 6vw, 64px); letter-spacing: -.04em; }
.not-found > p { max-width: 50ch; color: var(--muted); font-size: 18px; line-height: 1.8; }
.not-found > p:first-child { font-family: var(--display); font-size: 18px; color: var(--blue); margin-bottom: 24px; }
.not-found .hero-actions { margin-top: 32px; }
.not-found > p:first-child { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-variant-numeric: tabular-nums; }
.not-found > p[lang='en'] { padding-top: 20px; border-top: 1px solid var(--line); }
@media (min-width: 801px) and (max-width: 1100px) {
  .company-heading { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 12px; }
  .company-period { grid-column: 1; grid-row: 2; text-align: left; }
  .company-toggle { grid-column: 2; grid-row: 1 / 3; }
  .role-heading { display: block; }
  .role-heading > span { display: block; margin-top: 4px; }
  .roles { padding-right: 0; }
}
@media (max-width: 960px) {
  .container { padding-inline: 32px; }
  .project-grid { column-gap: 28px; }
}
@media (max-width: 700px) {
  .container { padding-inline: 22px; }
  h1 { font-size: clamp(55px, 13vw, 80px); }
  h2 { font-size: 27px; }
  .section { padding-block: 50px; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-note { margin-top: 12px; font-size: 13px; }
  .project-controls { flex-direction: column; align-items: stretch; gap: 12px; }
  .search-wrap { width: 100%; min-width: 0; }
  .filter { font-size: 12px; padding-inline: 11px; }
  .search-wrap input { font-size: 16px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { padding: 24px 0; }
  .project-card h3 { font-size: 20px; }
  .project-footnote { flex-wrap: wrap; gap: 10px; }
  .source-note { text-align: left; }
  .company-heading { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 12px; padding-block: 21px; }
  .company-heading h3 { font-size: 18px; }
  .company-heading > div { grid-column: 1; }
  .company-period { text-align: left; grid-column: 1; grid-row: 2; }
  .company-toggle { grid-column: 2; grid-row: 1 / 3; }
  .roles { padding-right: 0; margin-left: 2px; padding-left: 18px; }
  .role:before { left: -21px; }
  .role-heading { display: block; }
  .role-heading > span { display: block; margin-top: 4px; }
  .footer { gap: 20px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
  .button:hover { transform: none; }
}
@media print {
  :root:root { color-scheme: light; }
  @page { margin: 16mm; }
  body { background: white; color: black; font-size: 10pt; }
  .container { max-width: none; padding-inline: 0; }
  .site-header, .skip-link, .project-map, .hero-actions, .focus-section, .projects-section, .closing, .footer { display: none !important; }
  h1 { font-size: 34pt; margin-bottom: 10px; }
  h2 { font-size: 20pt; }
  .section { padding-block: 16px; }
  .section-heading { margin-bottom: 16px; }
  .section-note { display: none; }
  .company { break-inside: avoid; }
  .company-heading { padding-block: 14px; }
  .company-heading h3 { font-size: 14pt; }
  .company-toggle { display: none; }
  details::details-content { display: block; content-visibility: visible; }
  .roles { margin-bottom: 16px; }
  .role { break-inside: avoid; margin-bottom: 12px; }
  .role h4, .role ul { font-size: 9pt; }
}
