/* FAC site styles for the redesigned layout (homepage, EN and ZH).
   Plain CSS, no framework. Motion is opt-in via the .fac-js class (set in <head>)
   and is switched off for visitors who prefer reduced motion. */

:root {
  --bg: #ffffff;
  --surface: #f4f6fa;
  --surface-2: #e9edf4;
  --line: #e1e5ed;
  --line-strong: #c3cad8;
  --navy: #050c43;
  --navy-2: #121b5c;
  --ink: #111633;
  --text: #3b4057;
  --muted: #5e6378;
  --gold: #c5a645;
  --success-bg: #ecf7f0;
  --success: #17603a;
  --error-bg: #fdf0ef;
  --error: #a3271c;
  --font: "Plus Jakarta Sans", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zh: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
html:lang(zh) body { line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); }
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) h3 { letter-spacing: 0 !important; }
.zh-text { font-family: var(--zh); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--gold); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 8px; }
.skip:focus { left: 12px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border: 1px solid transparent; border-radius: 10px; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; -webkit-appearance: none; appearance: none; transition: background-color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: var(--navy); }
.link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
.label { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.on-dark .label { color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand img { width: auto; height: 72px; }
.brand-wide img { height: 48px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a:not(.btn) { display: block; padding: 9px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: background-color .15s; }
.nav-links > li > a:not(.btn):hover { background: var(--surface); }
.nav-links .btn { margin-left: 10px; padding: 11px 18px; font-size: 14.5px; }
.lang-switch { display: flex; align-items: center; margin-left: 6px; padding: 3px; background: var(--surface); border-radius: 9px; }
.lang-switch a { padding: 5px 9px; border-radius: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; transition: color .15s, background-color .15s; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current] { background: #fff; color: var(--navy); }
.lang-switch a[lang="zh"] { font-family: var(--zh); }
.lang-mobile { display: none; }
.nav-toggle { display: none; padding: 10px 14px; font: 600 15px/1 var(--font); color: var(--navy); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }

/* Services mega menu */
.has-menu { position: static; }
.has-menu > a { display: flex !important; align-items: center; gap: 4px; }
.chev { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.has-menu:hover .chev, .has-menu:focus-within .chev { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% - 8px); left: var(--gutter); right: var(--gutter); z-index: 50; padding-top: 8px; visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .22s var(--ease), visibility 0s linear .22s; }
.has-menu:hover .mega, .has-menu:focus-within .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 8px; list-style: none; margin: 0; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -12px rgba(5, 12, 67, .18); }
.mega-inner a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; transition: background-color .15s; }
.mega-inner a:hover { background: var(--surface); }
.mega-inner .nm { display: block; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.mega-inner .ds { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }
.sub-toggle { display: none; }

/* Hero */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 20ch; margin-bottom: 22px; font-size: clamp(2.2rem, 3.7vw, 3.3rem); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
html:lang(zh) .hero h1 { max-width: 16em; line-height: 1.25; }
.hero .lede { max-width: 50ch; margin: 0 0 32px; font-size: clamp(1.04rem, 1.3vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.call { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 2px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--gold); transition: border-color .2s; }
.call:hover { border-bottom-color: var(--navy); }
.call svg { width: 18px; height: 18px; }
.hero-photo { margin: 0; aspect-ratio: 1 / 1.08; overflow: hidden; border-radius: 20px; background: var(--surface-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 18%; }

/* Partners ticker */
.partners-inner { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.partners h2 { font-size: 14px; font-weight: 600; color: var(--muted); }
.marquee { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 64px; margin: 0; padding: 0 64px 0 0; list-style: none; }
.marquee img { width: auto; height: 40px; transition: transform .3s var(--ease); }
.marquee li:hover img { transform: scale(1.06); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.surface { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head h2, .h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.section-head p { margin: 14px 0 0; font-size: 1.08rem; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; max-width: none; }
.head-row > div { max-width: 680px; }

/* Services */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; transition: border-color .2s; }
.svc-card:hover { border-color: var(--line-strong); }
.svc-card img { width: 100%; height: 110px; margin-bottom: 20px; object-fit: contain; transition: transform .5s var(--ease); }
.svc-card:hover img { transform: translateY(-4px) scale(1.03); }
.svc-card h3 { padding-right: 28px; font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.svc-card .en { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.svc-card p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.svc-card:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.svc-card .go { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--navy); background: var(--surface); border-radius: 50%; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .3s var(--ease); }
.svc-card .go svg { width: 16px; height: 16px; }
.svc-card:hover .go, .svc-card:focus-visible .go { opacity: 1; transform: none; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-copy h2 { margin-bottom: 20px; }
.about-copy p { margin: 0 0 1em; }
.numbers { margin: 0; border-top: 2px solid var(--gold); }
.numbers div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.numbers dt { font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.numbers dd { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.collab { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 6vw, 96px); margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.collab h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.015em; }
.collab p { margin: 0 0 1em; }

/* Team */
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.people a { display: block; text-decoration: none; }
.people .ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.people img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 15%); transform: scale(var(--z, 1)); transform-origin: var(--pos, 50% 15%); mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.people a:hover img { transform: scale(calc(var(--z, 1) * 1.05)); }
.people .nm { display: block; margin-top: 12px; font-weight: 700; color: var(--navy); }
.people .tt { display: block; font-size: 14px; color: var(--muted); }
.people a:hover .nm { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Values and why choose us */
.why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.values { padding: clamp(28px, 3.5vw, 44px); background: var(--navy); border-radius: 20px; color: rgba(255, 255, 255, .78); }
.values h2 { margin-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--gold); }
.values .zh-big { margin: 0 0 20px; font: 700 clamp(2.2rem, 3.6vw, 3.1rem)/1.3 var(--zh); letter-spacing: .04em; color: #fff; }
.values .zh-big span { display: inline-block; }
.values .en { margin: 0 0 16px; font-size: 1.15rem; font-weight: 600; line-height: 1.4; color: #fff; }
.values .note { margin: 0; font-size: 15px; }
.reasons h2 { margin-bottom: 28px; }
.reason-list { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; }
.reason-list > div { padding-top: 16px; border-top: 1px solid var(--line); transition: border-color .3s; }
.reason-list > div:hover { border-top-color: var(--gold); }
.reason-list .num { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.reason-list h3 { margin-bottom: 8px; font-size: 1.1rem; font-weight: 700; }
.reason-list p { margin: 0; font-size: 15px; }

/* Contact */
.contact-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.contact-info { padding: clamp(28px, 4vw, 52px); background: var(--navy); color: rgba(255, 255, 255, .78); }
.contact-info h2 { margin-bottom: 32px; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.offices > div { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 15px; }
.offices h3 { margin-bottom: 6px; font-size: 15px; font-weight: 600; color: #fff; }
.offices p { margin: 0 0 6px; }
.offices a { font-weight: 600; color: #fff; text-decoration-color: var(--gold); text-underline-offset: 4px; transition: text-decoration-color .2s; }
.offices a:hover { text-decoration-color: #fff; }
.contact-form { padding: clamp(28px, 4vw, 52px); }
.contact-form h3 { margin-bottom: 24px; font-size: 1.3rem; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 18px; }
.field span { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 13px 14px; font: 400 16px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #cdd3df; border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: #aeb6c7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(5, 12, 67, .12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--error); }
.contact-form input[type="submit"] { min-width: 140px; }
.w-form-done, .w-form-fail { display: none; }
.form-done { padding: 28px; background: var(--success-bg); border-radius: 12px; color: var(--success); font-weight: 600; animation: pop .4s var(--ease); }
.form-fail { margin-top: 16px; padding: 14px 16px; background: var(--error-bg); border-radius: 10px; color: var(--error); font-weight: 600; animation: pop .4s var(--ease); }
.form-done p, .form-fail p { margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

/* Footer */
.site-footer { padding: 56px 0 28px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); gap: 32px; padding-bottom: 40px; }
.foot-brand img { width: 100%; max-width: 260px; height: auto; }
.foot-col h2 { margin-bottom: 12px; font-size: 14px; font-weight: 700; color: var(--ink); }
.foot-col p { margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--muted); text-decoration: none; transition: color .15s; }
.foot-col a:hover { color: var(--navy); text-decoration: underline; }
.social { display: flex !important; gap: 12px !important; margin-top: 18px !important; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, transform .2s var(--ease); }
.social a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; }
.foot-bottom p { margin: 0; }
.foot-bottom ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: var(--navy); }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: grid; place-items: center; width: 46px; height: 46px; color: #fff; background: var(--navy); border: 0; border-radius: 12px; cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease), background-color .2s; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-2); }
.to-top svg { width: 20px; height: 20px; }

/* Motion (only when JS is running and the visitor hasn't asked for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-copy > * { animation: rise .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-photo { animation: unveil 1.1s var(--ease) .1s both; }
  .hero-photo img { transform: translateY(var(--py, 0)) scale(1.1); will-change: transform; }
  .fac-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .fac-js [data-reveal].is-in { opacity: 1; transform: none; }
  .fac-js .values .zh-big span { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.25s + var(--c, 0) * 60ms); }
  .fac-js .values.is-in .zh-big span { opacity: 1; transform: none; }
  .site-nav { transition: opacity .2s, transform .25s var(--ease), visibility 0s linear .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes unveil { from { opacity: 0; clip-path: inset(10% 0 0 0 round 20px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 20px); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { width: auto; animation: none; }
  .marquee ul { flex-wrap: wrap; justify-content: center; gap: 24px 48px; padding: 0; }
  .marquee ul[aria-hidden] { display: none; }
}

/* Responsive */
@media (min-width: 1081px) {
  .values { position: sticky; top: calc(var(--header-h) + 24px); }
}
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .why-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav-links > li > a:not(.btn) { padding-left: 8px; padding-right: 8px; }
  .nav-links .btn { margin-left: 6px; }
  .lang-switch { margin-left: 2px; }
}
@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding: 8px var(--gutter) 20px; background: #fff; border-bottom: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-8px); }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links > li + li { border-top: 1px solid var(--line); }
  .nav-links > li > a:not(.btn) { padding: 14px 0; border-radius: 0; font-size: 17px; }
  .nav-links > li > a:not(.btn):hover { background: none; }
  .nav-links .lang { display: none; }
  .header-inner { gap: 8px; }
  .lang-switch { display: inline-flex; margin: 0; }
  .lang-mobile { flex-shrink: 0; margin-left: auto; border: 1px solid var(--line); border-radius: 10px; }
  .lang-mobile, .nav-toggle { flex-shrink: 0; height: 40px; }
  .nav-links > li:last-child { padding-top: 16px; }
  .nav-links .btn { display: flex; margin: 0; }
  .chev { display: none; }
  .has-menu { display: flex; flex-wrap: wrap; align-items: center; }
  .has-menu > a { flex: 1; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; color: var(--navy); background: none; border: 0; border-radius: 10px; cursor: pointer; }
  .sub-toggle svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
  .has-menu.is-expanded .sub-toggle svg { transform: rotate(180deg); }
  .mega { display: none; flex-basis: 100%; position: static; padding: 0 0 14px; visibility: visible; opacity: 1; transform: none; transition: none; }
  .has-menu.is-expanded .mega { display: block; }
  .mega-inner { grid-template-columns: 1fr; gap: 0; padding: 6px; background: var(--surface); border: 0; border-radius: 12px; box-shadow: none; }
  .mega-inner a { padding: 11px 12px; }
  .mega-inner a:hover, .mega-inner a[aria-current] { background: #fff; }
  .mega-inner .nm { font-size: 15.5px; font-weight: 500; }
  .mega-inner a[aria-current] .nm { font-weight: 700; }
  .mega-inner .ds { display: none; }
  .brand { min-width: 0; }
  .brand img { height: 60px; }
  .brand-wide img { height: auto; max-height: 40px; max-width: 100%; }
  .hero-grid, .about-grid, .collab, .contact-card { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .partners-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .reason-list, .form-row { grid-template-columns: 1fr; }
  .form-row { gap: 0; }
  .foot-top { grid-template-columns: 1fr; gap: 24px; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 16px 48px 16px 16px; }
  .svc-card img { grid-row: 1 / span 2; height: 72px; margin: 0; }
  .svc-card h3 { align-self: end; padding-right: 0; font-size: 1.02rem; }
  .svc-card p { align-self: start; margin-top: 2px; font-size: 14px; }
  .svc-card .go { top: 50%; right: 12px; opacity: 1; transform: translateY(-50%); }
  .svc-card:hover .go { transform: translateY(-50%); }
}

/* =====================================================================
   Inner pages
   ===================================================================== */

/* Page header with breadcrumb */
.page-hero { padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .15s; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { font-weight: 600; color: var(--navy); }
.page-hero h1 { max-width: 22ch; font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
html:lang(zh) .page-hero h1 { line-height: 1.3; }
.page-hero .lede { max-width: 62ch; margin: 18px 0 0; font-size: clamp(1.04rem, 1.3vw, 1.16rem); }
.page-hero .lede p { margin: 0 0 1em; }
.page-hero .btn { margin-top: 28px; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero-split figure { margin: 0; aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: 20px; background: var(--surface-2); }
.page-hero-split figure img { width: 100%; height: 100%; object-fit: cover; }

/* Article layout (service pages, legal pages) */
.article-wrap { padding: 0 0 clamp(72px, 9vw, 112px); }
.article-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-grid.toc-left { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.prose { max-width: 760px; font-size: 16.5px; line-height: 1.75; }
html:lang(zh) .prose { line-height: 1.9; }
.prose > :first-child { margin-top: 0; }
.prose .label { margin-bottom: 4px; }
.prose h2 { margin: 2.2em 0 .6em; padding-top: 1.1em; border-top: 1px solid var(--line); font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose .label + h2, .prose > h2:first-child { margin-top: .4em; padding-top: 0; border-top: 0; }
.prose h3 { margin: 1.6em 0 .4em; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.prose p { margin: 0 0 1em; }
.prose strong { font-weight: 700; color: var(--ink); }
.prose .lead-in { margin: 1.4em 0 .5em; }
.prose a { font-weight: 600; color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding: 0; list-style: none; }
.prose li { position: relative; margin: 0 0 .55em; padding-left: 26px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; background: var(--gold); border-radius: 2px; }
.prose ol { counter-reset: item; }
.prose ol > li { counter-increment: item; padding-left: 34px; }
.prose ol > li::before { content: counter(item); position: absolute; left: 0; top: .2em; display: grid; place-items: center; width: 22px; height: 22px; font-size: 12.5px; font-weight: 700; line-height: 1; color: var(--navy); background: var(--surface-2); border-radius: 6px; }
.prose li .li-lead { display: block; color: var(--ink); }
.prose li .li-desc { display: block; margin-top: 2px; color: var(--muted); }
.prose ul.list-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prose ul.list-big > li { margin: 0; padding: 14px 16px 14px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--ink); transition: border-color .2s; }
.prose ul.list-big > li:hover { border-color: var(--line-strong); }
.prose ul.list-big > li::before { left: 18px; top: 1.45em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); font-size: 1.15rem; font-weight: 600; color: var(--navy); }
.anchor { display: block; position: relative; top: calc(-1 * var(--header-h) - 24px); }

/* FAQ accordions */
.faq { margin: 0 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.faq:hover, .faq[open] { border-color: var(--line-strong); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 600; color: var(--navy); line-height: 1.45; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 28px; height: 28px; background: var(--surface); border-radius: 50%; transition: background-color .2s, transform .3s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq[open] summary i { background: var(--gold); transform: rotate(180deg); }
.faq[open] summary i::after { transform: rotate(0deg); }
.faq-body { padding: 0 18px 6px; }
.faq[open] .faq-body { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.side-card h2 { margin-bottom: 10px; font-size: 1rem; font-weight: 700; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 -10px; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; color: var(--text); text-decoration: none; transition: background-color .15s, color .15s; }
.side-list a:hover { background: #fff; color: var(--navy); }
.side-list a[aria-current] { background: #fff; color: var(--navy); font-weight: 700; box-shadow: inset 3px 0 0 var(--gold); }
.side-list svg { flex: none; width: 14px; height: 14px; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .2s var(--ease); }
.side-list a:hover svg, .side-list a[aria-current] svg { opacity: 1; transform: none; }
.side-cta { padding: 24px; background: var(--navy); border-radius: 16px; color: rgba(255, 255, 255, .8); }
.side-cta h2 { margin-bottom: 14px; font-size: 1.2rem; font-weight: 700; line-height: 1.3; color: #fff; }
.side-cta p { margin: 0 0 6px; font-size: 14.5px; }
.side-cta a:not(.btn) { font-weight: 600; color: #fff; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.side-cta .btn { width: 100%; margin-top: 14px; background: #fff; color: var(--navy); }
.side-cta .btn:hover { background: var(--surface-2); }

/* Table of contents (legal pages) */
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc h2 { margin-bottom: 10px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; margin-left: -2px; padding: 6px 0 6px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--navy); }
.toc a.is-active { font-weight: 600; color: var(--navy); border-left-color: var(--gold); }

/* CTA band */
.cta-band { padding: 0 0 clamp(72px, 9vw, 112px); }
.cta-band-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); overflow: hidden; background: var(--navy); border-radius: 20px; color: rgba(255, 255, 255, .8); }
.cta-band-inner::after { content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; border: 2px solid rgba(197, 166, 69, .35); border-radius: 50%; pointer-events: none; }
.cta-band h2 { max-width: 20ch; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cta-band .btn { background: #fff; color: var(--navy); }
.cta-band .btn:hover { background: var(--surface-2); }
.cta-band .call { color: #fff; }
.cta-band .call:hover { border-bottom-color: #fff; }

/* About page */
.values-block { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); overflow: hidden; background: var(--navy); border-radius: 20px; color: rgba(255, 255, 255, .8); }
.values-block .vb-copy { padding: clamp(28px, 4vw, 56px); }
.values-block h2 { margin-bottom: 20px; font-size: 14px; font-weight: 600; color: var(--gold); }
.values-block blockquote { margin: 0 0 18px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: #fff; }
.values-block p { margin: 0; }
.values-block figure { min-height: 260px; margin: 0; }
.values-block figure img { width: 100%; height: 100%; object-fit: cover; }
.team-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; margin: clamp(40px, 5vw, 56px) 0 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.team-head h3 { font-size: 1.25rem; font-weight: 700; }
.team-head p { margin: 0; color: var(--muted); }
.people.team-all { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }

/* Qualifications */
.cert-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.cert { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; font: inherit; color: inherit; background: none; border: 0; cursor: zoom-in; }
.cert .doc { position: relative; display: block; aspect-ratio: 4 / 5; padding: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.cert .doc img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.cert:hover .doc { border-color: var(--line-strong); }
.cert:hover .doc img { transform: scale(1.04); }
.cert .zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; color: #fff; background: var(--navy); border-radius: 50%; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease); }
.cert .zoom svg { width: 18px; height: 18px; }
.cert:hover .zoom, .cert:focus-visible .zoom { opacity: 1; transform: none; }
.cert .ttl { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--navy); }

/* Lightbox */
.lightbox { width: min(960px, 94vw); max-width: none; max-height: 94vh; padding: 0; overflow: visible; background: transparent; border: 0; }
.lightbox::backdrop { background: rgba(5, 12, 67, .82); }
.lightbox[open] { animation: lb-in .3s var(--ease); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lightbox figure { display: grid; justify-items: center; gap: 14px; margin: 0; }
.lightbox img { width: auto; max-width: 100%; max-height: 80vh; background: #fff; border-radius: 10px; }
.lightbox figcaption { max-width: 60ch; text-align: center; font-weight: 600; color: #fff; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; color: var(--navy); background: #fff; border: 0; border-radius: 50%; cursor: pointer; transition: transform .2s var(--ease); }
.lb-btn:hover { transform: scale(1.06); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: -16px; right: -16px; }
.lb-prev { left: -64px; top: 45%; }
.lb-next { right: -64px; top: 45%; }

/* Case studies */
.client-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.client-grid li { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.client-grid li:hover { border-color: var(--line-strong); }
.client-grid img { width: auto; max-width: 100%; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s, transform .3s var(--ease); }
.client-grid li:hover img { filter: none; opacity: 1; transform: scale(1.04); }

/* Our services page */
.photo-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.photo-card { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .2s; }
.photo-card:hover { border-color: var(--line-strong); }
.photo-card .pic { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.photo-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.photo-card:hover .pic img { transform: scale(1.05); }
.photo-card .body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 34px 22px 22px; }
.photo-card .icon { position: absolute; top: -24px; left: 22px; display: grid; place-items: center; width: 48px; height: 48px; background: var(--navy); border: 3px solid #fff; border-radius: 12px; transition: background-color .2s; }
.photo-card:hover .icon { background: var(--navy-2); }
.photo-card .icon img { width: 24px; height: 24px; }
.photo-card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
.photo-card p { margin: 8px 0 18px; font-size: 14.5px; color: var(--muted); }
.photo-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--navy); }
.photo-card .more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.photo-card:hover .more svg { transform: translateX(4px); }

/* Contact page */
.contact-info > .offices:first-child > div:first-child { padding-top: 0; border-top: 0; }
.qr-block { margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .15); }
.qr-block p { margin: 0 0 14px; font-size: 14.5px; }
.qr-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 320px; }
.qr-pair figure { display: flex; flex-direction: column; margin: 0; padding: 10px; text-align: center; background: #fff; border-radius: 12px; }
.qr-pair img { width: 100%; }
.qr-pair figcaption { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--navy); }
.qr-link { display: block; color: inherit; text-decoration: none; }
.qr-link figure { height: 100%; transition: box-shadow .2s; }
.qr-link:hover figure { box-shadow: 0 0 0 3px var(--gold); }
.qr-open, .qr-block .qr-tip { display: none; }
/* Phones can't scan their own screen: WhatsApp opens the chat directly; WeChat
   only adds contacts by scan, so offer to open the app and explain the album route */
@media (hover: none) {
  .qr-pair { max-width: 360px; }
  .qr-open { display: block; margin-top: 8px; padding: 10px 6px; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: #fff; background: var(--navy); border-radius: 8px; text-decoration: none; }
  .qr-block .qr-tip { display: block; max-width: 360px; margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; opacity: .85; }
}
.map-tabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: stretch; }
.map-tablist { display: grid; align-content: start; gap: 12px; }
.map-tab { display: block; width: 100%; padding: 20px; text-align: left; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.map-tab:hover { border-color: var(--line-strong); }
.map-tab[aria-selected="true"] { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--gold); }
.map-tab strong { display: block; margin-bottom: 4px; font-size: 1.05rem; color: var(--navy); }
.map-tab span { display: block; font-size: 14.5px; }
.map-tab em { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--navy); }
.map-tab em svg { width: 15px; height: 15px; }
.map-panel { min-height: 420px; overflow: hidden; background: var(--surface-2); border-radius: 16px; }
.map-panel iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
.map-panel[hidden] { display: none; }

/* Profile */
.profile-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.profile-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.profile-card .ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); border-radius: 12px; }
.profile-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; mix-blend-mode: multiply; }
.profile-card .nm { margin: 16px 4px 2px; font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.profile-card .tt { margin: 0 4px; color: var(--muted); }
.profile-card .link { margin: 16px 4px 4px; }

.page-hero.compact { padding-bottom: 8px; }
.page-hero.compact .crumbs { margin-bottom: 8px; }
.profile-h1 { margin: 0 0 6px; font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
html:lang(zh) .profile-h1 { letter-spacing: 0; }
.offices .h3-like { margin-bottom: 6px; font-size: 15px; font-weight: 600; color: #fff; }
.contact-form .form-title { margin-bottom: 24px; font-size: 1.3rem; font-weight: 700; }
.surface + .cta-band { padding-top: clamp(56px, 7vw, 88px); }

/* 404 */
.notfound { padding: clamp(48px, 8vw, 120px) 0; }
.notfound .code { display: block; margin-bottom: 8px; font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--surface-2); }

/* Inner page responsive */
@media (max-width: 1080px) {
  .article-grid, .article-grid.toc-left { grid-template-columns: 1fr; }
  .sidebar, .toc { position: static; }
  .sidebar .side-cta { order: -1; }
  .toc { padding: 18px 20px; background: var(--surface); border-radius: 14px; }
  .cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .photo-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people.team-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lb-prev { left: 8px; top: auto; bottom: -62px; }
  .lb-next { right: 8px; top: auto; bottom: -62px; }
}
@media (max-width: 900px) {
  .page-hero-split, .values-block, .map-tabs, .profile-grid { grid-template-columns: 1fr; }
  .page-hero-split figure { aspect-ratio: 16 / 10; }
  .profile-card { position: static; max-width: 420px; }
  .map-tablist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cert-grid, .people.team-all { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .client-grid li { aspect-ratio: 2 / 1; padding: 12px; }
  .photo-cards, .map-tablist, .prose ul.list-big { grid-template-columns: 1fr; }
  .lb-close { top: -56px; right: 0; }
}

/* Touch screens: roomier tap targets for links that sit in tight lines of text */
@media (hover: none) {
  .link, .call, .crumbs a { position: relative; }
  .link::after, .call::after, .crumbs a::after { content: ""; position: absolute; inset: -12px -6px; }
  .foot-col ul { gap: 0; }
  .foot-col ul:not(.social) a { display: block; padding: 9px 0; }
  .foot-bottom a { display: inline-block; padding: 11px 0; }
  .offices a, .side-cta a:not(.btn) { display: inline-block; padding: 6px 0; }
  .toc a { padding-top: 10px; padding-bottom: 10px; }
  .brand-wide { padding: 4px 0; }
  .lang-mobile, .nav-toggle { height: 44px; }
  .lang-mobile a { display: flex; align-items: center; height: 100%; }
  .qr-open { padding: 12px 6px; }
}
