@font-face {
  font-family: Manrope;
  src: url('/assets/fonts/manrope-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f9fbff;
  --paper: rgba(255, 255, 255, .93);
  --ink: #243149;
  --muted: #4b5870;
  --blue: #52658f;
  --iris: #70628f;
  --petal: #e8eef9;
  --lilac: #efedf8;
  --line: #dbe2ee;
  --soft: #f1f5fc;
  --success: #3c6454;
  --success-bg: #edf6f0;
  --progress: #76541e;
  --progress-bg: #faf2df;
  --radius: 16px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --font: Manrope, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 110px; -webkit-tap-highlight-color: rgba(82, 101, 143, .15); }
body { isolation: isolate; margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
::selection { color: var(--ink); background: #dcd8ef; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button, summary, a { touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--iris); outline-offset: 4px; }
button:active, .btn:active { transform: translateY(1px); }
.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 18px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.nav-wrap { position: sticky; top: max(16px, env(safe-area-inset-top, 0px)); margin-top: 18px; z-index: 20; }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 68px; padding: 8px 22px; background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(42, 57, 90, .035); }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; font-size: 16px; letter-spacing: -.03em; white-space: nowrap; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 11px; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 650; text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.mobile-menu { display: none; }
.mobile-menu summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px; cursor: pointer; font-size: 14px; font-weight: 650; list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary::marker { content: ''; }
.mobile-menu svg { width: 20px; height: 20px; }
.mobile-links { position: absolute; inset: calc(100% + 10px) 0 auto; display: grid; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 32px rgba(42, 57, 90, .10); }
.mobile-links a { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 8px; font-size: 15px; text-decoration: none; }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: center; gap: 68px; min-height: 710px; padding-block: 82px 104px; }
.hero-copy-wrap { position: relative; min-width: 0; container-type: inline-size; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0 0 18px; font-size: clamp(38px, 7vw, 88px); font-size: clamp(38px, 15cqw, 88px); font-weight: 750; line-height: 1.1; letter-spacing: -.04em; white-space: nowrap; }
.hero-role { margin-bottom: 22px; font-size: clamp(21px, 2.05vw, 27px); font-weight: 600; line-height: 1.42; letter-spacing: -.025em; }
.hero-copy { max-width: 42ch; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.85; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 46px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--blue); font-size: 13px; font-weight: 700; text-decoration: none; transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease; }
.btn svg { flex-shrink: 0; width: 16px; height: 16px; }
.btn.primary { color: white; background: var(--blue); border-color: var(--blue); }
.portrait-wrap { width: min(100%, 398px); justify-self: end; }
.portrait-card { padding: 12px; background: white; border-radius: 28px; box-shadow: 0 20px 48px rgba(58, 66, 105, .12); transform: rotate(1.4deg); }
.portrait-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 19px; }
.section { padding-block: clamp(66px, 7vw, 100px); }
.section.soft { background: transparent; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 34px; }
h2 { margin-bottom: 0; font-size: clamp(30px, 3.2vw, 44px); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.section-intro { flex: 0 1 380px; margin: 0; max-width: 42ch; color: var(--muted); font-size: 15px; line-height: 1.8; }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; }
.about-main { display: flex; align-items: center; padding: 32px; }
.about-main p { margin: 0; max-width: 46ch; font-size: 19px; line-height: 1.85; letter-spacing: -.015em; }
.about-aside { padding: 30px; background: var(--lilac); border-color: transparent; }
.about-aside h3 { margin-bottom: 10px; font-size: 17px; font-weight: 700; }
.about-aside p { margin-bottom: 18px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.research-tags, .work-tags, .skill-list, .coursework, .status-row { display: flex; flex-wrap: wrap; gap: 7px; }
.research-tags span, .work-tags span, .skill-list span, .coursework span { padding: 5px 9px; border-radius: 6px; color: var(--blue); background: var(--soft); font-size: 12px; font-weight: 500; line-height: 1.6; }
.research-tags span { background: rgba(255, 255, 255, .7); color: var(--iris); }
.education { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.edu-card { padding: 30px; }
.edu-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 12px; font-size: 15px; font-weight: 750; }
.edu-mark.columbia { color: #305378; background: var(--petal); }
.edu-mark.ucd { color: #394b65; background: #f5efdb; }
.edu-school { margin-bottom: 8px; font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
.edu-degree { color: var(--ink); font-size: 15px; font-weight: 550; line-height: 1.8; }
.edu-meta { margin-top: 16px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.coursework-label { margin: 24px 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.coursework span { background: var(--bg); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.work-card { display: flex; flex-direction: column; padding: 28px; }
.work-card[data-project='LX'] { background: #fafcff; border-color: #bdcbe2; }
.work-card[data-project='W'] { background: #fcfbff; border-color: #d0c9e2; }
.work-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.work-identity { display: flex; align-items: center; gap: 11px; }
.work-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px; background: var(--petal); color: var(--blue); font-size: 12px; font-weight: 750; }
[data-category='course'] .work-icon { background: var(--lilac); color: var(--iris); }
.project-kind { color: var(--muted); font-size: 12px; font-weight: 600; }
.work-badge, .status { display: inline-flex; align-items: center; max-width: 100%; width: fit-content; padding: 5px 9px; border-radius: 6px; background: var(--soft); color: var(--blue); font-size: 11px; font-weight: 650; line-height: 1.6; }
.work-badge.progress, .status.progress { color: var(--progress); background: var(--progress-bg); }
.status.done { color: var(--success); background: var(--success-bg); }
.work-card h3 { margin-bottom: 12px; font-size: 21px; font-weight: 700; line-height: 1.45; letter-spacing: -.025em; text-wrap: balance; }
.work-card p { margin-bottom: 20px; max-width: 65ch; color: var(--muted); font-size: 15px; line-height: 1.85; }
.work-card .work-meta { margin-bottom: 15px; font-size: 13px; line-height: 1.8; }
.work-tags { margin-top: auto; padding-top: 5px; }
.course-app { margin-top: 18px; border-top: 1px solid var(--line); }
.course-app summary, .study-details summary { padding-block: 12px; min-height: 46px; color: var(--blue); cursor: pointer; font-size: 14px; font-weight: 600; line-height: 1.7; }
.course-app-body { display: grid; gap: 15px; padding-top: 10px; }
.course-app-body p { margin-bottom: 0; font-size: 14px; }
.oracle-screen { width: min(100%, 320px); border-radius: 8px; image-rendering: pixelated; }
.studies-card { grid-column: 1 / -1; padding: 24px 28px; background: var(--paper); }
.studies-card h3 { margin-bottom: 4px; font-size: 19px; }
.study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding-block: 16px 24px; }
.study-item strong { display: block; margin-bottom: 9px; font-size: 15px; line-height: 1.6; }
.study-item span { display: block; color: var(--muted); font-size: 14px; line-height: 1.85; }
.skills-grid { border-block: 1px solid var(--line); }
.skill-card { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: start; padding-block: 24px; background: transparent; border: 0; border-radius: 0; }
.skill-card + .skill-card { border-top: 1px solid var(--line); }
.skill-card h3 { margin: 2px 0 0; font-size: 16px; font-weight: 650; }
.skill-list { gap: 8px; }
.skill-list span { padding: 6px 10px; font-size: 13px; }
.credential-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 22px; }
.credential-filters { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; margin: 0; padding: 0; border: 0; }
.credential-filters button { min-height: 44px; padding: 9px 15px; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); font-size: 13px; font-weight: 650; transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out); }
.credential-filters button[aria-pressed='true'] { color: var(--iris); background: var(--lilac); }
.credential-count { margin: 0; color: var(--muted); font-size: 12px; }
.certification-card { padding: 6px 28px; }
.certification-list { margin: 0; padding: 0; list-style: none; }
.certification-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; padding: 20px 0; }
.certification-list li + li { border-top: 1px solid var(--line); }
.credential-name { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.65; }
.credential-detail { display: block; max-width: 70ch; margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.certification-date { color: var(--muted); font-size: 13px; line-height: 25px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.creative-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product { display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: start; gap: 22px; min-height: 248px; padding: 26px; }
.product-icon { width: 100px; height: 100px; border-radius: 23px; object-fit: cover; }
.product-copy { min-width: 0; }
.product-copy h3 { margin: 2px 0 5px; font-size: 21px; line-height: 1.45; font-weight: 700; letter-spacing: -.025em; }
.product-copy h3[lang='zh-Hans'] { word-break: keep-all; }
.product-en { margin-bottom: 13px; color: var(--blue); font-size: 12px; font-weight: 600; line-height: 1.65; }
.product-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.status-row { margin-top: 16px; gap: 6px; }
.status { font-size: 11.5px; padding: 4px 7px; }
.museum-link { margin-top: 18px; }
.media-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 248px; padding: 30px; background: var(--lilac); border-color: transparent; }
.media-card h3 { margin: 0 0 14px; font-size: 23px; font-weight: 650; line-height: 1.5; letter-spacing: -.025em; }
.media-card p { max-width: 44ch; margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.media-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: auto; color: var(--iris); font-weight: 700; font-size: 14px; text-decoration-thickness: 1px; }
.footer { position: relative; padding-block: 34px calc(34px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover, .mobile-links a:hover { color: var(--iris); background: var(--lilac); }
  .btn:hover { border-color: var(--blue); color: var(--ink); background: var(--petal); }
  .btn.primary:hover { color: white; background: #43577e; border-color: #43577e; }
  .credential-filters button:hover { background: var(--lilac); color: var(--iris); }
  .media-link:hover, .footer-links a:hover { color: var(--ink); text-decoration: underline; }
  summary:hover { color: var(--iris); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy-wrap { animation: arrive 600ms var(--ease-out) both; }
  .portrait-wrap { animation: arrive 650ms 70ms var(--ease-out) both; }
  .mobile-menu[open] .mobile-links { animation: menu-enter 160ms var(--ease-out); }
}
@keyframes arrive { from { opacity: .45; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes menu-enter { from { opacity: .5; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
html[data-input='keyboard'] .mobile-links { animation: none !important; }
@media (max-width: 1100px) {
  .hero { gap: 40px; min-height: 650px; }
  .nav-links a { padding-inline: 8px; font-size: 12px; }
  .nav { gap: 12px; }
  .product { grid-template-columns: 84px minmax(0, 1fr); gap: 18px; padding: 24px; }
  .product-icon { width: 84px; height: 84px; border-radius: 20px; }
}
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .nav { min-height: 64px; padding-inline: 18px; }
  .hero { min-height: 600px; padding-block: 68px 80px; gap: 32px; }
  .actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { align-items: start; flex-direction: column; gap: 15px; }
  .section-intro { flex: initial; max-width: 52ch; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about-main, .about-aside { padding: 26px; }
  .about-main p { font-size: 17px; }
  .education, .work-grid { gap: 18px; }
  .edu-card, .work-card { padding: 24px; }
  .edu-school, .work-card h3 { font-size: 19px; }
  .work-top { align-items: start; }
  .work-identity { gap: 8px; }
  .project-kind { font-size: 12px; }
  .study-grid { grid-template-columns: 1fr; gap: 20px; }
  .skill-card { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .creative-grid { grid-template-columns: minmax(0, 1fr); }
  .product { grid-template-columns: 100px minmax(0, 1fr); min-height: 0; padding: 26px; }
  .product-icon { width: 100px; height: 100px; border-radius: 23px; }
  .media-card { min-height: 240px; }
  .footer-inner { align-items: start; flex-direction: column; gap: 10px; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 40px); }
  .nav-wrap { margin-top: 12px; top: max(10px, env(safe-area-inset-top, 0px)); }
  .nav { border-radius: 14px; padding-inline: 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 42px; min-height: 0; padding-block: 58px 76px; }
  .hero h1 { margin-bottom: 18px; }
  .hero-role { font-size: 23px; line-height: 1.45; }
  .hero-copy { margin-bottom: 25px; font-size: 16px; }
  .portrait-wrap { width: min(78%, 310px); justify-self: center; }
  .portrait-card { border-radius: 24px; padding: 10px; }
  .portrait-card img { border-radius: 16px; }
  .section { padding-block: 62px; }
  .section-head { margin-bottom: 28px; }
  .about-grid, .education, .work-grid { grid-template-columns: minmax(0, 1fr); }
  .about-main, .about-aside, .edu-card, .work-card { padding: 24px; }
  .about-main p { font-size: 18px; }
  .edu-school { font-size: 21px; }
  .work-card h3 { font-size: 21px; }
  .work-top { align-items: center; }
  .project-kind { font-size: 12px; }
  .skill-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .credential-count { width: 100%; padding-left: 12px; }
  .certification-card { padding: 4px 22px; }
  .certification-list li { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 22px; }
  .credential-filters button { padding-inline: 12px; }
  .product { grid-template-columns: 80px minmax(0, 1fr); gap: 17px; padding: 22px; }
  .product-icon { width: 80px; height: 80px; border-radius: 19px; }
  .product-copy h3 { font-size: 19px; }
  .product-copy p { font-size: 14px; line-height: 1.85; }
  .product-en { font-size: 12px; }
  .media-card { padding: 26px; }
  .footer { padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 32px); }
  .hero-role { font-size: 21px; }
  .product { grid-template-columns: 64px minmax(0, 1fr); padding: 18px; gap: 14px; }
  .product-icon { width: 64px; height: 64px; border-radius: 15px; }
  .work-top { align-items: start; }
}
@media print {
  .nav-wrap, .actions, .site-backdrop, .credential-toolbar { display: none !important; }
  body { background: white; }
  .shell { width: 100%; }
  .hero, .section { min-height: 0; padding-block: 24px; }
  .card { break-inside: avoid; }
}

/* User-provided hydrangea artwork includes its own central reading veil. */
.site-backdrop {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url('/assets/hydrangea-math-wide.webp') center / cover no-repeat;
}
@media (max-aspect-ratio: 1/1) {
  .site-backdrop { background-image: url('/assets/hydrangea-math-portrait.webp'); }
}
