/* =========================================================
   FMH Energy Tech — brand tokens
   Navy / purple / sun-yellow taken from the primary logo.
   No web fonts: Google Fonts and most CDNs are unreliable in
   mainland China, so we use each OS's native CJK font.
   ========================================================= */
:root {
  --navy-950: #070B1F;
  --navy-900: #0B1030;
  --navy: #131C48;
  --navy-700: #26306A;
  --purple: #5B2A91;
  --purple-500: #7B45C0;
  --purple-200: #CDBAF5;
  --sun: #F4B91E;
  --sun-deep: #D98A0B;
  --sun-pale: #F8E3A6;
  --cream: #F7F3E8;
  --cream-2: #EFE8D7;
  --paper: #FFFDF8;

  --ink: var(--navy);
  --ink-muted: #4A4F6A;
  --on-dark: #F7F3E8;
  --on-dark-muted: #A9AECB;
  --line: rgba(19, 28, 72, .14);
  --line-dark: rgba(247, 243, 232, .16);
  --error: #B42318;
  --success: #1E7A46;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, "Courier New", monospace;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-s: 8px; --radius-m: 14px; --radius-l: 22px;
  --shadow-1: 0 1px 2px rgba(19,28,72,.06), 0 4px 14px rgba(19,28,72,.06);
  --shadow-2: 0 2px 6px rgba(19,28,72,.08), 0 18px 40px rgba(19,28,72,.12);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms; --dur: 280ms; --dur-slow: 700ms;

  --z-header: 40; --z-menu: 100;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
html[lang="en"] body { line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- small type ---------- */
.eyebrow {
  margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--on-dark-muted);
}
.eyebrow--dark { color: var(--purple); }
.eyebrow__num { display: inline-block; margin-right: 6px; opacity: .7; }
.h2 { margin: var(--space-4) 0 var(--space-5); font-size: clamp(30px, 4.6vw, 54px); line-height: 1.18; letter-spacing: -.01em; font-weight: 700; text-wrap: balance; }
html[lang="en"] .h2 { letter-spacing: -.025em; line-height: 1.08; }
.chunk { display: inline-block; }
html[lang="en"] .chunk { display: inline; }
html[lang="en"] .chunk + .chunk::before { content: " "; }
.h3 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.3; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); }
p { margin: 0 0 var(--space-4); }

/* ---------- pills & buttons ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  border: 1px solid currentColor; background: transparent; white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  touch-action: manipulation;
}
.pill:active { transform: scale(.97); }
.pill--solid { background: var(--on-dark); color: var(--navy); border-color: var(--on-dark); }
.pill--solid:hover { background: var(--sun); border-color: var(--sun); }
.pill--ghost:hover { background: rgba(247,243,232,.12); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font-weight: 700; font-size: 16px;
  transition: background var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-fast);
}
.btn--sun { background: var(--sun); color: var(--navy); box-shadow: 0 6px 20px rgba(244,185,30,.35); }
.btn--sun:hover { background: #FFC93A; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn__spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding-bottom: 2px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.link-arrow span[aria-hidden] { transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover span[aria-hidden] { transform: translateX(4px); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; right: 0; bottom: auto; left: 0; z-index: var(--z-header); height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter); color: var(--on-dark);
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
}
.site-header.is-solid { background: rgba(247,243,232,.92); color: var(--navy); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-header.is-solid .pill--solid { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.site-header.is-solid .pill--solid:hover { background: var(--purple); border-color: var(--purple); }
.site-header.is-solid .pill--ghost:hover { background: rgba(19,28,72,.06); }
.brand { display: block; height: 44px; flex: none; }
.brand__img { height: 100%; width: auto; }
.brand__img--dark, .site-header.is-solid .brand__img--light { display: none; }
.site-header.is-solid .brand__img--dark { display: block; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-tel span { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (max-width: 960px) { .header-tel { display: none; } }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--sun); }
.callbar { display: none; }
@media (max-width: 767px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 8px 12px max(8px, env(safe-area-inset-bottom)); background: rgba(7,11,31,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line-dark); }
  .callbar__btn { background: transparent; font-family: inherit; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--cream); border: 1px solid var(--line-dark); }
  .callbar__btn:active { transform: scale(.97); }
  .callbar__btn--sun { background: var(--sun); color: var(--navy); border-color: var(--sun); }
}
.lang-toggle__opt { opacity: .5; transition: opacity var(--dur-fast); }
.lang-toggle__opt.is-active { opacity: 1; }
.lang-toggle__sep { opacity: .35; }
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .brand { height: 36px; }
  .header-actions .pill--solid { display: none; }
  .pill { padding: 0 12px; }
}

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.menu {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: var(--z-menu); background: var(--navy-950); color: var(--on-dark);
  display: grid; place-items: center; opacity: 0; transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;                 /* never block clicks while closed/fading */
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; pointer-events: auto; }
.menu__inner { width: min(720px, 100% - 2 * var(--gutter)); }
.menu__list { list-style: none; margin: var(--space-6) 0; padding: 0; }
.menu__list a {
  display: flex; align-items: baseline; gap: 20px; padding: 10px 0; text-decoration: none;
  font-size: clamp(34px, 7vw, 64px); font-weight: 700; line-height: 1.15; border-bottom: 1px solid var(--line-dark);
  transition: color var(--dur-fast), padding var(--dur) var(--ease-out);
}
.menu__list a:hover { color: var(--sun); padding-left: 12px; }
.menu__num { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted); font-weight: 400; }

