@charset "UTF-8";

:root {
  color-scheme: dark;
  --bg: #080b09;
  --bg-deep: #050705;
  --surface: #101510;
  --surface-raised: #151c15;
  --text: #f1f5ec;
  --muted: #96a194;
  --accent: #c6ff4a;
  --accent-ink: #101507;
  --line: rgba(220, 239, 213, 0.14);
  --line-strong: rgba(220, 239, 213, 0.28);
  --glass: rgba(8, 11, 9, 0.78);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --font-sans: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f4ec;
  --bg-deep: #e9ede2;
  --surface: #fafcf7;
  --surface-raised: #ffffff;
  --text: #141912;
  --muted: #626d5d;
  --accent: #5b8300;
  --accent-ink: #f7ffea;
  --line: rgba(31, 45, 25, 0.14);
  --line-strong: rgba(31, 45, 25, 0.28);
  --glass: rgba(241, 244, 236, 0.82);
  --shadow: 0 30px 80px rgba(38, 48, 30, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 250ms ease, color 250ms ease;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  transform: translateY(-160%);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.shell { width: calc(100% - 48px); max-width: var(--shell); margin-inline: auto; }
@supports (width: min(1px, 2px)) {
  .shell { width: min(var(--shell), calc(100% - 48px)); }
}
.accent { color: var(--accent); }
.page-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
body::before {
  content: "";
  position: fixed;
  width: 720px;
  height: 720px;
  top: -330px;
  left: -230px;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 74, 0.11), transparent 68%);
  pointer-events: none;
}
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  left: 0;
  top: 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 74, 0.055), transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 120;
  width: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 250ms ease, border-color 250ms ease;
}
.site-header.scrolled { background: var(--glass); border-color: var(--line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.nav-shell { width: calc(100% - 48px); max-width: 1320px; height: 88px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
@supports (width: min(1px, 2px)) {
  .nav-shell { width: min(1320px, calc(100% - 48px)); }
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 900; font-size: 15px; letter-spacing: -1px; clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 0 100%); }
.brand-copy { font-size: 12px; font-weight: 850; letter-spacing: 0.09em; line-height: 1.2; }
.brand-copy small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; font-weight: 500; letter-spacing: 0.15em; }
.primary-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.primary-nav a { position: relative; color: var(--muted); font-size: 13px; font-weight: 650; transition: color 180ms ease; }
.primary-nav a span { margin-right: 4px; color: var(--accent); font-family: var(--font-mono); font-size: 9px; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.primary-nav a:hover, .primary-nav a.active { color: var(--text); }
.primary-nav a:hover::after, .primary-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color 180ms ease, background 180ms ease; }
.icon-button:hover { border-color: var(--accent); background: var(--surface); }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-moon { display: none; }
html[data-theme="light"] .theme-sun { display: none; }
html[data-theme="light"] .theme-moon { display: block; }
.nav-contact { display: inline-flex; align-items: center; gap: 18px; padding: 10px 16px; border: 1px solid var(--line-strong); font-size: 12px; font-weight: 750; transition: background 180ms ease, color 180ms ease; }
.nav-contact:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 1px; margin: 7px auto; background: currentColor; transition: transform 200ms ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr); gap: 64px; align-items: center; min-height: 100vh; min-height: 100svh; padding-top: 142px; padding-bottom: 56px; }
.eyebrow, .section-kicker, .card-label { color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.15em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(198, 255, 74, 0.08), 0 0 18px rgba(198, 255, 74, 0.6); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; box-shadow: 0 0 0 9px rgba(198, 255, 74, 0); } }
.hero h1 { font-weight: 900; letter-spacing: -0.075em; line-height: 0.82; text-transform: uppercase; }
.hero-name { display: block; font-size: 104px; font-size: clamp(76px, 8vw, 126px); }
.hero-alias { display: block; margin-top: 26px; color: transparent; font-size: 56px; font-size: clamp(40px, 4.35vw, 68px); letter-spacing: -0.055em; line-height: 1; -webkit-text-stroke: 1px var(--text); }
.hero-alias .accent { -webkit-text-stroke: 0; }
.hero-chinese { margin-top: 26px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; }
.hero-chinese span { margin-inline: 10px; color: var(--accent); }
.hero-intro { max-width: 600px; margin-top: 24px; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 52px; padding: 13px 20px; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 12px; font-weight: 700; transition: transform 180ms ease, background 180ms ease, border-color 180ms ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button-primary:hover { box-shadow: 0 12px 36px rgba(198, 255, 74, 0.12); }
.button-ghost:hover { border-color: var(--accent); }

.hero-visual { position: relative; }
.portrait-card { position: relative; isolation: isolate; min-height: 540px; overflow: hidden; border: 1px solid var(--line-strong); background: linear-gradient(145deg, #eef1e9, #b9c3b3); box-shadow: var(--shadow); clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%); }
.portrait-card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(to bottom, transparent 55%, rgba(5, 9, 6, 0.86)); }
.portrait-card::after, .project-card::after, .background-card::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(198, 255, 74, 0.11), transparent 46%); transition: opacity 200ms ease; }
.portrait-card:hover::after, .project-card:hover::after, .background-card:hover::after { opacity: 1; }
.portrait-topline { position: absolute; inset: 18px 20px auto; z-index: 6; display: flex; justify-content: space-between; color: #26311f; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; }
.portrait { position: absolute; width: 112%; max-width: none; height: auto; left: 50%; bottom: 34px; z-index: 2; transform: translateX(-50%); filter: saturate(0.8) contrast(1.04); mix-blend-mode: multiply; }
.portrait-orbit { position: absolute; z-index: 1; border: 1px solid rgba(27, 42, 20, 0.22); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; top: 82px; left: 50%; transform: translateX(-50%); }
.orbit-two { width: 510px; height: 510px; top: 20px; left: 50%; transform: translateX(-50%); border-style: dashed; animation: orbit 36s linear infinite; }
@keyframes orbit { to { transform: translateX(-50%) rotate(360deg); } }
.portrait-cross { position: absolute; z-index: 4; color: #33402d; font-family: var(--font-mono); font-size: 20px; }
.cross-one { top: 60px; left: 24px; }
.cross-two { top: 90px; right: 28px; }
.floating-tag { position: absolute; z-index: 7; padding: 9px 12px; background: #0c120b; color: #c6ff4a; border: 1px solid rgba(198, 255, 74, 0.4); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; box-shadow: 8px 8px 0 rgba(7, 12, 7, 0.15); }
.tag-bsp { top: 128px; left: -14px; transform: rotate(-4deg); }
.tag-robotics { top: 224px; right: -10px; transform: rotate(4deg); }
.portrait-caption { position: absolute; inset: auto 24px 22px; z-index: 6; display: flex; justify-content: space-between; align-items: end; gap: 16px; color: #f2f5ec; }
.portrait-caption strong { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; }
.portrait-caption span { color: #b9c3b3; font-size: 11px; }
.hero-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stats > div { display: flex; align-items: baseline; gap: 16px; padding: 23px 0; }
.hero-stats > div + div { padding-left: 34px; border-left: 1px solid var(--line); }
.hero-stats dt { color: var(--accent); font-family: var(--font-mono); font-size: 28px; font-weight: 700; letter-spacing: -0.06em; }
.hero-stats dd { color: var(--muted); font-size: 12px; }

.tech-ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-deep); }
.ticker-track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.ticker-group { display: flex; align-items: center; flex-shrink: 0; gap: 34px; padding: 18px 17px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.13em; }
.ticker-group i { color: var(--accent); font-style: normal; font-size: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding-top: 150px; }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 60px; }
.section-kicker { margin-bottom: 18px; color: var(--accent); }
.section-header h2 { font-size: 64px; font-size: clamp(42px, 5.4vw, 74px); font-weight: 820; letter-spacing: -0.06em; line-height: 0.98; }
.section-header h2 span { color: var(--muted); font-weight: 500; }
.section-header > p { max-width: 360px; padding-bottom: 4px; color: var(--muted); font-size: 14px; }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.project-card { position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: transform 250ms ease, border-color 250ms ease; }
.project-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr); }
.project-media { position: relative; display: block; overflow: hidden; min-height: 260px; background: #0a1012; }
.project-media picture, .media-card picture { display: block; width: 100%; height: 100%; }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 8, 6, 0.34), transparent 45%); pointer-events: none; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.project-card:hover .project-media img { transform: scale(1.035); }
.project-featured .project-media { min-height: 460px; }
.project-featured .project-media img { object-position: left top; }
.project-number { position: absolute; top: 20px; left: 20px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; background: rgba(7, 11, 8, 0.82); color: #c6ff4a; border: 1px solid rgba(198, 255, 74, 0.35); font-family: var(--font-mono); font-size: 11px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.media-arrow { position: absolute; right: 20px; bottom: 20px; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #c6ff4a; color: #101507; font-size: 21px; transition: transform 250ms ease; }
.project-media:hover .media-arrow { transform: rotate(45deg); }
.project-body { position: relative; z-index: 6; padding: 30px; }
.project-featured .project-body { display: flex; flex-direction: column; justify-content: center; padding: 42px; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 24px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; }
.project-meta span:first-child { color: var(--accent); }
.project-body h3 { font-size: clamp(27px, 3vw, 42px); letter-spacing: -0.045em; line-height: 1.05; }
.project-body > p:not(.project-meta) { margin-top: 18px; color: var(--muted); font-size: 14px; }
.project-body .project-lead { color: var(--text); font-size: 16px; }
.project-highlights { display: grid; gap: 9px; margin-top: 24px; list-style: none; color: var(--muted); font-size: 12px; }
.project-highlights li { position: relative; padding-left: 17px; }
.project-highlights li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.tag-list span { padding: 5px 9px; border: 1px solid var(--line); color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; width: fit-content; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 11px; font-weight: 700; transition: color 180ms ease, border-color 180ms ease; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.project-links { display: flex; flex-wrap: wrap; gap: 24px; }
.muted-link { color: var(--muted); }

.statement { margin-top: 150px; padding-block: 74px; border-block: 1px solid var(--line); text-align: center; }
.statement > p { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; }
.statement blockquote { margin-block: 28px; font-size: 64px; font-size: clamp(38px, 6vw, 76px); font-weight: 780; letter-spacing: -0.055em; line-height: 1.08; }
.statement blockquote span { color: transparent; -webkit-text-stroke: 1px var(--muted); }

.experience-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr); gap: 64px; align-items: start; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 145px 1fr; gap: 26px; padding-block: 34px; border-bottom: 1px solid var(--line); }
.timeline-date { padding-top: 5px; color: var(--accent); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.09em; }
.timeline-item h3 { font-size: 22px; letter-spacing: -0.03em; }
.timeline-item .role { margin-top: 4px; color: var(--text); font-size: 12px; font-weight: 650; }
.timeline-item div > p:not(.role) { margin-top: 14px; color: var(--muted); font-size: 13px; }
.stack-panel { position: sticky; top: 120px; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.stack-panel > .section-kicker { margin-bottom: 12px; }
.stack-row { display: grid; grid-template-columns: 28px 1fr; padding-block: 18px; border-bottom: 1px solid var(--line); }
.stack-row > span { grid-row: 1 / 3; color: var(--accent); font-family: var(--font-mono); font-size: 9px; }
.stack-row strong { font-size: 14px; }
.stack-row p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.terminal { margin-top: 26px; overflow: hidden; background: #050805; border: 1px solid #25321f; }
.terminal-bar { display: flex; align-items: center; gap: 5px; padding: 10px 12px; background: #11180e; }
.terminal-bar i { width: 6px; height: 6px; border-radius: 50%; background: #3a4733; }
.terminal-bar i:first-child { background: #c6ff4a; }
.terminal-bar span { margin-left: 7px; color: #7f8f74; font-family: var(--font-mono); font-size: 8px; }
.terminal code { display: block; min-height: 185px; padding: 18px; color: #91a685; font-family: var(--font-mono); font-size: 10px; line-height: 1.9; }
.terminal code span { color: #c6ff4a; }
.terminal-cursor { display: inline-block; width: 7px; height: 13px; vertical-align: middle; background: #c6ff4a; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.background-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.background-card { position: relative; isolation: isolate; padding: 34px; border: 1px solid var(--line); background: var(--surface); }
.card-label { position: relative; z-index: 6; margin-bottom: 34px; color: var(--accent); }
.background-item { position: relative; z-index: 6; padding-block: 24px; border-top: 1px solid var(--line); }
.background-item > span, .award-list li > span { color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; }
.background-item h3 { margin-top: 12px; font-size: 20px; line-height: 1.3; letter-spacing: -0.025em; }
.background-item p { margin-top: 10px; color: var(--muted); font-size: 12px; }
.award-list { position: relative; z-index: 6; list-style: none; }
.award-list li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.award-list strong { font-size: 14px; }
.award-list p { margin-top: 4px; color: var(--muted); font-size: 11px; }

.media-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.media-card { position: relative; grid-column: span 5; min-height: 300px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.media-wide { grid-column: span 7; }
.media-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 7, 5, 0.94), transparent 64%); }
.media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms cubic-bezier(.2,.7,.2,1), filter 300ms ease; }
.media-card:hover img { transform: scale(1.04); filter: saturate(1.15); }
.media-overlay { position: absolute; inset: auto 24px 22px; z-index: 2; }
.media-overlay small { display: block; margin-bottom: 6px; color: #c6ff4a; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; }
.media-overlay strong { color: #f1f5ec; font-size: 18px; letter-spacing: -0.025em; }
.play-button { position: absolute; top: 20px; right: 20px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,0.4); border-radius: 50%; background: rgba(5,8,6,0.45); color: white; font-size: 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 180ms ease, color 180ms ease; }
.media-card:hover .play-button { background: #c6ff4a; color: #101507; border-color: #c6ff4a; }

.contact-section { position: relative; isolation: isolate; overflow: hidden; margin-top: 160px; padding: 90px 64px; border: 1px solid var(--line-strong); background: var(--surface); text-align: center; }
.contact-section::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.24; -webkit-mask-image: radial-gradient(circle at center, black, transparent 75%); mask-image: radial-gradient(circle at center, black, transparent 75%); }
.contact-orbit { position: absolute; width: 540px; height: 540px; top: 50%; left: 50%; z-index: -1; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.contact-orbit::before, .contact-orbit::after { content: ""; position: absolute; inset: 70px; border: 1px solid var(--line); border-radius: 50%; }
.contact-orbit::after { inset: 150px; border-color: var(--accent); opacity: 0.25; }
.contact-section h2 { font-size: 88px; font-size: clamp(52px, 8vw, 104px); font-weight: 900; letter-spacing: -0.075em; line-height: 0.86; }
.contact-section h2 span { color: transparent; -webkit-text-stroke: 1px var(--text); }
.contact-section > p:not(.section-kicker) { max-width: 570px; margin: 34px auto 0; color: var(--muted); font-size: 14px; }
.contact-email { display: inline-flex; align-items: center; gap: 30px; max-width: 100%; margin-top: 34px; padding: 14px 20px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-mono); font-size: clamp(12px, 2vw, 16px); font-weight: 800; overflow-wrap: anywhere; }
.contact-email:hover span { transform: translate(3px, -3px); }
.contact-email span { transition: transform 180ms ease; }
.social-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 46px; }
.social-links a { color: var(--muted); font-family: var(--font-mono); font-size: 10px; transition: color 180ms ease; }
.social-links a:hover { color: var(--accent); }

.site-footer { margin-top: 80px; border-top: 1px solid var(--line); }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; }
.site-footer p span { color: var(--accent); }
.site-footer a:hover { color: var(--accent); }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js.gsap-enabled .reveal { opacity: 1; transform: none; transition: none; }
.gsap-enabled .orbit-two { animation: none; }

@supports not (-webkit-text-stroke: 1px #000) {
  .hero-alias, .statement blockquote span, .contact-section h2 span { color: var(--muted); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.scrolled, .primary-nav { background: var(--bg); }
}

/* Embedded WebViews get a lighter, non-fixed presentation. */
.embedded .cursor-glow, .embedded .scroll-progress { display: none; }
.embedded .site-header { position: absolute; }
.embedded .hero { min-height: auto; }

@media (max-width: 1080px) {
  .primary-nav { gap: 18px; }
  .primary-nav a { font-size: 12px; }
  .primary-nav a span { display: none; }
  .hero { grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: 38px; }
  .portrait-card { min-height: 480px; }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured .project-media { min-height: 390px; }
  .experience-layout { gap: 32px; }
}

@media (max-width: 860px) {
  .nav-shell { height: 76px; }
  .brand-copy { display: none; }
  .primary-nav { position: fixed; inset: 76px 0 auto; display: grid; gap: 0; padding: 18px 24px 30px; background: var(--glass); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transform: translateY(-140%); opacity: 0; visibility: hidden; transition: transform 250ms ease, opacity 250ms ease, visibility 250ms; }
  .primary-nav.open { transform: translateY(0); opacity: 1; visibility: visible; transition: transform 250ms ease, opacity 250ms ease; }
  .primary-nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .primary-nav a span { display: inline; }
  .primary-nav a::after { display: none; }
  .menu-toggle { display: block; }
  .nav-contact { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: 134px; }
  .hero > * { min-width: 0; }
  .hero-copy { width: 100%; max-width: 720px; }
  .hero-name { font-size: 104px; font-size: clamp(82px, 16vw, 126px); }
  .hero-alias { font-size: 56px; font-size: clamp(44px, 8.5vw, 68px); }
  .hero-visual { width: 100%; max-width: 520px; margin: 20px auto 0; }
  .portrait-card { min-height: 580px; }
  .hero-stats { margin-top: 34px; }
  .section { padding-top: 110px; }
  .section-header { align-items: start; flex-direction: column; gap: 26px; margin-bottom: 42px; }
  .section-header > p { max-width: 540px; }
  .statement { margin-top: 110px; }
  .experience-layout { grid-template-columns: 1fr; }
  .stack-panel { position: static; }
  .background-grid { grid-template-columns: 1fr; }
  .contact-section { margin-top: 110px; padding: 74px 30px; }
  .site-footer .shell { flex-wrap: wrap; padding-block: 28px; }
  .site-footer p:nth-child(2) { display: none; }
}

@media (max-width: 620px) {
  .shell, .nav-shell { width: calc(100% - 30px); max-width: var(--shell); }
  .page-grid { background-size: 48px 48px; }
  .hero { gap: 30px; padding-top: 118px; padding-bottom: 38px; }
  .eyebrow { margin-bottom: 24px; font-size: 9px; letter-spacing: 0.1em; }
  .hero-name { font-size: 78px; font-size: clamp(70px, 22vw, 100px); }
  .hero-alias { margin-top: 20px; font-size: 40px; font-size: clamp(35px, 10.5vw, 50px); -webkit-text-stroke-width: 0.8px; }
  .hero-chinese { font-size: 8px; line-height: 1.8; }
  .hero-chinese span { margin-inline: 5px; }
  .hero-intro { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .portrait-card { min-height: 450px; }
  .portrait { bottom: 40px; }
  .portrait-caption { align-items: start; flex-direction: column; gap: 4px; }
  .portrait-caption strong { font-size: 9px; }
  .orbit-one { width: 320px; height: 320px; }
  .orbit-two { width: 410px; height: 410px; }
  .floating-tag { font-size: 8px; }
  .tag-bsp { left: 10px; }
  .tag-robotics { right: 10px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats > div { padding: 16px 0; }
  .hero-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero-stats dt { min-width: 62px; font-size: 25px; }
  .ticker-group { gap: 24px; }
  .section { padding-top: 94px; }
  .section-header h2 { font-size: 46px; font-size: clamp(39px, 12vw, 58px); }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-featured { grid-column: auto; }
  .project-featured .project-media, .project-media { min-height: 230px; }
  .project-featured .project-body, .project-body { padding: 24px; }
  .project-meta { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 18px; }
  .project-body h3 { font-size: 30px; }
  .statement { padding-block: 54px; }
  .statement blockquote { font-size: 40px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; }
  .stack-panel, .background-card { padding: 24px; }
  .award-list li { grid-template-columns: 82px 1fr; gap: 12px; }
  .media-grid { gap: 16px; }
  .media-card, .media-wide { grid-column: 1 / -1; min-height: 250px; }
  .media-overlay { inset: auto 18px 18px; }
  .media-overlay strong { font-size: 16px; }
  .contact-section { width: calc(100% - 30px); padding: 64px 18px; }
  .contact-section h2 { font-size: 54px; font-size: clamp(45px, 14.2vw, 70px); }
  .contact-section > p:not(.section-kicker) { font-size: 13px; }
  .contact-email { gap: 14px; padding: 13px 15px; }
  .social-links { gap: 18px; }
  .site-footer .shell { font-size: 8px; }
}

@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker-track { transform: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
