/* ==========================================================================
   AI-Traverse — styles.css
   Dark Tech / Glassmorphism · mobile-first · responsive · print-ready
   Palette: deep navy #0D1520, ice cyan #73EDEE, mint green #00E5A3
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0D1520;
  --bg-2: #0A1119;
  --bg-3: #101A26;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(115, 237, 238, 0.35);

  --text: #EAF1FA;
  --text-dim: #A3B0C3;
  --text-faint: #74839A;

  --cyan: #73EDEE;
  --cyan-bright: #A8F6F7;
  --green: #00E5A3;

  --grad-brand: linear-gradient(120deg, var(--cyan), var(--green));
  --grad-brand-soft: linear-gradient(120deg, rgba(115, 237, 238, 0.16), rgba(0, 229, 163, 0.16));

  --radius: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 0 1px rgba(115, 237, 238, 0.25), 0 14px 44px -14px rgba(115, 237, 238, 0.4);
  --shadow-card: 0 24px 70px -32px rgba(0, 0, 0, 0.85);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
               "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas,
               "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", monospace;

  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
strong { color: var(--text); font-weight: 600; }
kbd {
  font-family: var(--font-mono); font-size: 0.8em;
  padding: 0.12em 0.5em; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  color: var(--text-dim);
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  padding: 10px 16px; border-radius: 10px;
  background: var(--cyan); color: #04131a; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Animated background layers ---------- */
#bg-canvas { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; }
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: 0.55;
  background-image:
    linear-gradient(rgba(115, 237, 238, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 237, 238, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 28%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 28%, #000 25%, transparent 78%);
}
.bg-vignette {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130% 95% at 50% 15%, transparent 45%, rgba(8, 11, 18, 0.9) 100%);
}

