@font-face {
  font-family: 'Crimson Pro';
  src: url('../fonts/crimson-pro-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Serif SC';
  src: url('../fonts/noto-serif-sc-homepage.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: 'Noto Sans SC';
  src: url('../fonts/noto-sans-sc-homepage.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu Mono';
  src: url('../fonts/ubuntu-mono-latin-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Ubuntu Mono';
  src: url('../fonts/ubuntu-mono-latin-700.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #101010;
  --ink: #f2f2ef;
  --body: #c5c6c2;
  --muted: #a3aaa3;
  --line: #30332e;
  --link: #bcf6cb;
  --hover: #f2f2ef;
  --serif: 'Crimson Pro', 'Noto Serif SC', Georgia, 'Songti SC', serif;
  --sans: 'Space Grotesk', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --mono: 'Ubuntu Mono', 'Noto Sans SC', Consolas, monospace;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; isolation: isolate; background: var(--page); color: var(--body); font: 18px/1.6 var(--serif); }
body.menu-open { overflow: hidden; }
.space-background { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; transition: opacity 220ms ease; }
.theme-rain { position: fixed; inset: 0; pointer-events: none; view-transition-name: theme-rain; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 2; clip-path: inset(0); animation: theme-hold 2000ms linear both; }
::view-transition-new(root) { z-index: 1; }
::view-transition-group(theme-rain) { z-index: 3; animation: none; background-position: 0 0; background-size: 100% 100%; background-repeat: no-repeat; image-rendering: pixelated; }
::view-transition-image-pair(theme-rain) { visibility: hidden; }
@keyframes theme-hold { from { opacity: 1; } to { opacity: 1; } }
::selection { background: var(--link); color: var(--page); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--hover); text-decoration: underline; text-underline-offset: 3px; }
button { border: 0; color: inherit; font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:where(button, a, video, summary):focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.35; }
ul, ol { margin: 0; padding-left: 20px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.page-width { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.icon { width: 17px; height: 17px; flex: 0 0 17px; filter: invert(1); }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 38px; height: 38px; background: transparent; border-radius: 3px; }
.icon-button:hover { background: #252723; }
.motion-toggle[aria-disabled='true'] { opacity: 0.55; cursor: default; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--ink); color: var(--page); padding: 8px 14px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--page); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.wordmark { color: var(--ink); font-size: 17px; font-weight: 700; white-space: nowrap; }
.wordmark:hover { color: var(--link); text-decoration: none; }
.wordmark-cn { color: var(--muted); font-size: 14px; font-weight: 400; }
.desktop-nav { position: relative; display: flex; align-items: center; gap: 18px; margin-left: auto; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--body); font-size: 15px; white-space: nowrap; border-bottom: 2px solid transparent; padding-top: 2px; transition: color 180ms ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--link); text-decoration: none; }
.nav-indicator { position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--link); opacity: 0; pointer-events: none; }
.nav-indicator.is-ready { opacity: 1; transition: transform 260ms cubic-bezier(.22, 1, .36, 1), width 260ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.language-switch { display: flex; align-items: center; color: var(--muted); font-size: 14px; }
.language-switch button { min-width: 30px; height: 38px; background: none; padding: 0 3px; }
.language-switch button[aria-pressed='true'] { color: var(--ink); font-weight: 700; }
.language-switch button:hover { color: var(--link); }
.header-cv { display: inline-flex; align-items: center; gap: 5px; color: var(--link); font-size: 15px; white-space: nowrap; }
.header-cv .icon { width: 15px; height: 15px; flex-basis: 15px; }
.menu-toggle { display: none; }
.mobile-nav { position: absolute; top: 100%; inset-inline: 0; max-height: calc(100dvh - 64px); overflow-y: auto; background: var(--page); border: 1px solid var(--line); border-top: 0; padding: 10px 22px 18px; }
.mobile-nav a { display: block; padding: 10px 0; color: var(--ink); font-size: 17px; }

.page-layout { display: grid; grid-template-columns: clamp(224px, 20vw, 260px) minmax(0, 1fr); align-items: start; gap: clamp(48px, 5vw, 80px); padding-block: 44px 72px; }
.sidebar { position: sticky; top: 80px; min-width: 0; max-height: calc(100dvh - 96px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; font-size: 15px; text-align: center; }
.author__avatar { width: 176px; height: 176px; margin: 0 auto 17px; border: 1px solid var(--line); border-radius: 50%; overflow: hidden; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; object-position: 22% 26%; }
.author__name { font-size: 29px; font-weight: 700; }
.author__pronunciation { margin-top: 2px; color: var(--muted); font-size: 16px; }
.author__email { display: block; margin-top: 10px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.author__secondary-email { margin-top: 2px; font-size: 14px; }
.author__emails { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 24px; margin-top: 10px; font-size: 14px; line-height: 1.5; }
.author__emails a { white-space: nowrap; }
.author__emails-divider { flex: 0 0 1px; width: 1px; height: 12px; background: #69736b; }
.author__role { margin-top: 13px; color: var(--ink); line-height: 1.5; }
.author__affiliation, .author__location { margin-top: 4px; line-height: 1.5; }
.author__location { color: var(--muted); }
.author__urls-wrapper { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.author__urls { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; list-style: none; padding: 0; }
.author__urls li { margin: 0; }
.author__urls a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 46px; min-height: 52px; border: 1px solid transparent; border-radius: 4px; color: var(--body); text-decoration: none; }
.author__urls a:hover { border-color: var(--line); background: #242723; color: var(--link); }
.author__urls img { width: 19px; height: 19px; filter: invert(1); }
.author__urls span { font-size: 12px; line-height: 1.3; white-space: nowrap; }
.visitor-globe { min-width: 0; margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }
.visitor-globe__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.visitor-globe__period { color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.visitor-globe__embed { width: 100%; height: 260px; margin-top: 6px; }
.visitor-globe__embed > div { max-width: 100%; }
.visitor-globe noscript { display: block; color: var(--muted); font-size: 14px; }

.page__content { min-width: 0; }
.page__content section { margin-top: 36px; scroll-margin-top: 12px; }
.page__content section:first-child { margin-top: 0; }
.page__content h1, .page__content h2 { padding-bottom: 9px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 700; }
.page__content h3 { font-size: 19px; font-weight: 700; }
.page__content p + p { margin-top: 9px; }
.page__content li + li { margin-top: 8px; }
.news-list { list-style: none; padding: 0; }
.news-list li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
.news-date, .item-date { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-archive { margin-top: 14px; }
.news-archive summary, .project-details summary { width: fit-content; color: var(--link); cursor: pointer; font-size: 15px; }
.news-archive .news-list { margin-top: 12px; }
.publication { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: center; padding: 10px 0 22px; border-bottom: 1px solid var(--line); }
.publication__media { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #edf4f5; box-shadow: 0 8px 22px rgb(0 0 0 / 18%); transition: border-color 180ms ease, box-shadow 180ms ease; }
.publication__media:hover { border-color: var(--link); box-shadow: 0 10px 26px rgb(0 0 0 / 28%); }
.publication__media img { display: block; width: 100%; height: auto; aspect-ratio: 3604 / 2880; object-fit: contain; }
.publication__badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 5px 8px; border-radius: 4px; background: #1e422d; color: #e3ffea; font-size: 13px; font-weight: 700; line-height: 1; box-shadow: 0 3px 10px rgb(0 0 0 / 22%); }
.publication__body { min-width: 0; }
.publication h3 { font: 600 22px/1.3 var(--serif); }
.publication h3 a { color: var(--link); }
.publication h3 a:hover { color: var(--ink); }
.publication__authors { margin-top: 8px; font-size: 16px; line-height: 1.45; }
.publication__authors strong { color: var(--ink); }
.page__content .publication__summary { margin-top: 8px; font-size: 16px; line-height: 1.5; }
.page__content .publication__venue { margin-top: 10px; color: var(--muted); font-size: 15px; font-weight: 700; }
.page__content .publication__links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; font-size: 14px; }
.publication__links a { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; border: 1px solid #46624d; border-radius: 4px; background: #1b2c20; color: var(--link); line-height: 1; }
.publication__links a:hover { border-color: var(--link); background: #27412e; color: var(--ink); text-decoration: none; }
.dated-list { list-style: none; padding: 0; }
.dated-list li { display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 12px; }
.experience-list { display: grid; gap: 24px; margin-top: 19px; }
.experience-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 24px; align-items: center; min-width: 0; padding: 21px 24px; border: 1px solid #343a34; border-radius: 8px; background: #1a1d1a; box-shadow: 0 1px 3px rgb(0 0 0 / 12%); transition: border-color 240ms ease, box-shadow 240ms ease, transform 240ms ease; }
.experience-card:hover { border-color: #526558; box-shadow: 0 8px 28px rgb(0 0 0 / 22%); transform: translateY(-2px); }
.experience-media { display: flex; align-items: center; justify-content: center; width: 100px; height: 100px; min-width: 100px; min-height: 100px; overflow: hidden; padding: 8px; border: 1px solid #e9ede9; border-radius: 8px; background: #f9faf9; box-shadow: 0 2px 8px rgb(0 0 0 / 15%); }
.experience-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.experience-media--group { flex-direction: column; gap: 2px; }
.experience-media--group img { height: 26px; }
.experience-media--pair img { height: 39px; }
.experience-body { min-width: 0; }
.page__content .experience-title { margin: 0 0 4px; color: var(--ink); font: 400 22px/1.3 var(--serif); }
.experience-title strong { font-weight: 600; }
.page__content .experience-meta { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.page__content .experience-role { margin: 0 0 3px; color: var(--ink); font-size: 17px; line-height: 1.4; }
.page__content .experience-detail { margin: 0; color: var(--body); font-size: 16px; line-height: 1.45; }
.portfolio-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.page__content .portfolio-heading h2 { flex: 1; min-width: 0; border: 0; margin: 0; }
.portfolio-controls { display: flex; align-items: center; gap: 7px; padding-bottom: 7px; }
.portfolio-counter { min-width: 55px; margin-right: 6px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.portfolio-arrow { display: inline-flex; align-items: center; justify-content: center; width: 29px; height: 29px; border: 1px solid #4a5d4d; border-radius: 4px; background: #1a241c; color: var(--link); font-size: 18px; line-height: 1; transition: background 180ms ease, border-color 180ms ease; }
.portfolio-arrow:hover:not(:disabled) { border-color: var(--link); background: #27372b; }
.portfolio-arrow:disabled { border-color: var(--line); background: #191b19; color: #70766f; cursor: default; }
.portfolio-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 410px); gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 3px; }
.portfolio-track::-webkit-scrollbar { display: none; }
.portfolio-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; scroll-snap-align: start; border: 1px solid #343a34; border-radius: 8px; background: #1a1d1a; transition: border-color 180ms ease; }
.portfolio-card:hover { border-color: #526558; }
.portfolio-card__media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #15221b; }
.portfolio-card__media--cadquery { background: #151b1c; }
.portfolio-card__media img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-card__badge { position: absolute; left: 12px; bottom: 12px; padding: 5px 8px; border: 1px solid #54755b; border-radius: 4px; background: #17291b; color: #d8f8df; font-size: 13px; font-weight: 700; line-height: 1.2; box-shadow: 0 3px 12px rgb(0 0 0 / 25%); }
.portfolio-card__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 18px 19px 20px; }
.page__content .portfolio-card__eyebrow { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 9px; color: var(--muted); font-size: 13px; line-height: 1.35; text-transform: uppercase; }
.portfolio-card__eyebrow span:last-child { text-align: right; }
.page__content .portfolio-card h3 { color: var(--ink); font: 600 21px/1.35 var(--sans); overflow-wrap: anywhere; }
.portfolio-card h3 a { color: inherit; text-decoration: underline; text-decoration-color: #668d6e; text-underline-offset: 3px; }
.portfolio-card h3 a:hover { color: var(--link); text-decoration-color: currentColor; }
.page__content .portfolio-card__meta { margin-top: 7px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.page__content .portfolio-card__description { margin-top: 10px; color: var(--body); font-size: 16px; line-height: 1.55; }
.portfolio-card__tags { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin-top: 14px; }
.page__content .portfolio-card__tags li { margin: 0; padding: 3px 7px; border: 1px solid #3a4b3d; border-radius: 3px; color: #c7dccb; font-size: 13px; line-height: 1.3; }
.project-details { margin-top: auto; padding-top: 17px; }
.project-details summary { list-style: none; }
.project-details summary::-webkit-details-marker { display: none; }
.project-details summary::before { content: '\25B6'; display: inline-block; margin-right: 7px; font-size: 10px; transition: transform 180ms ease; }
.project-details[open] summary::before { transform: rotate(90deg); }
.project-demo { margin: 12px 0 0; }
.project-demo video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #171b1e; border: 1px solid var(--line); }
.project-demo figcaption { margin-top: 5px; font-size: 15px; }
.portfolio-progress { height: 2px; margin-top: 15px; background: var(--line); }
.portfolio-progress span { display: block; width: 33.333%; height: 100%; background: var(--link); transition: width 260ms cubic-bezier(.22, 1, .36, 1); }
.site-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 16px 28px; color: var(--muted); font-size: 14px; }

.wordmark,
.desktop-nav,
.mobile-nav,
.language-switch,
.header-cv,
.page__content .portfolio-card h3 {
  font-family: var(--sans);
}

.news-date,
.item-date,
.experience-meta,
.portfolio-counter,
.portfolio-card__eyebrow,
.publication__badge,
.portfolio-card__badge {
  font-family: var(--mono);
}

@media (max-width: 1150px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 850px) {
  .page-width { width: min(740px, calc(100% - 44px)); }
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 30px; }
  .sidebar { position: static; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 0 20px; max-height: none; overflow: visible; text-align: left; }
  .author__avatar { width: 128px; height: 128px; margin: 0; }
  .author__emails { justify-content: flex-start; }
  .author__urls-wrapper { grid-column: 2; margin-top: 6px; padding-top: 0; border: 0; }
  .author__urls { justify-content: flex-start; }
  .visitor-globe { grid-column: 1 / -1; width: min(100%, 224px); margin: 21px auto 0; }
  .page__content { max-width: none; }
}
@media (max-width: 680px) {
  .publication { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .publication__media { width: min(100%, 440px); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .page-width { width: calc(100% - 36px); }
  .header-inner { gap: 10px; }
  .header-actions { gap: 6px; }
  .motion-toggle, .theme-toggle { width: 34px; flex: 0 0 34px; }
  .header-cv { display: none; }
  .wordmark { font-size: 15px; }
  .wordmark-cn { font-size: 13px; }
  .sidebar { grid-template-columns: 92px minmax(0, 1fr); gap: 0 16px; }
  .author__avatar { width: 92px; height: 92px; }
  .author__name { font-size: 26px; }
  .author__role { margin-top: 7px; }
  .author__urls-wrapper { grid-column: 1 / -1; margin-top: 15px; padding-top: 10px; border-top: 1px solid var(--line); }
  .author__urls { justify-content: center; }
  .page__content h1, .page__content h2 { font-size: 26px; }
  .portfolio-track { grid-auto-columns: min(87%, 390px); gap: 12px; }
  .portfolio-card__body { padding: 15px 15px 17px; }
  .page__content .portfolio-card h3 { font-size: 19px; }
  .page__content .portfolio-card__description { font-size: 15px; }
  .publication h3 { font-size: 20px; }
  .publication__authors, .page__content .publication__summary { font-size: 15px; }
  .news-list li, .dated-list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .experience-list { gap: 15px; }
  .experience-card { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; padding: 16px; }
  .experience-media { width: 88px; height: 88px; min-width: 88px; min-height: 88px; padding: 7px; }
  .experience-media--group img { height: 23px; }
  .experience-media--pair img { height: 35px; }
  .page__content .experience-title { font-size: 19px; }
  .page__content .experience-role { font-size: 16px; }
  .page__content .experience-detail { font-size: 15px; }
  .news-date, .item-date { margin-bottom: 1px; }
  .page__content section { margin-top: 30px; }
}
@media (max-width: 360px) {
  .wordmark-cn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .space-background { transition: none; }
  .desktop-nav a, .nav-indicator.is-ready { transition: none; }
  .publication__media { transition: none; }
  .experience-card { transition: none; }
  .experience-card:hover { transform: none; }
  .portfolio-arrow, .portfolio-card, .portfolio-progress span, .project-details summary::before { transition: none; }
}

html[data-theme='light'] {
  color-scheme: light;
  --page: #ffffff;
  --ink: #17334f;
  --body: #4d5864;
  --muted: #637386;
  --line: #dce5ec;
  --link: #17679b;
  --hover: #103f63;
}
html[data-theme='light'] .icon,
html[data-theme='light'] .author__urls img { filter: none; }
html[data-theme='light'] .icon-button:hover,
html[data-theme='light'] .author__urls a:hover { background: #eef5fa; }
html[data-theme='light'] .author__avatar { border-color: #dce6ef; box-shadow: 0 8px 26px rgb(19 60 94 / 9%); }
html[data-theme='light'] .author__emails-divider { background: #b5c3cf; }
html[data-theme='light'] .publication__media { background: #f5f9fb; box-shadow: 0 5px 20px rgb(25 58 84 / 9%); }
html[data-theme='light'] .publication__media:hover { box-shadow: 0 8px 25px rgb(25 58 84 / 14%); }
html[data-theme='light'] .publication__badge { background: #194b72; color: #ffffff; box-shadow: 0 2px 8px rgb(16 43 67 / 15%); }
html[data-theme='light'] .publication__links a { border-color: #cbdde9; background: #eef6fb; color: var(--link); }
html[data-theme='light'] .publication__links a:hover { border-color: var(--link); background: #e2f0f9; color: var(--hover); }
html[data-theme='light'] .experience-card,
html[data-theme='light'] .portfolio-card { border-color: #d9e3eb; background: #ffffff; box-shadow: 0 2px 12px rgb(22 54 81 / 5%); }
html[data-theme='light'] .experience-card:hover,
html[data-theme='light'] .portfolio-card:hover { border-color: #9bbbd0; box-shadow: 0 8px 26px rgb(22 54 81 / 10%); }
html[data-theme='light'] .experience-media { border-color: #e3ebf1; background: #ffffff; box-shadow: 0 2px 8px rgb(22 54 81 / 8%); }
html[data-theme='light'] .portfolio-arrow { border-color: #b8cddc; background: #f2f8fc; color: var(--link); }
html[data-theme='light'] .portfolio-arrow:hover:not(:disabled) { border-color: var(--link); background: #e4f1f8; }
html[data-theme='light'] .portfolio-arrow:disabled { border-color: var(--line); background: #f7f9fb; color: #8b9aa7; }
html[data-theme='light'] .portfolio-card__media,
html[data-theme='light'] .portfolio-card__media--cadquery { background: #edf3f7; }
html[data-theme='light'] .portfolio-card__badge { border-color: #d6e4ee; background: #ffffff; color: var(--ink); box-shadow: 0 2px 10px rgb(15 40 64 / 16%); }
html[data-theme='light'] .portfolio-card h3 a { text-decoration-color: #87abc5; }
html[data-theme='light'] .portfolio-card__tags li { border-color: #d5e3ed; background: #f1f7fb; color: #315e7d; }
html[data-theme='light'] .visitor-globe__embed canvas { filter: invert(1) sepia(.34) saturate(1.55) hue-rotate(166deg) brightness(.9) contrast(1.15) drop-shadow(0 8px 12px rgb(30 82 112 / 12%)); }