/* =========================================================
   HERO — pinned, scroll-driven sequence
   ========================================================= */
.hero { position: relative; height: 420vh; background: var(--navy-950); color: var(--on-dark); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; isolation: isolate; }

/* drifting clouds of navy/purple haze */
.fog { position: absolute; top: -10%; right: -10%; bottom: -10%; left: -10%; z-index: -2; }
.fog i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform;
  animation: drift 26s ease-in-out infinite alternate;
}
.fog i:nth-child(1) { width: 60vw; height: 60vw; left: -10%; top: 10%; background: radial-gradient(circle, #2B2F6E 0%, transparent 70%); }
.fog i:nth-child(2) { width: 50vw; height: 50vw; right: -8%; top: -5%; background: radial-gradient(circle, #3E2575 0%, transparent 70%); animation-duration: 32s; animation-delay: -8s; }
.fog i:nth-child(3) { width: 70vw; height: 45vw; left: 20%; bottom: -15%; background: radial-gradient(circle, #1B2456 0%, transparent 70%); animation-duration: 38s; animation-delay: -14s; }
.fog i:nth-child(4) { width: 30vw; height: 30vw; left: 42%; top: 30%; background: radial-gradient(circle, rgba(244,185,30,.22) 0%, transparent 70%); animation-duration: 20s; }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.12); } }
.grain {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; opacity: .09; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__eyebrow { position: absolute; top: calc(var(--header-h) + 8px); left: 0; right: 0; text-align: center; }

.hero__stage { --sun: clamp(116px, min(22vw, 23vh), 276px); }   /* sun size */
/* The title sits BELOW a reserved band for the sun, and its size is capped by
   screen height too, so all four lines stay fully visible under the sun. */
.hero__title {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 34px + var(--sun) + 2vh) 0 110px;
  font-weight: 800; text-align: center; line-height: .98; letter-spacing: -.01em;
  font-size: clamp(44px, min(11.5vw, 12vh), 168px);
  pointer-events: none;
}
html[lang="en"] .hero__title { font-size: clamp(48px, min(13.5vw, 14.5vh), 196px); letter-spacing: -.055em; line-height: .86; text-transform: uppercase; font-family: "Helvetica Neue", "Arial Narrow", Arial, var(--font-sans); font-stretch: condensed; }
.hero__line { display: block; white-space: nowrap; }
.hero__line .ch { display: inline-block; will-change: transform, opacity; }
@media (max-width: 600px) { .hero__title { font-size: clamp(44px, min(17vw, 9.5vh), 80px); line-height: 1.05; padding-bottom: 150px; } html[lang="en"] .hero__title { font-size: clamp(48px, min(19vw, 11vh), 96px); } }

/* sun */
.sun { position: absolute; left: 50%; top: 0; width: var(--sun); aspect-ratio: 1; margin-left: calc(var(--sun) / -2); z-index: 3; will-change: transform, opacity; pointer-events: none; }
.sun__drop { animation: sunDrop 1.6s var(--ease-out) both .2s; }
.sun__svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 40px rgba(244,185,30,.45)); }
.sun__rays { transform-origin: 100px 100px; animation: rays 30s linear infinite; }
@keyframes sunDrop { from { transform: translateY(-60vh); } to { transform: none; } }
@keyframes rays { to { transform: rotate(360deg); } }

/* panel */
.panel { position: absolute; left: 50%; top: 50%; width: min(46vh, 62vw, 460px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 2; perspective: 1200px; opacity: 0; will-change: transform, opacity; pointer-events: none; }
.panel__tilt { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; will-change: transform; }
.panel__svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 60px rgba(0,0,0,.55)); }
.panel__mark { position: absolute; left: 50%; top: 50%; width: 52%; height: auto; transform: translate(-50%, -52%); opacity: 0; filter: drop-shadow(0 2px 0 rgba(0,0,0,.6)) drop-shadow(0 -1px 0 rgba(255,255,255,.18)); }
.panel__shadow { position: absolute; left: 10%; right: 10%; bottom: -12%; height: 12%; background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%); filter: blur(8px); }

