:root {
  color-scheme: light;
  --ink: #11161d;
  --muted: #68717d;
  --line: #dce2e8;
  --line-strong: #b7c0ca;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --blue: #1265ee;
  --blue-dark: #0b4fc4;
  --green: #1ecf6b;
  --green-dark: #11884a;
  --focus: #ffb800;
  --max-width: 1360px;
  --reading-width: 760px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-exit 180ms var(--ease-in-out) both;
}

::view-transition-new(root) {
  animation: page-enter 240ms var(--ease-out) both;
}

@keyframes page-exit {
  to {
    opacity: 0;
    transform: translateY(-6px);
    filter: blur(2px);
  }
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(2px);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

html.is-language-swapping body {
  opacity: 1;
  filter: blur(0);
  transition: opacity 140ms var(--ease-out), filter 140ms var(--ease-out);
}

html.is-language-swapping.is-language-exiting body {
  opacity: 0;
  filter: blur(2px);
  transition-duration: 90ms;
  transition-timing-function: var(--ease-in-out);
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: #cfe0ff;
  color: var(--ink);
}

html[data-lang="zh"] .lang-en,
html[data-lang="en"] .lang-zh {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 96px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 76px;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-sticky {
  position: sticky;
  top: 0;
  border-color: var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(17, 22, 29, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 750;
  line-height: 1;
}

.brand span:last-child {
  color: var(--muted);
  font-weight: 520;
}

.header-actions,
.desktop-nav,
.language-switch {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 34px;
}

.desktop-nav {
  gap: 28px;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  color: #2e3540;
  font-size: 15px;
  font-weight: 560;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.language-switch {
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3px;
}

.language-switch button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out);
}

.language-switch button.is-active {
  background: var(--blue);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  transition: background-color 140ms ease, transform 120ms var(--ease-out);
}

.mobile-nav {
  display: none;
}

.mobile-contact-button {
  display: block;
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-align: left;
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  min-height: 680px;
  align-items: stretch;
}

.hero-copy {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 38px 48px 0;
}

.hero h1,
.detail-hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: 76px;
  line-height: 1.06;
}

.hero-role {
  margin: 16px 0 0;
  color: var(--blue);
  font-size: 28px;
  font-weight: 760;
  line-height: 1.25;
}

.hero-lead {
  max-width: 660px;
  margin: 34px 0 0;
  font-size: 20px;
  font-weight: 560;
  line-height: 1.75;
}

.hero-character {
  max-width: 650px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 2px solid var(--green);
  color: var(--muted);
  font-size: 15px;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 28px 0 0;
}

.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  font-weight: 660;
  line-height: 1.35;
}

