
:root{
  --bg:#fff;
  --ink:rgba(15,15,15,.96);
  --body:rgba(24,24,24,.70);
  --soft:rgba(35,35,35,.42);
  --line:rgba(20,20,20,.11);
  --green-bg:#e7f1ea;
  --green-ink:#18351f;
  --ease:cubic-bezier(.22,.72,.30,1);
  --flight-ease:cubic-bezier(.22,.61,.36,1);
  --brand-size:38px;
  --header-h:76px;
  --rail-x:max(38px,calc((100vw - 1400px)/2 + 28px));
  --content-x:calc(var(--rail-x) + 78px);
  --left-w:min(800px,52vw);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:#fff}
html,body{margin:0;min-height:100%;background:#fff;color:var(--ink)}
body{
  min-width:280px;
  overflow-x:hidden;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button{font:inherit}
body.is-intro{height:100svh;overflow:hidden}
main{opacity:0;transition:opacity .30s ease}
body.is-content-entering main,
body.is-ready main{opacity:1}

/* ---------- one persistent globe: intro -> fixed right ---------- */
.globe-stage{
  position:fixed;
  z-index:1;
  left:50%;
  top:50%;
  width:clamp(600px,44vw,800px);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  pointer-events:none;
  opacity:.54;
  will-change:left,right,top,width,transform,opacity;
  transition:left 1.10s var(--ease),right 1.10s var(--ease),top 1.10s var(--ease),width 1.10s var(--ease),opacity .92s var(--ease);
  -webkit-mask-image:radial-gradient(circle at 50% 50%,transparent 0 18%,rgba(0,0,0,.10) 24%,rgba(0,0,0,.58) 37%,#000 50%);
  mask-image:radial-gradient(circle at 50% 50%,transparent 0 18%,rgba(0,0,0,.10) 24%,rgba(0,0,0,.58) 37%,#000 50%);
}
.globe-stage canvas{display:block;width:100%;height:100%}
body.is-exiting .globe-stage,
body.is-ready .globe-stage{
  --globe-size:clamp(820px,54vw,1120px);
  --globe-right:max(-118px,calc((100vw - 1400px)/2 - 92px));
  left:calc(100vw - var(--globe-right) - (var(--globe-size) / 2));
  right:auto;
  top:50%;
  width:var(--globe-size);
  transform:translate(-50%,-50%);
  opacity:.24;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.10) 4%,rgba(0,0,0,.38) 13%,rgba(0,0,0,.74) 26%,#000 42%);
  mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.10) 4%,rgba(0,0,0,.38) 13%,rgba(0,0,0,.74) 26%,#000 42%);
}

/* ---------- intro mark ---------- */
.intro-mark-shell{
  position:fixed;
  z-index:60;
  left:50%;
  top:50%;
  width:clamp(112px,8vw,142px);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  transform-origin:center;
  pointer-events:none;
  will-change:transform,opacity;
}
.intro-mark{display:block;width:100%;height:100%}
.logo-fill{fill:#111}
.logo-frame{fill:none;stroke:#111;stroke-width:6}
.mask-stroke{fill:none;stroke:#fff;stroke-linecap:round;stroke-linejoin:round;opacity:0}
.mask-axis{stroke-width:16;stroke-linecap:butt;stroke-dasharray:1 1;stroke-dashoffset:1}
.mask-h-cross,.mask-h-up,.mask-h-down{stroke-width:16;stroke-linecap:butt;stroke-dasharray:1 1;stroke-dashoffset:1}
.mask-z{stroke-width:26;stroke-dasharray:1;stroke-dashoffset:1}
.mask-c{stroke-width:28;stroke-dasharray:1;stroke-dashoffset:1}
.mask-frame{stroke-width:13;stroke-dasharray:1;stroke-dashoffset:1}
/* Final master handoff: keep frame 0 clean, then switch to the exact final
   master BEFORE construction layers are hidden. This removes the one-frame
   white/grey flash that happened when both events started together. */
.intro-final{opacity:0;visibility:hidden}
@keyframes introFinalOn{to{opacity:1;visibility:visible}}
@keyframes introLayerHide{to{opacity:0;visibility:hidden}}
@keyframes reveal{to{stroke-dashoffset:0}}
@keyframes maskOn{to{opacity:1}}

/* No intro geometry is paintable before JS arms the sequence. */
.intro-mark-shell{visibility:hidden}
body.intro-armed .intro-mark-shell{visibility:visible}

body.intro-armed .mask-axis{animation:reveal .44s var(--ease) .34s forwards,maskOn 1ms linear .35s forwards}
body.intro-armed .mask-h-cross{animation:reveal .18s var(--ease) .82s forwards,maskOn 1ms linear .83s forwards}
body.intro-armed .mask-h-up{animation:reveal .15s var(--ease) 1.03s forwards,maskOn 1ms linear 1.04s forwards}
body.intro-armed .mask-h-down{animation:reveal .15s var(--ease) 1.03s forwards,maskOn 1ms linear 1.04s forwards}
body.intro-armed .mask-z{animation:reveal .38s var(--ease) 1.18s forwards,maskOn 1ms linear 1.19s forwards}
body.intro-armed .mask-c{animation:reveal .38s var(--ease) 1.48s forwards,maskOn 1ms linear 1.49s forwards}
body.intro-armed .mask-frame-right,
body.intro-armed .mask-frame-left{animation:reveal .50s var(--ease) 1.75s forwards,maskOn 1ms linear 1.76s forwards}
body.intro-armed .intro-final{animation:introFinalOn 1ms linear 2.26s forwards}
body.intro-armed .intro-layer{animation:introLayerHide 1ms linear 2.30s forwards}

/* The SAME visual logo flies to the permanent top-left slot and stays there. */
.intro-mark-shell.is-flying{
  left:var(--rail-x);
  top:calc((var(--header-h) - var(--brand-size)) / 2);
  width:var(--brand-size);
  transform:translate(0,0);
  transition:
    left .62s var(--flight-ease),
    top .62s var(--flight-ease),
    width .62s var(--flight-ease),
    transform .62s var(--flight-ease);
}
.intro-mark-shell.is-hidden{opacity:0;visibility:hidden}

/* ---------- persistent header / protected logo lane ---------- */
.topbar{
  position:fixed;
  z-index:50;
  inset:0 0 auto 0;
  height:var(--header-h);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 var(--rail-x);
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease;
}
body.is-content-entering .topbar,
body.is-ready .topbar{opacity:1;pointer-events:auto}
.brand{
  display:block;
  width:var(--brand-size);
  height:var(--brand-size);
  opacity:0;
  visibility:visible;
  pointer-events:none;
}
.brand.is-arrived{pointer-events:auto}
.brand img{display:block;width:100%;height:100%}
.lang-switch{display:flex;align-items:center;gap:8px;color:rgba(32,32,32,.36);font-size:10.5px;letter-spacing:.055em;opacity:0;transition:opacity .28s ease}
.lang-switch button{padding:6px 2px;border:0;background:transparent;color:inherit;cursor:pointer}
.lang-switch button.is-active{color:rgba(18,18,18,.92);font-weight:680}
body.is-content-entering .lang-switch,
body.is-ready .lang-switch{opacity:1}

/* ---------- left scrolling rail ---------- */
main{
  position:relative;
  z-index:2;
  width:var(--left-w);
  margin-left:var(--content-x);
}
.hero{
  min-height:100svh;
  display:flex;
  align-items:center;
  padding:calc(var(--header-h) + 28px) 0 34px;
}
.hero-copy{width:100%;max-width:760px;opacity:0;transform:translateY(10px)}
body.is-content-entering .hero-copy,
body.is-ready .hero-copy{opacity:1;transform:none;transition:opacity .52s var(--ease),transform .52s var(--ease)}
.section-kicker{margin:0 0 18px;color:var(--soft);font-size:9px;font-weight:700;letter-spacing:.18em}
.hero h1{margin:0 0 36px;color:rgba(15,15,15,.97);font-size:clamp(48px,4.25vw,64px);font-weight:520;letter-spacing:-.058em;line-height:.92}
.services{border-top:1px solid var(--line)}
.service{
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  gap:15px;
  padding:28px 0 30px;
  border-bottom:1px solid var(--line);
  align-items:start;
  opacity:0;
  transform:translateY(8px);
}
body.is-content-entering .service:nth-child(1),
body.is-ready .service:nth-child(1){animation:itemIn .44s var(--ease) .10s forwards}
body.is-content-entering .service:nth-child(2),
body.is-ready .service:nth-child(2){animation:itemIn .44s var(--ease) .20s forwards}
body.is-content-entering .service:nth-child(3),
body.is-ready .service:nth-child(3){animation:itemIn .44s var(--ease) .30s forwards}
@keyframes itemIn{to{opacity:1;transform:none}}
.service-no{padding-top:5px;color:rgba(32,32,32,.38);font-size:9px;font-weight:650;letter-spacing:.10em}
.service h2{margin:0;max-width:640px;color:rgba(18,18,18,.92);font-size:clamp(21px,1.55vw,27px);font-weight:540;letter-spacing:-.032em;line-height:1.14}
.service p{margin:9px 0 0;max-width:640px;color:var(--body);font-size:13.5px;line-height:1.68}
.platforms{margin-top:8px;color:rgba(24,24,24,.78);font-size:11.5px;line-height:1.42;letter-spacing:.025em}
.platforms strong{font-weight:700}
.service-summary{color:rgba(24,24,24,.86);font-weight:710}

/* ---------- compact second section; page ends after copyright ---------- */
.trust{
  min-height:0;
  border-top:1px solid var(--line);
  display:block;
  background:transparent;
  padding:34px 0 22px;
}
.trust-inner{width:100%;max-width:760px;margin:0;text-align:left}
.stats{
  width:100%;
  margin:0;
  padding:0 0 22px;
  border-bottom:1px solid var(--line);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:28px;
}
.stat{display:flex;flex-direction:column;align-items:flex-start;text-align:left}
.stat-value{display:flex;align-items:baseline;justify-content:flex-start;color:rgba(16,16,16,.94);font-size:clamp(72px,6.8vw,98px);font-weight:470;letter-spacing:-.068em;line-height:.82}
.stat-value > span:last-child{font-size:.38em;font-weight:300;line-height:1;color:rgba(16,16,16,.70);margin-left:.08em;transform:translateY(-.06em);letter-spacing:0}
.stat-label{margin-top:12px;max-width:230px;color:rgba(26,26,26,.70);font-size:11.5px;font-weight:600;line-height:1.48;letter-spacing:.018em}
.contact-block{width:100%;margin-top:18px;padding:0 0 20px;border-bottom:1px solid var(--line);text-align:left}
.contact-label{margin-bottom:10px;color:rgba(24,24,24,.70);font-size:11.2px;font-weight:600;letter-spacing:.03em}
.wechat-id{appearance:none;-webkit-appearance:none;border:1px solid rgba(25,60,33,.10);border-radius:6px;padding:8px 13px 9px;background:var(--green-bg);color:var(--green-ink);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:12.5px;line-height:1.2;font-weight:650;cursor:pointer;transition:transform .16s ease,background .16s ease,border-color .16s ease}
.wechat-id:hover{background:#dfede3;border-color:rgba(25,60,33,.16)}
.wechat-id:active{transform:scale(.985)}
.wechat-id:focus-visible{outline:2px solid rgba(24,53,31,.26);outline-offset:3px}
.copyright{margin-top:22px;color:rgba(30,30,30,.43);font-size:10px;letter-spacing:.06em;text-align:left}
.copy-toast{position:fixed;z-index:100;left:50%;bottom:max(28px,calc(env(safe-area-inset-bottom) + 18px));max-width:min(420px,calc(100vw - 32px));padding:10px 14px;border-radius:8px;background:rgba(22,22,22,.88);color:#fff;font-size:12px;line-height:1.45;text-align:center;box-shadow:0 8px 28px rgba(0,0,0,.14);opacity:0;visibility:hidden;transform:translate(-50%,8px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;pointer-events:none}
.copy-toast.is-visible{opacity:1;visibility:visible;transform:translate(-50%,0)}

@media(max-width:720px){
  :root{
    --header-h:62px;
    --rail-x:14px;
    --content-x:56px;
    --left-w:calc(100vw - 76px);
    --brand-size:28px;
  }
  .topbar{height:var(--header-h);padding:0 14px}
  .brand{width:28px;height:28px}
  .lang-switch{gap:6px;font-size:9.5px}

  /* Intro stays standalone. Afterward the same globe grows to a PC-like
     visual scale on the LEFT and spans most of the phone height. */
  .globe-stage{width:88vw;opacity:.48}
  .intro-mark-shell{width:clamp(94px,25vw,112px)}
  body.is-exiting .globe-stage,
  body.is-ready .globe-stage{
    --mobile-globe-size:max(158vw,78svh);
    left:calc(-60vw + (var(--mobile-globe-size) / 2));
    right:auto;
    top:50%;
    width:var(--mobile-globe-size);
    transform:translate(-50%,-50%);
    opacity:.15;
    -webkit-mask-image:linear-gradient(to right,#000 0%,#000 34%,rgba(0,0,0,.52) 48%,rgba(0,0,0,.15) 62%,transparent 76%);
    mask-image:linear-gradient(to right,#000 0%,#000 34%,rgba(0,0,0,.52) 48%,rgba(0,0,0,.15) 62%,transparent 76%);
  }
  main{width:var(--left-w);margin-left:var(--content-x)}
  .hero{min-height:100svh;align-items:center;padding:calc(var(--header-h) + 8px) 0 20px}
  .section-kicker{margin-bottom:11px;font-size:8px;letter-spacing:.14em}
  .hero h1{margin-bottom:24px;font-size:clamp(34px,9.3vw,42px);font-weight:520}
  .service{grid-template-columns:22px minmax(0,1fr);gap:8px;padding:17px 0 19px}
  .service-no{padding-top:3px;font-size:8px}
  .service h2{font-size:clamp(15.5px,4.3vw,18.5px);line-height:1.18}
  .service p{margin-top:7px;font-size:10.8px;line-height:1.54}
  .platforms{margin-top:7px;font-size:9.2px;line-height:1.4}
  .trust{min-height:0;padding:26px 0 18px}
  .stats{gap:10px;padding-bottom:18px}
  .stat-value{font-size:clamp(46px,13.5vw,62px)}
  .stat-label{margin-top:9px;max-width:140px;font-size:9.8px;line-height:1.4}
  .contact-block{margin-top:16px;padding-bottom:18px}
  .contact-label{font-size:10.5px;margin-bottom:8px}
  .wechat-id{padding:7px 11px 8px;font-size:11.5px;border-radius:6px}
  .trust-inner,
  .contact-block,
  .copyright{text-align:left}
  .stat{align-items:flex-start;text-align:left}
  .stat-value{justify-content:flex-start}
  .stat-label{text-align:left}
  .copyright{margin-top:18px}

  .copy-toast{max-width:calc(100vw - 28px);font-size:11px}
}

@media(max-width:390px){
  .hero h1{font-size:34px}
  .service h2{font-size:15.2px}
  .service p{font-size:10.5px}
  .platforms{font-size:9px}
}

@media(max-height:720px) and (max-width:720px){
  /* keep the first section independent even on short phones; only tighten spacing */
  .hero{min-height:100svh;padding-top:72px;padding-bottom:18px}
  .hero h1{margin-bottom:20px}
  .service{padding:14px 0 16px}
  .service h2{font-size:15px}
  .service p{font-size:10.2px;line-height:1.48}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

body:not(.intro-armed) .intro-mark-shell .mask-stroke{
  opacity:0!important;
  stroke-dashoffset:1!important;
  animation:none!important;
}
