:root {
  --background: #ffffff;
  --surface: #ffffff;
  --foreground: #111111;
  --text-secondary: #3d3d3d;
  --text-muted: #5f5f5f;
  --text-tertiary: #6b6b6b;
  --border: rgba(17, 17, 17, 0.22);
  --disabled: #a3a3a3;
  --ai-accent: #111111;
  --font-sans: "Inter", "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-cjk: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", system-ui, sans-serif;
  --font-mono: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --max-width: 1500px;
  --page-pad: clamp(18px, 3.2vw, 48px);
  --section-gap: clamp(76px, 9vw, 124px);
  --radius: 14px;
  --hairline: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --header-height: 64px;
  --media-surface: #f4f4f2;
  --media-line: rgba(17, 17, 17, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-height) + 28px); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-cjk);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lb-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
button { color: inherit; }
::selection { background: #e9e9e7; color: var(--foreground); }

:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--foreground);
  color: white;
}
.skip-link:focus { transform: none; }
.shell, .page-shell, .site-nav, .footer-grid {
  width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width));
  margin-inline: auto;
}
.page-shell { width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width)); }

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background-color 180ms ease;
}
.site-header[data-scrolled="true"] { border-color: var(--border); background: rgba(255, 255, 255, 0.96); }
.site-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 24px;
  border: 1px solid var(--foreground);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.brand-name, .brand-zh { font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }
.brand-en { display: none; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.nav-links > a, .nav-dd-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
  transition: color 180ms ease;
}
.nav-links > a:hover, .nav-dd-trigger:hover, .nav-links > a[aria-current="true"] { color: var(--foreground); }
.nav-links > a[aria-current="true"]::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
}
.nav-resume { padding-left: 20px; border-left: 1px solid var(--border); }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 1px; background: var(--foreground); transition: transform 180ms ease; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-dd, .nav-tools, .tool-btn, .mode-toggle, .stage-aurora, .scroll-progress { display: none; }

/* Shared typography and controls */
.eyebrow, .kicker, .cs-eyebrow, .case-meta .cm-k, .proc-k, .tf-k, .kj-k, .cue-label, .scope-label, .sg-label, .asset-code, .asset-status, .exp-period, .project-tag, .col-tag {
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--text-secondary);
  font-size: 14px;
}
.text-link span { transition: transform 180ms ease; }
.text-link:hover { color: var(--foreground); text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover span { transform: translate(2px, -1px); }
.primary-button, .secondary-button, .pill, .pcta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.primary-button { border: 1px solid var(--foreground); background: var(--foreground); color: white; }
.primary-button:hover { background: #222222; }
.secondary-button, .pill, .pcta-link { border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); }
.secondary-button:hover, .pill:hover, .pcta-link:hover { border-color: var(--disabled); color: var(--foreground); }
.pill svg { width: 14px; margin-right: 8px; }

/* Home hero */
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: end;
  gap: clamp(48px, 7vw, 112px);
  padding-top: clamp(84px, 10vw, 128px);
  padding-bottom: clamp(76px, 8vw, 112px);
}
.hero-copy { min-width: 0; align-self: end; }
.home-hero h1 {
  margin-top: 24px;
  font-size: clamp(68px, 8.4vw, 112px);
  font-weight: 420;
  line-height: .88;
  letter-spacing: -0.07em;
}
.hero-role {
  margin-top: 30px;
  font-size: clamp(23px, 2.35vw, 34px);
  font-weight: 420;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.hero-tagline-home {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}
.hero-intro {
  max-width: 790px;
  margin-top: 30px;
  color: var(--text-secondary);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.68;
}
.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 26px;
  list-style: none;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.hero-skills li + li::before { margin-right: 16px; color: var(--disabled); content: "·"; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin-top: 26px; color: var(--text-muted); font-size: 13px; }
.hero-meta > span { min-height: 44px; display: inline-flex; align-items: center; }
.status { gap: 8px; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ai-accent); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08); }
.workflow-status {
  align-self: end;
  padding: 15px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--hairline);
  font-family: var(--font-mono);
}
.workflow-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: var(--text-tertiary); font-size: 10px; letter-spacing: 0.07em; text-transform: uppercase; }
.workflow-head span:last-child { color: var(--ai-accent); }
.workflow-status ol { list-style: none; margin-top: 4px; }
.workflow-status li { display: grid; grid-template-columns: 28px 1fr 8px; align-items: center; gap: 8px; min-height: 35px; color: var(--text-tertiary); font-size: 11px; letter-spacing: 0.04em; transition: color 180ms ease; }
.workflow-status li span { color: var(--disabled); }
.workflow-status li b { font-weight: 400; text-transform: uppercase; }
.workflow-status li i { width: 6px; height: 6px; border: 1px solid var(--disabled); border-radius: 50%; }
.workflow-status li[data-state="done"], .workflow-status li[data-state="active"] { color: var(--foreground); }
.workflow-status li[data-state="done"] i { border-color: var(--ai-accent); background: var(--ai-accent); }
.workflow-status li[data-state="active"] i { border-color: var(--ai-accent); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.10); }
.workflow-status > p { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-tertiary); font-size: 10px; line-height: 1.55; }

