:root {
  --black: #0b0c0e;
  --graphite: #17191c;
  --graphite-2: #23262b;
  --line-dark: #2e3238;
  --ink: #111214;
  --text: #2b2e33;
  --muted: #676c74;
  --line: #e3e4e6;
  --tint: #f4f4f3;
  --white: #ffffff;
  --accent: #4f8dff;
  --accent-ink: #2f6fe4;
  --font: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.no-scroll { overflow: hidden; }
.lang-zh { font-size: 16px; line-height: 1.75; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, .h3 { color: var(--ink); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.035em; line-height: 1.03; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.028em; }
h3, .h3 { font-size: 1.2rem; letter-spacing: -0.012em; line-height: 1.3; }
.lang-zh h1, .lang-zh h2 { letter-spacing: 0; line-height: 1.22; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--white); color: var(--ink); padding: 10px 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.lang-zh .eyebrow { letter-spacing: .08em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 44rem; }
.lead-sm { font-size: 1.1rem; color: var(--ink); }
.num { display: block; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--accent-ink); letter-spacing: .08em; margin-bottom: 1.25rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--radius); font: 500 .95rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .875rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #dfe3ea; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn[disabled] { opacity: .55; cursor: progress; }
.link-arrow { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }
.section-dark .link-arrow { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; color: #fff; border-bottom: 1px solid transparent; transition: border-color .2s; }
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would trap the fixed mobile menu inside it. */
.site-header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(11,12,14,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header.scrolled { border-bottom-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark { width: 22px; height: 22px; color: #fff; }
.brand-text { font-weight: 600; letter-spacing: .2em; font-size: .95rem; display: flex; flex-direction: column; line-height: 1.1; }
.brand-text span { font-weight: 400; letter-spacing: .04em; font-size: .72rem; color: #9aa0a8; margin-top: 2px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: block; padding: 8px 12px; color: #c4c8ce; text-decoration: none; font-size: .9rem; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; }
.primary-nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { color: #c4c8ce; font-size: .875rem; text-decoration: none; padding: 6px 4px; }
.lang-switch:hover { color: #fff; }
.menu-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; color: #fff; cursor: pointer; position: relative; }
.menu-toggle span[aria-hidden], .menu-toggle span[aria-hidden]::before { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle span[aria-hidden] { top: 16px; }
.menu-toggle span[aria-hidden]::before { content: ''; left: 0; right: 0; top: 7px; }
.nav-open .menu-toggle span[aria-hidden] { transform: translateY(3.5px) rotate(45deg); }
.nav-open .menu-toggle span[aria-hidden]::before { transform: translateY(-7px) rotate(-90deg); }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .primary-nav { position: fixed; inset: 72px 0 0 0; background: var(--black); padding: 24px var(--gutter); visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
  .nav-open .primary-nav { visibility: visible; opacity: 1; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { font-size: 1.5rem; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: #fff; }
  .primary-nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .header-actions { margin-left: auto; }
}

/* Hero */
.hero { background: var(--black); color: #c9cdd3; padding-top: clamp(56px, 10vw, 120px); overflow: hidden; }
.hero h1 { color: #fff; max-width: 13em; }
.hero .eyebrow, .page-hero .eyebrow, .section-dark .eyebrow { color: #8b9199; }
.hero .lead { color: #b5bac1; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero-visual { color: #d7dbe0; margin-top: clamp(32px, 6vw, 64px); }
.illus-hero { width: 100%; max-width: 1400px; margin: 0 auto; height: auto; }
.illus-labels { fill: #7d838b; font-family: var(--font); }
.concept-note { font-size: .75rem; letter-spacing: .04em; color: #7d838b; margin: 12px 0 0; padding-bottom: 20px; }
.section .concept-note { color: var(--muted); margin-top: 20px; padding: 0; }

.page-hero { background: var(--black); color: #b5bac1; padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.8rem); max-width: 16em; }
.page-hero .lead { color: #b5bac1; }

/* SVG animation */
.flow { stroke-dasharray: 6 8; }
@media (prefers-reduced-motion: no-preference) {
  .flow { animation: flow 2.4s linear infinite; }
  .flow-late { animation-duration: 3.2s; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-visual { animation: fade 1.4s .2s var(--ease) both; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade { from { opacity: 0; } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--graphite); color: #b5bac1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose p { max-width: 38rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.pillars, .numbered-grid, .cap-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pillars { grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.pillar { padding: 32px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar p { color: var(--muted); }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0 12px; border-left: 0; border-top: 1px solid var(--line); }
  .pillar:first-child { border-top: 0; }
}

.numbered-grid { grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.numbered-grid li, .cap-grid li { border-top: 1px solid var(--line); padding: 32px 0 16px; }
.numbered-grid p, .cap-grid p { color: var(--muted); }
.cap-grid { grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.cap-grid li { border-top-color: var(--ink); }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid, .numbered-grid { grid-template-columns: 1fr; } }

.flow-list { list-style: none; margin: 0; padding: 0; counter-reset: f; }
.flow-list li { display: grid; grid-template-columns: 10rem 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid #d8d9db; }
.flow-list li strong { color: var(--ink); font-weight: 600; }
.flow-list li span { color: var(--muted); }
.flow-list .flow-result { border-top: 2px solid var(--accent); }
.flow-list .flow-result strong { color: var(--accent-ink); }
@media (max-width: 520px) { .flow-list li { grid-template-columns: 1fr; gap: 2px; } }

.cards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); padding: 32px; text-decoration: none; margin: 0; transition: background .2s; }
a.card:hover { background: var(--tint); }
a.card h3::after { content: ' →'; color: var(--accent-ink); }
.card p { color: var(--muted); margin: 0; }
.figure-cards .card { padding: 24px 24px 28px; }
.figure-cards .illus { color: var(--ink); margin-bottom: 20px; background: var(--tint); }
.figure-cards text { fill: var(--muted); font-family: var(--font); }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }

.region-list { list-style: none; margin: 0; padding: 0; }
.region-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-dark); color: #fff; font-size: 1.15rem; }
.region-list li .muted { color: #7d838b; font-size: .9rem; }

.audience-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.audience-grid a { display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 28px 0; text-decoration: none; height: 100%; }
.audience-grid li + li a { padding-left: 24px; border-left: 1px solid var(--line); }
.audience-grid strong { color: var(--ink); font-weight: 600; }
.audience-grid strong::after { content: ' →'; color: var(--accent-ink); }
.audience-grid span { color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid li:nth-child(3) a { padding-left: 0; border-left: 0; }
  .audience-grid li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid li + li a { padding-left: 0; border-left: 0; }
  .audience-grid li + li { border-top: 1px solid var(--line); }
}

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.process::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--line-dark); }
.process::after { content: ''; position: absolute; left: 0; top: 6px; height: 1px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 2.2s var(--ease); }
.process.in::after { transform: scaleX(1); }
.process-step { position: relative; padding: 36px 20px 0 0; }
.process-dot { position: absolute; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--graphite); border: 1px solid #5b6068; transition: background .3s, border-color .3s; transition-delay: calc(var(--i) * .42s); }
.process.in .process-dot { background: var(--accent); border-color: var(--accent); }
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: .92rem; color: #9aa0a8; }
.process-step .num { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .js .process-step { opacity: .25; transition: opacity .6s var(--ease); transition-delay: calc(var(--i) * .42s); }
  .js .process.in .process-step { opacity: 1; }
}
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; padding-left: 32px; }
  .process::before, .process::after { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .process::after { transform: scaleY(0); transform-origin: top; }
  .process.in::after { transform: scaleY(1); }
  .process-step { padding: 0 0 28px; }
  .process-dot { left: -32px; top: 2px; }
  .process-step .num { margin-bottom: .4rem; }
}
.disclaimer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: #8b9199; max-width: 52rem; }
.disclaimer-light { border-top-color: var(--line); color: var(--muted); }

/* Solutions & partners */
.solution { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--ink); }
.solution:last-child { border-bottom: 1px solid var(--line); }
.solution h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 10px 0 10px 24px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1.15em; width: 10px; height: 1px; background: var(--accent-ink); }
.partner-list { display: grid; gap: 0; }
.partner { display: grid; grid-template-columns: 5fr 5fr auto; gap: 48px; align-items: start; padding: 44px 0; border-top: 1px solid var(--ink); }
.partner p { color: var(--muted); }
@media (max-width: 860px) {
  .solution, .partner { grid-template-columns: 1fr; gap: 20px; }
  .partner .btn { justify-self: start; }
}

/* Projects */
.filters { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.filter { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; color: var(--text); transition: all .15s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.results-count { margin: 20px 0; }
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; }
.project[hidden] { display: none; }
.project-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { font-size: .75rem; letter-spacing: .04em; padding: 4px 10px; background: var(--tint); color: var(--text); }
.tag-sample { background: #fff4e0; color: #8a5a00; }
.project p { color: var(--muted); }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 12px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.project-meta dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.project-meta dd { margin: 2px 0 0; color: var(--ink); font-size: .95rem; }
.stage-bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: auto; }
.stage-bar span { height: 3px; background: var(--line); }
.stage-bar span.on { background: var(--accent); }
.empty { padding: 40px 0; color: var(--muted); }
@media (max-width: 760px) { .project-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(40px, 6vw, 96px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #c9cbcf; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; transition: border-color .15s; appearance: none; -webkit-appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid rgba(79,141,255,.25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #c4302b; }
.error { color: #b3261e; font-size: .85rem; margin: 6px 0 0; }
.hint { color: var(--muted); font-size: .8rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot p { margin: 0; }
.form-status { margin-top: 24px; padding: 14px 16px; border-left: 3px solid var(--muted); background: var(--tint); font-size: .95rem; }
.form-status.is-success { border-color: #1f8a4c; background: #edf7f0; color: #0f5130; }
.form-status.is-error { border-color: #c4302b; background: #fbeeed; color: #7d1a15; }
.form-status.is-pending { border-color: var(--accent); }
.contact-aside h2 { font-size: 1.05rem; margin-top: 0; }
.contact-aside > * + h2 { margin-top: 40px; }
.contact-details { margin: 0; }
.contact-details div { padding: 12px 0; border-top: 1px solid var(--line); }
.contact-details dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-details dd { margin: 2px 0 0; }
.next-steps { padding-left: 1.2em; color: var(--muted); }
.next-steps li { margin-bottom: 10px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--black); color: #9aa0a8; padding: clamp(56px, 8vw, 96px) 0 32px; }
.footer-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-cta-title { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 500; letter-spacing: -0.015em; max-width: 30rem; margin: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0; }
.brand-footer { color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.footer-links a { display: inline-block; padding: 5px 0; color: #c4c8ce; text-decoration: none; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-contact a { color: #c4c8ce; }
.footer-legal { border-top: 1px solid var(--line-dark); padding-top: 24px; color: #6f757d; }
.footer-legal p { max-width: 60rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