.proof-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.proof-item i {
  color: var(--ink);
  font-size: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  font-size: 15px;
  font-weight: 720;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 180ms var(--ease-out),
    color 150ms ease,
    transform 150ms var(--ease-out);
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-ink {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}


.button-quiet {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button:active {
  transform: translateY(0) scale(0.97);
  transition-duration: 100ms;
}

.language-switch button:active,
.menu-toggle:active,
.dialog-close:active {
  transform: scale(0.94);
  transition-duration: 100ms;
}

.public-email {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.portrait-field {
  position: relative;
  min-height: 600px;
  align-self: end;
  overflow: hidden;
  background: #fff;
}

.portrait-field img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.has-motion .hero-copy h1,
.has-motion .hero-role,
.has-motion .hero-lead,
.has-motion .hero-character,
.has-motion .proof-strip,
.has-motion .hero-actions,
.has-motion .public-email {
  animation: hero-copy-enter 520ms var(--ease-out) both;
}

.has-motion .hero-role { animation-delay: 70ms; }
.has-motion .hero-lead { animation-delay: 130ms; }
.has-motion .hero-character { animation-delay: 190ms; }
.has-motion .proof-strip { animation-delay: 250ms; }
.has-motion .hero-actions { animation-delay: 310ms; }
.has-motion .public-email { animation-delay: 360ms; }

.has-motion .portrait-field {
  animation: portrait-enter 680ms var(--ease-out) 100ms both;
}

.has-motion .portrait-field img {
  animation: portrait-image-enter 680ms var(--ease-out) 100ms both;
}

@keyframes hero-copy-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

@keyframes portrait-enter {
  from {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0);
  }
}

@keyframes portrait-image-enter {
  from {
    opacity: 0;
    transform: scale(1.035);
  }
}

.work-overview {
  padding: 48px 0 76px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.section-heading h2,
.section-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.project-card {
  position: relative;
  z-index: 0;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background-color 220ms ease, transform 220ms var(--ease-out);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: 0 18px 42px rgba(17, 22, 29, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease-out);
}

.project-card:active {
  transform: scale(0.985);
  transition-duration: 100ms;
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.project-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 25px;
  transition: background-color 220ms ease, border-color 220ms ease, color 220ms ease, transform 220ms var(--ease-out);
}

.project-index {
  color: #d5d9de;
  font-family: Georgia, serif;
  font-size: 36px;
  line-height: 1;
}

.project-card h3 {
  margin: 24px 0 4px;
  font-size: 20px;
  line-height: 1.25;
}

.project-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-description {
  margin: 18px 0 24px;
  color: #4f5965;
  font-size: 14px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--blue);
  font-size: 14px;
  font-weight: 720;
}

.project-link i {
  transition: transform 220ms var(--ease-out);
}

.has-motion .motion-reveal {
  opacity: 0;
  translate: 0 28px;
}

.has-motion .motion-reveal.is-visible {
  animation: motion-reveal-in 520ms var(--ease-out) both;
  animation-delay: var(--motion-delay, 0ms);
}

@keyframes motion-reveal-in {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.now-next,
.principles,
.contact-band {
  border-top: 1px solid var(--line);
}

.now-next {
  padding: 76px 0;
  background: var(--soft);
}

.two-column-band {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 80px;
}

.two-column-band h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.18;
}

.two-column-band h2 span {
  color: var(--blue);
}

.now-next-copy {
  display: grid;
  gap: 34px;
}

.now-next-copy article {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.now-next-copy article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.now-next-copy h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.now-next-copy p {
  max-width: 720px;
  margin: 0;
  color: #4f5965;
}

.principles {
  padding: 76px 0;
}

.principle-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principle-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  counter-increment: principle;
}

.principle-list li::before {
  content: "0" counter(principle);
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
}

.principle-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
}

.principle-list p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.contact-band {
  padding: 76px 0;
  background: var(--ink);
  color: #fff;
}

.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.contact-band h2 {
  max-width: 760px;
  margin: 0;
  font-size: 42px;
  line-height: 1.2;
}

.contact-band p {
  max-width: 700px;
  margin: 14px 0 0;
  color: #aeb8c4;
}

.contact-band .button {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid #262f39;
  background: var(--ink);
  color: #99a4b0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: #fff;
}

.award-dialog {
  width: min(1180px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  opacity: 0;
  transform: scale(0.985);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}

.award-dialog::backdrop {
  background: rgba(17, 22, 29, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition:
    opacity 180ms var(--ease-out),
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}

.award-dialog[open] {
  opacity: 1;
  transform: scale(1);
}

.award-dialog[open]::backdrop {
  opacity: 1;
}

.award-dialog-shell {
  display: grid;
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 28px 90px rgba(17, 22, 29, 0.34);
  overflow: hidden;
}

.award-dialog-header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.award-dialog-header > div {
  min-width: 0;
}

.award-dialog-header .eyebrow {
  margin: 0 0 5px;
}

.award-dialog-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.award-dialog-header .dialog-close {
  position: static;
  flex: none;
}

.award-viewer {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #eef1f5;
  cursor: zoom-in;
  overflow: auto;
}

.award-viewer img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 150px);
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(17, 22, 29, 0.16);
}

@starting-style {
  .award-dialog[open] {
    opacity: 0;
    transform: scale(0.985);
  }

  .award-dialog[open]::backdrop {
    opacity: 0;
  }
}

.contact-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(17, 22, 29, 0.28);
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.97);
  transition:
    opacity 180ms var(--ease-out),
    transform 180ms var(--ease-out),
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}