/* Sections */
.section { padding-block: var(--section-gap); border-top: 1px solid var(--border); }
.section-heading { display: grid; grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr) auto; align-items: start; gap: 24px; margin-bottom: clamp(38px, 5vw, 64px); }
.section-heading h2, .section-aside h2 {
  max-width: 760px;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 420;
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.section-copy { max-width: 520px; color: var(--text-secondary); font-size: 15px; }

/* Selected work */
.selected-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(64px, 7vw, 96px) clamp(24px, 3.2vw, 44px);
  align-items: start;
}
.selected-card { min-width: 0; }
.selected-card.feature-wide { grid-column: 1 / -1; }
.selected-card.feature-tall { width: 76%; justify-self: start; }
.selected-card > a { display: block; }
.selected-card.feature-lead > a {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  align-items: end;
  gap: clamp(34px, 5vw, 72px);
}
.selected-media {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
.selected-media::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  pointer-events: none;
  content: "";
}
.selected-media img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  transition: transform 260ms ease;
}
.selected-card.feature-lead .selected-media { max-width: 760px; }
.selected-card.feature-lead .selected-meta { align-self: end; max-width: 410px; padding: 0 0 10px; }
.selected-card.feature-wide:not(.feature-lead) .selected-meta { max-width: 860px; }
.selected-card:hover img, .selected-card:focus-within img { transform: scale(1.012); }
.selected-meta { padding-top: 16px; }
.selected-meta > p:first-child {
  display: flex;
  gap: 12px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.selected-meta > p:first-child span { color: var(--foreground); }
.selected-meta h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 430;
  line-height: 1.22;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
.selected-card.feature-lead .selected-meta h3 { font-size: clamp(28px, 3.2vw, 43px); line-height: 1.15; }
.selected-meta h3 i { flex: 0 0 auto; font-style: normal; font-size: .72em; font-weight: 400; transition: transform 180ms ease; }
.selected-card:hover h3 i, .selected-card:focus-within h3 i { transform: translate(3px, -3px); }
.selected-type { margin-top: 8px; color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: .72;
  transition: opacity 180ms ease;
}
.selected-card:hover .selected-tags { opacity: 1; }

/* All work */
.all-work-section { padding-bottom: calc(var(--section-gap) + 8px); }
.work-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.filter-scroll { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.035em;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.chip span { margin-left: 7px; color: var(--text-tertiary); }
.chip:hover { border-color: var(--disabled); color: var(--foreground); }
.chip[aria-pressed="true"] { border-color: var(--foreground); background: var(--foreground); color: white; }
.chip[aria-pressed="true"] span { color: #cfcfcf; }
.work-count { flex: 0 0 auto; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.project-index { border-top: 1px solid var(--foreground); }
.index-row { border-bottom: 1px solid var(--border); }
.index-row[hidden] { display: none; }
.index-row > a { display: grid; grid-template-columns: 48px 112px minmax(240px, 1fr) minmax(180px, .55fr) 24px; align-items: center; gap: 20px; min-height: 118px; padding-block: 16px; }
.index-number { align-self: start; padding-top: 3px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; }
.index-row figure {
  display: grid;
  place-items: center;
  width: 112px;
  aspect-ratio: 1.4 / 1;
  overflow: hidden;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
.index-row img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.index-row figure.media-square img,
.index-row figure.media-portrait img { object-fit: contain; padding: 4px; }
.index-row figure.media-page img { object-position: center top; }
.index-row:hover img, .index-row:focus-within img { transform: scale(1.025); }
.index-title h3 { font-size: clamp(17px, 1.5vw, 21px); font-weight: 430; line-height: 1.2; letter-spacing: -0.025em; }
.index-title p { max-width: 620px; margin-top: 6px; color: var(--text-tertiary); font-size: 13px; line-height: 1.45; }
.index-category { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.index-arrow { justify-self: end; transition: transform 180ms ease; }
.index-row:hover .index-arrow, .index-row:focus-within .index-arrow { transform: translate(3px, -3px); }
.works-empty { padding: 40px 0; color: var(--text-muted); }

/* About and capabilities */
.about-section { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(48px, 8vw, 120px); }
.section-aside .eyebrow { margin-bottom: 26px; }
.about-copy { max-width: 820px; }
.about-copy > p { color: var(--text-secondary); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.64; }
.about-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 42px; }
.about-pillars article { padding-top: 16px; border-top: 1px solid var(--foreground); }
.about-pillars h3 { font-size: 15px; font-weight: 500; }
.about-pillars p { margin-top: 9px; color: var(--text-secondary); font-size: 13px; line-height: 1.58; }
.profile-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--border); }
.profile-meta dt { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.profile-meta dd { margin-top: 8px; color: var(--text-secondary); font-size: 13px; }
.capability-list { list-style: none; border-top: 1px solid var(--foreground); }
.capability-list li { display: grid; grid-template-columns: 44px minmax(260px, .82fr) minmax(320px, 1.18fr); align-items: start; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--border); transition: padding-left 180ms ease; }
.capability-list li:hover { padding-left: 6px; }
.capability-list li > span { padding-top: 5px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; }
.capability-list h3 { font-size: clamp(21px, 2.1vw, 29px); font-weight: 420; line-height: 1.15; letter-spacing: -0.035em; }
.capability-list h3 small { display: block; margin-top: 7px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; font-weight: 400; letter-spacing: .045em; text-transform: uppercase; }
.capability-list p { padding-top: 3px; color: var(--text-secondary); font-size: 14px; line-height: 1.62; }

/* Contact and footer */
.contact-section { padding-block: clamp(80px, 10vw, 132px); border-top: 1px solid var(--border); background: var(--surface); }
.contact-inner h2 { margin-top: 24px; font-size: clamp(48px, 6.2vw, 80px); font-weight: 420; line-height: .98; letter-spacing: -0.058em; }
.contact-inner > p:not(.eyebrow) { max-width: 760px; margin-top: 28px; color: var(--text-secondary); font-size: 16px; line-height: 1.62; }
.contact-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 1px solid var(--foreground); }
.contact-details > div { min-width: 0; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--border); }
.contact-details span { display: block; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.contact-details a, .contact-details b { display: block; margin-top: 8px; overflow-wrap: anywhere; font-size: 15px; font-weight: 430; }
.contact-details a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-resume-link { margin-top: 28px; }
.site-footer { border-top: 1px solid var(--border); }
.footer-grid, .foot-grid { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(260px, 1fr); align-items: start; gap: 22px 40px; padding-block: 30px; color: var(--text-tertiary); font-size: 11px; }
.footer-grid p:first-child { color: var(--foreground); }
.footer-grid p:first-child span { display: block; margin-top: 4px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.footer-grid p:last-child { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--border); line-height: 1.55; }

/* Case pages — editorial rebuild of existing semantic content */
body:not(.portfolio-page) .site-header + .page-shell { padding-top: 0; }
.page-hero { padding: clamp(84px, 10vw, 132px) 0 clamp(52px, 7vw, 86px); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.crumb svg { width: 12px; }
.crumb a:hover { color: var(--foreground); }
.page-title { max-width: 1120px; margin-top: 28px; font-size: clamp(42px, 6vw, 76px); font-weight: 420; line-height: .98; letter-spacing: -0.056em; text-wrap: balance; }
.pt-en, .page-name { display: block; margin-top: 14px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: clamp(11px, 1vw, 14px); font-weight: 400; line-height: 1.4; letter-spacing: .045em; text-transform: uppercase; }
.page-lede { max-width: 760px; margin-top: 30px; color: var(--text-secondary); font-size: clamp(17px, 1.7vw, 22px); line-height: 1.5; }
.case-page { border-top: 1px solid var(--border); }
.case-section { padding-block: clamp(70px, 8vw, 108px); border-bottom: 1px solid var(--border); }
.cs-title { max-width: 900px; margin-top: 22px; font-size: clamp(32px, 4vw, 52px); font-weight: 420; line-height: 1.05; letter-spacing: -0.048em; text-wrap: balance; }
.cs-text { max-width: 790px; margin-top: 24px; color: var(--text-secondary); font-size: 16px; line-height: 1.62; }
.cs-text b, .deliver-lead b, .reuse b, .proc-v b { color: var(--foreground); font-weight: 500; }
.case-overview { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(270px, .45fr); gap: clamp(28px, 5vw, 68px); align-items: start; margin-top: 28px; }
.co-hero {
  grid-row: auto;
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
.co-hero img, .co-hero video { display: block; width: 100%; height: 100%; object-fit: contain; }
.co-hero.media-landscape { aspect-ratio: 1.6 / 1; }
.co-hero.media-square { width: min(100%, 760px); aspect-ratio: 1 / 1; justify-self: center; }
.co-hero.media-portrait { width: min(100%, 680px); aspect-ratio: 4 / 5; justify-self: center; }
.co-hero.media-page { aspect-ratio: 4 / 3; }
.co-hero.media-page img { object-fit: cover; object-position: center top; }
.co-hero.media-landscape img,
.co-hero.media-square img,
.co-hero.media-portrait img { object-fit: contain; }
.case-meta { border-top: 1px solid var(--foreground); }
.cm-item { display: grid; grid-template-columns: 115px 1fr; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--border); }
.cm-v { color: var(--text-secondary); font-size: 13px; }
.case-overview-side {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
  min-width: 0;
}
.case-overview-side > .cs-text { margin-top: 0; font-size: 14px; }
.keyjudge, .transfer, .reuse { max-width: 860px; margin-top: 34px; padding: 18px 0 18px 22px; border-left: 1px solid var(--foreground); color: var(--text-secondary); }
.keyjudge .kj-k { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--ai-accent); }
.keyjudge svg { width: 14px; }
.flowline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; }
.flowstep { padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.flowstep.key { border-color: rgba(17,17,17,.28); color: var(--ai-accent); }
.flow-sep { color: var(--disabled); }
.proc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 30px; background: var(--border); border: 1px solid var(--border); }
.proc-card { min-height: 190px; padding: 22px; background: var(--surface); }
.proc-k { display: flex; align-items: center; gap: 8px; color: var(--text-tertiary); }
.proc-k svg { width: 14px; }
.proc-v { margin-top: 26px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.media-grid, .pg-grid, .pages, .collection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin-top: 38px; }
.media-grid.cols-3, .pg-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-grid.duo, .pg-grid.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot, .pg-item, .page-full, .page-sec, .feature, .scale-item {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
}
.shot-fig, .pg-thumb {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
.shot-fig.media-landscape { aspect-ratio: 4 / 3; }
.shot-fig.media-square { aspect-ratio: 1 / 1; }
.shot-fig.media-portrait, .shot-fig.media-page { aspect-ratio: 4 / 5; }
.pg-thumb.media-landscape { aspect-ratio: 1.35 / 1; }
.pg-thumb.media-square { aspect-ratio: 1 / 1; }
.pg-thumb.media-portrait, .pg-thumb.media-page { aspect-ratio: 4 / 5; }
.shot-fig img, .pg-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform 240ms ease; }
.shot-fig.media-page img, .pg-thumb.media-page img { object-fit: cover; object-position: center top; }
.shot:hover img, .pg-item:hover img, .shot:focus-visible img, .pg-item:focus-visible img { transform: scale(1.018); }
.shot-cap, .pg-cap { display: block; padding-top: 12px; }
.shot-cap b, .pg-cap b { display: block; font-size: 14px; font-weight: 500; }
.shot-cap span, .pg-cap span { display: block; margin-top: 4px; color: var(--text-tertiary); font-size: 12px; }
.shot-zoom, .pg-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(23,23,23,.72); color: white; }
.shot-zoom svg, .pg-zoom svg { width: 14px; }
.pg-wrap { margin-top: 36px; }
.pg-grid.duo .pg-item:last-child .pg-thumb.media-page { max-height: 720px; }
.deliver-lead { max-width: 760px; margin-top: 26px; color: var(--text-secondary); }
.deliver-list { display: flex; flex-wrap: wrap; gap: 8px; max-width: 900px; margin-top: 26px; list-style: none; }
.deliver-list li { padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; letter-spacing: .03em; }
.next-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; padding-block: 48px; }
.nn-link, .nn-all { min-height: 96px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.nn-link { display: flex; flex-direction: column; justify-content: space-between; }
.nn-next { text-align: right; }
.nn-dir { display: flex; align-items: center; gap: 7px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.nn-next .nn-dir { justify-content: flex-end; }
.nn-dir svg { width: 13px; }
.nn-name { margin-top: 16px; font-size: 14px; }
.nn-center { display: grid; }
.nn-all { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 12px; }
.nn-all svg { width: 14px; }

/* Legacy case variants */
.page-bar, .scale-row { margin-top: 30px; }
.page-full img, .page-sec img, .pages img, .collection img, .feature img, .scale-item img { width: 100%; height: auto; }
.page-sec, .feature, .scale-item { cursor: default; }
.scale-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.scale-item { min-height: 130px; padding: 20px; background: var(--surface); }
.scale-k { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.scale-v { margin-top: 10px; color: var(--text-secondary); }
.cover-video, .video-cover { width: 100%; background: #f4f4f2; }
.cover-sound-toggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; background: rgba(23,23,23,.68); color: white; cursor: pointer; }
.cover-sound-toggle svg { width: 18px; margin: auto; }

/* Lightbox */
.lightbox { position: fixed; z-index: 500; inset: 0; display: none; padding: 22px; }
.lightbox[data-open="true"] { display: grid; place-items: center; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(15,15,15,.92); }
.lb-stage { position: relative; width: min(94vw, 1440px); height: min(92vh, 1000px); display: grid; grid-template-rows: 1fr auto; background: #111; color: white; }
.lb-scroll { min-height: 0; overflow: auto; display: grid; place-items: start center; }
.lb-scroll img { width: auto; max-width: 100%; height: auto; margin: auto; }
.lb-btn { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(17,17,17,.75); color: white; cursor: pointer; }
.lb-btn svg { width: 18px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-caption { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 12px; }
.lb-hint { color: #999; }

/* Existing footer markup */
.foot-grid { grid-template-columns: 1fr auto; }
.foot-brand { font-size: 14px; color: var(--foreground); }
.fb-en { display: block; margin-top: 5px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.foot-note { padding-bottom: 28px; color: var(--text-tertiary); font-size: 11px; }

/* Resume page */
body.resume-page { background: var(--background); }
.layout-grid { width: min(calc(100% - (var(--page-pad) * 2)), var(--max-width)); margin-inline: auto; display: grid; grid-template-columns: minmax(300px, .42fr) minmax(0, 1fr); gap: clamp(42px, 7vw, 96px); padding-block: 70px 100px; }
.col-left { position: relative; }
.col-right { min-width: 0; }
body.resume-page .hero { position: sticky; top: calc(var(--header-height) + 32px); padding: 0; }
body.resume-page .hero-name { font-size: clamp(44px, 5vw, 68px); font-weight: 420; line-height: .95; letter-spacing: -.055em; }
.hero-tagline, .hero-subrole, .hero-roles-en, .hero-statement { margin-top: 18px; color: var(--text-secondary); }
.hero-roles { margin-top: 26px; font-size: 24px; line-height: 1.18; letter-spacing: -.035em; }
.hero-statement { font-size: 15px; line-height: 1.65; }
.hero-statement strong, .accent-strong { color: var(--foreground); font-weight: 500; }
.hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 28px; border: 1px solid var(--border); background: var(--border); }
.hero-metric { padding: 14px; background: var(--surface); }
.hm-n { display: block; font-size: 24px; letter-spacing: -.04em; }
.hm-l { display: block; margin-top: 3px; color: var(--text-tertiary); font-size: 11px; }
.role-aim { margin-top: 28px; }
.role-tags, .contact-pills, .tag-row, .stack-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.role-tag, .capsule-tag, .bullet-tag, .stack-tags span { padding: 7px 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary); font-family: var(--font-mono); font-size: 9px; }
.contact-pills a { min-height: 36px; padding: 0 10px; border-bottom: 1px solid var(--border); color: var(--text-secondary); font-size: 12px; }
.hero-portrait { display: block; width: min(176px, 52%); margin-bottom: 28px; }
.hero-portrait .hp-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--border); border-radius: var(--radius); background: #f4f4f2; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.scroll-cue { display: none; }
body.resume-page .section { padding-block: 56px; }
body.resume-page .section:first-child { padding-top: 0; border-top: 0; }
body.resume-page .section-head { display: grid; grid-template-columns: minmax(180px,.36fr) 1fr; gap: 24px; margin-bottom: 28px; }
body.resume-page .section-title { font-size: clamp(28px, 3vw, 42px); font-weight: 420; line-height: 1.05; letter-spacing: -.045em; }
.sub-en, .ct-en, .project-title-en { display: block; margin-top: 6px; color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
body.resume-page .section-desc { color: var(--text-secondary); font-size: 14px; }
.summary-card, .competency-card, .exp-item, .project-card, .asset-card, .edu-card { background: transparent; border-top: 1px solid var(--foreground); padding-top: 22px; }
.summary-lead { color: var(--text-secondary); font-size: 17px; line-height: 1.65; }
.summary-pillars, .competency-grid, .asset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 30px; }
.summary-pillar h3, .competency-card h3, .asset-card-name { font-size: 19px; font-weight: 450; letter-spacing: -.025em; }
.summary-pillar p, .competency-card p, .asset-value, .edu-note { margin-top: 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.summary-scope { margin-top: 30px; }
.stack-groups { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 30px; }
.stack-strip { padding-top: 18px; border-top: 1px solid var(--border); }
.stack-strip-head { display: flex; justify-content: space-between; gap: 16px; }
.exp-item + .exp-item, .project-card + .project-card { margin-top: 46px; }
.exp-head, .project-head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: start; }
.exp-org, .project-title-zh { font-size: 22px; font-weight: 450; letter-spacing: -.035em; }
.exp-role { margin-top: 8px; color: var(--text-secondary); }
.exp-summary { margin-top: 18px; color: var(--text-secondary); }
.exp-bullets { margin-top: 18px; padding-left: 20px; color: var(--text-secondary); }
.exp-bullet + .exp-bullet { margin-top: 12px; }
.case-body { display: grid; gap: 18px; margin-top: 22px; }
.case-row { display: grid; grid-template-columns: 100px 1fr; gap: 20px; }
.case-k { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; }
.case-v { color: var(--text-secondary); }
.case-did { padding-left: 18px; }
.case-link { display: inline-flex; margin-top: 20px; border-bottom: 1px solid var(--foreground); font-size: 13px; }
.portfolio-cta { margin-top: 48px; padding: 28px; border: 1px solid var(--border); background: var(--surface); }
.pcta-main { font-size: 24px; letter-spacing: -.035em; }
.pcta-sub { margin-top: 8px; color: var(--text-tertiary); }
.pcta-link { margin-top: 20px; }
.edu-school { font-size: 24px; font-weight: 450; letter-spacing: -.035em; }
.edu-major { margin-top: 8px; color: var(--text-secondary); }
.mobile-section, .section-nav, .site-bar { display: none; }

/* Reveals */
.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transform: translateY(12px); transition: opacity 520ms ease, transform 520ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; align-items: start; }
  .workflow-status { width: min(100%, 420px); justify-self: end; }
  .section-heading { grid-template-columns: 150px 1fr; }
  .section-heading .text-link, .section-heading .section-copy { grid-column: 2; }
  .index-row > a { grid-template-columns: 38px 86px minmax(0, 1fr) 24px; }
  .index-row figure { width: 86px; }
  .index-category { display: none; }
  .about-section { grid-template-columns: 1fr; }
  .section-aside h2 { max-width: 760px; }
  .case-overview { grid-template-columns: 1fr; }
  .co-hero { grid-row: auto; }
  .case-overview-side > .cs-text { grid-column: auto; }
  .layout-grid { grid-template-columns: 1fr; }
  body.resume-page .hero { position: static; }
}

@media (max-width: 900px) {
  .selected-card.feature-lead > a { display: block; }
  .selected-card.feature-lead .selected-media { max-width: none; }
  .selected-card.feature-lead .selected-meta { max-width: 720px; padding: 18px 0 0; }
}

@media (max-width: 760px) {
  :root { --page-pad: 18px; --section-gap: 72px; }
  .site-header { height: 60px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 60px;
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 12px var(--page-pad) 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.98);
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 200ms ease, visibility 200ms ease;
  }
  .nav-links[data-open="true"] { transform: none; visibility: visible; }
  .nav-links > a { min-height: 48px; border-bottom: 1px solid var(--border); font-size: 15px; }
  .nav-links > a[aria-current="true"]::after { display: none; }
  .nav-resume { padding-left: 0; border-left: 0; }
  .home-hero { gap: 44px; padding-top: 68px; padding-bottom: 68px; }
  .home-hero h1 { font-size: clamp(58px, 20vw, 82px); }
  .hero-role { margin-top: 24px; font-size: clamp(22px, 7vw, 29px); }
  .hero-tagline-home { font-size: 13px; }
  .hero-intro { margin-top: 24px; font-size: 15px; line-height: 1.65; }
  .hero-skills { gap: 8px 12px; }
  .hero-skills li + li::before { margin-right: 12px; }
  .about-pillars { grid-template-columns: 1fr; gap: 24px; }
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-details > div:nth-child(odd) { padding-right: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid p:last-child { grid-column: auto; }
  .workflow-status { width: 100%; justify-self: stretch; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 20px; }
  .section-heading .text-link, .section-heading .section-copy { margin-top: 20px; }
  .selected-grid { grid-template-columns: 1fr; gap: 58px; }
  .selected-card.feature-wide { grid-column: auto; }
  .selected-card.feature-tall { width: 100%; justify-self: stretch; }
  .selected-card.feature-lead > a { display: block; }
  .selected-card.feature-lead .selected-media { max-width: none; }
  .selected-card.feature-lead .selected-meta { max-width: none; padding: 16px 0 0; }
  .work-toolbar { display: block; }
  .filter-scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--page-pad) * -1); padding: 2px var(--page-pad) 12px; scrollbar-width: thin; }
  .chip { flex: 0 0 auto; min-height: 40px; }
  .work-count { margin-top: 10px; }
  .index-row > a { grid-template-columns: 32px 70px minmax(0, 1fr) 18px; gap: 12px; min-height: 104px; }
  .index-row figure { width: 70px; }
  .index-title p { display: none; }
  .profile-meta { grid-template-columns: 1fr; gap: 18px; }
  .capability-list li { grid-template-columns: 32px 1fr; gap: 14px; }
  .capability-list p { grid-column: 2; padding-top: 0; }
  .contact-inner h2 { font-size: clamp(42px, 13vw, 60px); }
  .contact-links { align-items: stretch; }
  .primary-button, .secondary-button { width: 100%; overflow-wrap: anywhere; }
  .footer-grid, .foot-grid { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .footer-grid p:last-child { margin-top: 12px; }
  .foot-links { justify-content: flex-start; }
  .page-hero { padding-top: 72px; }
  .page-title { font-size: clamp(40px, 12vw, 58px); }
  .proc-grid { grid-template-columns: 1fr; }
  .media-grid, .pg-grid, .pages, .collection, .media-grid.cols-3, .pg-grid.cols-3, .media-grid.duo, .pg-grid.duo { grid-template-columns: 1fr; }
  .next-nav { grid-template-columns: 1fr 1fr; }
  .nn-center { grid-column: 1 / -1; grid-row: 2; }
  .nn-all { min-height: 52px; justify-content: center; }
  .lb-stage { width: 100%; height: 100%; }
  .lightbox { padding: 0; }
  .lb-caption { grid-template-columns: 1fr auto; }
  .lb-hint { display: none; }
  .layout-grid { padding-top: 52px; }
  .hero-portrait { width: 132px; margin-bottom: 22px; }
  body.resume-page .section-head { grid-template-columns: 1fr; }
  .summary-pillars, .competency-grid, .asset-grid, .stack-groups { grid-template-columns: 1fr; }
  .exp-head, .project-head { grid-template-columns: 1fr; }
  .case-row { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 420px) {
  .brand-name { display: none; }
  .hero-meta { gap: 2px 14px; }
  .hero-meta > span, .text-link { min-height: 40px; }
  .selected-meta h3 { font-size: 22px; }
  .index-row > a { grid-template-columns: 26px 58px minmax(0, 1fr) 14px; gap: 9px; }
  .index-row figure { width: 58px; }
  .index-title h3 { font-size: 15px; }
  .capability-list h3 { font-size: 21px; }
  .contact-details { grid-template-columns: 1fr; }
  .hero-skills li + li::before { display: none; }
  .next-nav { grid-template-columns: 1fr; }
  .nn-center { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  .selected-media img, .index-row img, .workflow-status li, .capability-list li { transform: none; transition: none; }
}
.toolbar { display: none; }
.summary-pillar .sp-k,
.summary-pillar .sp-v,
.competency-card .ct-zh,
.competency-card .ct-desc,
.asset-card .asset-value { display: block; }
.summary-pillar .sp-k { font-size: 15px; font-weight: 500; }
.summary-pillar .sp-k .en,
.competency-card .ct-en {
  display: block;
  margin-top: 3px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.summary-pillar .sp-v { margin-top: 8px; color: var(--text-secondary); font-size: 13px; line-height: 1.55; }
.competency-card .ct-zh { margin-top: 12px; font-size: 18px; font-weight: 500; }
.competency-card .ct-desc { margin-top: 10px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
@media (max-width: 980px) {
  body.resume-page .hero { top: auto; }
}



/* Chinese editorial typography and resume project experience — v3 */
body.resume-page {
  font-family: var(--font-cjk);
  font-kerning: normal;
}
body.resume-page .hero-name,
body.resume-page .section-title,
body.resume-page .project-title-zh,
body.resume-page .exp-org,
body.resume-page .pcta-main {
  font-family: var(--font-cjk);
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
body.resume-page .hero-name { letter-spacing: -.032em; }
body.resume-page .section-head {
  grid-template-columns: minmax(220px, .38fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  margin-bottom: clamp(34px, 4.5vw, 52px);
}
body.resume-page .section-title {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -.022em;
}
body.resume-page .section-desc {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.75;
}
body.resume-page .sub-en {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .055em;
}

#projects .project-card {
  padding-top: 0;
  border-top: 1px solid var(--foreground);
  background: transparent;
}
#projects .project-card + .project-card { margin-top: clamp(64px, 7vw, 88px); }
#projects .project-overview {
  --project-rail: clamp(176px, 23%, 224px);
  display: grid;
  grid-template-columns: var(--project-rail) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
  padding-block: clamp(24px, 3vw, 34px);
}
#projects .project-rail { min-width: 0; }
#projects .project-tag {
  color: var(--text-muted);
  font-family: var(--font-cjk);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .015em;
  text-transform: none;
}
#projects .project-title-en {
  max-width: 210px;
  margin-top: 16px;
  color: var(--text-tertiary);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .045em;
  overflow-wrap: normal;
  word-break: normal;
}
#projects .role-tags {
  display: grid;
  gap: 5px;
  margin-top: 28px;
}
#projects .role-tag {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text-muted);
  font-family: var(--font-cjk);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
}
#projects .role-tag::before {
  margin-right: 7px;
  color: var(--disabled);
  content: "—";
}
#projects .project-summary { min-width: 0; }
#projects .project-title-zh {
  max-width: 760px;
  font-size: clamp(27px, 3.1vw, 38px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -.022em;
}
#projects .case-value {
  max-width: 740px;
  margin-top: 20px;
  color: var(--text-secondary);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.72;
}
#projects .case-value strong,
#projects .transferable strong,
#projects .case-deliver b {
  color: var(--foreground);
  font-weight: 600;
}
#projects .case-body {
  --project-rail: clamp(176px, 23%, 224px);
  display: block;
  margin-top: 0;
  border-top: 1px solid var(--border);
}
#projects .case-row {
  display: grid;
  grid-template-columns: var(--project-rail) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  padding-block: 22px;
  border-bottom: 1px solid var(--border);
}
#projects .case-k {
  padding-top: 2px;
  color: var(--text-tertiary);
  font-family: var(--font-cjk);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .02em;
  text-transform: none;
}
#projects .case-v {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.76;
}
#projects .case-did {
  margin: 0;
  padding-left: 1.15em;
}
#projects .case-did li + li { margin-top: 7px; }
#projects .case-deliver b { margin-right: 8px; }
#projects .project-closing {
  display: grid;
  grid-template-columns: var(--project-rail) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
  padding-top: 24px;
}
#projects .transferable {
  grid-column: 2;
  grid-row: 1;
  max-width: 760px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.76;
}
#projects .case-link {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 44px;
  margin-top: -10px;
  border-bottom: 0;
  color: var(--foreground);
  font-size: 13px;
}
#projects .case-link::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
  content: "";
}
#projects .case-link { position: relative; }
#projects .case-link:hover::after,
#projects .case-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }
#projects .case-link svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  transition: transform 180ms ease;
}
#projects .case-link:hover svg,
#projects .case-link:focus-visible svg { transform: translateX(3px); }