/* orbiting service labels */
.orbit {
  list-style: none; margin: 0; padding: 0; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 4; pointer-events: none;
  --ph: min(23vh, 31vw, 230px);                              /* half the panel width */
  --ow: min(300px, calc(50vw - var(--ph) - 56px));           /* label width that fits beside it */
}
.orbit__item:nth-child(odd) { --x: calc(-1 * (var(--ph) + 36px + var(--ow))); }
.orbit__item:nth-child(even) { --x: calc(var(--ph) + 36px); }
.orbit__item {
  position: absolute; left: 50%; top: 50%; width: var(--ow);
  transform: translate3d(var(--x), 60vh, 0); opacity: 0; will-change: transform, opacity;
}
.orbit__item h3 { margin: 0 0 12px; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; font-weight: 600; }
.orbit__item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--on-dark-muted); max-width: 26ch; }
html[lang="en"] .orbit__item p { max-width: 32ch; }
.glyph { position: absolute; width: 54px; height: 54px; color: rgba(247,243,232,.7); }
.orbit__item:nth-child(odd) .glyph { right: -40px; top: -70px; }
.orbit__item:nth-child(even) .glyph { left: -80px; top: 10px; }
@media (max-width: 767px) {
  .orbit__item { left: 50%; width: calc(100vw - 32px); margin-left: calc((100vw - 32px) / -2); padding: 18px 20px; border-radius: var(--radius-m); background: rgba(11,16,48,.72); border: 1px solid var(--line-dark); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); --x: 0px !important; }
  .orbit__item .glyph { width: 36px; height: 36px; right: 16px !important; left: auto !important; top: 16px !important; }
  .orbit__item p { max-width: none; }
  .panel { top: 40%; }
}

.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
}
.hero__tag { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark); }
.hero__tag span[aria-hidden] { color: var(--sun); }
.hero__hint { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); transition: opacity var(--dur); }
.hero__hint i { width: 1px; height: 36px; background: linear-gradient(var(--on-dark-muted), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 600px) { .hero__tag { font-size: 12px; max-width: 60%; } }
@media (max-width: 767px) { .hero__bar { padding-bottom: calc(80px + env(safe-area-inset-bottom)); } .hero__hint { display: none; } } /* clear the phone call bar */

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: clamp(72px, 11vw, 144px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head__sub { color: var(--ink-muted); font-size: 17px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ----- about ----- */
.about { background: var(--cream); }
.about__grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.05fr 1fr; } }
.about__copy .h2 { font-size: clamp(28px, 3.3vw, 44px); }
.about__copy p:not(.lead):not(.eyebrow) { color: var(--ink-muted); }
.about__media { margin: 0; }
.about__media img { border-radius: var(--radius-l); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; box-shadow: var(--shadow-2); }
.about__media figcaption { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--ink-muted); }

.about__head .h2 { margin-bottom: var(--space-6); }
/* tabs + pager only appear when the script is running; without it both pages simply stack */
.about__tabs, .about__pager { display: none; }
.has-about-tabs .about__tabs { display: flex; }
.has-about-tabs .about__pager { display: flex; }
.about__tabs { gap: 8px; flex-wrap: wrap; padding: 6px; border-radius: 999px; background: var(--cream-2); width: fit-content; max-width: 100%; }
.about__tab {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-muted); font-size: 16px; font-weight: 700; touch-action: manipulation;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.about__tab:hover { color: var(--navy); }
.about__tab[aria-selected="true"] { background: var(--navy); color: var(--cream); box-shadow: var(--shadow-1); }
.about__tabnum { font-family: var(--font-mono); font-size: 12px; font-weight: 400; opacity: .7; }
@media (max-width: 480px) { .about__tabs { width: 100%; } .about__tab { flex: 1; justify-content: center; padding: 0 12px; } }

.about__page { margin-top: clamp(32px, 5vw, 56px); }
.about__page.is-active { animation: pageIn var(--dur-slow) var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.about__copy .lead { line-height: 1.8; }

.facts { margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; border-top: 1px solid var(--line); }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.facts dt { font-size: 13px; color: var(--ink-muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); line-height: 1.45; }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }

