:root {
  color-scheme: light;
  --ink: #192029; --muted: #53606e; --line: #dce1e5;
  --paper: #f4f5f6; --dark: #171a20; --gold: #f0b90b; --mono: "Cascadia Mono", Consolas, monospace;
  font-family: "Segoe UI", system-ui, "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, figure, p, h1, h2, h3, dl, dd { margin: 0; }
body { background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; object-fit: cover; }
:focus-visible { outline: 3px solid #a67a00; outline-offset: 4px; }
.site-header :focus-visible, .hero :focus-visible, .contact :focus-visible { outline-color: var(--gold); }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.wrap { width: min(1120px, calc(100% - 88px)); margin-inline: auto; }
.site-header, .hero, .contact, .site-footer { background: var(--dark); color: #f5f6f7; }
.site-header { border-bottom: 1px solid #343840; }
.nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand, .nav nav { display: flex; align-items: center; gap: 12px; }
.brand { font-size: 1.1rem; font-weight: 750; letter-spacing: -.03em; }
.brand i, .marker::before { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.nav nav { gap: 30px; color: #bfc5cf; font-size: .875rem; }
.nav nav a:hover, .socials a:hover { color: var(--gold); }
.hero { overflow: hidden; border-bottom: 3px solid var(--gold); }
.hero-inner { display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: 26px; padding-block: 55px 57px; }
.hero-copy { position: relative; z-index: 1; }

.name { font-size: 1.14rem; font-weight: 700; color: #e0e4ea; }
.identity-role { font-size: .875rem; color: #aeb6c2; }

h1 { font-size: clamp(3.5rem, 7vw, 6.25rem); line-height: .92; letter-spacing: -.075em; font-weight: 780; }
h1 span { color: var(--gold); }
:lang(zh-CN) h1 { font-size: clamp(2.7rem, 5.9vw, 5.1rem); line-height: 1.12; letter-spacing: .02em; }
.hero-sub { margin-top: 19px; color: #f1cd5c; font-size: 1rem; font-weight: 650; }
.pitch { color: #c4cbd5; max-width: 33rem; margin-top: 11px; font-size: 1.05rem; }
.socials { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }






.portrait { position: relative; min-width: 0; aspect-ratio: 1.08 / 1; display: grid; place-items: center; isolation: isolate; background-image: linear-gradient(#a8b5c610 1px, transparent 1px), linear-gradient(90deg,#a8b5c610 1px,transparent 1px); background-size: 30px 30px; mask-image: none; }
.portrait::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, transparent 25%, var(--dark) 76%); }
.orbit { position: absolute; aspect-ratio: 1; transform: rotate(45deg); pointer-events: none; }
.orbit-outer { width: 62%; border: 1px solid #606675; }
.orbit-inner { width: 52%; border: 1px solid #a08032; }
.orbit-outer::before, .orbit-outer::after { position: absolute; content: ""; width: 8px; height: 8px; background: var(--gold); }
.orbit-outer::before { top: -4px; left: -4px; }
.orbit-outer::after { bottom: -4px; right: -4px; }
.portrait-frame { z-index: 1; width: 49%; max-width: 224px; padding: 8px; border: 1px solid #806c3a; background: #20242c; box-shadow: 0 15px 35px #0006; }
.portrait-frame img { width: 100%; height: auto; aspect-ratio: 1; }
.project-section { padding-block: 48px 68px; }
.section-head { margin-bottom: 23px; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .095em; color: #5a6674; }
.marker { display: flex; align-items: center; gap: 11px; }
.marker::before { content: ""; width: 8px; height: 8px; }
h2 { font-size: clamp(2rem, 4.5vw, 3.15rem); line-height: 1.08; letter-spacing: -.05em; margin: 8px 0 8px; }
.section-head > p:last-child:not(.eyebrow) { color: var(--muted); }



.project-head { display: flex; align-items: center; gap: 13px; }
.project-head img { border-radius: 6px; flex: none; background: #e9edf1; }








.data-note { font-size: .8125rem; color: #53606e; margin-top: 9px; }









.experience { border-block: 1px solid var(--line); background: #fff; }
.experience-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 45px; padding-block: 50px; }
.experience-copy { border-left: 2px solid var(--gold); padding-left: 21px; }
.experience-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.experience-meta span, .role-note { color: var(--muted); font-size: .875rem; }
.experience-copy > p + p { margin-top: 10px; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 45px; }
.contact .eyebrow, .contact p { color: #c4cbd5; }
.contact p { max-width: 36rem; }
.site-footer { border-top: 1px solid #343840; color: #b8c1cc; font-size: .875rem; }
.site-footer .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 14px; }
.site-footer a:hover { color: var(--gold); }
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { grid-template-columns: 1.23fr .77fr; }


}
@media (max-width: 580px) {
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: 56px; gap: 11px; }
  .nav nav { gap: 12px; font-size: .875rem; }
  .brand { gap: 8px; font-size: 1rem; }
  .hero-inner { display: block; padding-block: 25px 27px; }
  .portrait { display: none; }


  h1 { font-size: clamp(3.05rem, 12vw, 4.6rem); }
  .hero h1 br { display: none; }
  .hero h1 br::after { content: " "; }
  /* Keep the title on two deliberate lines in the English mobile hero. */
  html[lang="en"] .hero h1 br { display: initial; }
  .hero-sub { margin-top: 13px; }
  .pitch { margin-top: 7px; }
  .availability { margin-top: 14px; }
  .project-section { padding-block: 28px 37px; }
  .section-head { margin-bottom: 16px; }

  .project-head img { width: 45px; height: 45px; }



  .experience-inner, .contact-inner { display: block; padding-block: 30px; }
  .contact-inner > div + div { margin-top: 17px; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 30px); }
  .nav nav { gap: 8px; font-size: .8125rem; }

}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }


/* Quiet status and icon links, with room for Chinese copy. */
.availability { margin-top: 15px; color: #d9dfe7; font-size: .9375rem; }
.socials { gap: 7px; margin-top: 14px; font-size: .875rem; color: #e0e4eb; }
.socials a, .social-email { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 5px 9px; border: 1px solid #414853; border-radius: 5px; }
.socials a:hover { border-color: #9a7933; background: #22252b; }
.socials svg { flex: none; color: #c5cdd7; }
.socials a:hover svg { color: var(--gold); }
.contact .socials { margin-top: 0; flex-shrink: 0; }
html[lang="zh-CN"] body { font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Segoe UI", sans-serif; line-height: 1.75; }
html[lang="zh-CN"] :is(h2, h3) { letter-spacing: .015em; line-height: 1.28; }
html[lang="zh-CN"] :is(.pitch, .hero-sub, .project-summary, .project-foot details p, .experience-copy p, .contact p) { letter-spacing: .02em; }
html[lang="zh-CN"] .metrics dt { line-height: 1.5; }
html[lang="zh-CN"] .hero h1 { font-size: clamp(2.1rem, 5.65vw, 4.85rem); }
@media (max-width: 820px) {
  .contact .socials { flex-shrink: 1; }
}
@media (max-width: 580px) {
  .socials { gap: 6px; }
  .socials a, .social-email { padding-inline: 7px; min-height: 40px; }
}
.socials .social-x { min-width: 36px; justify-content: center; }
@media (max-width: 580px) { .contact .socials { margin-top: 17px; } }

/* Flagship case studies, followed by a compact utility project. */
.hero .socials { margin-top: 21px; }
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.case-study, .case-compact { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 5px; }
.case-study { display: flex; flex-direction: column; justify-content: center; min-height: clamp(490px, 64svh, 650px); padding: clamp(24px, 4vw, 55px); border-top: 3px solid var(--ink); }
.case-study.visionance { border-top-color: var(--gold); }
.project-head { display: flex; align-items: center; gap: 14px; }
.project-head img { flex: none; border-radius: 7px; background: #e9edf1; }
.project-head h3 { font-size: clamp(1.45rem, 3.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.036em; margin-top: 3px; }
.case-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 62px); align-items: start; margin-top: 26px; }
.case-copy > p:not(.case-lead), .case-compact > p { color: #43505e; }
.case-lead { font-size: clamp(1.35rem, 2.75vw, 2.15rem); line-height: 1.23; font-weight: 740; letter-spacing: -.028em; margin-bottom: 10px; }
.case-study h4 { margin: 16px 0 4px; font-size: .95rem; }
.case-results { padding: clamp(17px, 2.5vw, 30px); background: #eef1f4; border-radius: 4px; }
.visionance .case-results { background: #faf5e5; }
.case-results h4 { margin: 0 0 13px; }
.case-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.visionance .case-metrics { grid-template-columns: 1fr; gap: 14px; }
.case-metrics > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-left: 2px solid #a4adb8; padding-left: 10px; }
.visionance .case-metrics > div { border-color: #c79813; }
.case-metrics dd { font-size: clamp(1.55rem, 3.4vw, 2.55rem); line-height: 1.09; letter-spacing: -.05em; font-weight: 780; font-variant-numeric: tabular-nums; }
.visionance .case-metrics > div:first-child dd { font-size: clamp(2.55rem, 5.7vw, 4.5rem); }
.case-metrics dt { margin-top: 4px; font-size: .875rem; line-height: 1.45; color: #43505e; }
.case-results .data-note { border-top: 1px solid #c8cbd0; margin-top: 17px; padding-top: 9px; }
.case-footer { margin-top: 23px; }
.project-visit { display: inline-flex; align-items: center; width: fit-content; min-height: 40px; padding: 6px 12px; border: 1px solid #d7b047; border-radius: 4px; color: #634900; font-size: .875rem; font-weight: 700; }
.project-visit:hover { background: #fff4cc; }
.case-compact { display: grid; grid-template-columns: minmax(210px,.8fr) minmax(0,1.55fr) auto; align-items: center; gap: 20px; padding: 21px clamp(20px, 4vw, 42px); }
.case-compact .project-head img { width: 45px; height: 45px; }
.case-compact h3 { font-size: clamp(1.14rem, 2vw, 1.4rem); }
html[lang="zh-CN"] .case-lead { letter-spacing: .025em; line-height: 1.37; }
html[lang="zh-CN"] :is(.case-copy > p:not(.case-lead), .case-compact > p) { letter-spacing: .02em; }
@media (max-width: 920px) {
  .case-compact { grid-template-columns: minmax(0,1fr) auto; }
  .case-compact > p { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 680px) {
  .case-study { min-height: 0; }
  .case-layout { grid-template-columns: 1fr; margin-top: 18px; }
  .case-study .project-head img { width: 48px; height: 48px; }
  .visionance .case-metrics { grid-template-columns: 1.35fr .9fr; }
  .visionance .case-metrics > div:first-child dd { font-size: clamp(1.85rem, 8.5vw, 2.55rem); }
}
@media (max-width: 480px) {
  .case-study { padding: 18px 16px; }
  .case-compact { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; padding: 15px 16px; }
  .case-compact > p { grid-column: auto; grid-row: auto; }
  .case-footer { margin-top: 16px; }
}
/* Content expansion: keep the existing layout and visual hierarchy. */
.hero h1,
html[lang="zh-CN"] .hero h1 { font-size: clamp(2.05rem, 4.65vw, 4.1rem); line-height: 1.03; letter-spacing: -.048em; }
html[lang="zh-CN"] .hero h1 { line-height: 1.16; letter-spacing: .018em; }
.hero h1 br { display: revert; }
.hero h1 br::after { content: none; }
.hero-capability { color: #c4cbd5; margin-top: 8px; max-width: 36rem; }
.visionance .case-metrics { grid-template-columns: minmax(0, 1.22fr) minmax(0, .9fr); }
.visionance .case-metrics > div:first-child { grid-column: 1 / -1; }
.visionance .efficiency-metric dd { color: #755403; font-size: clamp(1.7rem, 3.5vw, 2.75rem); }
.case-equivalent { color: #514526; margin-top: 16px; font-size: .9rem; }
.experience-entry + .experience-entry { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.experience-entry > p:last-child { margin-top: 6px; }
@media (max-width: 580px) {
  .hero h1, html[lang="zh-CN"] .hero h1 { font-size: clamp(2rem, 8.5vw, 3rem); }
  .case-equivalent { margin-top: 12px; }
}

/* Header and hero refinements. */
.nav { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 12px; }



.nav nav { gap: clamp(4px, .65vw, 9px); }


.portrait-card { position: relative; z-index: 1; width: min(55%, 224px); text-align: center; }
.portrait-card .portrait-frame { width: 100%; }
.portrait figcaption { width: fit-content; margin: 10px auto 0; line-height: 1.4; }
.portrait .orbit { left: 50%; transform: translate(-50%, -50%) rotate(45deg); }
.availability { width: fit-content; max-width: 100%; padding: 4px 0 4px 11px; margin-top: 18px; border-left: 2px solid var(--gold); color: #f3d77c; font-weight: 650; line-height: 1.45; }
@media (max-width: 580px) {
  .nav { column-gap: 5px; }

  .nav nav { gap: 4px; }
  .nav nav a { padding-inline: clamp(6px, 2vw, 10px); }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .portrait { order: -1; display: block; align-self: start; aspect-ratio: auto; background: none; }
  .portrait::before, .portrait .orbit { display: none; }
  .portrait-card { width: auto; max-width: none; }
  .portrait-card .portrait-frame { width: 66px; margin-inline: auto; padding: 3px; border-radius: 6px; box-shadow: none; }
  .portrait-frame img { border-radius: 3px; }
  .portrait figcaption { padding: 0; margin-top: 6px; }
  .portrait .name { font-size: 1rem; }
  .portrait .identity-role { font-size: .8125rem; }
}

/* Language switcher and decorative header mark. */
.nav > .brand { width: 44px; min-height: 44px; justify-content: center; justify-self: start; pointer-events: none; }
.language-menu { position: relative; z-index: 5; justify-self: end; color: #eef0f3; font-size: .875rem; }
.nav nav a, .language-menu > summary { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 10px; border: 1px solid #484d57; border-radius: 5px; color: #eef0f3; cursor: pointer; white-space: nowrap; }
.language-menu > summary { list-style: none; }
.language-menu > summary::-webkit-details-marker { display: none; }
.nav nav a:is(:hover, :focus-visible), .language-menu > summary:hover, .language-menu[open] > summary { border-color: var(--gold); }
.nav-icon, .language-globe { color: #dfc86d; flex: none; }
.language-chevron { color: #bfc5cf; flex: none; }
.language-menu[open] .language-chevron { transform: rotate(180deg); }
.language-options { position: absolute; inset: calc(100% + 6px) 0 auto auto; min-width: 126px; margin: 0; padding: 4px; list-style: none; background: #232730; border: 1px solid #484d57; border-radius: 5px; box-shadow: 0 8px 20px #0005; }
.language-options a { display: block; padding: 7px 10px; border-radius: 3px; }
.language-options a:hover, .language-options a:focus-visible { background: #303640; }
.language-options a[aria-current="page"] { color: #f3d77c; font-weight: 700; }
.portrait-lines { position: absolute; inset: 0 0 23%; overflow: hidden; pointer-events: none; mask-image: linear-gradient(#000 76%, transparent); }
.portrait-lines .orbit { top: 57%; }
.portrait-lines .orbit-outer { width: 55%; }
.portrait-lines .orbit-inner { width: 45%; }
@media (max-width: 580px) {
  .nav { grid-template-columns: auto minmax(0, 1fr) auto; }
  .nav > nav { justify-self: center; }
  .nav > .brand { width: 16px; min-height: 36px; }
  .language-menu > summary { gap: 5px; padding-inline: 6px; min-height: 44px; }
  .language-menu > summary span { display: none; }
  .portrait-lines { display: none; }
}
@media (max-width: 360px) {
  .nav nav { gap: 2px; }
  .nav nav a { padding-inline: 4px; }
}

/* English display titles */
html[lang="en"] .hero h1 { letter-spacing: -.018em; }
html[lang="en"] h2 { letter-spacing: -.012em; }
html[lang="en"] .project-head h3,
html[lang="en"] .case-lead { letter-spacing: -.008em; }

/* Section navigation icons. */
.nav-icon { width: 14px; height: 14px; }
.nav nav a:is(:hover, :focus-visible) .nav-icon { color: var(--gold); }
@media (max-width: 580px) {
  .nav nav a { flex-direction: column; gap: 2px; min-height: 44px; line-height: 1.18; }
  .nav-icon { width: 14px; height: 14px; }
}