#projects .portfolio-cta {
  margin-top: clamp(72px, 8vw, 104px);
  padding: 0;
  border: 0;
  background: transparent;
}
#projects .portfolio-cta .pcta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 26px 0;
  border: 0;
  border-top: 1px solid var(--foreground);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
#projects .portfolio-cta .pcta-text { display: block; min-width: 0; }
#projects .portfolio-cta .pcta-main {
  display: block;
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -.022em;
}
#projects .portfolio-cta .pcta-sub {
  display: block;
  margin-top: 8px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .04em;
}
#projects .portfolio-cta svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  transition: transform 180ms ease;
}
#projects .portfolio-cta .pcta-link:hover svg,
#projects .portfolio-cta .pcta-link:focus-visible svg { transform: translateX(4px); }

@media (max-width: 1120px) {
  .layout-grid {
    grid-template-columns: 1fr;
    gap: clamp(68px, 9vw, 96px);
  }
  body.resume-page .hero {
    position: static;
    max-width: 820px;
  }
}

@media (max-width: 820px) {
  body.resume-page .section-head { grid-template-columns: 1fr; gap: 18px; }
  body.resume-page .section-desc { max-width: 720px; }
  #projects .project-overview,
  #projects .case-row,
  #projects .project-closing {
    --project-rail: 150px;
    gap: 24px;
  }
}

