/* ============================================================
   WayToGlobal — Living Point of View
   Palette: warm white / black / cobalt · red-orange brand accents
   Type: Inter (EN) / Noto Sans SC (ZH), no negative tracking
   ============================================================ */

:root {
  --warm: #FAF7F2;
  --warm-2: #F1EBE1;
  --ink: #17130E;
  --ink-soft: #575046;
  --black-scene: #0E0D0B;
  --paper-dark: #F5F1EA;
  --paper-dark-soft: rgba(245, 241, 234, 0.72);
  --cobalt: #143FD0;
  --cobalt-deep: #0F2FA6;
  --cobalt-wash: #0A1E63;
  --red: #E23E2B;
  --orange: #F0782D;
  --deep-red: #A31621;
  --line: rgba(23, 19, 14, 0.16);
  --line-strong: rgba(23, 19, 14, 0.4);
  --line-dark: rgba(245, 241, 234, 0.18);
  --radius: 8px;
  --font-en: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-zh: "Noto Sans SC", "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --container: 1280px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --sec-pad: clamp(88px, 11vw, 152px);
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html[lang="zh"] body { font-family: var(--font-zh); }
html[lang="en"] body { font-family: var(--font-en); }

body {
  font-family: var(--font-en);
  background: var(--warm);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- scenes ---------- */
.scene-light    { background: var(--warm); color: var(--ink); }
.scene-dark     { background: var(--black-scene); color: var(--paper-dark); }
.scene-black    { background: var(--black-scene); color: var(--paper-dark); }
.scene-cobalt   { background: var(--cobalt); color: #F7F9FF; }

/* ---------- skip link ---------- */
.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--warm);
  padding: 10px 16px; border-radius: var(--radius);
  transition: top 0.2s var(--ease); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [role="button"]:focus-visible {
  outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 2px;
}
.scene-dark a:focus-visible, .scene-black a:focus-visible, .scene-dark button:focus-visible,
.scene-black button:focus-visible, .scene-cobalt a:focus-visible, .scene-cobalt button:focus-visible {
  outline-color: currentColor;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  padding: 22px var(--gutter);
  display: flex; align-items: center; gap: 32px;
  transition: padding 0.3s var(--ease);
}
.nav.is-compact {
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-compact .nav-inner { padding-block: 12px; }
/* on a dark scene: light text, dark glass when compact */
.nav.on-dark { background: transparent; box-shadow: none; }
.nav.on-dark .brand-name, .nav.on-dark .nav-links a { color: var(--paper-dark); }
.nav.on-dark .nav-links a:hover { color: #fff; }
.nav.on-dark .lang-toggle { color: var(--paper-dark-soft); }
.nav.on-dark .lang-opt.is-active { color: #fff; }
.nav.on-dark.is-compact {
  background: rgba(14, 13, 11, 0.82);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav.on-dark .menu-btn span { background: var(--paper-dark); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { height: 24px; width: auto; }
.nav.is-compact .brand-mark { height: 20px; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.01em; }

.nav-links { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--ink-soft); position: relative; padding-block: 4px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--cobalt); transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-toggle {
  background: none; border: none; cursor: pointer;
  display: inline-flex; gap: 6px; align-items: baseline;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-soft); padding: 6px 2px;
}
.lang-opt { opacity: 0.45; transition: opacity 0.2s; }
.lang-opt.is-active { opacity: 1; color: var(--ink); font-weight: 700; }
.lang-sep { opacity: 0.35; }

.menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.menu-btn span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease), opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 15px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--warm); padding: 108px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  text-decoration: none; font-size: 26px; font-weight: 600;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 16px 26px; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); box-shadow: 0 6px 22px rgba(20, 63, 208, 0.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(23, 19, 14, 0.04); }
.btn-invert { background: var(--paper-dark); color: var(--ink); }
.btn-invert:hover { background: #fff; }
.btn-sm { padding: 12px 18px; font-size: 14px; min-height: 42px; }

/* ============================================================
   SECTION HEADS
   ============================================================ */
.sec-head { max-width: 880px; }
.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-soft); margin-bottom: 26px; font-weight: 500;
}
.sec-label .sec-no { color: var(--red); font-weight: 600; }
.scene-dark .sec-label .sec-no, .scene-black .sec-label .sec-no { color: var(--orange); }
.scene-cobalt .sec-label .sec-no { color: #FFD9A8; }
.sec-label .dot { width: 8px; height: 8px; background: var(--red); display: inline-block; }
.sec-label .dot-cobalt { background: #6E8CFF; }
.sec-label .dot-red { background: var(--orange); }
.sec-label-dark { color: var(--paper-dark-soft); }
.sec-label-inv { color: rgba(247, 249, 255, 0.75); }
.sec-title {
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.14; font-weight: 640;
  letter-spacing: 0; /* no negative tracking */
  text-wrap: balance;
}
html[lang="zh"] .sec-title { font-weight: 700; line-height: 1.28; }
.sec-lead { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-soft); max-width: 640px; }
.scene-dark .sec-lead, .scene-black .sec-lead { color: var(--paper-dark-soft); }

/* ============================================================
   HERO — black manifesto scene (type is the hero)
   ============================================================ */
.hero {
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  padding-top: 110px;
  background:
    radial-gradient(58% 46% at 82% 26%, rgba(240, 120, 45, 0.13), transparent 70%),
    radial-gradient(46% 42% at 10% 80%, rgba(20, 63, 208, 0.2), transparent 72%),
    var(--black-scene);
  color: var(--paper-dark);
}
.hero-inner {
  display: flex; flex-direction: column;
  width: 100%;
  will-change: transform, opacity;
}
.hero-kicker { color: #6E8CFF; margin-bottom: 22px; font-weight: 600; }
.hero-title {
  font-size: clamp(34px, 5.3vw, 78px);
  line-height: 1.07; font-weight: 800;
  letter-spacing: 0.005em;
  max-width: 1240px;
  color: #FBF8F3;
  text-transform: uppercase;
}
html[lang="zh"] .hero-title {
  text-transform: none;
  font-weight: 700; line-height: 1.24; font-size: clamp(34px, 5.2vw, 76px);
}
.hero-brandline {
  margin-top: 18px; font-size: clamp(14px, 1.4vw, 17px);
  font-style: italic; color: var(--paper-dark-soft); font-weight: 500;
}
.hero-brandline.is-empty { display: none; }
.hero-row {
  display: flex; align-items: flex-end;
  gap: clamp(32px, 5vw, 88px); margin-top: clamp(28px, 4vh, 48px);
}
.hero-copy { flex: 1; min-width: 0; max-width: 620px; }
.hero-lede {
  max-width: 560px;
  font-size: clamp(15.5px, 1.5vw, 18px); color: var(--paper-dark-soft);
}
html[lang="zh"] .hero-lede { line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .btn-ghost { color: var(--paper-dark); border-color: rgba(245, 241, 234, 0.4); }
.hero .btn-ghost:hover { border-color: var(--paper-dark); background: rgba(245, 241, 234, 0.07); }

/* dynamic M — layered faceted stack, secondary to the statement */
.hero-m {
  position: relative; flex-shrink: 0;
  width: min(32vw, 360px); aspect-ratio: 690 / 489;
  cursor: pointer; background: none; border: none;
  perspective: 900px;
  margin-bottom: 26px;
}
.hero-m-stack { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.5s var(--ease); }
.m-facet { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.m-back  { transform: translate(-26px, 26px) scale(0.96); opacity: 0.9; }
.m-mid   { transform: translate(14px, -12px) scale(1.02); opacity: 0.42; mix-blend-mode: screen; }
.m-front { transform: translate(0, 0) scale(1); }
.hero-m:hover .hero-m-stack { transform: scale(1.015); }
.hero-m-hint {
  position: absolute; bottom: -18px; right: 2px;
  color: var(--paper-dark-soft); background: var(--black-scene);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 7px 14px; letter-spacing: 0.14em; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.hero-m:hover .hero-m-hint, .hero-m:focus-visible .hero-m-hint { border-color: #6E8CFF; color: #6E8CFF; }

.hero-scroll {
  position: absolute; bottom: 26px; left: var(--gutter);
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--paper-dark-soft);
}
.hero-scroll i {
  width: 44px; height: 1px; background: rgba(245, 241, 234, 0.3);
  position: relative; overflow: hidden; display: inline-block;
}
.hero-scroll i::after {
  content: ""; position: absolute; inset: 0; background: #6E8CFF;
  transform: translateX(-100%); animation: scrollhint 2.4s var(--ease) infinite;
}
@keyframes scrollhint { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* ============================================================
   MARQUEE — platform & ecosystem logo ticker on cobalt
   ============================================================ */
.marquee {
  background: var(--cobalt); color: #F7F9FF;
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid rgba(10, 30, 99, 0.5);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track {
  display: inline-flex; align-items: center;
  padding-block: 16px;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.marquee-track .mq-half { display: inline-flex; align-items: center; flex-shrink: 0; }
.plat-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding-inline: 26px;
}
.plat-item img { display: block; }
.plat-name { font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.plat-tier {
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid rgba(247, 249, 255, 0.5); border-radius: 999px;
  padding: 3px 8px; font-style: normal; color: rgba(247, 249, 255, 0.85);
}
.marquee-track .mq-dot {
  width: 8px; height: 8px; flex-shrink: 0;
  background: var(--orange); transform: rotate(45deg);
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   WHO WE ARE — asymmetric editorial layout with ghost type
   ============================================================ */
.who { padding-block: var(--sec-pad); position: relative; overflow: hidden; }
.who-ghost {
  position: absolute; top: clamp(12px, 3vw, 44px); right: calc(var(--gutter) * 0.4);
  font-size: clamp(72px, 10.5vw, 168px);
  font-weight: 800; line-height: 0.92; letter-spacing: 0.01em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(23, 19, 14, 0.13);
  pointer-events: none; user-select: none; z-index: 0;
}
.who-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 104px);
  align-items: start;
}
.who-left { position: sticky; top: 120px; }
.who-title .t-acc {
  color: var(--cobalt); font-style: italic;
  border-bottom: 3px solid rgba(240, 120, 45, 0.75);
  padding-bottom: 0.04em;
}
html[lang="zh"] .who-title .t-acc { font-style: normal; }
.who-para {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  border-top: 1px solid var(--line-strong);
  padding: clamp(24px, 3vw, 40px) 0;
}
.who-para:last-child { border-bottom: 1px solid var(--line-strong); }
.who-para:first-child { margin-top: clamp(8px, 6vh, 88px); }
.who-idx { color: var(--cobalt); font-size: 13px; letter-spacing: 0.12em; padding-top: 6px; }
.who-para p { color: var(--ink-soft); font-size: clamp(15.5px, 1.5vw, 18px); max-width: 620px; }
html[lang="zh"] .who-para p { line-height: 2; }

/* scroll-linked word-by-word reading fill (progressive enhancement via JS) */
.who-para p.is-reading .w { color: rgba(23, 19, 14, 0.18); transition: color 0.4s var(--ease); }
.who-para p.is-reading .w.on { color: var(--ink); }

/* who we serve — two editorial columns */
.who-serve { margin-top: clamp(56px, 7vw, 96px); }
.serve-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
}
.serve-col { border-top: 2px solid var(--ink); padding-top: 24px; }
.serve-name { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; margin-bottom: 18px; }
html[lang="zh"] .serve-name { font-weight: 600; }
.serve-list { list-style: none; }
.serve-list li {
  display: flex; gap: 12px; align-items: baseline;
  padding: 10px 0;
}
.serve-list li + li { border-top: 1px solid var(--line); }
.serve-list b { flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.serve-list span { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
html[lang="zh"] .serve-list b { font-weight: 600; }
html[lang="zh"] .serve-list span { line-height: 1.8; }

@media (max-width: 900px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-left { position: static; }
  .who-para:first-child { margin-top: 36px; }
  .who-ghost { font-size: 19vw; top: 4px; right: 0; opacity: 0.75; }
  .serve-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   WHAT WE DO — dark sticky stage scroll
   ============================================================ */
.what { position: relative; }
.what-track { height: 380vh; position: relative; }
.what-sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
.what-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 90px); align-items: center; width: 100%;
}
.what-left .sec-title { color: var(--paper-dark); font-size: clamp(26px, 3.2vw, 44px); }
.what-lead { margin-top: 16px; color: var(--paper-dark-soft); font-size: clamp(15px, 1.4vw, 18px); }
.what-lead strong { color: var(--paper-dark); }

.what-m-wrap { margin-top: clamp(28px, 4vh, 56px); display: flex; align-items: center; gap: 28px; }
.m-split { width: clamp(120px, 12vw, 170px); height: auto; flex-shrink: 0; }
.m-split .mseg { opacity: 0.22; transition: opacity 0.5s var(--ease); }
.m-split .mseg.is-on { opacity: 1; }
.what-m-dots { display: flex; flex-direction: column; gap: 10px; }
.what-m-dots i {
  width: 26px; height: 2px; background: var(--line-dark); transition: background 0.3s, width 0.3s var(--ease);
}
.what-m-dots i.is-on { background: #6E8CFF; width: 44px; }

.what-stages { display: flex; flex-direction: column; }
.stage {
  border-top: 1px solid var(--line-dark);
  padding: clamp(14px, 2.6vh, 26px) 0;
  transition: opacity 0.45s var(--ease);
  opacity: 0.38;
}
.stage:last-child { border-bottom: 1px solid var(--line-dark); }
.stage.is-active { opacity: 1; }
.stage-head { display: flex; align-items: baseline; gap: 18px; }
.stage-num { color: #6E8CFF; font-size: 12px; letter-spacing: 0.06em; }
.stage-num::before { content: "{ "; opacity: 0.55; }
.stage-num::after { content: " }"; opacity: 0.55; }
.stage.is-active .stage-num { color: #6E8CFF; }
.stage-title { font-size: clamp(18px, 2vw, 26px); font-weight: 620; color: var(--paper-dark); }
html[lang="zh"] .stage-title { font-weight: 600; }
.stage-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease), opacity 0.45s var(--ease);
  opacity: 0;
}
.stage-body > p { overflow: hidden; }
.stage.is-active .stage-body { grid-template-rows: 1fr; opacity: 1; }
.stage-body p {
  padding-top: 12px; padding-left: calc(12px + 1.2em);
  color: var(--paper-dark-soft); font-size: 15px; max-width: 560px;
}
html[lang="zh"] .stage-body p { padding-left: 3.2em; line-height: 1.85; }

/* ============================================================
   WHY
   ============================================================ */
.why { padding-block: var(--sec-pad); }
.why-grid {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line);
}
.why-item {
  padding: clamp(28px, 3.4vw, 52px) clamp(22px, 3vw, 48px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.why-idx { color: var(--cobalt); display: block; margin-bottom: 16px; font-size: 12px; letter-spacing: 0.16em; }
.why-item h3 { font-size: clamp(19px, 1.9vw, 25px); font-weight: 640; margin-bottom: 14px; }
.why-item p { color: var(--ink-soft); font-size: 15.5px; max-width: 480px; }
html[lang="zh"] .why-item p { line-height: 1.85; }
.why-item::before {
  content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--orange), var(--red));
  transition: width 0.5s var(--ease);
}
.why-item:hover::before { width: 100%; }

/* ============================================================
   HOW — cobalt manifesto scene
   ============================================================ */
.how { padding-block: var(--sec-pad); position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(46% 60% at 88% 12%, rgba(10, 30, 99, 0.55), transparent 70%),
    radial-gradient(30% 40% at 8% 92%, rgba(7, 22, 76, 0.5), transparent 70%);
  pointer-events: none;
}
.how .container { position: relative; }
.how-giant {
  font-size: clamp(42px, 6.6vw, 108px);
  line-height: 1.05; font-weight: 800; color: #fff;
  letter-spacing: 0.005em; max-width: 900px;
}
html[lang="zh"] .how-giant { font-weight: 700; line-height: 1.22; }
.how-thesis {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(19px, 2.4vw, 32px); font-weight: 600;
  color: rgba(247, 249, 255, 0.92); line-height: 1.4;
  max-width: 720px;
}
html[lang="zh"] .how-thesis { line-height: 1.7; }

/* A2A pipeline — open stages, no box */
.how-pipeline {
  margin-top: clamp(44px, 6vw, 88px);
  display: flex; align-items: stretch; gap: clamp(12px, 2vw, 28px);
}
.how-stage {
  flex: 1; padding-top: 18px;
  border-top: 2px solid rgba(247, 249, 255, 0.55);
  transition: border-color 0.3s;
}
.how-stage:hover { border-top-color: var(--orange); }
.how-stage-no { display: block; color: rgba(247, 249, 255, 0.6); font-size: 11px; letter-spacing: 0.16em; margin-bottom: 12px; }
.how-stage p { color: #fff; font-size: clamp(17px, 1.9vw, 26px); font-weight: 700; line-height: 1.3; }
html[lang="zh"] .how-stage p { font-weight: 600; line-height: 1.5; }
.how-pipe-arrow {
  align-self: center; color: rgba(247, 249, 255, 0.65);
  font-size: clamp(18px, 2vw, 28px); flex-shrink: 0;
}

/* process strip */
.how-strip {
  margin-top: clamp(44px, 6vw, 80px);
  padding-top: clamp(20px, 2.6vw, 32px);
  border-top: 1px solid rgba(247, 249, 255, 0.3);
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 12px clamp(28px, 4vw, 64px);
}
.how-strip-flow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.how-strip-flow span { font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; color: #fff; }
.how-strip-flow i { font-style: normal; color: rgba(247, 249, 255, 0.45); }
.how-strip-pay { font-size: 14px; color: rgba(247, 249, 255, 0.66); }
html[lang="zh"] .how-strip-pay { line-height: 1.7; }

@media (max-width: 760px) {
  .how-pipeline { flex-wrap: wrap; }
  .how-pipe-arrow { display: none; }
  .how-stage { flex-basis: calc(50% - 8px); }
}
.how-flow {
  display: flex; align-items: stretch; gap: 14px;
  border: 1px solid rgba(247, 249, 255, 0.35); border-radius: var(--radius);
  padding: clamp(18px, 2vw, 28px); background: rgba(10, 30, 99, 0.28);
}
.how-step { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.how-step .mono {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(247, 249, 255, 0.16); color: #fff; font-size: 12px;
  border: 1px solid rgba(247, 249, 255, 0.4);
}
.how-step p { font-weight: 600; font-size: clamp(14.5px, 1.3vw, 17px); line-height: 1.4; }
.how-arrow { align-self: center; color: rgba(247, 249, 255, 0.7); font-size: 20px; flex-shrink: 0; }
.how-note {
  margin-top: 28px; font-size: 13.5px; color: rgba(247, 249, 255, 0.66);
  border-left: 2px solid rgba(247, 249, 255, 0.4); padding-left: 14px;
}

/* ============================================================
   WORK — cases
   ============================================================ */
.work { padding-block: var(--sec-pad); }
.cases { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.case { border-bottom: 1px solid var(--line); }
.case-head {
  width: 100%; background: none; border: none; cursor: pointer;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 40px;
  align-items: baseline; gap: clamp(14px, 2.5vw, 32px);
  padding: clamp(24px, 3.2vw, 40px) 0;
  text-align: left; color: inherit;
  transition: padding 0.3s var(--ease);
}
.case-head:hover { padding-left: 10px; }
.case-idx { color: var(--ink-soft); font-size: 13px; letter-spacing: 0.14em; }
.case-name {
  font-size: clamp(24px, 3vw, 40px); font-weight: 680; line-height: 1.1;
  transition: color 0.25s;
}
.case-head:hover .case-name { color: var(--cobalt); }
.case-judge { margin-top: 8px; font-size: clamp(14.5px, 1.4vw, 17px); color: var(--ink-soft); font-weight: 500; }
.case-tag {
  justify-self: end; align-self: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 12px; white-space: nowrap;
}
.case-plus {
  position: relative; width: 22px; height: 22px; justify-self: end; align-self: center;
}
.case-plus::before, .case-plus::after {
  content: ""; position: absolute; background: var(--ink); transition: transform 0.3s var(--ease);
}
.case-plus::before { left: 0; right: 0; top: 10px; height: 2px; }
.case-plus::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.case-head[aria-expanded="true"] .case-plus::after { transform: rotate(90deg) scaleX(0); }
.case-head[aria-expanded="true"] .case-plus::before { background: var(--cobalt); }

.case-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}
.case-head[aria-expanded="true"] ~ .case-body,
.case.is-open .case-body { grid-template-rows: 1fr; }
.case-body-in { overflow: hidden; }
.case-body-in > div {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) clamp(14px, 2.5vw, 32px);
  gap: clamp(14px, 2.5vw, 32px);
  padding: 6px 0;
}
html[lang="zh"] .case-body-in > div { grid-template-columns: 8em minmax(0, 1fr) clamp(14px, 2.5vw, 32px); }
.case-row h4 {
  color: var(--cobalt); font-size: 10.5px; letter-spacing: 0.18em; font-weight: 600;
  padding-top: 5px;
}
.case-row p { color: var(--ink-soft); font-size: 15.5px; max-width: 640px; }
html[lang="zh"] .case-row p { line-height: 1.85; }
.case-results { color: var(--ink); font-weight: 600; }
.case-body-in { padding-bottom: 10px; }
.case.is-open .case-body-in { padding-bottom: clamp(20px, 2.5vw, 36px); }

/* facet divider between work and labs */
.facet-divider { background: var(--warm); padding: 8px 0 40px; }
.facet-divider svg { width: 100%; height: 40px; display: block; }

/* ============================================================
   LABS
   ============================================================ */
.labs { padding-block: var(--sec-pad); border-top: 1px solid var(--line-dark); }
.labs .sec-title { color: var(--paper-dark); }
/* the organization behind the tools */
.lab-org {
  margin-top: clamp(40px, 5vw, 72px);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 48px);
  text-decoration: none;
  border: 1px solid rgba(110, 140, 255, 0.45); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(20, 63, 208, 0.14), rgba(10, 30, 99, 0.05));
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px);
  transition: border-color 0.3s, background 0.3s;
}
.lab-org:hover { border-color: #6E8CFF; }
.lab-org-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.lab-org-main p { color: var(--paper-dark-soft); font-size: 15.5px; max-width: 560px; }
html[lang="zh"] .lab-org-main p { line-height: 1.8; }
.lab-org .lab-domain { font-size: 20px; letter-spacing: 0.06em; color: #6E8CFF; }
.lab-org-tag {
  flex-shrink: 0;
  color: var(--paper-dark-soft);
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 6px 14px; white-space: nowrap;
}
.lab-org .lab-arrow { font-size: 26px; }

.labs-grid {
  margin-top: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.lab-item {
  text-decoration: none; padding: clamp(26px, 3vw, 44px) clamp(20px, 2.4vw, 36px);
  border-bottom: 1px solid var(--line-dark);
  border-right: 1px solid var(--line-dark);
  position: relative; display: flex; flex-direction: column; gap: 16px;
  transition: background 0.3s;
}
.lab-item:last-child { border-right: none; }
.lab-item:hover { background: rgba(245, 241, 234, 0.05); }
.lab-domain { color: #6E8CFF; font-size: 13px; letter-spacing: 0.1em; }
.lab-item p { color: var(--paper-dark-soft); font-size: 15px; flex: 1; }
html[lang="zh"] .lab-item p { line-height: 1.8; }
.lab-arrow {
  align-self: flex-end; font-size: 22px; color: var(--paper-dark-soft);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.lab-item:hover .lab-arrow { transform: translate(3px, -3px); color: var(--orange); }

/* ============================================================
   EXPERIENCE & PLATFORMS
   ============================================================ */
.exp { padding-block: var(--sec-pad); }
.exp-block + .exp-block { margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.exp-title { font-size: clamp(22px, 2.6vw, 34px); font-weight: 640; max-width: 760px; }
html[lang="zh"] .exp-title { line-height: 1.5; }
.exp-note { margin-top: 16px; color: var(--ink-soft); font-size: 14.5px; max-width: 640px; }
html[lang="zh"] .exp-note { line-height: 1.8; }
.logo-wall {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 44vw), 1fr));
  gap: clamp(14px, 2vw, 26px);
  align-items: center;
  border-block: 1px solid var(--line);
  padding-block: clamp(28px, 3.5vw, 44px);
}
.logo-cell {
  display: flex; align-items: center; justify-content: center;
  height: 64px; min-width: 0;
  filter: grayscale(0.35); opacity: 0.88;
  transition: filter 0.3s var(--ease), opacity 0.3s var(--ease);
}
.logo-cell:hover { filter: grayscale(0); opacity: 1; }
.logo-cell img { width: auto; height: var(--h, 32px); max-width: 100%; }
.logo-cell-wide { grid-column: span 2; }
.logo-tile { filter: none; opacity: 1; }
.logo-tile-name {
  font-size: 14px; font-weight: 560; color: var(--ink-soft);
  letter-spacing: 0.05em; text-align: center; line-height: 1.45;
  padding-inline: 6px; max-width: 100%;
  overflow-wrap: break-word; text-wrap: balance;
  transition: color 0.3s var(--ease);
}
.logo-tile:hover { filter: none; opacity: 1; }
.logo-tile:hover .logo-tile-name { color: var(--ink); }
@media (max-width: 700px) {
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .logo-cell-wide { grid-column: 1 / -1; }
}
.exp-sub { font-size: clamp(18px, 1.8vw, 24px); font-weight: 640; }
.plat-row {
  list-style: none; margin-top: 28px;
  display: grid; grid-template-columns: repeat(4, max-content);
  justify-content: start; row-gap: 16px;
}
.plat-row { gap: 12px; row-gap: 14px; }
.plat-row a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: clamp(14px, 1.4vw, 17px); font-weight: 600; color: var(--ink);
  padding: 12px 20px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--warm);
  text-decoration: none; justify-self: start;
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.plat-row a img { height: 20px; width: auto; max-width: 132px; display: block; }
.plat-row a:hover {
  border-color: var(--cobalt); color: var(--cobalt);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(20, 63, 208, 0.12);
}
@media (max-width: 700px) {
  .plat-row { grid-template-columns: repeat(2, max-content); }
}

/* ============================================================
   BACKGROUND
   ============================================================ */
.bg-sec { padding-block: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); }
.bg-inner { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.bg-text { color: var(--ink-soft); font-size: 15.5px; max-width: 680px; }
html[lang="zh"] .bg-text { line-height: 1.9; }

/* global footprint — dot-matrix world map with numbered pins */
.footprint { margin-top: clamp(56px, 7vw, 96px); }
.fp-map {
  position: relative; width: 100%; max-width: 840px;
  aspect-ratio: 2 / 1; margin-top: 28px;
}
.fp-dots, .fp-leaders { position: absolute; inset: 0; width: 100%; height: 100%; }
.city-pin {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cobalt); color: #fff;
  border: 2px solid var(--warm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: background 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.city-pin span { font-size: 10px; letter-spacing: 0; font-weight: 600; }
.city-pin:hover, .city-pin.is-hot {
  background: var(--red); transform: translate(-50%, -50%) scale(1.18);
  box-shadow: 0 0 0 5px rgba(226, 62, 43, 0.18);
}
.city-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 26px;
}
.city-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--warm); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.city-chip .mono { font-size: 10px; color: var(--cobalt); }
.city-chip:hover, .city-chip.is-hot { color: var(--ink); border-color: var(--red); background: rgba(226, 62, 43, 0.05); }
.city-chip:hover .mono, .city-chip.is-hot .mono { color: var(--red); }
.fp-cap { margin-top: 22px; font-size: 13.5px; color: var(--ink-soft); max-width: 640px; }
html[lang="zh"] .fp-cap { line-height: 1.8; }
@media (max-width: 700px) {
  .city-pin { width: 24px; height: 24px; }
  .city-pin span { font-size: 8.5px; }
  .city-chip { padding: 7px 12px; font-size: 12.5px; }
}

/* ============================================================
   CTA
   ============================================================ */
.cta { padding-block: var(--sec-pad); border-top: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; right: -140px; top: -80px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(226, 62, 43, 0.14), transparent 65%);
  pointer-events: none;
}
.cta .sec-title {
  color: var(--paper-dark);
  font-size: clamp(40px, 6.4vw, 104px);
  line-height: 1.04; font-weight: 800;
}
html[lang="zh"] .cta .sec-title { font-weight: 700; line-height: 1.2; }
.cta .sec-lead { color: var(--paper-dark-soft); font-size: clamp(16px, 1.6vw, 19px); }
.cta-form {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 48px);
  position: relative; z-index: 1;
}
.field { display: flex; flex-direction: column; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--paper-dark-soft); letter-spacing: 0.04em; }
.field input, .field textarea {
  background: transparent; border: none; border-bottom: 1px solid var(--line-dark);
  color: var(--paper-dark); font: inherit; font-size: 16.5px;
  padding: 10px 2px 14px; border-radius: 0;
  transition: border-color 0.25s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(245, 241, 234, 0.35); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: #6E8CFF; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: var(--red); }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-hint { color: var(--paper-dark-soft); font-size: 14px; max-width: 460px; }
html[lang="zh"] .form-hint { line-height: 1.8; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-errors {
  grid-column: 1 / -1; color: #FF8E7A; border: 1px solid rgba(255, 142, 122, 0.45);
  border-radius: 6px; padding: 12px 16px; text-transform: none; letter-spacing: 0.04em;
}
.field-err { color: #FF8E7A; font-size: 13px; padding-top: 6px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: #FF8E7A; }
.field input:user-invalid, .field textarea:user-invalid { border-bottom-color: #FF8E7A; }
.form-done { padding-block: 24px; border-top: 1px solid var(--line-dark); }
.form-done-title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 640; color: var(--paper-dark); }
.form-done-body { margin-top: 12px; color: var(--paper-dark-soft); max-width: 560px; }
.form-done-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.btn-ghost-dark { background: transparent; color: var(--paper-dark); border-color: rgba(245, 241, 234, 0.4); }
.btn-ghost-dark:hover { border-color: var(--paper-dark); background: rgba(245, 241, 234, 0.07); }

/* ============================================================
   FINALE — WAY TO GLOBAL .AI
   ============================================================ */
.finale {
  border-top: 1px solid var(--line-dark);
  padding-block: clamp(96px, 12vw, 168px);
  position: relative; overflow: hidden;
  background:
    radial-gradient(50% 60% at 82% 20%, rgba(240, 120, 45, 0.08), transparent 70%),
    radial-gradient(40% 46% at 12% 84%, rgba(20, 63, 208, 0.16), transparent 72%),
    var(--black-scene);
}
.finale-label { color: var(--paper-dark-soft); margin-bottom: clamp(24px, 3vw, 40px); }
.finale-label .lbl-ai { color: #7C97FF; }
.finale-line {
  font-size: clamp(40px, 7.2vw, 112px);
  font-weight: 800; line-height: 1.04; color: #FBF8F3;
  text-transform: uppercase; letter-spacing: 0.005em;
  display: flex; flex-wrap: wrap; column-gap: 0.22em;
}
.fw-wrap { display: inline-block; overflow: hidden; padding-bottom: 0.06em; }
.fw {
  display: inline-block; transform: translateY(112%);
  transition: transform 0.75s var(--ease), color 0.3s;
  cursor: default; outline-offset: 6px;
}
.finale.is-in .fw { transform: none; }
.finale.is-in .fw-wrap:nth-child(1) .fw { transition-delay: 0.05s; }
.finale.is-in .fw-wrap:nth-child(2) .fw { transition-delay: 0.22s; }
.finale.is-in .fw-wrap:nth-child(3) .fw { transition-delay: 0.4s; }
.finale.is-in .fw-wrap:nth-child(4) .fw { transition-delay: 0.62s; }
.fw:hover, .fw:focus-visible { color: #7C97FF; }
.fw-ai { color: #7C97FF; text-shadow: 0 0 26px rgba(124, 151, 255, 0.5); animation: aiPulse 3.2s ease-in-out infinite; }
@keyframes aiPulse { 0%, 100% { text-shadow: 0 0 22px rgba(124, 151, 255, 0.4); } 50% { text-shadow: 0 0 40px rgba(124, 151, 255, 0.75); } }
.finale-cap {
  min-height: 2.2em; margin-top: 18px;
  color: var(--orange); text-transform: none; letter-spacing: 0.1em;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.finale-cap.is-show { opacity: 1; transform: none; }

.finale-route {
  margin-top: clamp(30px, 4vw, 52px);
  display: flex; align-items: flex-start; gap: 14px;
  max-width: 720px;
}
.route-svg { flex: 1; height: 56px; overflow: visible; }
.route-path {
  fill: none; stroke: rgba(245, 241, 234, 0.4); stroke-width: 1.5;
  stroke-dasharray: 780; stroke-dashoffset: 780;
  transition: stroke-dashoffset 1.8s var(--ease) 0.9s;
}
.finale.is-in .route-path { stroke-dashoffset: 0; }
.route-dot { fill: #7C97FF; }
.finale-m {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  width: 52px; padding: 0; margin-top: -16px;
  opacity: 0; transform: scale(0.6) rotate(-12deg);
  transition: opacity 0.6s var(--ease) 1.7s, transform 0.6s var(--ease) 1.7s;
}
.finale.is-in .finale-m { opacity: 1; transform: none; }
.finale-m:hover { transform: scale(1.08); }
.finale-m .m-facet { position: static; inset: auto; width: 100%; height: auto; overflow: visible; }
.finale-mission {
  margin-top: clamp(30px, 4vw, 52px);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.8s var(--ease) 2.2s, transform 0.8s var(--ease) 2.2s;
}
.finale.is-in .finale-mission { opacity: 1; transform: none; }
.finale-mono { color: var(--orange); margin-bottom: 14px; letter-spacing: 0.22em; }
.finale-mission-line {
  font-size: clamp(20px, 2.6vw, 34px); font-weight: 700;
  color: #FBF8F3; line-height: 1.3; max-width: 720px;
}
html[lang="zh"] .finale-mission-line { font-weight: 600; line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  .fw { transform: none !important; }
  .route-path { stroke-dashoffset: 0 !important; }
  .route-dot { display: none; }
  .finale-m, .finale-mission { opacity: 1 !important; transform: none !important; }
  .fw-ai { animation: none; }
}
/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line-dark); padding-block: clamp(48px, 6vw, 80px) 40px; }
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.7fr));
  gap: clamp(28px, 4vw, 64px);
}
.footer .brand-name { color: var(--paper-dark); }
.footer-line { margin-top: 18px; color: var(--paper-dark); font-size: 15px; font-style: italic; max-width: 340px; }
.footer-meta { margin-top: 26px; color: var(--paper-dark-soft); font-size: 11px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { color: var(--paper-dark-soft); font-size: 10.5px; letter-spacing: 0.18em; margin-bottom: 6px; }
.footer-col a { color: var(--paper-dark-soft); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper-dark); }

/* ============================================================
   FIRST-VISIT GATE — human or agent (light, non-blocking)
   ============================================================ */
.gate {
  position: fixed; right: 22px; bottom: 22px; z-index: 88;
  width: min(320px, calc(100vw - 44px));
  background: var(--warm); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(14, 13, 11, 0.22);
  animation: gateIn 0.5s var(--ease);
}
@keyframes gateIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gate-label { color: var(--cobalt); margin-bottom: 10px; }
.gate-q { font-size: 16.5px; font-weight: 600; line-height: 1.4; }
html[lang="zh"] .gate-q { line-height: 1.6; }
.gate-actions { display: flex; gap: 10px; margin-top: 16px; }
.gate-btn {
  flex: 1; font: inherit; font-size: 14px; font-weight: 600;
  padding: 11px 12px; border-radius: 6px; cursor: pointer;
  background: var(--warm); color: var(--ink);
  border: 1px solid var(--line-strong);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  min-height: 44px;
}
.gate-btn:hover { border-color: var(--ink); }
.gate-btn-agent { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.gate-btn-agent:hover { background: var(--cobalt-deep); }
.gate-hint { margin-top: 12px; color: var(--ink-soft); text-transform: none; letter-spacing: 0.06em; font-size: 10.5px; }
.gate-close {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border: none; background: none; cursor: pointer;
  color: var(--ink-soft); font-size: 12px; border-radius: 50%;
  transition: color 0.2s, background 0.2s;
}
.gate-close:hover { color: var(--ink); background: rgba(23, 19, 14, 0.06); }
@media (max-width: 560px) {
  .gate { right: 14px; left: 14px; bottom: 14px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gate { animation: none; }
}
/* ============================================================
   AGENT MODAL
   ============================================================ */
.agent-modal { border: none; padding: 0; background: transparent; max-width: 640px; width: calc(100% - 40px); margin: auto; }
.agent-modal::backdrop { background: rgba(14, 13, 11, 0.55); backdrop-filter: blur(6px); }
.agent-panel {
  background: var(--warm); color: var(--ink);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  position: relative; max-height: 86vh; overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.agent-close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: none; cursor: pointer;
  color: var(--ink-soft); font-size: 14px; transition: border-color 0.2s, color 0.2s;
}
.agent-close:hover { border-color: var(--ink); color: var(--ink); }
.agent-panel h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 640; max-width: 420px; }
.agent-default {
  margin-top: 18px; padding: 14px 18px;
  border: 1px solid var(--line-strong); border-left: 3px solid var(--cobalt);
  border-radius: 6px; font-weight: 500; color: var(--ink);
}
.agent-qa { margin-top: 22px; display: flex; flex-direction: column; }
.agent-qa details { border-top: 1px solid var(--line); }
.agent-qa details:last-child { border-bottom: 1px solid var(--line); }
.agent-qa summary {
  cursor: pointer; list-style: none; padding: 16px 4px;
  font-weight: 600; font-size: 15.5px; display: flex; justify-content: space-between; gap: 16px;
}
.agent-qa summary::-webkit-details-marker { display: none; }
.agent-qa summary::after { content: "+"; color: var(--cobalt); font-weight: 400; transition: transform 0.3s; }
.agent-qa details[open] summary::after { transform: rotate(45deg); }
.agent-qa details p { padding: 0 4px 18px; color: var(--ink-soft); font-size: 14.5px; }
html[lang="zh"] .agent-qa details p { line-height: 1.8; }
.agent-scope { margin: 22px 0 18px; font-size: 13.5px; color: var(--ink-soft); }
html[lang="zh"] .agent-scope { line-height: 1.8; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.why-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.why-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.why-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.cases .reveal:nth-child(2) { transition-delay: 0.05s; }
.cases .reveal:nth-child(3) { transition-delay: 0.1s; }
.cases .reveal:nth-child(4) { transition-delay: 0.15s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .what-track { height: auto; }
  .what-sticky { position: static; height: auto; padding-block: var(--sec-pad); }
  .what-grid { grid-template-columns: 1fr; gap: 40px; }
  .stage { opacity: 1; }
  .stage-body { grid-template-rows: 1fr; opacity: 1; }
  .m-split .mseg { opacity: 1; }
  .what-m-dots { display: none; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 130px; padding-bottom: 72px; }
  .hero-row { flex-direction: column; align-items: flex-start; gap: 44px; }
  .hero-m { width: min(62vw, 340px); margin-bottom: 34px; }
  .hero-m-hint { bottom: -30px; right: auto; left: 4px; }
  .who-cols { grid-template-columns: 1fr; gap: 28px; }
  .why-grid { grid-template-columns: 1fr; }
  .how-cols { grid-template-columns: 1fr; }
  .how-flow { flex-direction: column; gap: 18px; }
  .how-arrow { transform: rotate(90deg); align-self: flex-start; margin-left: 14px; }
  .labs-grid { grid-template-columns: 1fr; }
  .lab-item { border-right: none; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .bg-inner { grid-template-columns: 1fr; gap: 18px; }
  .cta-form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .case-head { grid-template-columns: 44px minmax(0, 1fr) auto 30px; }
  .case-tag { display: none; }
  .case-body-in > div { grid-template-columns: 44px minmax(0, 1fr) 12px; }
  html[lang="zh"] .case-body-in > div { grid-template-columns: 7em minmax(0, 1fr) 12px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .plat-row li { font-size: 16px; padding-inline: 10px; }
  .logo-wall { gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-inner { transform: none !important; opacity: 1 !important; }
  .hero-m-stack { transform: none !important; }
  .marquee-track { animation: none; }
}