.contact-dialog::backdrop {
  background: rgba(17, 22, 29, 0.58);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition:
    opacity 180ms var(--ease-out),
    overlay 180ms allow-discrete,
    display 180ms allow-discrete;
}

.contact-dialog[open] {
  opacity: 1;
  transform: scale(1);
}

.contact-dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  .contact-dialog[open] {
    opacity: 0;
    transform: scale(0.97);
  }

  .contact-dialog[open]::backdrop {
    opacity: 0;
  }
}

.dialog-inner {
  position: relative;
  padding: 36px;
}

.dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-size: 20px;
  transition: background-color 140ms ease, transform 120ms var(--ease-out);
}

.contact-dialog h2 {
  margin: 0;
  font-size: 30px;
}

.contact-dialog > .dialog-inner > p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-options {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 28px;
}

.contact-links {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.contact-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 14px;
  min-height: 88px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition: color 160ms ease, transform 160ms var(--ease-out);
}

.contact-option:active {
  transform: translateX(1px) scale(0.985);
  transition-duration: 100ms;
}

.contact-option-icon,
.wechat-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  background: #f4f8ff;
  color: var(--blue);
  font-size: 23px;
}

.contact-option-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.contact-option-copy strong {
  font-size: 16px;
  font-weight: 650;
}

.contact-option-copy span {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 14px;
}

.contact-option-arrow {
  color: var(--line-strong);
  font-size: 17px;
}

.wechat-option[hidden] {
  display: none;
}