@media (max-width: 620px) {
  #projects .project-card + .project-card { margin-top: 64px; }
  #projects .project-overview { grid-template-columns: 1fr; gap: 24px; padding-block: 22px 26px; }
  #projects .project-title-en { max-width: none; margin-top: 8px; }
  #projects .role-tags { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 16px; }
  #projects .role-tag::before { margin-right: 6px; }
  #projects .project-title-zh { font-size: clamp(25px, 7.6vw, 31px); line-height: 1.28; }
  #projects .case-value { margin-top: 16px; font-size: 16px; line-height: 1.7; }
  #projects .case-row { grid-template-columns: 1fr; gap: 8px; padding-block: 18px; }
  #projects .case-k { font-size: 11px; }
  #projects .case-v, #projects .transferable { font-size: 14px; line-height: 1.72; }
  #projects .project-closing { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  #projects .transferable { grid-column: 1; grid-row: 1; }
  #projects .case-link { grid-column: 1; grid-row: 2; margin-top: 0; }
  #projects .portfolio-cta .pcta-link { padding-block: 22px; }
  #projects .portfolio-cta svg { width: 22px; height: 22px; }
}

@media print {
  .hero-portrait { width: 118px; break-inside: avoid; }
  .hero-portrait .hp-frame { border-color: #dededb; }
}

/* v5 — image-led editorial system */
:root {
  --font-cjk: "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Inter", system-ui, sans-serif;
  --section-gap: clamp(104px, 11vw, 152px);
  --media-surface: #f4f4f2;
  --media-line: rgba(17, 17, 17, 0.12);
}
body { font-family: var(--font-cjk); letter-spacing: -0.006em; }
.brand-mark { width: auto; height: auto; border: 0; border-radius: 0; font-size: 10px; letter-spacing: .08em; }
.brand-mark::after { margin-left: 8px; color: var(--disabled); content: "/"; }
.brand-name { font-weight: 500; letter-spacing: -.02em; }
.section { padding-block: var(--section-gap); }
.section-heading {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: clamp(58px, 7vw, 92px);
}
.section-heading > .eyebrow { grid-column: 1 / 4; }
.section-heading h2 { grid-column: 4 / 9; max-width: none; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.045em; }
.section-heading > .text-link,
.section-heading > .section-copy { grid-column: 10 / 13; justify-self: stretch; }
.section-heading > .text-link { justify-self: end; align-self: start; }
.section-heading > .section-copy { max-width: none; font-size: 14px; line-height: 1.7; }

/* Hero: identity, statement and a quiet workflow rail */
.home-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 20px;
  row-gap: clamp(52px, 7vw, 84px);
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(92px, 11vw, 150px);
  padding-bottom: clamp(88px, 10vw, 136px);
}
.hero-identity { grid-column: 1 / 4; grid-row: 1; min-width: 0; }
.hero-copy { grid-column: 4 / 10; grid-row: 1; min-width: 0; align-self: start; }
.workflow-status { grid-column: 10 / 13; grid-row: 2; align-self: end; }
.home-hero h1 { margin-top: 38px; font-size: clamp(38px, 4vw, 54px); font-weight: 430; line-height: 1.05; letter-spacing: -.045em; }
.hero-role { margin-top: 0; max-width: 760px; font-size: clamp(34px, 4.25vw, 58px); font-weight: 420; line-height: 1.13; letter-spacing: -.042em; text-wrap: balance; }
.hero-tagline-home { max-width: 670px; margin-top: 22px; font-size: 14px; line-height: 1.65; }
.hero-intro { max-width: 760px; margin-top: 28px; font-size: 15px; line-height: 1.72; }
.hero-skills { gap: 7px 15px; margin-top: 28px; font-size: 9px; }
.hero-meta { margin-top: 27px; }
.workflow-status {
  padding: 15px 0 0;
  border-top: 1px solid var(--foreground);
  border-radius: 0;
  background: transparent;
}
.workflow-head { padding-bottom: 11px; }
.workflow-status li { min-height: 32px; }
.workflow-status > p { line-height: 1.65; }