.about__page2 { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .about__page2 { grid-template-columns: 1fr 1.1fr; } }
.about__h3 { margin: 0 0 14px; font-size: 20px; line-height: 1.35; color: var(--navy); }
.about__biz p { color: var(--ink-muted); line-height: 1.8; }
.about__hint { margin: -6px 0 12px; font-size: 13px; color: var(--ink-muted); }
.chips { margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; text-align: left; touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.chip:hover { transform: translateY(-2px); border-color: var(--purple); box-shadow: var(--shadow-1); }
.chip:active { transform: scale(.97); }
.chip--sun { background: rgba(244,185,30,.18); border-color: rgba(217,138,11,.35); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--cream); box-shadow: var(--shadow-1); }
.chip-detail { margin: 0 0 22px; padding: 16px 18px; border-radius: var(--radius-m); background: var(--paper); border-left: 4px solid var(--sun); box-shadow: var(--shadow-1); }
.chip-detail__t { display: block; color: var(--navy); font-size: 16px; }
.chip-detail__d { margin: 4px 0 0; color: var(--ink-muted); font-size: 15px; line-height: 1.7; }
.is-swap { animation: swapIn 360ms var(--ease-out) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* lifecycle steps inside the 经营理念 card */
.lc { list-style: none; margin: 18px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: relative; }
@media (min-width: 560px) { .lc { grid-template-columns: repeat(6, 1fr); } }
.lc__step {
  width: 100%; min-height: 56px; padding: 8px 4px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 13px; font-weight: 700; color: var(--navy); line-height: 1.3; touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.lc__num { font-family: var(--font-mono); font-size: 12px; font-weight: 400; opacity: .6; }
.lc__step:hover { transform: translateY(-2px); border-color: var(--purple); }
.lc__step:active { transform: scale(.96); }
.lc__step[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); color: var(--navy); }
.lc__step[aria-pressed="true"] .lc__num { opacity: .9; }
.lc__detail { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 14px; line-height: 1.7; min-height: 3.4em; }
.about__cards { display: grid; gap: 16px; }
.about__card { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.about__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.about__card { padding: 26px 26px 22px; border-radius: var(--radius-l); background: var(--paper); border: 1px solid var(--line); }
.about__card p { margin: 0; color: var(--ink-muted); line-height: 1.8; }
.about__card--vision { background: var(--navy); border-color: var(--navy); }
.about__card--vision .about__h3 { color: var(--sun); }
.about__card--vision p { color: var(--on-dark-muted); }
.about__card--vision .about__motto { margin-bottom: 10px; font-size: 20px; font-weight: 700; color: var(--cream); }

.about__pager { align-items: center; justify-content: flex-end; gap: 14px; margin-top: 28px; }
.about__arrow { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--navy); transition: background var(--dur-fast), color var(--dur-fast), opacity var(--dur-fast); }
.about__arrow:hover:not([disabled]) { background: var(--navy); color: var(--cream); }
.about__arrow[disabled] { opacity: .35; cursor: default; }
.about__count { font-family: var(--font-mono); font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.about__count b { color: var(--navy); }

.stats { margin: clamp(56px, 8vw, 96px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 20px 8px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .stat { border-bottom: 0; border-right: 1px solid var(--line); padding-left: 24px; } .stat:first-child { padding-left: 0; } .stat:last-child { border-right: 0; } }
.stat dt { font-size: 14px; color: var(--ink-muted); order: 2; }
.stat dd { margin: 0 0 6px; display: flex; align-items: baseline; gap: 6px; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stat__num { font-size: clamp(44px, 6vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--navy); }
.stat__unit { font-size: 18px; font-weight: 600; color: var(--purple); }

/* ----- services ----- */
.services { background: var(--paper); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.card {
  position: relative; padding: 32px 28px 28px; border-radius: var(--radius-l); background: var(--cream); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur);
}
.card:active { transform: scale(.99); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); background: #fff; }
.card h3 { margin: 20px 0 10px; font-size: 20px; line-height: 1.35; }
.card p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--navy); stroke: var(--sun); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ----- projects (dark band) ----- */
.projects { background: var(--navy-950); color: var(--on-dark); overflow: hidden; }
.projects::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(60% 50% at 80% 0%, rgba(91,42,145,.35), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(38,48,106,.6), transparent 70%); pointer-events: none; }
.projects .container { position: relative; }
.projects .section-head__sub { color: var(--on-dark-muted); }
.projects .eyebrow { color: var(--purple-200); }

.compare { cursor: ew-resize; touch-action: pan-y; position: relative; margin: 0 0 clamp(40px, 6vw, 72px); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 5 / 3; background: var(--navy-900); box-shadow: 0 30px 80px rgba(0,0,0,.5); user-select: none; -webkit-user-select: none; }
.compare__img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; top: 0; right: 0; bottom: 0; left: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none; }
.compare__handle { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--sun); color: var(--navy); display: grid; place-items: center; z-index: 2; box-shadow: 0 6px 20px rgba(0,0,0,.35); cursor: grab; transition: transform var(--dur-fast); }
.compare.is-dragging .compare__handle { cursor: grabbing; transform: scale(1.12); }
.compare__img { pointer-events: none; -webkit-user-drag: none; }
.compare:hover .compare__handle { transform: scale(1.08); }
.compare__handle:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.compare__tag { position: absolute; top: 16px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(7,11,31,.72); color: var(--cream); pointer-events: none; }
.compare__tag--l { left: 16px; }
.compare__tag--r { right: 16px; background: var(--sun); color: var(--navy); }
.compare__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 48px 24px 20px; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; background: linear-gradient(transparent, rgba(7,11,31,.85)); pointer-events: none; }
.compare__cap strong { font-size: clamp(18px, 2vw, 24px); }
.compare__cap span { color: var(--on-dark-muted); font-size: 14px; }
@media (max-width: 600px) { .compare { aspect-ratio: 4 / 3; } }

.pgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pgrid { grid-template-columns: repeat(6, 1fr); } .pcard:nth-child(-n+2) { grid-column: span 3; } .pcard:nth-child(n+3) { grid-column: span 2; } }
.pcard h3 { margin: 16px 0 4px; font-size: 19px; line-height: 1.35; }
.pcard p { margin: 0; color: var(--on-dark-muted); font-size: 14px; }
.pcard--flip .pcard__media { cursor: pointer; }
.pcard__media { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-900); }
.pcard__img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-slow) var(--ease-out), transform 1.2s var(--ease-out); }
.pcard:hover .pcard__img { transform: scale(1.04); }
.pcard__img--before { opacity: 0; }
.pcard.is-before .pcard__img--before { opacity: 1; }
.pcard__toggle { position: absolute; left: 12px; bottom: 12px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(247,243,232,.95); color: var(--navy); font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.3); transition: background var(--dur-fast); }
.pcard__toggle:hover { background: var(--sun); }
.pcard__toggle .t-hide, .pcard.is-before .pcard__toggle .t-show { display: none; }
.pcard.is-before .pcard__toggle .t-hide { display: inline; }
.pcard__badge { position: absolute; right: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(7,11,31,.75); color: var(--cream); }

/* ----- process ----- */
.process { background: var(--cream); }
.timeline { list-style: none; margin: 0 0 clamp(64px, 9vw, 112px); padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
/* proportional duration bar: 1 / 2 / 2 / 0.5 / 0.5 months */
.gantt { display: none; }
@media (min-width: 900px) {
  .gantt { display: flex; gap: 4px; height: 10px; margin-bottom: 16px; }
  .gantt span { flex: var(--w) 1 0; border-radius: 999px; background: var(--navy); }
  .gantt span:nth-child(2) { background: var(--navy-700); }
  .gantt span:nth-child(3) { background: var(--purple); }
  .gantt span:nth-child(4) { background: var(--purple-500); }
  .gantt span:nth-child(5) { background: var(--sun); }
}
.step { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.step { position: relative; padding: 24px 20px 20px; border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: "0" counter(step); position: absolute; right: 18px; top: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.step::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--sun), var(--purple-500)); }
.step__dur { display: inline-block; font-size: 13px; font-weight: 700; color: var(--purple); background: rgba(91,42,145,.08); padding: 2px 10px; border-radius: 999px; }
.step h3 { margin: 14px 0 6px; font-size: 18px; line-height: 1.35; }
.step p { margin: 0; font-size: 14px; color: var(--ink-muted); }