.wechat-option {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.wechat-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wechat-heading h3 {
  margin: 0;
  font-size: 17px;
}

.wechat-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.wechat-qr-frame {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.wechat-qr {
  width: min(100%, 228px);
  height: auto;
  object-fit: contain;
}

.has-motion .contact-dialog[open] .contact-option,
.has-motion .contact-dialog[open] .wechat-option {
  animation: contact-item-enter 220ms var(--ease-out) both;
}

.has-motion .contact-dialog[open] .contact-option:nth-child(1) { animation-delay: 40ms; }
.has-motion .contact-dialog[open] .contact-option:nth-child(2) { animation-delay: 80ms; }
.has-motion .contact-dialog[open] .contact-option:nth-child(3) { animation-delay: 120ms; }
.has-motion .contact-dialog[open] .wechat-option { animation-delay: 160ms; }

@keyframes contact-item-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.page-main {
  min-height: 70vh;
}

.detail-hero,
.page-hero {
  padding: 64px 0 58px;
  border-bottom: 1px solid var(--line);
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.detail-back i {
  transition: transform 180ms var(--ease-out);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 72px;
  align-items: end;
}

.detail-hero h1,
.page-hero h1 {
  font-size: 62px;
  line-height: 1.08;
}

.detail-intro {
  margin: 0;
  font-size: 22px;
  font-weight: 540;
  line-height: 1.75;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.detail-facts strong {
  color: var(--ink);
}

.detail-media {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.detail-media figure {
  margin: 0;
}

.has-motion .detail-hero .detail-back,
.has-motion .detail-hero-grid > div {
  animation: detail-hero-enter 520ms var(--ease-out) both;
}

.has-motion .detail-hero-grid > div:first-child { animation-delay: 60ms; }
.has-motion .detail-hero-grid > div:last-child { animation-delay: 130ms; }

@keyframes detail-hero-enter {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

.has-motion .motion-image-reveal img {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: scale(1.015);
}

.has-motion .motion-image-reveal.is-visible img {
  animation: image-reveal-in 680ms var(--ease-out) both;
  animation-delay: var(--motion-delay, 0ms);
}

@keyframes image-reveal-in {
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: scale(1);
  }
}

.detail-media img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-media figcaption,
.gallery figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.detail-body {
  padding: 70px 0 84px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 90px;
}

.prose {
  max-width: var(--reading-width);
}

.prose h2 {
  margin: 56px 0 16px;
  font-size: 30px;
  line-height: 1.25;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 20px;
}

.prose p {
  margin: 0 0 18px;
  color: #3f4853;
  font-size: 17px;
  line-height: 1.9;
}

.prose ul,
.prose ol {
  margin: 18px 0 26px;
  padding-left: 22px;
}

.prose li {
  margin: 10px 0;
  color: #3f4853;
}

.detail-aside {
  align-self: start;
  padding-left: 28px;
  border-left: 2px solid var(--green);
}

.detail-aside h2 {
  margin: 0 0 18px;
  font-size: 16px;
}

.detail-aside dl {
  margin: 0;
}

.detail-aside dt {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.detail-aside dd {
  margin: 5px 0 0;
  font-size: 14px;
}

.detail-aside a {
  color: var(--blue);
  font-weight: 650;
}

.capability-list {
  margin: 28px 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.capability-list li {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.capability-list strong {
  color: var(--ink);
}

.app-list {
  margin: 28px 0 38px;
  border-top: 1px solid var(--line);
}

.app-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 150px 44px;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.app-row img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.app-row h3 {
  margin: 0 0 3px;
  font-size: 17px;
}

.app-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.app-downloads {
  text-align: right;
  font-weight: 760;
}

.app-row > i {
  color: var(--blue);
  font-size: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 30px 0 42px;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gallery.certificates img {
  aspect-ratio: 1.42 / 1;
  object-fit: contain;
  background: var(--soft);
}

.process-list {
  margin: 32px 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  counter-increment: process;
}

.process-list li::before {
  content: counter(process);
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-weight: 750;
}

.process-list strong {
  display: block;
  color: var(--ink);
}

.next-work {
  padding: 48px 0 68px;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.next-work-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.next-work-links a {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: #fff;
  transition: color 150ms ease, transform 140ms var(--ease-out);
}

.next-work-links a:active {
  transform: scale(0.985);
  transition-duration: 100ms;
}

.next-work-links i {
  transition: transform 180ms var(--ease-out);
}

.page-hero p {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.about-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 86px;
  padding: 70px 0;
}

.about-photo {
  position: sticky;
  top: 110px;
  align-self: start;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.about-copy {
  max-width: 760px;
}

.about-copy section {
  padding: 0 0 42px;
  margin-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.about-copy section:last-child {
  border-bottom: 0;
}

.about-copy h2 {
  margin: 0 0 16px;
  font-size: 30px;
}

.about-copy p {
  margin: 0 0 18px;
  color: #3f4853;
  font-size: 17px;
  line-height: 1.9;
}

.experience {
  padding: 78px 0 88px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  scroll-margin-top: 76px;
}

.experience-heading {
  padding-bottom: 46px;
  border-bottom: 3px solid var(--ink);
}

.experience-heading h2 {
  line-height: 1.12;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 76px;
}

.experience-list {
  border-bottom: 1px solid var(--line);
}

.experience-item {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 34px;
  padding: 34px 0 38px;
  border-bottom: 1px solid var(--line);
}

.experience-item:last-child {
  border-bottom: 0;
}

.experience-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.experience-meta span:last-child {
  color: var(--line-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.experience-org {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 750;
}

.experience-copy h3 {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.3;
}

.experience-copy > p:not(.experience-org) {
  margin: 0;
  color: #3f4853;
  font-size: 16px;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 750;
}

.text-link i {
  transition: transform 180ms var(--ease-out);
}

.education-item .experience-copy > p:not(.experience-org) {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.experience-aside {
  padding-top: 34px;
}

.experience-aside section {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.experience-aside section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.compact-list,
.honor-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.compact-list li {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.compact-list strong,
.compact-list span {
  display: block;
}

.compact-list strong {
  font-size: 14px;
}

.compact-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.honor-list li {
  border-top: 1px solid var(--line);
}

.honor-trigger {
  display: grid;
  width: 100%;
  grid-template-columns: 62px minmax(0, 1fr) 18px;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
  transition: color 160ms ease, padding 180ms var(--ease-out);
}

.honor-trigger time {
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.honor-trigger > i {
  margin-top: 1px;
  color: var(--line-strong);
  font-size: 17px;
  transition: color 160ms ease, transform 180ms var(--ease-out);
}

.honor-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

#about {
  scroll-margin-top: 76px;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-2px);
    background: #edf4ff;
  }

  .button-primary:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
  }

  .button-ink:hover {
    border-color: #2b3540;
    background: #2b3540;
  }

  .project-card:hover {
    z-index: 2;
    background: #fff;
    transform: translateY(-8px);
  }

  .project-card:hover::after {
    opacity: 1;
  }

  .project-card:hover .project-icon {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    transform: rotate(-4deg) scale(1.06);
  }

  .project-card:hover .project-link i,
  .text-link:hover i,
  .next-work-links a:hover i {
    transform: translateX(7px);
  }

  .contact-option:hover {
    color: var(--blue);
    transform: translateX(2px);
  }

  .detail-back:hover {
    color: var(--blue);
  }

  .detail-back:hover i {
    transform: translateX(-4px);
  }

  .text-link:hover {
    color: var(--blue-dark);
  }

  .next-work-links a:hover {
    color: var(--blue);
    transform: translateY(-3px);
  }

  .honor-trigger:hover {
    padding-inline: 8px;
    color: var(--blue-dark);
  }

  .honor-trigger:hover > i {
    color: var(--blue);
    transform: scale(1.08);
  }
}

@media (max-width: 1120px) {
  .container {
    width: min(calc(100% - 56px), var(--max-width));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-role {
    font-size: 24px;
  }

  .proof-item {
    padding-inline: 16px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 56px;
  }

  .experience-layout {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  body::before {
    content: "";
    position: fixed;
    inset: 68px 0 0;
    z-index: 18;
    background: rgba(17, 22, 29, 0.26);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms var(--ease-out);
  }

  body.is-menu-open {
    overflow: hidden;
  }

  body.is-menu-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .site-header {
    height: 68px;
  }

  .desktop-nav,
  .header-actions > .language-switch {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    position: fixed;
    inset: 68px 0 auto;
    z-index: 19;
    display: block;
    padding: 18px 28px 26px;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 20px 40px rgba(17, 22, 29, 0.08);
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 180ms var(--ease-out),
      transform 240ms var(--ease-drawer),
      visibility 240ms allow-discrete;
  }

  .mobile-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 650;
  }

  .mobile-nav .language-switch {
    width: max-content;
    margin-top: 18px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 52px 0 24px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .portrait-field {
    min-height: 540px;
  }

  .portrait-field img {
    width: min(620px, 100%);
    left: 50%;
    transform: translateX(-50%);
  }

  .section-heading,
  .two-column-band,
  .detail-hero-grid,
  .detail-layout,
  .about-grid,
  .experience-layout {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .two-column-band,
  .detail-hero-grid,
  .detail-layout,
  .about-grid {
    gap: 36px;
  }

  .detail-aside {
    padding-top: 24px;
    padding-left: 0;
    border-top: 2px solid var(--green);
    border-left: 0;
  }

  .about-photo {
    position: static;
    max-width: 460px;
  }

  .experience-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
    padding-top: 0;
  }

  .experience-aside section {
    margin-bottom: 0;
    border-bottom: 0;
  }

  .contact-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .brand {
    gap: 6px;
    font-size: 15px;
  }

  .hero-copy {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: 43px;
    line-height: 1.08;
  }

  .hero-role {
    font-size: 21px;
  }

  .hero-lead {
    margin-top: 26px;
    font-size: 17px;
  }

  .hero-character {
    font-size: 14px;
  }

  .proof-strip {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .proof-item,
  .proof-item:first-child {
    min-height: 46px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .button {
    min-width: 0;
    padding-inline: 14px;
  }

  .portrait-field {
    min-height: 430px;
  }

  .work-overview,
  .experience,
  .now-next,
  .principles,
  .contact-band,
  .detail-body {
    padding-block: 56px;
  }

  .section-heading h2,
  .section-title {
    font-size: 29px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 220px;
  }

  .experience-heading {
    padding-bottom: 30px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0 32px;
  }

  .experience-meta {
    flex-direction: row;
    align-items: center;
  }

  .experience-meta span:last-child {
    font-size: 26px;
  }

  .experience-copy h3 {
    font-size: 22px;
  }

  .experience-aside {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .two-column-band h2,
  .contact-band h2 {
    font-size: 33px;
  }

  .principle-list li {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .dialog-inner {
    padding: 28px 18px 18px;
  }

  .award-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
  }

  .award-dialog-shell {
    max-height: calc(100dvh - 16px);
  }

  .award-dialog-header {
    gap: 14px;
    padding: 14px;
  }

  .award-dialog-header h2 {
    font-size: 17px;
  }

  .award-dialog-header .dialog-close {
    width: 38px;
    height: 38px;
  }

  .award-viewer {
    padding: 8px;
  }

  .award-viewer img {
    max-height: calc(100dvh - 108px);
  }

  .contact-options {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 22px;
  }

  .contact-links {
    display: block;
  }

  .contact-option {
    min-height: 76px;
    padding: 14px 2px;
  }

  .wechat-option {
    padding: 16px;
  }

  .wechat-qr-frame {
    margin-top: 14px;
    padding: 10px;
  }

  .wechat-qr {
    width: min(100%, 206px);
  }

  .detail-hero,
  .page-hero {
    padding: 48px 0 44px;
  }

  .detail-back {
    margin-bottom: 34px;
  }

  .detail-hero h1,
  .page-hero h1 {
    font-size: 42px;
  }

  .detail-intro,
  .page-hero p {
    font-size: 17px;
  }

  .detail-media {
    padding-block: 24px;
  }

  .capability-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .app-row {
    grid-template-columns: 58px 1fr 36px;
    gap: 14px;
  }

  .app-row img {
    width: 54px;
    height: 54px;
  }

  .app-downloads {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
    font-size: 13px;
  }

  .app-row > i {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .gallery,
  .next-work-links {
    grid-template-columns: 1fr;
  }

  .about-grid {
    padding-block: 52px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.is-language-swapping body,
  html.is-language-swapping.is-language-exiting body {
    opacity: 1;
    filter: none;
    transition: none;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  body::before,
  .mobile-nav {
    transform: none;
    transition: opacity 120ms ease, visibility 120ms allow-discrete;
  }

  .contact-dialog,
  .contact-dialog[open],
  .award-dialog,
  .award-dialog[open] {
    transform: none;
    transition:
      opacity 120ms ease,
      overlay 120ms allow-discrete,
      display 120ms allow-discrete;
  }

  .button:hover,
  .button:active,
  .language-switch button:active,
  .menu-toggle:active,
  .dialog-close:active,
  .project-card:hover,
  .project-card:active,
  .project-card:hover .project-icon,
  .project-card:hover .project-link i,
  .contact-option:hover,
  .contact-option:active,
  .detail-back:hover i,
  .text-link:hover i,
  .next-work-links a:hover,
  .next-work-links a:hover i,
  .next-work-links a:active,
  .honor-trigger:hover,
  .honor-trigger:hover > i {
    transform: none;
  }

  .honor-trigger:hover {
    padding-inline: 0;
  }
}

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.error-shell {
  width: min(760px, calc(100% - 40px));
  padding: 56px;
  border-top: 8px solid var(--blue);
  background: var(--white);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 72px;
  border: 2px solid var(--ink);
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.error-shell h1 {
  max-width: 620px;
  margin-bottom: 40px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.04;
}

@media (max-width: 520px) {
  .error-shell { padding: 34px 24px; }
  .brand-mark { margin-bottom: 52px; }
}