/* Selected work: every image gets its own spatial role */
.selected-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(104px, 12vw, 168px) 20px;
  align-items: start;
}
.selected-card { min-width: 0; }
.selected-card > a { display: block; }
.selected-card.layout-lead { grid-column: 1 / 13; }
.selected-card.layout-lead > a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; }
.selected-card.layout-lead .selected-media { grid-column: 1 / 9; }
.selected-card.layout-lead .selected-meta { grid-column: 9 / 13; align-self: end; padding: 0 0 8px; }
.selected-card.layout-portrait { grid-column: 1 / 6; }
.selected-card.layout-landscape-offset { grid-column: 7 / 13; margin-top: clamp(84px, 10vw, 140px); }
.selected-card.layout-panorama { grid-column: 1 / 13; }
.selected-card.layout-left { grid-column: 1 / 7; }
.selected-card.layout-right { grid-column: 7 / 13; }
.selected-card.layout-left-wide { grid-column: 1 / 8; }
.selected-card.layout-right-narrow { grid-column: 8 / 13; margin-top: clamp(70px, 8vw, 116px); }
.selected-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
.selected-media::after { display: none; }
.selected-media img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 260ms ease; }
.layout-lead .selected-media { aspect-ratio: 1.5 / 1; }
.layout-lead .selected-media.media-square img { width: auto; height: 88%; }
.layout-portrait .selected-media { aspect-ratio: 4 / 5; }
.layout-portrait .selected-media img { width: auto; height: 100%; }
.layout-landscape-offset .selected-media { aspect-ratio: 1.55 / 1; }
.layout-panorama .selected-media { aspect-ratio: 2.15 / 1; }
.layout-left .selected-media,
.layout-right .selected-media,
.layout-left-wide .selected-media,
.layout-right-narrow .selected-media { aspect-ratio: 1.5 / 1; }
.selected-card:hover .selected-media img,
.selected-card:focus-within .selected-media img { transform: scale(1.012); }
.selected-meta { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; padding-top: 16px; }
.selected-meta > p:first-child { grid-column: 1; grid-row: 1 / span 3; display: grid; align-content: start; gap: 6px; line-height: 1.45; }
.selected-meta > p:first-child span { display: block; }
.selected-meta h3 { grid-column: 2; margin: 0; font-size: clamp(20px, 2vw, 29px); line-height: 1.24; letter-spacing: -.026em; }
.selected-card.layout-lead .selected-meta { display: block; }
.selected-card.layout-lead .selected-meta > p:first-child { display: flex; }
.selected-card.layout-lead .selected-meta h3 { margin-top: 10px; font-size: clamp(30px, 3.1vw, 43px); line-height: 1.14; }
.selected-type { grid-column: 2; margin-top: 8px; font-size: 13px; }
.selected-tags { grid-column: 2; margin-top: 12px; }
.selected-card.layout-lead .selected-type,
.selected-card.layout-lead .selected-tags { grid-column: auto; }