.quality__title { margin-bottom: 24px; }
.quality { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .quality { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quality li { transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.quality li:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(7,11,31,.35); }
.quality li { padding: 28px; border-radius: var(--radius-l); background: var(--navy); color: var(--on-dark); }
.quality .icon { background: rgba(244,185,30,.14); }
.quality h4 { margin: 18px 0 8px; font-size: 18px; }
.quality p { margin: 0; color: var(--on-dark-muted); font-size: 15px; }

/* ----- faq ----- */
.faq { background: var(--paper); }
.faq__grid { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: .8fr 1.2fr; } .faq__head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq__head { margin-bottom: 0; }
.btn--navy { background: var(--navy); color: var(--cream); margin-top: 8px; }
.btn--navy:hover { background: var(--purple); }
.faq__list { display: grid; gap: 10px; }
.faq__item { border-radius: var(--radius-m); background: var(--cream); border: 1px solid var(--line); transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast); }
.faq__item:hover { border-color: rgba(91,42,145,.4); }
.faq__item[open] { background: #fff; box-shadow: var(--shadow-1); border-color: rgba(91,42,145,.3); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 20px; font-weight: 700; font-size: 17px; line-height: 1.45; color: var(--navy); border-radius: var(--radius-m); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); transition: transform var(--dur) var(--ease-out), background var(--dur-fast); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--cream); border-radius: 2px; }
.faq__icon::after { transform: rotate(90deg); transition: transform var(--dur) var(--ease-out); }
.faq__item[open] .faq__icon { background: var(--sun); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--navy); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { margin: 0; padding: 0 20px 18px; color: var(--ink-muted); line-height: 1.8; animation: swapIn 320ms var(--ease-out) both; }

/* ----- online enquiry panel ----- */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--sun); color: var(--navy);
  font-size: 16px; font-weight: 700; box-shadow: 0 10px 30px rgba(7,11,31,.35); transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(7,11,31,.4); }
