:root {
  color-scheme: light dark;
  --page: #f4f1e9;
  --surface: #fffdf9;
  --surface-soft: #e9efe9;
  --ink: #17231f;
  --muted: #59675f;
  --accent: #0b685b;
  --accent-dark: #084a42;
  --focus: #df7f25;
  --line: #ccd6cf;
  --shadow: 0 20px 60px rgb(31 50 43 / 8%);
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-size: 1rem;
  line-height: 1.62;
}

body:lang(zh-Hans) {
  line-height: 1.78;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 0.4rem;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 72px;
  padding: 0 5vw;
  background: rgb(244 241 233 / 93%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 850;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(0.8rem, 2.6vw, 2rem);
}

.site-header nav a,
.language-switch a,
.language-switch span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
}

.site-header nav a:hover,
.language-switch a:hover {
  color: var(--accent);
}

.language-switch {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  white-space: nowrap;
}

.language-switch [aria-current="page"] {
  color: var(--ink);
}

main {
  overflow: clip;
}

.hero,
.highlights,
.section,
.contact-band,
.site-footer {
  width: min(var(--max), 90vw);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3.8rem, 7vw, 6.2rem) 0 clamp(2.8rem, 5vw, 4.3rem);
}

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

.availability-badge {
  display: inline-flex;
  margin: 0 0 1.2rem;
  padding: 0.42rem 0.7rem;
  color: var(--accent-dark);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.hero-portrait {
  width: min(100%, 300px);
  margin: 0;
  padding: 0.55rem;
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: var(--shadow);
}

.hero-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.9rem;
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(3.1rem, 7vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

@media (min-width: 801px) {
  .hero h1 {
    font-size: clamp(3.2rem, 5.5vw, 4.8rem);
    white-space: nowrap;
  }
}

.headline {
  max-width: 920px;
  margin-bottom: 1.1rem;
  font-size: clamp(1.38rem, 3.2vw, 2.3rem);
  font-weight: 770;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.lede {
  max-width: 780px;
  margin-bottom: 0.8rem;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.location-line {
  color: var(--accent-dark);
  font-weight: 720;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0.66rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 760;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.text {
  background: transparent;
  border-color: transparent;
}

.translation-note {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.highlights article {
  display: grid;
  gap: 0.2rem;
  padding: 1.5rem clamp(1rem, 3vw, 2rem);
}

.highlights article + article {
  border-left: 1px solid var(--line);
}

.highlights strong {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.highlights span {
  color: var(--muted);
}

.section {
  padding: clamp(3.8rem, 7vw, 5.8rem) 0;
}

.section-tint {
  width: min(calc(var(--max) + 6vw), 96vw);
  padding-inline: clamp(1.2rem, 3vw, 3rem);
  background: var(--surface-soft);
  border-radius: clamp(1.2rem, 3vw, 2.2rem);
}

.section-heading {
  max-width: 830px;
  margin-bottom: 2.4rem;
}

h2 {
  margin-bottom: 1.15rem;
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: -0.048em;
}

h3 {
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.experience-list {
  display: grid;
  gap: 1.3rem;
}

.experience-card {
  padding: clamp(1.35rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  box-shadow: var(--shadow);
}

.role-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.role-heading h3 {
  margin: 0.5rem 0 0.22rem;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.role-heading p {
  margin-bottom: 0;
  color: var(--muted);
}

.role-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-labels span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.role-labels .relationship {
  color: var(--accent);
}

.role-meta {
  white-space: nowrap;
}

.experience-card ul {
  margin: 1.4rem 0;
  padding-left: 1.2rem;
}

.experience-card li + li {
  margin-top: 0.7rem;
}

.experience-card li::marker {
  color: var(--accent);
}

.technology-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.customer-project-card {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
}

.customer-project-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.customer-project-heading .role-meta {
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
}

.customer-project-heading h3 {
  margin-bottom: 0.25rem;
  font-size: 1.28rem;
}

.customer-project-domain {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.customer-project-heading > span {
  flex: none;
  padding: 0.3rem 0.55rem;
  color: var(--accent-dark);
  background: var(--surface-soft);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 780;
  line-height: 1.25;
  text-align: right;
}

.customer-project-card > p:not(.technology-line) {
  margin: 1rem 0 0;
  color: var(--muted);
}

.customer-project-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
}

.customer-project-card li + li {
  margin-top: 0.5rem;
}

.customer-project-card .technology-line {
  margin-top: 1rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.case-card {
  min-width: 0;
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.case-number {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--accent);
  font-weight: 820;
  letter-spacing: 0.08em;
}

.case-card h3,
.delivery-grid h3,
.skill-groups h3,
.additional-card h3,
.credential h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}

.case-card p,
.delivery-grid p,
.additional-card p,
.credential p {
  margin-bottom: 0;
  color: var(--muted);
}

.prototype-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.prototype-stage {
  flex: none;
  margin-bottom: 0.25rem;
  padding: 0.45rem 0.75rem;
  color: var(--accent);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 760;
}

.prototype-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 0.35rem solid var(--accent);
  border-radius: 1.2rem;
  box-shadow: var(--shadow);
}

.prototype-summary {
  max-width: 850px;
  font-size: 1.08rem;
}

.prototype-phases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.4rem;
}

.prototype-phases section {
  padding: 1.2rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.prototype-phases h3 {
  margin-bottom: 0.45rem;
  font-size: 1.05rem;
}

.prototype-phases p,
.prototype-status {
  margin-bottom: 0;
  color: var(--muted);
}

.prototype-status {
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

.delivery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
}

.delivery-grid article {
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--surface);
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-groups article {
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.32rem 0.58rem;
  color: var(--accent-dark);
  background: var(--surface-soft);
  border-radius: 0.45rem;
  font-size: 0.86rem;
  font-weight: 680;
}

.additional-grid,
.credentials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.additional-card {
  padding: clamp(1.3rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.additional-card .role-meta {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
}

.additional-title {
  margin-bottom: 0.8rem !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.credentials {
  align-items: start;
}

.credentials > article {
  min-width: 0;
}

.credentials h2 {
  font-size: clamp(1.85rem, 4vw, 2.8rem);
}

.credential + .credential {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

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

.language-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.language-list span {
  color: var(--muted);
}

.beyond-title {
  margin-bottom: 0.55rem;
}

.contact-band {
  margin-bottom: 5vw;
  padding: clamp(2.1rem, 6vw, 4.5rem);
  color: #fff;
  background: var(--accent-dark);
  border-radius: clamp(1.2rem, 3vw, 2rem);
}

.contact-band .eyebrow {
  color: #9fe6d9;
}

.contact-band h2 {
  max-width: 850px;
}

.contact-band > p:not(.eyebrow) {
  max-width: 650px;
  color: #d8e8e3;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.4rem;
  margin-top: 1.5rem;
}

.contact-links a {
  overflow-wrap: anywhere;
  font-weight: 760;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 0 2.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    min-height: 64px;
    padding-inline: 5vw;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 0.75rem;
    min-width: 0;
  }

  .site-header nav a {
    font-size: 0.76rem;
  }

  .site-header .nav-ai,
  .site-header .nav-skills {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.5rem;
    padding: 3.7rem 0 3rem;
  }

  .hero-copy {
    order: 1;
  }

  .hero-portrait {
    order: 2;
    width: min(58vw, 220px);
  }

  .availability-badge {
    margin-bottom: 1rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .hero h1 {
    white-space: nowrap;
  }

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

  .highlights article {
    padding-block: 1rem;
  }

  .highlights article + article {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .highlights article:nth-child(odd) {
    border-left: 0;
  }

  .highlights article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .role-heading,
  .prototype-phases,
  .credentials {
    grid-template-columns: 1fr;
  }

  .prototype-heading {
    display: block;
  }

  .prototype-stage {
    display: inline-block;
    margin-top: 0.8rem;
  }

  .role-heading {
    display: grid;
    gap: 0.6rem;
  }

  .role-meta {
    white-space: normal;
  }

  .case-grid,
  .delivery-grid,
  .skill-groups,
  .additional-grid,
  .customer-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 561px) and (max-width: 800px) {
  .hero h1 {
    font-size: clamp(3rem, 9vw, 4.5rem);
  }
}

@media (max-width: 560px) {
  .hero,
  .highlights,
  .section,
  .contact-band,
  .site-footer {
    width: min(92vw, var(--max));
  }

  .hero {
    padding-top: 3.7rem;
  }

  .headline {
    font-size: 1.32rem;
  }

  .hero h1 {
    white-space: normal;
  }

  .actions {
    align-items: stretch;
  }

  .button {
    justify-content: center;
  }

  .button.primary,
  .button:not(.text) {
    flex: 1 1 100%;
  }

  .section {
    padding-block: 4rem;
  }

  .section-tint {
    width: 96vw;
  }

  .experience-card ul {
    padding-left: 1.1rem;
  }

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

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

  .site-footer {
    display: grid;
    gap: 0.5rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1613;
    --surface: #18211d;
    --surface-soft: #1b2a24;
    --ink: #eff5f1;
    --muted: #adbbb4;
    --accent: #76dac7;
    --accent-dark: #075a4f;
    --line: #35443d;
    --shadow: 0 20px 60px rgb(0 0 0 / 20%);
  }

  .site-header {
    background: rgb(15 22 19 / 92%);
  }

  .location-line,
  .tag-list li {
    color: var(--accent);
  }

  .button.primary {
    color: #071c17;
    background: var(--accent);
  }

  .availability-badge {
    color: var(--accent);
    background: rgb(118 218 199 / 14%);
    border-color: rgb(118 218 199 / 42%);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