/* Project archive: visual index rather than dense rows */
.work-toolbar { margin-bottom: 38px; }
.project-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(66px, 7vw, 94px) 20px; border-top: 0; }
.index-card { min-width: 0; }
.index-card[hidden] { display: none; }
.index-card > a { display: block; min-height: 0; padding: 0; }
.index-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--media-line);
  background: var(--media-surface);
}
.index-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 240ms ease; }
.index-media.media-square img { inset: 7%; width: 86%; height: 86%; }
.index-media.media-portrait img { width: auto; max-width: 88%; height: 100%; left: 50%; transform: translateX(-50%); }
.index-media.media-page img { object-fit: cover; object-position: center top; }
.index-card:hover .index-media img,
.index-card:focus-within .index-media img { transform: scale(1.015); }
.index-card:hover .index-media.media-portrait img,
.index-card:focus-within .index-media.media-portrait img { transform: translateX(-50%) scale(1.015); }
.index-meta { position: relative; padding-top: 14px; }
.index-number { color: var(--text-tertiary); font-family: var(--font-mono); font-size: 9px; line-height: 1; }
.index-meta h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: clamp(17px, 1.55vw, 21px); font-weight: 430; line-height: 1.28; letter-spacing: -.024em; }
.index-meta h3 i { flex: 0 0 auto; font-style: normal; font-size: .72em; transition: transform 180ms ease; }
.index-card:hover h3 i,
.index-card:focus-within h3 i { transform: translate(3px,-3px); }
.index-type { margin-top: 6px; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.index-description { margin-top: 10px; color: var(--text-tertiary); font-size: 12px; line-height: 1.62; }

/* Make supporting sections feel editorial, not card-based */
.about-section { column-gap: 20px; }
.about-copy > p { font-size: clamp(19px, 2vw, 27px); line-height: 1.58; letter-spacing: -.018em; }
.about-pillars { margin-top: 52px; }
.capability-list li { padding-block: 30px; }
.capability-list h3 { letter-spacing: -.022em; }

/* Case studies: the opening image is the project, not a sidebar thumbnail */
.case-overview { display: block; margin-top: 34px; }
.co-hero { width: 100%; max-width: none; aspect-ratio: 16 / 9; justify-self: auto; }
.co-hero.media-square,
.co-hero.media-portrait { width: 100%; max-width: none; aspect-ratio: 16 / 9; }
.co-hero.media-page { aspect-ratio: 16 / 9; }
.co-hero.media-square img { width: auto; max-width: 84%; height: 88%; }
.co-hero.media-portrait img { width: auto; max-width: 72%; height: 92%; }
.co-hero.media-landscape img { width: 100%; height: 100%; }
.co-hero.media-page img { object-fit: cover; object-position: center top; }
.case-overview-side { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 20px; align-items: start; margin-top: 50px; }
.case-meta { grid-column: 1 / 5; }
.case-overview-side > .cs-text { grid-column: 6 / 13; max-width: 760px; font-size: 15px; line-height: 1.72; }
.cm-item { grid-template-columns: 118px minmax(0,1fr); }
.media-grid, .pg-grid, .pages, .collection { gap: clamp(54px, 6vw, 88px) 20px; margin-top: 52px; }
.media-grid.cols-3, .pg-grid.cols-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.shot-fig, .pg-thumb { border-color: var(--media-line); }
.shot-cap, .pg-cap { padding-top: 14px; }
.next-nav { grid-template-columns: 1fr auto 1fr; gap: 20px; padding-block: 54px; border-top: 1px solid var(--border); }
.nn-link, .nn-all { min-height: 0; padding: 22px 0; border: 0; border-top: 1px solid var(--foreground); border-radius: 0; background: transparent; }
.nn-all { border-top-color: var(--border); }
.nn-name { font-size: 15px; }

@media (max-width: 1080px) {
  .hero-identity { grid-column: 1 / 5; }
  .hero-copy { grid-column: 5 / 13; }
  .workflow-status { grid-column: 5 / 10; }
  .selected-card.layout-portrait { grid-column: 1 / 6; }
  .selected-card.layout-landscape-offset { grid-column: 6 / 13; }
  .project-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .home-hero { row-gap: 46px; }
  .hero-identity, .hero-copy { grid-column: 1 / 13; }
  .hero-copy { grid-row: 2; }
  .workflow-status { grid-column: 7 / 13; grid-row: 3; }
  .section-heading > .eyebrow { grid-column: 1 / 4; }
  .section-heading h2 { grid-column: 4 / 9; }
  .section-heading > .text-link, .section-heading > .section-copy { grid-column: 9 / 13; }
  .selected-card.layout-lead > a { display: block; }
  .selected-card.layout-lead .selected-media,
  .selected-card.layout-lead .selected-meta { grid-column: auto; }
  .selected-card.layout-lead .selected-meta { padding-top: 18px; }
  .case-overview-side { grid-template-columns: 1fr; gap: 36px; }
  .case-meta, .case-overview-side > .cs-text { grid-column: auto; }
}
@media (max-width: 760px) {
  :root { --page-pad: 18px; --section-gap: 82px; }
  .home-hero { display: block; min-height: 0; padding-top: 70px; padding-bottom: 88px; }
  .hero-copy { margin-top: 42px; }
  .home-hero h1 { font-size: clamp(54px, 17vw, 72px); }
  .hero-role { font-size: clamp(30px, 9vw, 42px); line-height: 1.16; }
  .hero-intro { font-size: 15px; line-height: 1.72; }
  .workflow-status { width: 100%; margin-top: 50px; }
  .section-heading { display: block; margin-bottom: 48px; }
  .section-heading h2 { margin-top: 18px; }
  .section-heading > .text-link, .section-heading > .section-copy { margin-top: 20px; }
  .selected-grid { display: block; }
  .selected-card { width: 100%; margin: 0; }
  .selected-card + .selected-card { margin-top: 74px; }
  .selected-card.layout-landscape-offset, .selected-card.layout-right-narrow { margin-top: 74px; }
  .layout-lead .selected-media { aspect-ratio: 4 / 3; }
  .layout-lead .selected-media.media-square img { width: auto; max-width: 92%; height: 92%; }
  .layout-landscape-offset .selected-media,
  .layout-left .selected-media,
  .layout-right .selected-media,
  .layout-left-wide .selected-media,
  .layout-right-narrow .selected-media { aspect-ratio: 4 / 3; }
  .selected-meta, .selected-card.layout-lead .selected-meta { display: grid; grid-template-columns: 54px minmax(0,1fr); column-gap: 14px; padding-top: 15px; }
  .selected-card.layout-lead .selected-meta > p:first-child, .selected-meta > p:first-child { grid-column: 1; grid-row: 1 / span 3; display: grid; gap: 4px; }
  .selected-card.layout-lead .selected-meta h3, .selected-meta h3 { grid-column: 2; margin-top: 0; font-size: 23px; line-height: 1.28; }
  .selected-card.layout-lead .selected-type, .selected-card.layout-lead .selected-tags, .selected-type, .selected-tags { grid-column: 2; margin-top: 0; }
  .work-toolbar { display: block; }
  .filter-scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--page-pad) * -1); padding: 2px var(--page-pad) 12px; scrollbar-width: thin; }
  .chip { flex: 0 0 auto; min-height: 40px; }
  .work-count { margin-top: 10px; }
  .project-index { grid-template-columns: 1fr; gap: 68px; }
  .index-media { aspect-ratio: 4 / 3; }
  .index-meta h3 { font-size: 22px; }
  .page-title { font-size: clamp(40px, 11.5vw, 58px); line-height: 1.1; }
  .case-section { padding-block: 78px; }
  .co-hero, .co-hero.media-square, .co-hero.media-portrait, .co-hero.media-page { aspect-ratio: 4 / 3; }
  .co-hero.media-square img { max-width: 94%; height: 94%; }
  .co-hero.media-portrait img { max-width: 88%; height: 95%; }
  .proc-grid { grid-template-columns: 1fr; }
  .proc-card { min-height: 0; }
  .media-grid, .pg-grid, .pages, .collection, .media-grid.cols-3, .pg-grid.cols-3, .media-grid.duo, .pg-grid.duo { grid-template-columns: 1fr; gap: 58px; }
  .shot-cap, .pg-cap { grid-template-columns: 1fr; }
  .shot-cap span, .pg-cap span { text-align: left; }
  .shot-zoom, .pg-zoom { opacity: 1; }
  .next-nav { grid-template-columns: 1fr 1fr; }
  .nn-center { grid-column: 1 / -1; grid-row: 2; }
  .nn-all { min-height: 52px; }
}
@media (max-width: 460px) {
  .selected-meta, .selected-card.layout-lead .selected-meta { grid-template-columns: 44px minmax(0,1fr); gap: 6px 12px; }
  .selected-card.layout-lead .selected-meta h3, .selected-meta h3, .index-meta h3 { font-size: 20px; }
  .index-description { font-size: 12px; }
  .next-nav { grid-template-columns: 1fr; }
  .nn-center { grid-column: auto; grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .selected-media img, .index-card img, .shot img, .pg-item img { transform: none; transition: none; }
}