.chat-fab:active { transform: scale(.97); }
.chat-fab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat {
  position: fixed; right: 24px; bottom: 92px; z-index: 61; width: min(360px, calc(100vw - 32px));
  border-radius: var(--radius-l); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(7,11,31,.4);
  overflow: hidden; opacity: 0; transform: translateY(12px) scale(.98); transform-origin: bottom right;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.chat.is-open { opacity: 1; transform: none; }
.chat__head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 18px 14px 20px; background: var(--navy); color: var(--cream); }
.chat__title { margin: 0; font-size: 18px; font-weight: 700; }
.chat__sub { margin: 4px 0 0; font-size: 13px; color: var(--on-dark-muted); line-height: 1.5; }
.chat__close { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--cream); }
.chat__close:hover { background: rgba(247,243,232,.12); }
.chat__body { padding: 12px; display: grid; gap: 8px; }
.chat__opt {
  display: flex; flex-direction: column; gap: 2px; width: 100%; min-height: 56px; padding: 12px 16px; border-radius: var(--radius-m);
  border: 1px solid var(--line); background: var(--cream); color: var(--navy); text-align: left; text-decoration: none; font: inherit;
  transition: transform var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.chat__opt:hover { transform: translateY(-1px); border-color: var(--purple); background: #fff; }
.chat__opt:active { transform: scale(.98); }
.chat__opt strong { font-size: 16px; }
.chat__opt span { font-size: 13px; color: var(--ink-muted); }
.chat__opt--wx { border-left: 4px solid #07C160; }
.chat__status { margin: 2px 4px 4px; font-size: 13px; color: var(--success); }
.chat__status:empty { display: none; }
@media (max-width: 767px) {
  .chat-fab { display: none; }                         /* the phone call bar has the button */
  .chat { left: 12px; right: 12px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); transform-origin: bottom center; }
}

/* ----- contact ----- */
.contact { background: var(--navy-950); color: var(--on-dark); overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -20vw; border-radius: 50%; background: radial-gradient(circle, rgba(244,185,30,.16), transparent 65%); pointer-events: none; }
.contact .eyebrow { color: var(--purple-200); }
.contact .lead { color: var(--on-dark); }
.contact__grid { position: relative; display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1fr 1.1fr; } }

.areas { list-style: none; margin: 32px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.areas li { transition: transform var(--dur) var(--ease-out), border-color var(--dur-fast); }
.areas li:hover { transform: translateY(-2px); border-color: rgba(244,185,30,.5); }
.areas li { padding: 16px; border-radius: var(--radius-m); border: 1px solid var(--line-dark); background: rgba(247,243,232,.04); }
.areas strong { display: block; font-size: 22px; line-height: 1.2; color: var(--sun); }
.areas span { display: block; margin-top: 4px; font-size: 12px; color: var(--on-dark-muted); line-height: 1.45; }
@media (max-width: 480px) { .areas { grid-template-columns: 1fr; } .areas li { display: flex; align-items: baseline; gap: 12px; } .areas span { margin: 0; } }

.people { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .people { grid-template-columns: 1fr 1fr; } }
.person { transition: border-color var(--dur-fast), background var(--dur-fast); }
.person:hover { border-color: rgba(244,185,30,.5); background: rgba(247,243,232,.09); }
.person { padding: 18px; border-radius: var(--radius-m); background: rgba(247,243,232,.06); border: 1px solid var(--line-dark); }
.person__role { margin: 0; font-size: 13px; color: var(--purple-200); letter-spacing: .06em; }
.person__name { margin: 2px 0 12px; font-size: 24px; font-weight: 700; line-height: 1.3; }
.person__line { font-size: 15px; display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline; margin: 0; padding: 8px 0; border-top: 1px solid var(--line-dark); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; min-height: 44px; }
html[lang="en"] .person__line { grid-template-columns: 58px 1fr; }
a.person__line:hover span:last-child { color: var(--sun); }
.person__line--note { font-weight: 400; color: var(--on-dark-muted); }
.person__k { font-size: 13px; font-weight: 400; color: var(--on-dark-muted); }
.address { display: grid; grid-template-columns: 44px 1fr; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line-dark); line-height: 1.6; }
html[lang="en"] .address { grid-template-columns: 58px 1fr; }
.contact__list { margin: 0; display: grid; gap: 0; }
.contact__list div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
html[lang="en"] .contact__list div { grid-template-columns: 84px 1fr; }
.contact__list dt { color: var(--on-dark-muted); font-size: 14px; }
.contact__list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
/* visible marker for info the client still needs to supply */
.placeholder { border-bottom: 1px dashed currentColor; opacity: .85; }

.contact__side { min-width: 0; }
.quick { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .quick { grid-template-columns: 1fr 1fr; } }
.quick__btn {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px; border-radius: var(--radius-m);
  text-align: left; text-decoration: none; border: 1px solid var(--line-dark); background: rgba(247,243,232,.06); color: var(--cream);
  transition: transform var(--dur-fast), background var(--dur-fast); touch-action: manipulation;
}
.quick__btn:hover { background: rgba(247,243,232,.12); }
.quick__btn:active { transform: scale(.98); }
.quick__btn svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.quick__btn--call { background: var(--sun); color: var(--navy); border-color: var(--sun); }
.quick__btn--call:hover { background: #FFC93A; }
.quick__btn--wx svg { color: #4CD964; }
.quick__text { display: flex; flex-direction: column; line-height: 1.35; }
.quick__text strong { font-size: 18px; }
.quick__text span { font-size: 14px; opacity: .85; font-variant-numeric: tabular-nums; }
.quick__status { margin: 10px 0 0; font-size: 14px; color: #8FE3A5; }
.quick__status:empty { display: none; }
.quick__or { display: flex; align-items: center; gap: 12px; margin: 24px 0 16px; font-size: 14px; color: var(--on-dark-muted); }
.quick__or::before, .quick__or::after { content: ""; flex: 1; height: 1px; background: var(--line-dark); }
.form { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-l); background: var(--cream); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.form__row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(19,28,72,.28); background: #fff; font-size: 16px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23131C48' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91,42,145,.2); }
.field.is-invalid input { border-color: var(--error); }
.field__err { margin: 6px 0 0; font-size: 13px; color: var(--error); min-height: 0; }
.field__err:empty { display: none; }
.form__summary { margin-bottom: 20px; padding: 14px 16px; border-radius: 10px; background: #FDECEA; color: var(--error); font-size: 14px; }
.form__summary ul { margin: 6px 0 0; padding-left: 18px; }
.form__summary a { color: inherit; }
.form__note { font-size: 13px; color: var(--ink-muted); }
.form__status { margin: 14px 0 0; font-weight: 600; color: var(--success); }
.form__status:empty { display: none; }

/* ----- footer ----- */
.footer { background: var(--navy-950); color: var(--on-dark); padding: 48px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); }
.footer p { margin: 0; }
.footer__top { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer__top { grid-template-columns: auto 1fr auto; gap: 48px; } }
.footer__logo { height: 48px; width: auto; }
.footer__co { margin-top: 14px !important; font-size: 16px; font-weight: 700; }
.footer__co-en { margin-top: 2px !important; font-size: 13px; color: var(--on-dark-muted); }
.footer__co-en:empty { display: none; }
.footer__info { margin: 0; display: grid; gap: 10px; }
.footer__info div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
html[lang="en"] .footer__info div { grid-template-columns: 80px 1fr; }
.footer__info dt { font-size: 13px; color: var(--on-dark-muted); line-height: 1.7; }
.footer__info dd { margin: 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.footer__info a { font-weight: 700; font-variant-numeric: tabular-nums; }
.footer__note { color: var(--on-dark-muted); }
.footer__top-link { justify-self: start; }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; font-size: 13px; color: var(--on-dark-muted); }
.footer__filings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.footer__filing { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--on-dark-muted); }
.footer__badge { width: 20px; height: 20px; flex: none; }
@media (min-width: 768px) { .footer__legal { padding-right: 200px; } } /* keep clear of the floating 在线咨询 button */
/* old single-row footer classes kept harmless */
.footer__small { font-size: 13px; color: var(--on-dark-muted); }
@media (max-width: 767px) { .footer__info a, .footer__filing { display: inline-flex; align-items: center; min-height: 44px; } .footer__info div:last-child { align-items: center; } }  /* comfortable tap targets on phones */
@media (max-width: 767px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } } /* clear the phone call bar */

/* ----- consent checkbox, enquiry result, small buttons ----- */
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: start; padding: 12px 14px; border-radius: 10px; background: rgba(19,28,72,.05); border: 1px solid transparent; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--navy); cursor: pointer; }
.field--check label { margin: 0; font-size: 14px; font-weight: 400; line-height: 1.6; cursor: pointer; }
.field--check label a { color: var(--purple); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.field--check .field__err { grid-column: 1 / -1; }
.field--check.is-invalid { border-color: var(--error); background: #FDECEA; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; margin-top: 0; }
.btn--ghost { background: transparent; color: var(--navy); border: 1px solid rgba(19,28,72,.3); text-decoration: none; }
.btn--ghost:hover { background: rgba(19,28,72,.06); }
.form__result { margin-top: 16px; padding: 16px; border-radius: var(--radius-m); background: #fff; border: 1px solid var(--line); }
.form__result-t { margin: 0 0 8px; font-weight: 700; }
.form__result-text { margin: 0 0 12px; padding: 12px; border-radius: 8px; background: var(--cream); font: inherit; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.form__result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

/* ----- privacy policy window + standalone privacy page ----- */
.policy { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 110; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(7,11,31,.72); }
.policy[hidden] { display: none; }
.policy__box { display: flex; flex-direction: column; width: min(760px, 100%); max-height: min(86vh, 900px); border-radius: var(--radius-l); background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.policy__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 24px; background: var(--navy); color: var(--cream); }
.policy__title { margin: 0; font-size: 20px; line-height: 1.3; }
.policy__body { padding: 20px 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.policy__foot { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }
.policy__body h3, .policy-page h2 { margin: 26px 0 8px; font-size: 17px; line-height: 1.4; color: var(--navy); }
.policy__body p, .policy__body li, .policy-page p, .policy-page li { font-size: 15px; line-height: 1.8; color: var(--ink-muted); overflow-wrap: anywhere; }
.policy__body p, .policy-page p { margin: 0 0 10px; }
.policy__body ul, .policy-page ul { margin: 0 0 10px; padding-left: 22px; }
.policy__date { font-family: var(--font-mono); font-size: 12px !important; letter-spacing: .04em; }
.policy-page { background: var(--paper); min-height: 100vh; }
.policy-page__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); background: var(--navy-950); color: var(--cream); }
.policy-page__bar img { height: 40px; width: auto; }
.policy-page__bar a { color: var(--cream); text-decoration: none; font-size: 14px; }
.policy-page main { max-width: 820px; margin: 0 auto; padding: 32px var(--gutter) 72px; }
.policy-page h1 { margin: 24px 0 6px; font-size: clamp(26px, 4vw, 36px); line-height: 1.25; color: var(--navy); }
.policy-page article + article { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.policy-page .policy__jump { display: inline-block; margin: 8px 0 0; color: var(--purple); font-weight: 700; }

/* ----- toast ----- */
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 120; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 999px; background: var(--navy); color: var(--cream); font-size: 14px; box-shadow: 0 10px 30px rgba(7,11,31,.4); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ----- older phones (iOS 14 and earlier, old Android WebViews): no aspect-ratio support ----- */
@supports not (aspect-ratio: 1 / 1) {
  .sun { height: var(--sun); }
  .panel { height: min(46vh, 62vw, 460px); }
  .compare { height: 0; padding-bottom: 60%; }
  .pcard__media { height: 0; padding-bottom: 62.5%; }
  .about__media img { height: auto; }
  @media (max-width: 600px) { .compare { padding-bottom: 75%; } }
}

/* =========================================================
   REDUCED MOTION: no pinned sequence, final state shown.
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero { height: auto; }
  .hero__stage { position: relative; height: 100vh; height: 100dvh; }
  .orbit, .hero__hint, .panel { display: none; }
  .sun { top: calc(var(--header-h) + 34px); }
  .reveal { opacity: 1; transform: none; }
}

/* folder build: <picture> wrappers are layout-neutral */
picture { display: contents; }