/* ---------- Layout shell ---------- */
.site-shell { position: relative; z-index: 1; }
.container { width: min(100% - 40px, 1200px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
  padding-inline: max(20px, env(safe-area-inset-left));
  background: rgba(13, 21, 32, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; color: var(--cyan); filter: drop-shadow(0 0 8px rgba(115, 237, 238, 0.5)); }
.brand-text {
  font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.14em;
  font-size: 0.95rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.site-nav { display: none; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; border-radius: 10px;
  font-size: 0.9rem; color: var(--text-dim); font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--cyan); background: rgba(115, 237, 238, 0.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-ghost { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 20px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.btn svg { width: 1.12em; height: 1.12em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn-primary {
  background: var(--grad-brand); color: #04131a;
  box-shadow: 0 10px 30px -12px rgba(115, 237, 238, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(115, 237, 238, 0.8); }
.btn-outline {
  background: rgba(115, 237, 238, 0.04); color: var(--cyan);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: rgba(115, 237, 238, 0.12); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-ghost { color: var(--text-dim); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { color: var(--cyan); border-color: var(--border-strong); }
.btn-green {
  background: linear-gradient(120deg, var(--green), var(--cyan)); color: #04131a;
  box-shadow: 0 10px 30px -12px rgba(0, 229, 163, 0.65);
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(0, 229, 163, 0.85); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 64px 20px 80px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 21, 32, 0.94) 0%, rgba(13, 21, 32, 0.55) 42%, rgba(13, 21, 32, 0.9) 100%),
    radial-gradient(90% 70% at 50% 0%, rgba(115, 237, 238, 0.12), transparent 60%),
    url('assets/hero-banner.jpg') center / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 50%, transparent 30%, rgba(8, 11, 18, 0.55) 100%);
  mix-blend-mode: multiply;
}
.hero-content { position: relative; z-index: 2; max-width: 860px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 229, 163, 0.2), 0 0 14px rgba(0, 229, 163, 0.9); }

.hero-name {
  margin-top: 22px;
  font-size: clamp(2.6rem, 9vw, 5.4rem);
  font-weight: 800; letter-spacing: -0.03em;
}
.accent { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero accent — slow premium shimmer (Cascade Frameworks) */
.hero-name .accent {
  background: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 35%, #10B981 70%, #38BDF8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: subtleShimmer 10s ease infinite;
}
@keyframes subtleShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-name .accent { animation: none !important; background-position: 0% 50%; }
}

.hero-title { margin-top: 14px; font-size: clamp(1.05rem, 3.2vw, 1.5rem); color: var(--text-dim); font-weight: 500; }
.hero-tagline {
  margin-top: 22px;
  font-size: clamp(1rem, 2.6vw, 1.3rem);
  color: var(--cyan); font-family: var(--font-mono);
  text-shadow: 0 0 24px rgba(115, 237, 238, 0.4);
}
.hero-quote {
  margin-top: 24px;
  max-width: 640px; margin-left: auto; margin-right: auto;
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.55;
  color: #CBD5E1;
  text-shadow: 0 0 22px rgba(14, 165, 233, 0.3), 0 0 2px rgba(14, 165, 233, 0.2);
}
.hero-quote-mark { color: rgba(14, 165, 233, 0.72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; align-items: center;
  margin-top: 30px; font-size: 0.85rem; color: var(--text-faint); font-family: var(--font-mono);
}
.meta-sep { width: 1px; height: 14px; background: var(--border); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border-radius: 14px; border: 1px solid var(--border-strong);
  display: flex; justify-content: center; padding-top: 7px;
}
.scroll-hint span { width: 3px; height: 9px; border-radius: 3px; background: var(--cyan); animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0.3; } }

/* ---------- Sections ---------- */
.section { padding: 90px 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-title { margin-top: 16px; font-size: clamp(2rem, 5.5vw, 3rem); }
.section-sub { margin-top: 16px; color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span, .qr-scan { animation: none !important; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Pillars ---------- */
.pillar-grid { display: grid; gap: 22px; }
.pillar {
  position: relative; padding: 30px 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-brand); opacity: 0.6;
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.pillar:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-card), 0 0 40px -18px rgba(115, 237, 238, 0.5); }
.pillar:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--cyan);
  background: var(--grad-brand-soft); border: 1px solid var(--border-strong);
  box-shadow: 0 0 26px -8px rgba(115, 237, 238, 0.55);
}
.pillar-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar-title { font-size: 1.24rem; margin-bottom: 12px; }
.pillar-body { color: var(--text-dim); font-size: 0.97rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em;
  padding: 5px 11px; border-radius: 999px; color: var(--green);
  background: rgba(0, 229, 163, 0.08); border: 1px solid rgba(0, 229, 163, 0.22);
}

/* ---------- Contact + QR ---------- */
.contact-grid { display: grid; gap: 22px; align-items: stretch; }
.contact-card {
  padding: 10px 8px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.contact-list { display: flex; flex-direction: column; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 15px 16px; border-radius: 14px; transition: background 0.2s ease; }
.contact-item:hover { background: var(--surface-2); }
.contact-icon {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  display: grid; place-items: center; color: var(--cyan);
  background: var(--grad-brand-soft); border: 1px solid var(--border);
}
.contact-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.13em; color: var(--text-faint); }
.contact-value { font-size: 1rem; color: var(--text); overflow-wrap: anywhere; }
.link { position: relative; transition: color 0.2s ease; }
.link:hover { color: var(--cyan); }

.qr-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding: 30px 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.qr-frame {
  position: relative; display: block; padding: 16px; border-radius: 22px;
  background: linear-gradient(160deg, #ffffff, #d9e8f1);
  box-shadow: 0 0 0 1px rgba(115, 237, 238, 0.4), 0 0 60px -12px rgba(115, 237, 238, 0.55), var(--shadow-card);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.qr-frame:hover, .qr-frame:focus-visible { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(115, 237, 238, 0.65), 0 0 90px -8px rgba(115, 237, 238, 0.75), var(--shadow-card); }
.qr-frame:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.qr-frame svg { width: min(62vw, 250px); height: auto; }
.qr-frame svg rect { fill: #0D1520; }
.qr-scan {
  position: absolute; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 14px rgba(115, 237, 238, 0.9); opacity: 0.7;
  animation: qrScan 3.4s ease-in-out infinite;
}
@keyframes qrScan { 0%, 100% { top: 8%; } 50% { top: 90%; } }
.qr-hint { font-size: 0.9rem; color: var(--text-dim); }

/* QR reveal animation (screen only) */
.qr-reveal rect { opacity: 0; transform: scale(0.35); transform-origin: center; }
.qr-reveal.in-view rect { opacity: 1; transform: none; transition: opacity 0.25s ease, transform 0.25s ease; transition-delay: calc(var(--i) * 4ms); }

/* ---------- Business card preview (on screen) ---------- */
.preview-grid { display: grid; gap: 26px; max-width: 920px; margin: 0 auto; }
.bcard {
  position: relative; aspect-ratio: 90 / 50; width: 100%;
  border-radius: 14px; padding: clamp(12px, 2.2vw, 18px); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-card), var(--shadow-glow); }
.bcard-front {
  background:
    radial-gradient(120% 100% at 85% -10%, rgba(115, 237, 238, 0.18), transparent 55%),
    linear-gradient(135deg, #101A26 0%, #0D1520 65%);
}
.bcard-logo { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.18em; font-size: clamp(0.64rem, 1.6vw, 0.88rem); line-height: 1.2; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bcard-person { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bcard-name { font-size: clamp(0.95rem, 2.8vw, 1.4rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: break-word; }
.bcard-role { font-size: clamp(0.66rem, 1.6vw, 0.88rem); line-height: 1.25; color: var(--text-dim); overflow-wrap: break-word; }
.bcard-tagline { font-family: var(--font-mono); font-size: clamp(0.56rem, 1.35vw, 0.74rem); line-height: 1.3; color: var(--cyan); overflow-wrap: break-word; }
.bcard-domain { font-family: var(--font-mono); font-size: clamp(0.56rem, 1.35vw, 0.74rem); line-height: 1.3; color: var(--text-faint); letter-spacing: 0.08em; }
.bcard-foot { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.bcard-back {
  flex-direction: row; align-items: stretch; justify-content: flex-start; gap: 12px;
  background:
    radial-gradient(120% 100% at 0% -10%, rgba(0, 229, 163, 0.14), transparent 55%),
    linear-gradient(135deg, #0D1520, #101A26 70%);
}
.bcard-qr { flex: 0 0 38%; border-radius: 10px; background: #fff; display: grid; place-items: center; padding: 8px; }
.bcard-qr svg { width: 100%; height: 100%; max-height: 100%; }
.bcard-qr svg rect { fill: #0D1520; }
.bcard-contacts { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; font-family: var(--font-mono); font-size: clamp(0.58rem, 1.6vw, 0.8rem); line-height: 1.35; color: var(--text-dim); overflow: hidden; word-break: keep-all; word-wrap: normal; overflow-wrap: normal; white-space: normal; }
.bcard-cn-terms { word-break: keep-all; word-wrap: normal; overflow-wrap: normal; white-space: normal; line-height: 1.35; }

.print-button-row { display: flex; justify-content: center; margin-top: 38px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 38px 0 52px; background: rgba(13, 21, 32, 0.6); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; justify-content: center; text-align: center; }
.footer-brand { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.16em; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-meta { font-size: 0.82rem; color: var(--text-faint); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 400;
  transform: translate(-50%, 16px);
  padding: 13px 22px; border-radius: 12px;
  background: rgba(13, 21, 32, 0.95); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 0.92rem; box-shadow: var(--shadow-glow);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   ENGINEERING EVOLUTION — vertical cascade timeline
   ========================================================================== */
.evo-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(115, 237, 238, 0.06);
  border: 1px solid var(--border-strong);
  animation: evoBadge 3s ease-in-out infinite;
  animation-play-state: paused;
}
.evo-head.visible .evo-badge { animation-play-state: running; }
@keyframes evoBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(115, 237, 238, 0.32), 0 0 18px -6px rgba(115, 237, 238, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(115, 237, 238, 0), 0 0 32px -4px rgba(115, 237, 238, 0.85); }
}

/* Header — appears first (0ms) */
.evo-head {
  opacity: 0;
  transform: translateY(-28px);
  filter: blur(6px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, filter 0.7s ease;
}
.evo-head.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Timeline stage */
.evo-stage { position: relative; max-width: 940px; margin: 0 auto; }

/* Vertical connector — dim rail + bright fill that grows node-by-node on scroll */
.evo-line {
  position: absolute; left: 27px; top: 6px; bottom: 6px; width: 2px;
  pointer-events: none;
}
.evo-line-track {
  position: absolute; inset: 0; border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.evo-line-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(115, 237, 238, 0.05), var(--cyan) 10%, var(--cyan) 90%, rgba(0, 229, 163, 0.05));
  clip-path: inset(0 0 calc(100% - var(--evo-progress, 0%)) 0);
  transition: clip-path 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Continuous light pulses running down the line (clipped to the filled area) */
.evo-pulse {
  position: absolute; left: 50%; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(115, 237, 238, 0.8);
  animation: evoPulseRun 3.6s linear infinite;
  animation-play-state: paused;
  animation-delay: calc(var(--p, 0) * 1.2s);
  opacity: 0;
}
.evo-line-fill.running .evo-pulse { animation-play-state: running; }
@keyframes evoPulseRun {
  0% { top: 0%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Vertical stack: node rail + card */
.evo-grid { display: grid; gap: 26px; }

.evo-tile {
  display: grid; grid-template-columns: 56px 1fr; align-items: start;
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.evo-tile.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.evo-node {
  justify-self: center;
  width: 14px; height: 14px; margin-top: 30px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--cyan);
  box-shadow: 0 0 14px rgba(115, 237, 238, 0.75), inset 0 0 6px rgba(115, 237, 238, 0.5);
  position: relative; z-index: 2;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.evo-tile.visible .evo-node { opacity: 1; transform: scale(1); }
.evo-tile:last-child .evo-node { border-color: var(--green); box-shadow: 0 0 16px rgba(0, 229, 163, 0.8), inset 0 0 6px rgba(0, 229, 163, 0.5); }

.evo-card {
  position: relative; min-width: 0;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.evo-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-card), 0 0 44px -18px rgba(115, 237, 238, 0.55); }

.evo-card > .evo-icon,
.evo-card > .evo-stage-label,
.evo-card > .evo-period,
.evo-card > .evo-title,
.evo-card > .evo-body,
.evo-card > .evo-tag,
.evo-card > .evo-foot { position: relative; z-index: 1; }

.evo-icon {
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; color: var(--cyan);
  background: var(--grad-brand-soft); border: 1px solid var(--border-strong);
  box-shadow: 0 0 26px -8px rgba(115, 237, 238, 0.55);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.evo-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.evo-card:hover .evo-icon { transform: scale(1.08); }

.evo-stage-label {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 6px;
}
.evo-period {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--green); margin-bottom: 6px;
}
.evo-title { font-size: 1.22rem; margin-bottom: 12px; }
.evo-body { color: var(--text-dim); font-size: 0.97rem; }
.evo-tag {
  display: inline-flex; margin-top: 18px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.03em;
  padding: 5px 11px; border-radius: 999px; color: var(--green);
  background: rgba(0, 229, 163, 0.08); border: 1px solid rgba(0, 229, 163, 0.22);
}

/* Featured Stage 3 — glow activates with the 700ms card */
.evo-card-featured {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 229, 163, 0.16), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(115, 237, 238, 0.12), transparent 55%),
    var(--surface);
  border-color: rgba(0, 229, 163, 0.38);
  box-shadow: 0 0 0 1px rgba(0, 229, 163, 0.12), 0 24px 60px -30px rgba(0, 229, 163, 0.45);
}
.evo-card-featured:hover { box-shadow: 0 0 0 1px rgba(0, 229, 163, 0.22), 0 28px 70px -28px rgba(0, 229, 163, 0.6); }
.evo-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
.evo-halo {
  position: absolute; inset: -40% -20%; opacity: 0.55;
  background: radial-gradient(closest-side, rgba(0, 229, 163, 0.22), rgba(115, 237, 238, 0.08) 45%, transparent 70%);
  animation: evoHalo 6s ease-in-out 0.7s infinite;
  animation-play-state: paused;
}
.evo-tile.visible .evo-halo { animation-play-state: running; }
@keyframes evoHalo { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.evo-beam {
  position: absolute; top: -60%; bottom: -60%; width: 46%; left: -70%;
  background: linear-gradient(105deg, transparent, rgba(115, 237, 238, 0.14), rgba(0, 229, 163, 0.18), transparent);
  transform: skewX(-18deg);
  animation: evoBeam 6.5s ease-in-out 0.7s infinite;
  animation-play-state: paused;
}
.evo-tile.visible .evo-beam { animation-play-state: running; }
@keyframes evoBeam { 0% { left: -70%; } 60%, 100% { left: 160%; } }

.evo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.evo-foot .evo-tag { margin-top: 0; }
.evo-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
}
.evo-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: evoLive 1.8s ease-in-out 0.7s infinite;
  animation-play-state: paused;
}
.evo-tile.visible .evo-live-dot { animation-play-state: running; }
@keyframes evoLive {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 163, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(0, 229, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 163, 0); }
}

/* Mobile: tighter rail */
@media (max-width: 640px) {
  .evo-tile { grid-template-columns: 44px 1fr; }
  .evo-line { left: 21px; }
  .evo-card { padding: 24px 20px; }
  .evo-node { margin-top: 26px; }
  .evo-grid { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .evo-head, .evo-tile { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .evo-node { opacity: 1 !important; transform: scale(1) !important; transition: none !important; }
  .evo-line-fill { clip-path: none !important; transition: none !important; }
  .evo-badge, .evo-halo, .evo-beam, .evo-live-dot, .evo-pulse { animation: none !important; }
  .evo-card, .evo-icon { transition: none !important; }
}

/* ==========================================================================
   OUR MISSION — three pillars
   ========================================================================== */
.mission-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cyan);
  padding: 8px 16px; border-radius: 999px;
  background: rgba(115, 237, 238, 0.06);
  border: 1px solid var(--border-strong);
  animation: missionBadge 3s ease-in-out infinite;
  animation-play-state: paused;
}
.mission.active .mission-badge { animation-play-state: running; }
@keyframes missionBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(115, 237, 238, 0.32), 0 0 18px -6px rgba(115, 237, 238, 0.5); }
  50% { box-shadow: 0 0 0 7px rgba(115, 237, 238, 0), 0 0 32px -4px rgba(115, 237, 238, 0.85); }
}

.mission-head {
  opacity: 0;
  transform: translateY(-28px);
  filter: blur(6px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, filter 0.7s ease;
}
.mission.active .mission-head { opacity: 1; transform: translateY(0); filter: blur(0); }

.mission-grid { display: grid; gap: 22px; }

.mission-tile {
  display: flex;
  opacity: 0;
  transform: translateY(-40px) scale(0.96);
  filter: blur(6px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease, filter 0.7s ease;
}
.mission.active .mission-tile {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition-delay: calc(150ms + var(--i, 0) * 200ms);
}

.mission-card {
  position: relative; flex: 1; min-width: 0;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.mission-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-card), 0 0 44px -18px rgba(115, 237, 238, 0.55); }

.mission-figure {
  position: relative;
  margin: 0 0 20px;
  padding: 14px 14px 10px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(0, 229, 163, 0.10), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(115, 237, 238, 0.10), transparent 55%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.mission-figure::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(115, 237, 238, 0.22) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.33;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}
.mission-card:hover .mission-figure {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 0 34px -14px rgba(115, 237, 238, 0.6);
}
.mission-figure svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; max-height: 150px; }

/* Figure primitives — DAG nodes/edges, recovery orbit, perimeter rings */
.mf-edge { stroke: rgba(115, 237, 238, 0.45); stroke-width: 1.4; stroke-dasharray: 4 5; }
.mf-edge-accent { stroke: rgba(0, 229, 163, 0.6); }
.mission.active .mf-edge { animation: mfFlow 3.2s linear infinite; }
.mf-node { fill: rgba(115, 237, 238, 0.10); stroke: var(--cyan); stroke-width: 1.4; }
.mf-node-accent { fill: rgba(0, 229, 163, 0.12); stroke: var(--green); stroke-width: 1.5; }
.mf-dot { fill: var(--cyan); opacity: 0.85; }
.mf-check { fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mf-orbit { fill: none; stroke: rgba(115, 237, 238, 0.4); stroke-width: 1.3; stroke-dasharray: 5 7; }
.mission.active .mf-orbit { animation: mfOrbit 9s linear infinite; }
.mf-retry { stroke: var(--green); stroke-width: 1.9; }
.mf-ring { stroke: rgba(115, 237, 238, 0.5); stroke-width: 1.3; }
.mf-ring-mid { stroke-dasharray: 5 6; }
.mf-ring-inner { stroke: rgba(0, 229, 163, 0.55); }
.mission.active .mf-ring-mid { animation: mfFlow 5s linear infinite; }
.mf-lock { stroke: var(--green); stroke-width: 1.8; }
@keyframes mfFlow { to { stroke-dashoffset: -18; } }
@keyframes mfOrbit { to { stroke-dashoffset: -60; } }

.mission-figure-cap {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint);
}
.mission-figure-cap::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--border-strong); }

.mission-title { font-size: 1.22rem; margin-bottom: 10px; }
.mission-body { color: var(--text-dim); font-size: 0.97rem; }

@media (min-width: 700px) { .mission-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .mission-grid { grid-template-columns: repeat(3, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  .mission-head, .mission-tile { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .mission-badge { animation: none !important; }
  .mission-card, .mission-figure { transition: none !important; }
  .mf-edge, .mf-orbit, .mf-ring-mid { animation: none !important; }
}

/* ---------- Print-only block (hidden on screen) ---------- */
.print-only { display: none; }

/* ---------- Responsive breakpoints ---------- */
@media (min-width: 480px) {
  .header-actions .btn-ghost { display: inline-flex; }
}
@media (min-width: 700px) {
  .site-nav { display: flex; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; }
  .preview-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .pillar-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 120px 0; }
}
@media (min-width: 1920px) {
  html { font-size: 20px; }
  .container { max-width: 1500px; }
  #bg-canvas { opacity: 1; }
}

/* ==========================================================================
   PRINT — double-sided 90 × 50 mm (3.5" × 2") business card
   ========================================================================== */
@media print {
  @page { size: 90mm 50mm; margin: 0; }
  html, body { background: #fff !important; color: #000; }
  #bg-canvas, .bg-grid, .bg-vignette, .site-shell, .toast, .skip-link { display: none !important; }
  .print-only { display: block !important; }

  .print-card {
    width: 90mm; height: 50mm;
    box-sizing: border-box;
    position: relative; overflow: hidden;
    page-break-after: always; break-after: page;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; color-adjust: exact;
  }
  .print-card:last-child { page-break-after: auto; break-after: auto; }

  /* Front */
  .print-front {
    background: radial-gradient(130% 130% at 85% -10%, rgba(115, 237, 238, 0.16), transparent 55%), linear-gradient(135deg, #101A26 0%, #0D1520 60%);
    color: #EAF1FA;
    padding: 7mm 8mm;
    display: flex; flex-direction: column; justify-content: space-between;
  }
  .print-front .print-top { display: flex; align-items: center; gap: 3.5mm; }
  .print-front .print-mid { display: flex; flex-direction: column; }
  .print-mark { width: 8mm; height: 8mm; flex: none; }
  .print-mark svg { width: 100%; height: 100%; }
  .print-brand { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.16em; font-size: 3.6mm; color: #73EDEE; }
  .print-name { font-size: 6.6mm; font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
  .print-role { font-size: 3.5mm; color: #9AA7BB; margin-top: 1mm; }
  .print-tagline { font-size: 2.9mm; color: #73EDEE; font-family: var(--font-mono); margin-top: 3.5mm; }
  .print-domain { font-size: 3mm; color: #6B7890; font-family: var(--font-mono); letter-spacing: 0.1em; }

  /* Back */
  .print-back {
    background: radial-gradient(130% 130% at 0% -10%, rgba(0, 229, 163, 0.14), transparent 55%), linear-gradient(135deg, #0D1520 0%, #101A26 70%);
    color: #EAF1FA;
    padding: 6mm 7mm;
    display: flex; flex-direction: row; align-items: center; gap: 6mm;
  }
  .print-qr { flex: 0 0 auto; width: 22mm; height: 22mm; background: #fff; border-radius: 2mm; padding: 1.5mm; display: grid; place-items: center; }
  .print-qr svg { width: 100%; height: 100%; display: block; }
  .print-qr svg rect { fill: #0D1520; }
  .print-contacts { flex: 1; display: flex; flex-direction: column; gap: 2.4mm; font-family: var(--font-mono); font-size: 3mm; color: #EAF1FA; overflow: hidden; }
  .print-contacts span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Bilingual back: zh-CN swaps to the WeChat QR + Chinese terms / WeChat ID */
  .print-qr-wechat { display: none; flex: 0 0 auto; width: 22mm; height: 22mm; background: #fff; border-radius: 2mm; padding: 1mm; }
  .print-qr-wechat img { width: 100%; height: 100%; object-fit: contain; display: block; }
  .print-cn-terms, .print-wechat { display: none; }
  html[lang="zh-CN"] .print-qr { display: none; }
  html[lang="zh-CN"] .print-qr-wechat { display: block; }
  html[lang="zh-CN"] .print-cn-terms, html[lang="zh-CN"] .print-wechat { display: block; }
  .print-contacts .print-cn-terms { white-space: normal; overflow: visible; text-overflow: clip; font-size: 2.4mm; line-height: 1.35; color: #9AA7BB; word-break: keep-all; word-wrap: normal; overflow-wrap: normal; }
}

/* ==========================================================================
   LANGUAGE SWITCHER
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex: none;
}
.lang-btn {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--text-dim);
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.is-active {
  color: #04131a;
  background: var(--grad-brand);
}

/* ==========================================================================
   zh-CN TYPOGRAPHY — CJK font stack + density/tracking corrections
   ========================================================================== */
html[lang="zh-CN"] {
  hyphens: none;
  line-break: strict;
  overflow-wrap: break-word;
}

html[lang="zh-CN"] body {
  line-height: 1.75;
  letter-spacing: 0;
}

html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 {
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-weight: 700;
}

html[lang="zh-CN"] .hero-name { letter-spacing: 0; line-height: 1.25; }
html[lang="zh-CN"] .section-title { letter-spacing: 0; line-height: 1.25; }
html[lang="zh-CN"] .hero-quote { letter-spacing: 0.02em; line-height: 1.7; }

html[lang="zh-CN"] .eyebrow,
html[lang="zh-CN"] .evo-stage-label,
html[lang="zh-CN"] .evo-period,
html[lang="zh-CN"] .evo-badge,
html[lang="zh-CN"] .mission-badge,
html[lang="zh-CN"] .mission-figure-cap,
html[lang="zh-CN"] .evo-live,
html[lang="zh-CN"] .chip,
html[lang="zh-CN"] .evo-tag,
html[lang="zh-CN"] .hero-tagline {
  letter-spacing: 0.04em;
  text-transform: none;
}

html[lang="zh-CN"] .pillar-body,
html[lang="zh-CN"] .evo-body,
html[lang="zh-CN"] .mission-body {
  line-height: 1.8;
  overflow-wrap: break-word;
}

/* ==========================================================================
   WECHAT — zh-CN priority contact; the QR panel swaps to the WeChat QR when
   <html lang="zh-CN"> (i18n.js sets that attribute on locale change).
   ========================================================================== */
.qr-wechat,
.qr-hint-wechat { display: none; }
.qr-wechat-img { display: block; width: min(62vw, 250px); height: auto; border-radius: 10px; }
/* Hide the WeChat contact row outside zh-CN (shown only when html[lang="zh-CN"]). */
html:not([lang="zh-CN"]) .wechat-item { display: none; }
html[lang="zh-CN"] .qr-site,
html[lang="zh-CN"] .qr-hint-site { display: none; }
html[lang="zh-CN"] .qr-wechat,
html[lang="zh-CN"] .qr-hint-wechat { display: block; }

/* ==========================================================================
   BUSINESS CARD — bilingual back: zh-CN adds Chinese terms, WeChat ID + QR
   (front stays English; only the back is augmented).
   ========================================================================== */
.bcard-qr-wechat,
.bcard-cn-terms,
.bcard-wechat { display: none; }
.bcard-qr-wechat { flex: 0 0 33%; border-radius: 10px; background: #fff; place-items: center; padding: 8px; }
.bcard-qr-wechat img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
html[lang="zh-CN"] .bcard-qr { display: none; }
html[lang="zh-CN"] .bcard-qr-wechat { display: grid; }
html[lang="zh-CN"] .bcard-cn-terms,
html[lang="zh-CN"] .bcard-wechat { display: block; }

