:root {
  --ink: #111111;
  --paper: #ffffff;
  --white: #ffffff;
  --accent: #c9473a;
  --coral: #ff5f45;
  --blue: #305cff;
  --line: rgba(17, 17, 17, .2);
  --header-h: 74px;
}

@font-face { font-family: "Source Han Sans CN"; src: url("assets/fonts/SourceHanSansCN-Normal.ttf") format("truetype"); font-style: normal; font-weight: 400; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; overflow-x: clip; }
html.is-page-transition { scroll-behavior: auto; scroll-snap-type: none; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  overflow-x: clip;
}
body.viewer-open, body.resume-open { overflow: hidden; }
button, a { color: inherit; font: inherit; }
button { border: 0; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
.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; }

.cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  transition: width .18s ease, height .18s ease, background .18s ease;
  mix-blend-mode: difference;
}
.cursor-dot.is-hover { width: 42px; height: 42px; background: var(--white); }
.cursor-dot.is-ring { width: 52px; height: 52px; border-color: var(--white); background: transparent; }
.cursor-dot.is-ring::after { content: ""; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--white); transform-origin: 3px 29px; animation: cursor-ring-spin 1.15s linear infinite; }
@keyframes cursor-ring-spin { to { transform: rotate(360deg); } }

.site-header {
  height: var(--header-h);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  transition: background .25s ease, color .25s ease, border-color .25s ease, opacity .35s ease;
}
.site-header:not(.scrolled) {
  opacity: 1;
  background: rgba(8,8,8,.58);
  backdrop-filter: blur(12px);
}
.site-header:focus-within { opacity: 1; }
.site-header.scrolled { background: rgba(255,255,255,.96); color: var(--ink); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; width: max-content; }
.site-header:not(.scrolled) .brand > span:last-child { text-shadow: 0 1px 9px rgba(0,0,0,.95); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--white); font-size: 19px; border: 1px solid var(--ink); }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 10px; }
.site-nav > a, .works-toggle { position: relative; padding: 10px 16px; background: transparent; cursor: pointer; }
.site-nav > a::after, .works-toggle::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .2s ease; transform-origin: left; }
.site-nav > a:hover::after, .works-toggle:hover::after { transform: scaleX(1); }
.works-menu { position: relative; }
.works-toggle span { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.works-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.category-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.35);
  transform: translate(-50%, -8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.works-menu.is-open .category-popover { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.category-popover button { min-height: 88px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: 1fr 1fr; align-items: center; gap: 0 10px; padding: 14px; text-align: left; background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.22); cursor: pointer; }
.category-popover button:hover { background: var(--white); color: var(--ink); }
.category-popover b { grid-row: 1 / 3; font-size: 26px; font-weight: 400; }
.category-popover span { align-self: end; font-weight: 700; }
.category-popover small { align-self: start; opacity: .62; }
.edition { justify-self: end; font-size: 10px; line-height: 1.35; text-align: right; }
.menu-toggle { display: none; background: transparent; cursor: pointer; }

.hero {
  position: relative;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 57%) minmax(390px, 43%);
  color: var(--white);
  background: #0d0d0d;
  padding: 0;
}
.hero::after { content: ""; position: absolute; z-index: 5; top: 0; bottom: 0; left: 57%; width: 1px; background: rgba(255,255,255,.035); pointer-events: none; }
.hero-gallery { position: relative; min-width: 0; height: 100%; overflow: hidden; cursor: default; outline: 0; touch-action: none; }
.hero-gallery::-webkit-scrollbar { display: none; }
.hero-gallery.is-ring-dragging { cursor: grabbing; }
.hero-gallery::after { content: ""; position: absolute; inset: 7% 17% 7% -9%; border: 1px solid rgba(255,255,255,0); border-radius: 50%; pointer-events: none; transition: border-color .35s ease; }
.hero-gallery.is-ring-active::after { border-color: rgba(255,255,255,.045); }
.hero-card-track { position: relative; width: 100%; height: 100%; min-height: 0; }
.showcase-card { position: absolute; top: 0; left: 0; z-index: 1; width: clamp(156px,13.2vw,248px); aspect-ratio: .75 / 1; overflow: visible; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #fff; cursor: pointer; opacity: .9; will-change: transform, opacity; }
.showcase-card:hover, .showcase-card:focus-visible { z-index: 40; opacity: 1; }
.showcase-media { display: block; width: 100%; height: 100%; overflow: hidden; border: 0; border-radius: 7px; background: #151515; }
.showcase-card img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; filter: grayscale(1) brightness(.72); opacity: .88; transform: scale(1.01); transition: filter .42s cubic-bezier(.2,.75,.2,1), opacity .42s ease, transform .52s cubic-bezier(.2,.75,.2,1); }
.showcase-card:hover img, .showcase-card:focus-visible img { filter: grayscale(0) brightness(1); opacity: 1; transform: scale(1.055); }
.showcase-card span { position: absolute; left: calc(100% + 18px); top: 50%; width: max-content; max-width: 180px; color: #e7e7e4; text-align: left; opacity: 0; transform: translate(-8px,-50%); pointer-events: none; transition: opacity .3s ease, transform .4s cubic-bezier(.2,.75,.2,1); }
.showcase-card:hover span, .showcase-card:focus-visible span { opacity: 1; transform: translate(0,-50%); }
.showcase-card span strong { display: block; font: 400 clamp(15px,1.3vw,21px)/1.15 Georgia, "Songti SC", serif; white-space: nowrap; }
.showcase-card span small { display: block; margin-top: 5px; color: #6f6f6b; font-size: 6px; white-space: nowrap; }
.hero-copy { position: relative; z-index: 4; align-self: center; width: min(76%, 420px); margin-left: 6vw; transform: translateY(0); }
.hero-identity { width: min(100%, 380px); }
.portfolio-word { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(9px,1.15vw,17px) clamp(16px,1.9vw,28px); width: 100%; margin: 0; transition: gap .65s cubic-bezier(.2,.75,.2,1); }
.portfolio-word span { display: grid; place-items: center; min-width: 0; color: #f5f5f2; font: 900 clamp(54px,4.8vw,76px)/.82 Arial, Helvetica, sans-serif; letter-spacing: 0; opacity: 0; filter: blur(6px); transform: translate3d(0,30px,0) rotate(4deg); animation: portfolio-letter-in .82s cubic-bezier(.16,.8,.25,1) var(--delay) forwards, portfolio-letter-float 4.8s ease-in-out calc(1.35s + var(--delay)) infinite alternate; }
.hero-identity:hover .portfolio-word { gap: clamp(12px,1.45vw,22px) clamp(20px,2.25vw,34px); }
.portfolio-meta { position: relative; display: grid; gap: 8px; margin-top: clamp(24px,3.2vh,36px); padding: 2px 0 1px 22px; opacity: 0; transform: translateY(16px); animation: portfolio-meta-in .75s cubic-bezier(.2,.75,.2,1) 1.05s forwards; }
.portfolio-meta::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 2px; background: #f5f5f2; transform: scaleY(0); transform-origin: top; animation: portfolio-line-in .65s cubic-bezier(.2,.75,.2,1) .88s forwards; }
.portfolio-meta strong { color: #f7f7f4; font-size: clamp(19px,1.2vw,21px); line-height: 1.3; letter-spacing: 0; }
.portfolio-meta span { color: #e7e7e2; font-size: clamp(16px,1vw,18px); font-weight: 600; letter-spacing: 0; }
.portfolio-meta small { margin-top: 4px; color: #a2a29c; font-size: 11px; letter-spacing: 0; }
.portfolio-intro { max-width: 370px; margin: 14px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); color: #d2d2cd; font-size: clamp(15px,.95vw,17px); line-height: 1.7; letter-spacing: 0; }
.hero-design-note { max-width: 370px; margin: 8px 0 0; color: #8f8f89; font-size: 12px; line-height: 1.65; }
.resume-button { width: max-content; min-height: 48px; display: inline-flex; align-items: center; gap: 14px; margin-top: 14px; padding: 0 16px; border: 1px solid rgba(255,255,255,.55); background: transparent; color: #f5f5f2; cursor: pointer; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.resume-button small { color: #777772; font-size: 8px; }
.resume-button svg { width: 15px; height: 15px; stroke-width: 1.4; }
.resume-button:hover { background: #ffffff; color: #111111; border-color: #ffffff; }
.resume-button:hover small { color: #777772; }
@keyframes portfolio-letter-in { 0% { opacity: 0; filter: blur(6px); transform: translate3d(0,30px,0) rotate(4deg); } 70% { opacity: 1; filter: blur(0); transform: translate3d(0,-3px,0) rotate(-1deg); } 100% { opacity: 1; filter: blur(0); transform: translate3d(0,0,0) rotate(0); } }
@keyframes portfolio-letter-float { from { opacity: 1; filter: blur(0); transform: translateY(-1.5px); } to { opacity: 1; filter: blur(0); transform: translateY(1.5px); } }
@keyframes portfolio-line-in { to { transform: scaleY(1); } }
@keyframes portfolio-meta-in { to { opacity: 1; transform: translateY(0); } }

.hero, .works-section, .about-section, .contact-section { scroll-snap-align: start; scroll-snap-stop: always; }
.section-index { margin: 0; font-size: 10px; font-weight: 700; }

.js .section-fade > * { opacity: 0; transform: translateY(24px); transition: opacity .82s cubic-bezier(.2,.72,.2,1), transform .92s cubic-bezier(.2,.72,.2,1); }
.js .section-fade > :nth-child(2) { transition-delay: .08s; }
.js .section-fade > :nth-child(3) { transition-delay: .16s; }
.js .section-fade.is-section-visible > * { opacity: 1; transform: translateY(0); }

.works-section { width: 100%; max-width: 1660px; margin: 0 auto; padding: 10vh 4vw 14vh; }
.section-heading { display: grid; grid-template-columns: minmax(0,1fr); align-items: end; margin-bottom: clamp(48px,7vh,78px); padding-bottom: clamp(30px,4vh,46px); border-bottom: 1px solid rgba(17,17,17,.22); }
.works-heading-copy { min-width: 0; }
.section-heading h2 { margin: 22px 0 0; font: 400 clamp(64px,6.6vw,118px)/.88 Didot, "Bodoni 72", "Bodoni MT", Georgia, serif; letter-spacing: 0; white-space: nowrap; }
.section-deck { margin: 28px 0 0; color: #787872; font-size: clamp(13px,.86vw,16px); line-height: 1.4; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(58px,7vh,86px) clamp(24px,2.4vw,46px); }
.project-card { position: relative; z-index: 1; min-width: 0; margin: 0; transform: scale(1); transform-origin: center; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
.project-card:focus-within, .project-card.is-hovered { z-index: 2; transform: scale(1.012); }
@media (hover: hover) and (pointer: fine) {
  .project-card:hover { z-index: 2; transform: scale(1.012); }
}
.project-card:nth-child(even) { margin-top: 0; }
.project-media { position: relative; width: 100%; aspect-ratio: 1.4 / 1; overflow: hidden; padding: 0; background: #fff; cursor: pointer; border: 1px solid var(--ink); }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project-media:hover img { transform: none; }
.project-number { position: absolute; right: 14px; top: 10px; font-size: clamp(52px, 8vw, 120px); line-height: 1; color: var(--white); text-shadow: 0 1px 15px rgba(0,0,0,.4); }
.project-copy { min-height: 128px; padding-top: 18px; border-top: 1px solid var(--ink); }
.project-copy p { margin: 0 0 7px; font-size: 10px; }
.project-copy h3 { margin: 0; font-size: clamp(28px, 4vw, 54px); }
.project-copy div { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; font-size: 12px; }

.about-section { background: #ffffff; color: #171717; padding: 0 5vw; }
.about-shell { width: min(100%, 1360px); margin: 0 auto; display: grid; grid-template-columns: 39% 61%; }
.about-profile { position: sticky; top: 0; align-self: start; height: 100svh; padding: 7vh 4.5vw 6vh 0; border-right: 1px solid #d9d9d6; }
.profile-index { display: none; }
.profile-portrait-wrap { position: relative; width: max-content; margin: 0 0 3vh; transition: transform .28s cubic-bezier(.2,.7,.2,1); transform-origin: center; will-change: transform; }
.profile-portrait { width: clamp(128px, 10.5vw, 148px); aspect-ratio: 1 / 1; overflow: hidden; border-radius: 42% 58% 46% 54% / 54% 44% 56% 46%; background: #fff; border: 1px solid #ececea; }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.profile-seal { position: absolute; right: -12px; bottom: 2px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #080808; color: #fff; font: 9px/1 Georgia, serif; box-shadow: 0 0 0 3px #ffffff; }
.about-profile h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 9px; margin: 0; font: 400 clamp(24px, 2.25vw, 34px)/1.2 Georgia, "Songti SC", serif; }
.about-profile h2 .profile-name { font-family: "Songti SC", "SimSun", serif; font-size: .78em; }
.about-profile h2 i { width: 100%; margin-top: 5px; color: #777772; font-size: .5em; font-weight: 400; font-style: normal; }
.profile-role { margin: 12px 0 0; color: #777772; font-size: 10px; }
.profile-intro { max-width: 390px; margin: 20px 0 0; color: #777772; font-size: 12px; line-height: 1.85; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 24px; }
.profile-tags span { padding: 0; border: 0; color: #575752; font-size: 7px; }
.about-track { --about-progress: 0; position: relative; padding: 6vh 0 10vh 4vw; }
.about-track::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: #d9d9d6; }
.about-track::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: #252523; transform: scaleY(var(--about-progress)); transform-origin: top; transition: transform .12s linear; }
.about-panel { position: relative; margin-bottom: 8vh; }
.about-panel::before { content: ""; position: absolute; z-index: 2; left: calc(-4vw - 4px); top: 17px; width: 7px; height: 7px; border-radius: 50%; background: #ffffff; border: 1px solid #bdbdb7; transition: background .25s ease, transform .25s ease; }
.js .about-panel { opacity: 0; transform: translateY(28px); transition: opacity .72s cubic-bezier(.2,.7,.2,1), transform .72s cubic-bezier(.2,.7,.2,1); }
.js .about-panel.is-visible { opacity: 1; transform: translateY(0); }
.about-panel.is-active::before { background: #252523; transform: scale(1.35); }
.panel-heading { display: block; margin: 0 0 24px; }
.panel-heading p { margin: 0 0 6px; font: 400 clamp(18px, 1.7vw, 25px)/1.1 Georgia, serif; letter-spacing: 2px; }
.panel-heading p span { margin-right: 10px; color: #9a9a94; font: 400 8px/1 Arial, sans-serif; font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.panel-heading h3 { margin: 0; color: #9a9a94; font: 400 10px/1.2 Arial, sans-serif; }
.panel-surface, .experience-card { background: rgba(255,255,255,.92); border: 1px solid rgba(17,17,17,.035); border-radius: 8px; box-shadow: 0 7px 15px rgba(17,17,17,.065); }
.capability-list { padding: 8px 30px; }
.capability-list > div { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid #ededeb; }
.capability-list > div:last-child { border-bottom: 0; }
.capability-list > div > span { padding-top: 3px; color: #aaa9a3; font-size: 9px; }
.capability-list h4 { margin: 0 0 7px; font-size: 13px; }
.capability-list p { margin: 0; color: #85857f; font-size: 11px; line-height: 1.7; }
.experience-list { display: grid; gap: 16px; }
.experience-card { padding: 25px 30px 24px; }
.experience-card time, .education-copy time { display: block; margin: 0 0 14px; font: 400 14px/1.2 Arial, Helvetica, sans-serif; font-style: normal; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.experience-card h4, .education-copy h4 { display: inline; margin: 0 12px 0 0; font-size: 13px; }
.experience-card small, .education-copy small { color: #aaa9a3; font-size: 9px; }
.experience-card p { margin: 14px 0 0; color: #85857f; font-size: 10px; line-height: 1.75; }
.education-content { display: grid; grid-template-columns: .8fr 1.25fr; gap: 42px; padding: 28px 30px; align-items: start; }
.education-copy { padding-right: 34px; border-right: 1px solid #ededeb; }
.skill-copy p { margin: 0 0 13px; color: #85857f; font-size: 10px; line-height: 1.6; }
.skill-copy p:last-child { margin-bottom: 0; }
.skill-copy b { display: inline-block; min-width: 58px; color: #33332f; font-size: 10px; }
.project-case-list { display: grid; gap: 16px; }
.project-case { position: relative; padding: 30px; background: rgba(255,255,255,.92); border: 1px solid rgba(17,17,17,.035); border-radius: 8px; box-shadow: 0 7px 15px rgba(17,17,17,.065); }
.project-case > span { display: block; margin-bottom: 18px; color: #aaa9a3; font-size: 9px; }
.project-case h4 { display: inline; margin: 0 12px 0 0; font-size: 15px; }
.project-case small { color: #aaa9a3; font-size: 9px; }
.project-case p { margin: 16px 0 0; color: #85857f; font-size: 10px; line-height: 1.75; }
.project-case p b { color: #3b3b37; }
.brand-history .experience-card { min-height: 0; }
.about-card-interactive { --card-rx: 0deg; --card-ry: 0deg; --card-lift: 0px; transform: perspective(1100px) rotateX(var(--card-rx)) rotateY(var(--card-ry)) translateY(var(--card-lift)); transform-style: preserve-3d; transition: transform .22s ease, box-shadow .22s ease; will-change: transform; }
.about-card-interactive:hover { --card-lift: -4px; box-shadow: 0 15px 28px rgba(17,17,17,.09); }

@media (min-width: 901px) {
  .site-header:is(.about-mode,.contact-mode) { inset: 17px auto auto 50%; width: 300px; height: 34px; padding: 0 8px; grid-template-columns: 1fr; transform: translateX(-50%); opacity: 1; pointer-events: auto; background: rgba(255,255,255,.92); color: #222; border: 1px solid rgba(17,17,17,.05); border-radius: 18px; box-shadow: 0 5px 14px rgba(17,17,17,.07); backdrop-filter: blur(14px); }
  .site-header:is(.about-mode,.contact-mode) .brand, .site-header:is(.about-mode,.contact-mode) .edition { display: none; }
  .site-header:is(.about-mode,.contact-mode) .site-nav { justify-self: stretch; justify-content: center; width: 100%; gap: 0; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a, .site-header:is(.about-mode,.contact-mode) .works-toggle { padding: 7px 10px; font-size: 0; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a::after, .site-header:is(.about-mode,.contact-mode) .works-toggle::after { display: none; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a::before, .site-header:is(.about-mode,.contact-mode) .works-toggle::before { font: 8px/1 Arial, sans-serif; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a[href="#home"] { order: 1; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a[href="#home"]::before { content: "HOME"; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a[href="#about"] { order: 2; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a[href="#about"]::before { content: "ABOUT"; }
  .site-header:is(.about-mode,.contact-mode) .works-menu { order: 3; }
  .site-header:is(.about-mode,.contact-mode) .works-toggle::before { content: "WORKS"; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a[href="#contact"] { order: 4; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a[href="#contact"]::before { content: "CONTACT"; }
  .site-header:is(.about-mode,.contact-mode) .works-toggle span { display: none; }
  .site-header:is(.about-mode,.contact-mode) .category-popover { top: calc(100% + 14px); }
}

@media (min-width: 1600px) {
  .about-section { padding: 0; }
  .about-shell { width: 100%; grid-template-columns: 40.6% 59.4%; }
  .about-profile { padding: 7vh 5vw 6vh 10.3vw; }
  .profile-portrait { width: 15vw; max-width: none; }
  .profile-seal { right: -20px; width: 48px; height: 48px; font-size: 14px; box-shadow: 0 0 0 5px #f7f7f6; }
  .about-profile h2 { font-size: 42px; }
  .about-profile h2 i { font-size: .66em; }
  .profile-role { margin-top: 16px; font-size: 14px; }
  .profile-intro { width: 26vw; max-width: none; margin-top: 28px; font-size: 16px; line-height: 1.85; }
  .profile-tags { gap: 34px; margin-top: 30px; }
  .profile-tags span { font-size: 10px; }
  .about-track { padding: 5.5vh 10.3vw 12vh 3.2vw; }
  .about-panel { margin-bottom: 120px; }
  .about-panel::before { left: calc(-3.2vw - 4px); top: 25px; }
  .panel-heading { margin-bottom: 34px; }
  .panel-heading p { font-size: 36px; letter-spacing: 3px; }
  .panel-heading p span { margin-right: 14px; font-size: 11px; }
  .panel-heading h3 { margin-top: 8px; font-size: 14px; }
  .panel-surface, .experience-card { border-radius: 14px; box-shadow: 0 12px 24px rgba(17,17,17,.065); }
  .education-content { min-height: 270px; padding: 50px 54px; align-items: center; gap: 60px; }
  .education-copy { padding-right: 48px; }
  .experience-list { gap: 28px; }
  .experience-card { min-height: 220px; padding: 42px 54px; }
  .experience-card time, .education-copy time { margin-bottom: 22px; font-size: 24px; }
  .experience-card h4, .education-copy h4 { margin-right: 16px; font-size: 20px; }
  .experience-card small, .education-copy small { font-size: 13px; }
  .experience-card p { margin-top: 24px; font-size: 15px; line-height: 1.8; }
  .skill-copy p { margin-bottom: 20px; font-size: 15px; }
  .skill-copy b { min-width: 82px; font-size: 15px; }
  .capability-list { padding: 12px 54px; }
  .capability-list > div { grid-template-columns: 46px 1fr; gap: 20px; padding: 34px 0; }
  .capability-list > div > span { font-size: 12px; }
  .capability-list h4 { margin-bottom: 10px; font-size: 20px; }
  .capability-list p { font-size: 15px; }
  .project-case-list { gap: 28px; }
  .project-case { padding: 46px 54px; border-radius: 14px; box-shadow: 0 12px 24px rgba(17,17,17,.065); }
  .project-case > span { margin-bottom: 24px; font-size: 12px; }
  .project-case h4 { margin-right: 16px; font-size: 20px; }
  .project-case small { font-size: 13px; }
  .project-case p { margin-top: 24px; font-size: 15px; line-height: 1.8; }
  .brand-history .experience-card { min-height: 150px; }
  .site-header:is(.about-mode,.contact-mode) { width: 350px; height: 40px; border-radius: 21px; }
  .site-header:is(.about-mode,.contact-mode) .site-nav > a::before, .site-header:is(.about-mode,.contact-mode) .works-toggle::before { font-size: 10px; }
}

.contact-section { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-rows: 1fr auto auto; background: #fff; color: #171717; }
.contact-intro { padding: 9.5vh 10.5vw 0; }
.contact-section h2 { margin: 0; width: max-content; overflow: hidden; font-family: Didot, "Bodoni 72", "Bodoni MT", Georgia, "Times New Roman", serif; font-size: clamp(86px, 7.8vw, 144px); line-height: .9; font-weight: 400; }
.contact-word { display: block; width: max-content; transform: none; transition: opacity .8s ease, transform 1s cubic-bezier(.16,.8,.18,1); }
.js .contact-word { opacity: 0; transform: translateX(-90px); }
.js .contact-word:nth-child(2) { transform: translateX(90px); transition-delay: .08s; }
.contact-section.is-visible .contact-word { opacity: 1; transform: none; }
.contact-note { margin: 36px 0 0; color: #999; font: 400 clamp(14px, .85vw, 16px)/1.6 Arial, "PingFang SC", sans-serif; }
.js .contact-note { opacity: 0; transform: translateY(12px); transition: opacity .7s .25s ease, transform .7s .25s ease; }
.contact-section.is-visible .contact-note { opacity: 1; transform: translateY(0); }
.contact-footer { position: relative; min-height: 17vh; overflow: hidden; border-bottom: 1px solid #f0f0ee; }
.contact-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: #eeeeeb; transform-origin: left; transition: transform 1.1s cubic-bezier(.16,.8,.18,1); }
.js .contact-footer::before { transform: scaleX(0); }
.contact-section.is-visible .contact-footer::before { transform: scaleX(1); }
.contact-track { display: flex; width: max-content; min-height: 17vh; will-change: transform; animation: contact-marquee 26s linear infinite; }
.js .contact-track { animation-play-state: paused; }
.contact-section.is-visible .contact-track { animation-play-state: running; }
.contact-section.is-visible .contact-track:hover { animation-play-state: paused; }
.contact-item { flex: 0 0 24vw; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 16px; min-width: 0; padding: 28px 2vw 28px 5.4vw; transition: background .35s ease; }
.contact-icon { position: relative; display: block; width: 36px; height: 36px; border: 1px solid #e9e9e6; border-radius: 50%; transition: transform .35s cubic-bezier(.16,.8,.18,1), border-color .35s ease, background .35s ease; }
.contact-icon > svg { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; stroke-width: 1.45; transform: translate(-50%, -50%); }
.contact-icon > img { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; transform: translate(-50%, -50%); }
.brand-icon-wechat > img { width: 18px; height: 18px; }
.brand-icon-qq > img { width: 22px; height: 25px; }
.contact-item > div { min-width: 0; height: 36px; display: grid; grid-template-rows: 9px 19px; align-content: center; row-gap: 4px; }
.contact-footer small { display: block; color: #999; font: 400 8px/9px Arial, "PingFang SC", sans-serif; }
.contact-footer p { margin: 0; font: 400 clamp(14px, .9vw, 16px)/19px Arial, "PingFang SC", sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.js .contact-item { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.js .contact-item:nth-child(1) { transition-delay: .32s; }
.js .contact-item:nth-child(2) { transition-delay: .39s; }
.js .contact-item:nth-child(3) { transition-delay: .46s; }
.js .contact-item:nth-child(4) { transition-delay: .53s; }
.contact-section.is-visible .contact-item { opacity: 1; transform: translateY(0); }
.contact-item:hover .contact-icon { border-color: #c8c8c4; background: #fafaf8; }
.footer-line { min-height: 30vh; padding: 0 5.4vw; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; color: #c4c4c0; font-size: 8px; }
.footer-line span:nth-child(2) { text-align: center; }
.footer-line span:last-child { text-align: right; }
.js .footer-line span { opacity: 0; transform: translateY(7px); transition: opacity .7s .7s ease, transform .7s .7s ease; }
.contact-section.is-visible .footer-line span { opacity: 1; transform: translateY(0); }
@keyframes contact-marquee { to { transform: translateX(-50%); } }

.viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,8,8,.98); color: var(--white); }
.viewer::backdrop { background: rgba(0,0,0,.9); }
.viewer[open] { display: grid; grid-template-rows: 70px 1fr 5px; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.2); }
.viewer-bar > div { display: flex; align-items: center; gap: 24px; }
.viewer-bar span { font-size: 11px; opacity: .62; }
.viewer-close { width: 44px; height: 44px; background: transparent; color: var(--white); font-size: 34px; cursor: pointer; }
.viewer-stage { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0,1fr); place-items: center; }
.viewer-stage figure { grid-area: 1 / 1; width: 100%; margin: 0; height: calc(100dvh - 110px); display: grid; place-items: center; grid-template-rows: 1fr auto; min-width: 0; }
.viewer-stage img { max-width: 100%; max-height: calc(100dvh - 142px); object-fit: contain; box-shadow: 0 20px 70px rgba(0,0,0,.45); }
.viewer-stage figcaption { padding-top: 9px; font-size: 10px; opacity: .6; }
.viewer-nav { position: absolute; z-index: 3; top: var(--viewer-nav-top,50%); width: 54px; height: 54px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(8,8,8,.72); color: var(--white); font-size: 40px; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.viewer-prev { left: var(--viewer-prev-left,24px); }
.viewer-next { right: var(--viewer-next-right,24px); }
.viewer-nav:hover { background: var(--white); color: var(--ink); }
.viewer-progress { background: rgba(255,255,255,.15); }
.viewer-progress i { display: block; height: 100%; width: 1.75%; background: var(--accent); transition: width .2s ease; }

.resume-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #111; font-family: "Source Han Sans CN", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
.resume-viewer * { font-family: inherit; }
.resume-viewer::backdrop { background: rgba(0,0,0,.72); }
.resume-viewer[open] { display: grid; place-items: center; }
.resume-viewer-bar { position: fixed; z-index: 4; right: 18px; top: 16px; }
.resume-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #dededb; border-radius: 50%; background: #fff; color: #111; cursor: pointer; transition: background .2s ease, color .2s ease; }
.resume-close:hover { background: #111; color: #fff; }
.resume-close svg { width: 16px; height: 16px; }
.resume-sheet { width: min(100%, 1760px); height: min(90dvh, 860px); margin: 0 auto; display: grid; grid-template-columns: 34% 66%; overflow: auto; }
.resume-sidebar { position: relative; padding: 38px 70px 40px; border-right: 1px solid #e4e4e1; }
.resume-kicker { position: absolute; left: 38px; top: 28px; margin: 0; font: italic 400 clamp(30px,2.5vw,44px)/1.04 "Source Han Sans CN", sans-serif; }
.resume-portrait { display: block; width: 154px; aspect-ratio: 1 / 1.05; margin: 10px auto 22px; object-fit: cover; object-position: center; }
.resume-nameplate { display: flex; align-items: baseline; justify-content: center; gap: 16px; margin: 0 0 22px; padding: 6px 12px; background: #e8e8e6; }
.resume-nameplate strong { font: 700 32px/1 "Source Han Sans CN", sans-serif; }
.resume-nameplate span { font-size: 14px; font-weight: 700; }
.resume-block { width: min(100%, 390px); margin: 0 auto 22px; }
.resume-block h3 { margin: 0 0 14px; padding: 6px 12px; border: 1px solid #222; border-radius: 999px; text-align: center; font-size: 15px; line-height: 1; }
.resume-block p { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.resume-block p svg { flex: 0 0 auto; width: 13px; height: 13px; margin-top: 2px; stroke-width: 1.8; }
.resume-block p b { flex: 0 0 auto; }
.resume-skills p { display: block; }
.resume-main { padding: 38px 42px 42px; }
.resume-main > h2 { max-width: none; margin: 0 auto 30px; text-align: center; font-size: clamp(25px,1.55vw,30px); line-height: 1.45; letter-spacing: 0; }
.resume-main section { margin-bottom: 28px; }
.resume-main h3 { margin: 0 0 10px; font-size: 24px; }
.resume-main h4 { margin: 10px 0 6px; font-size: 19px; }
.resume-main ul { margin: 0; padding-left: 20px; }
.resume-main li { margin: 0 0 8px; font-size: 16px; line-height: 1.58; }
.resume-history { display: grid; grid-template-columns: 1fr; gap: 0; }
.resume-history p { position: relative; display: grid; grid-template-columns: 68px 126px 1fr; gap: 10px; margin: 0; padding: 3px 0 3px 16px; font-size: 16px; line-height: 1.45; }
.resume-history p::before { content: "•"; position: absolute; left: 0; top: 3px; }
.resume-history span { color: #666662; }
.resume-history span::before { content: "| "; color: #111; }
.resume-history span::after { content: " |"; color: #111; }
.resume-history time { font-family: Arial, sans-serif; font-style: normal; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .cursor-dot { display: none; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 18px; }
  .site-header:not(.scrolled) { opacity: 1; }
  .edition { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 42px; height: 42px; color: inherit; }
  .menu-icon, .menu-icon::before, .menu-icon::after { width: 24px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto; width: 100%; justify-self: stretch; display: none; padding: 10px 18px 18px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--ink); }
  .site-nav.is-open { display: block; }
  .site-nav > a, .works-toggle { display: block; width: 100%; padding: 15px 0; text-align: left; border-bottom: 1px solid var(--line); }
  .category-popover { position: static; width: 100%; grid-template-columns: 1fr; transform: none; display: none; opacity: 1; visibility: visible; margin: 6px 0 10px; }
  .works-menu.is-open .category-popover { display: grid; transform: none; }
  .category-popover button { min-height: 64px; }

  .hero { height: 100svh; min-height: 700px; grid-template-columns: 1fr; grid-template-rows: 56% 44%; }
  .hero::after { display: none; }
  .hero-copy { grid-row: 1; align-self: start; width: 100%; margin: 0; padding: calc(var(--header-h) + 34px) 18px 20px; }
  .hero-identity { width: min(74vw, 255px); }
  .portfolio-word { gap: 8px 16px; }
  .portfolio-word span { font-size: clamp(43px,14vw,58px); }
  .portfolio-meta { gap: 6px; margin-top: 20px; padding-left: 16px; }
  .portfolio-meta strong { font-size: 16px; }
  .portfolio-meta span { font-size: 14px; }
  .portfolio-meta small { font-size: 10px; }
  .portfolio-intro { max-width: 285px; margin-top: 10px; padding-top: 11px; font-size: 13px; line-height: 1.6; }
  .hero-design-note { max-width: 285px; margin-top: 6px; font-size: 11px; line-height: 1.55; }
  .resume-button { min-height: 42px; margin-top: 10px; padding: 0 13px; font-size: 13px; }
  .hero-gallery { grid-row: 2; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; touch-action: pan-x; }
  .hero-card-track { width: 1420px; height: 100%; min-height: 0; }
  .showcase-card span { left: 12px; top: auto; bottom: 12px; max-width: none; padding: 7px 8px; background: rgba(8,8,8,.76); opacity: 1; transform: none; }
  .showcase-card:hover span, .showcase-card:focus-visible span { transform: none; }
  .showcase-card span strong { font-size: 13px; }
  .showcase-card span small { color: #aaa; }
  .showcase-card-a { top: 16%; left: -30px; width: 180px; }
  .showcase-card-b { top: 3%; left: 178px; width: 150px; }
  .showcase-card-c { top: 38%; left: 360px; right: auto; width: 158px; }
  .showcase-card-d { top: 8%; left: 550px; width: 148px; }
  .showcase-card-e { top: 31%; left: 732px; width: 174px; }
  .showcase-card-f { top: 3%; left: 940px; width: 145px; }
  .showcase-card-g { top: 35%; left: 1110px; width: 160px; }
  .showcase-card-h { top: 5%; left: 1300px; width: 150px; }

  .works-section { padding: 9vh 18px 11vh; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 7vh; padding-bottom: 34px; }
  .section-heading h2 { font-size: clamp(54px,19vw,82px); line-height: .88; white-space: normal; }
  .section-deck { margin-top: 20px; font-size: 13px; }
  .project-grid { grid-template-columns: 1fr; gap: 9vh; }
  .project-card:nth-child(even) { margin-top: 0; }
  .project-copy div { flex-wrap: wrap; }

  .about-section { padding: 0 18px; }
  .about-shell { grid-template-columns: 1fr; }
  .about-profile { position: static; height: auto; padding: 10vh 0 8vh; border-right: 0; border-bottom: 1px solid #d9d9d6; }
  .profile-portrait { width: 138px; margin: 5vh 0 4vh; }
  .about-profile h2 { font-size: 28px; }
  .profile-intro { font-size: 12px; }
  .profile-tags { gap: 22px; }
  .about-track { padding: 8vh 0 3vh 26px; }
  .about-track::before { left: 5px; }
  .about-panel { margin-bottom: 8vh; }
  .about-panel::before { left: -24px; top: 13px; }
  .panel-heading { margin-bottom: 18px; }
  .panel-heading p { font-size: 19px; }
  .capability-list { padding: 4px 20px; }
  .capability-list > div { grid-template-columns: 26px 1fr; padding: 19px 0; }
  .experience-card { padding: 22px 20px; }
  .project-case { padding: 24px 20px; }
  .education-content { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .education-copy { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid #ededeb; }

  .contact-section { min-height: 100svh; }
  .contact-intro { padding: 14vh 18px 0; }
  .contact-section h2 { font-size: clamp(54px, 16vw, 64px); line-height: .86; }
  .contact-note { max-width: 330px; margin-top: 26px; font-size: 16px; line-height: 1.75; }
  .contact-footer { min-height: 16vh; }
  .contact-track { min-height: 16vh; animation-duration: 22s; }
  .contact-item { flex-basis: 64vw; grid-template-columns: 29px minmax(0, 1fr); gap: 9px; padding: 19px 16px 19px 18px; }
  .contact-icon { width: 27px; height: 27px; }
  .contact-icon > svg { width: 13px; height: 13px; }
  .contact-icon > img { width: 13px; height: 13px; }
  .brand-icon-wechat > img { width: 16px; height: 16px; }
  .brand-icon-qq > img { width: 17px; height: 20px; }
  .contact-footer small { font-size: 8px; }
  .contact-footer p { margin: 0; font-size: 13px; }
  .footer-line { min-height: 10vh; padding: 0 18px; grid-template-columns: 1fr 1fr; font-size: 7px; }
  .footer-line span:nth-child(2) { display: none; }

  .viewer[open] { grid-template-rows: 62px 1fr 5px; }
  .viewer-bar { padding: 0 12px; }
  .viewer-stage { grid-template-columns: minmax(0,1fr); }
  .viewer-stage figure { height: calc(100dvh - 100px); }
  .viewer-stage img { max-height: calc(100dvh - 130px); }
  .viewer-nav { width: 38px; height: 38px; font-size: 30px; }

  .resume-viewer-bar { right: 12px; top: 10px; }
  .resume-viewer[open] { display: block; }
  .resume-sheet { width: 100%; height: 100dvh; display: block; }
  .resume-sidebar { padding: 72px 22px 26px; border-right: 0; border-bottom: 1px solid #e4e4e1; }
  .resume-kicker { left: 22px; top: 20px; font-size: 25px; }
  .resume-portrait { width: 120px; margin: 0 0 18px auto; }
  .resume-nameplate { justify-content: flex-start; gap: 10px; }
  .resume-nameplate strong { font-size: 23px; }
  .resume-nameplate span { font-size: 11px; }
  .resume-block { width: 100%; }
  .resume-main { padding: 28px 22px 44px; }
  .resume-main > h2 { margin-bottom: 28px; font-size: 17px; text-align: left; }
  .resume-main h3 { font-size: 16px; }
  .resume-main li { font-size: 12px; }
  .resume-history p { grid-template-columns: 48px 96px 1fr; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: y proximity; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
