/* ============================================================================
   LE PALAIS DES AGENTS — design system
   Throne-room dark · neon-gold · liquid glass · holographic data-flows
   ========================================================================== */

:root {
  /* palette */
  --bg-0: #06060e;
  --bg-1: #0a0a18;
  --bg-2: #11122a;
  --indigo: #1a1b3e;
  --gold: #e8b84b;
  --gold-bright: #f7da7e;
  --gold-deep: #a9791f;
  --cyan: #5be0e6;
  --violet: #9b8bf2;
  --rose: #f06a8b;
  --ok: #4fd6a0;
  --warn: #f3b14b;
  --danger: #f0667f;

  --ink: #efeafb;
  --ink-soft: #c8c4e4;
  --ink-mute: #8e8ab2;
  --line: rgba(232, 184, 75, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);

  --glass: rgba(20, 20, 44, 0.55);
  --glass-strong: rgba(16, 16, 36, 0.82);

  /* type */
  --f-display: "Sora", "Noto Sans SC", system-ui, sans-serif;
  --f-body: "DM Sans", "Noto Sans SC", system-ui, sans-serif;

  /* fx */
  --glow-gold: 0 0 24px rgba(232, 184, 75, 0.35);
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-settle: cubic-bezier(0.33, 1.22, 0.5, 1);   /* mild "settle" overshoot — life, not bounce */

  --z-bg: 0;
  --z-deck: 10;
  --z-nav: 30;
  --z-top: 40;
  --z-backdrop: 45;
  --z-panel: 50;
  --z-flyer: 60;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .scene > * { opacity: 1 !important; transform: none !important; }
  .flow { opacity: 0.4; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 50% -10%, rgba(232, 184, 75, 0.10), transparent 60%),
    radial-gradient(900px 700px at 85% 110%, rgba(91, 224, 230, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* lang-aware display: hide the inactive language nodes is handled in JS by text swap */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- ambient backdrop --------------------------------------------------- */
#stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: var(--z-bg); pointer-events: none;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 30%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
/* AI-agent working backdrop — sits above the vignette but BELOW the deck (z10),
   so the troupe is a true background plate: content always paints on top, and
   pointer-events:none means it can never intercept a click. */
#agentField {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 2; pointer-events: none;
}

/* ---- topbar ------------------------------------------------------------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 40px);
  z-index: var(--z-top);
  background: linear-gradient(180deg, rgba(6,6,14,0.7), transparent);
  backdrop-filter: blur(4px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: conic-gradient(from 210deg, var(--gold-bright), var(--gold-deep), var(--gold-bright));
  box-shadow: var(--glow-gold);
  position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 6px; border-radius: 3px;
  background: var(--bg-0);
}
.brand-text {
  font-family: var(--f-display); font-weight: 700; letter-spacing: 0.06em;
  font-size: 15px; color: var(--ink);
}
.topbar-right { display: flex; align-items: center; gap: 10px; }

.ghost-btn {
  appearance: none; cursor: pointer;
  font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 16px; min-height: 40px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.ghost-btn:hover { color: var(--gold-bright); border-color: rgba(232,184,75,0.5); background: rgba(232,184,75,0.08); }
.ghost-btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
.dot-anim { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
body.no-anim .dot-anim { background: var(--ink-mute); box-shadow: none; }

/* ---- nav dock ----------------------------------------------------------- */
.nav-dock {
  position: fixed; left: clamp(12px, 2.4vw, 28px); top: 50%; transform: translateY(-50%);
  z-index: var(--z-nav);
  display: flex; flex-direction: column; gap: 14px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  background: none; border: 0; cursor: pointer; padding: 4px; color: var(--ink-mute);
  font-family: var(--f-display); font-size: 12px; letter-spacing: 0.04em;
}
.nav-dot {
  width: 11px; height: 11px; border-radius: 50%; flex: none;
  border: 1.5px solid rgba(255,255,255,0.28);
  transition: all .25s var(--ease);
}
.nav-label {
  opacity: 0; transform: translateX(-6px); transition: all .25s var(--ease);
  white-space: nowrap; color: var(--ink-soft);
}
.nav-item:hover .nav-label, .nav-item:focus-visible .nav-label { opacity: 1; transform: none; }
.nav-item:focus-visible { outline: none; }
.nav-item:focus-visible .nav-dot { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.nav-item.active .nav-dot {
  border-color: var(--gold-bright);
  background: var(--gold-bright); box-shadow: 0 0 12px var(--gold);
  transform: scale(1.15);
}
.nav-item.active .nav-label { opacity: 1; transform: none; color: var(--gold-bright); }

@media (max-width: 720px) {
  .nav-dock { flex-direction: row; left: 50%; top: auto; bottom: 14px; transform: translateX(-50%);
    background: var(--glass-strong); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; gap: 10px; backdrop-filter: blur(10px); }
  .nav-label { display: none; }
}

/* ---- progress rail ------------------------------------------------------ */
.progress-rail {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: var(--z-top);
  background: rgba(255,255,255,0.05);
}
#progressFill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--cyan));
  box-shadow: 0 0 10px rgba(232,184,75,0.6); transition: width .2s linear;
}

/* ---- deck / scenes ------------------------------------------------------ */
#deck {
  position: relative; z-index: var(--z-deck);
  height: 100vh; overflow-y: scroll; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
#deck::-webkit-scrollbar { width: 0; height: 0; }

.scene {
  min-height: 100vh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  justify-content: safe center;   /* top-align (not clip) when content is taller than the viewport */
  padding: 84px clamp(20px, 6vw, 80px) 64px;
  position: relative;
}

.scene-head { text-align: center; max-width: 880px; margin: 0 auto 28px; }
.scene-title {
  font-family: var(--f-display); font-weight: 800; line-height: 1.08;
  font-size: clamp(28px, 4.4vw, 52px); margin: 0 0 14px;
  letter-spacing: -0.01em;
  background: linear-gradient(120deg, #fff 10%, var(--gold-bright) 55%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.scene-sub {
  font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; color: var(--ink-soft);
  margin: 0 auto; max-width: 70ch;
}
.kicker {
  font-family: var(--f-display); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 22px;
}

/* reveal on enter */
.scene > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease-settle); }
.scene.in-view > * { opacity: 1; transform: none; }
.scene.in-view > *:nth-child(2) { transition-delay: .08s; }
.scene.in-view > *:nth-child(3) { transition-delay: .16s; }
.scene.in-view > *:nth-child(4) { transition-delay: .24s; }
body.no-anim .scene > * { opacity: 1; transform: none; transition: none; }

/* ---- buttons / CTA ------------------------------------------------------ */
.cta-primary {
  appearance: none; cursor: pointer;
  font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
  color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 0; border-radius: 999px; padding: 16px 30px; min-height: 52px;
  display: inline-flex; align-items: center; gap: 12px;
  box-shadow: 0 14px 40px -12px rgba(232,184,75,0.6), inset 0 1px 0 rgba(255,255,255,0.4);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.cta-primary:hover { filter: brightness(1.06); box-shadow: 0 18px 52px -10px rgba(232,184,75,0.75), inset 0 1px 0 rgba(255,255,255,0.5); }
.cta-primary:active { transform: translateY(1px); }
.cta-primary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta-arrow { width: 20px; height: 20px; flex: none; }

/* ---- INTRO -------------------------------------------------------------- */
.scene-intro { text-align: center; }
.intro-inner { max-width: 960px; }
.hero-title { margin: 0 0 26px; }
.hero-title-main {
  display: block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(46px, 9vw, 116px); line-height: 0.96; letter-spacing: -0.02em;
  background: linear-gradient(115deg, #ffffff 0%, var(--gold-bright) 50%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(232,184,75,0.18);
}
.hero-title-sub {
  display: block; margin-top: 12px; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(16px, 2.4vw, 26px); letter-spacing: 0.04em; color: var(--ink-soft);
}
.hero-lede { font-size: clamp(15px, 1.7vw, 19px); line-height: 1.8; color: var(--ink-soft); max-width: 62ch; margin: 0 auto 22px; }
.hero-ambition {
  display: inline-block; margin: 0 auto 34px; padding: 10px 22px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(14px, 1.5vw, 17px);
  color: var(--gold-bright); border: 1px solid rgba(232,184,75,0.4);
  background: rgba(232,184,75,0.07); box-shadow: var(--glow-gold);
}
.scroll-hint { margin-top: 34px; font-size: 13px; color: var(--ink-mute); letter-spacing: 0.04em; }
.scroll-hint::before { content: "↓"; display: inline-block; margin-right: 8px; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(5px);} }
body.no-anim .scroll-hint::before { animation: none; }

/* ---- PALACE MAP --------------------------------------------------------- */
.scene-palace { padding-top: 78px; }
.palace-stage {
  width: min(1180px, 100%); display: grid; grid-template-columns: 1fr; position: relative;
  align-items: center; justify-items: center;
}
.map-wrap { width: 100%; max-width: 920px; position: relative; }
.palace-svg { width: 100%; height: auto; display: block; overflow: visible; }

/* svg node styling driven by classes added in JS */
.edge { fill: none; stroke: rgba(232,184,75,0.22); stroke-width: 1.4; }
.edge.dim { stroke: rgba(255,255,255,0.08); }
.flow {
  fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 3 12; opacity: 0.85;
  animation: flowdash 1.4s linear infinite;
}
@keyframes flowdash { to { stroke-dashoffset: -30; } }
body.no-anim .flow { animation: none; opacity: 0.4; }

.node { cursor: pointer; }
.node-ring { fill: var(--glass-strong); stroke: var(--line); stroke-width: 1.5; transition: stroke .2s, filter .2s; }
.node:hover .node-ring, .node:focus-visible .node-ring { stroke: var(--gold-bright); }
.node:focus { outline: none; }
.node:focus-visible .node-ring { filter: drop-shadow(0 0 8px var(--gold)); }
.node.selected .node-ring { stroke: var(--gold-bright); filter: drop-shadow(0 0 12px var(--gold)); }
.node-glyph { fill: none; stroke: var(--gold-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.node-glyph.fill { fill: var(--gold-bright); stroke: none; }
.node-label { fill: var(--ink); font-family: var(--f-display); font-weight: 600; text-anchor: middle; }
.node-sub { fill: var(--ink-mute); font-family: var(--f-body); text-anchor: middle; }

.node-sovereign .node-ring { stroke: var(--gold-bright); fill: rgba(232,184,75,0.12); }
.node-brain .node-ring { stroke: var(--cyan); }
.node-brain .node-glyph { stroke: var(--cyan); }
.node.pulse .node-ring { animation: nodepulse 3s ease-in-out infinite; }
@keyframes nodepulse { 0%,100%{ filter: drop-shadow(0 0 4px rgba(91,224,230,0.4)); } 50%{ filter: drop-shadow(0 0 16px rgba(91,224,230,0.8)); } }
body.no-anim .node.pulse .node-ring { animation: none; }
.badge-first { fill: var(--gold-bright); }
.badge-first-text { fill: #1a1405; font-family: var(--f-display); font-weight: 700; text-anchor: middle; }

/* agent panel backdrop — dims everything behind the panel; click to dismiss */
.panel-backdrop {
  position: fixed; inset: 0; z-index: var(--z-backdrop);
  background: rgba(6,6,14,0.55); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .42s var(--ease);
}
.panel-backdrop.open { opacity: 1; pointer-events: auto; }
body.no-anim .panel-backdrop { transition: none; }

/* agent panel */
.agent-panel {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(440px, 92vw);
  z-index: var(--z-panel);
  background: var(--glass-strong); backdrop-filter: blur(20px);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -30px rgba(0,0,0,0.9);
  padding: 78px 30px 30px; overflow-y: auto;
  transform: translateX(102%); transition: transform .42s var(--ease);
}
.agent-panel.open { transform: none; }
body.no-anim .agent-panel { transition: none; }
.agent-panel[hidden] { display: block; } /* keep transitionable; visibility via transform */

.panel-close {
  position: absolute; top: 18px; right: 20px; width: 40px; height: 40px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--glass);
  color: var(--ink-soft); cursor: pointer; font-size: 20px; line-height: 1;
  display: grid; place-items: center;
}
.panel-close:hover { color: var(--gold-bright); border-color: var(--gold); }
.panel-avatar {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(232,184,75,0.1); border: 1px solid var(--line); margin-bottom: 16px;
}
.panel-avatar svg { width: 34px; height: 34px; }
.panel-name { font-family: var(--f-display); font-weight: 700; font-size: 22px; margin: 0 0 4px; color: var(--ink); }
.panel-title { font-size: 13px; color: var(--gold); letter-spacing: 0.04em; margin: 0 0 18px; font-weight: 600; }
.panel-quote {
  font-size: 16px; line-height: 1.65; font-style: italic; color: var(--ink);
  border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; margin: 0 0 22px;
}
.panel-row { margin-bottom: 16px; }
.panel-k { display: block; font-family: var(--f-display); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.panel-v { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-soft); color: var(--ink-soft);
}
.risk-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-family: var(--f-display); font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.risk-A { color: var(--ok); background: rgba(79,214,160,0.12); border: 1px solid rgba(79,214,160,0.3); }
.risk-B { color: var(--warn); background: rgba(243,177,75,0.12); border: 1px solid rgba(243,177,75,0.3); }
.risk-C { color: var(--danger); background: rgba(240,102,127,0.12); border: 1px solid rgba(240,102,127,0.3); }

/* ---- COMMAND CHAIN ------------------------------------------------------ */
.command-grid {
  width: min(1100px, 100%); display: grid; gap: 18px;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas: "layers loop" "gates walls";
}
@media (max-width: 860px) { .command-grid { grid-template-columns: 1fr; grid-template-areas: "layers" "loop" "gates" "walls"; } }

.glass-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-card); backdrop-filter: blur(8px);
}
.card-title { font-family: var(--f-display); font-weight: 700; font-size: 16px; color: var(--gold-bright); margin: 0 0 16px; letter-spacing: 0.02em; }

.layers-card { grid-area: layers; }
.layer-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.layer-row:first-of-type { border-top: 0; }
.layer-tag {
  font-family: var(--f-display); font-weight: 800; font-size: 14px; color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); border-radius: 9px;
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
}
.layer-name { font-family: var(--f-display); font-weight: 600; font-size: 15px; color: var(--ink); margin: 2px 0 4px; }
.layer-desc { font-size: 13.5px; line-height: 1.55; color: var(--ink-mute); }

.loop-card { grid-area: loop; }
.loop-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.loop-step {
  font-family: var(--f-display); font-weight: 600; font-size: 12.5px; color: var(--ink);
  background: rgba(91,224,230,0.08); border: 1px solid rgba(91,224,230,0.28);
  border-radius: 10px; padding: 8px 11px; text-align: center; line-height: 1.3; flex: 1 1 auto;
}
.loop-step .ls-k { display: block; color: var(--cyan); font-size: 11px; letter-spacing: 0.08em; }
.loop-arrow { color: var(--ink-mute); font-size: 14px; }
.loop-note { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

.gates-card { grid-area: gates; }
.gate-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.gate-row:first-of-type { border-top: 0; }
.gate-badge { font-family: var(--f-display); font-weight: 800; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 15px; }
.gate-ok { color: var(--ok); background: rgba(79,214,160,0.14); }
.gate-warn { color: var(--warn); background: rgba(243,177,75,0.14); }
.gate-danger { color: var(--danger); background: rgba(240,102,127,0.14); }
.gate-text { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }

.walls-card { grid-area: walls; }
.wall-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wall-chip { font-size: 12.5px; padding: 7px 12px; border-radius: 999px; background: rgba(240,102,127,0.08); border: 1px solid rgba(240,102,127,0.25); color: var(--ink-soft); }
.creed { font-size: 13px; line-height: 1.6; color: var(--gold-bright); border-left: 2px solid var(--gold); padding-left: 14px; font-style: italic; }

/* ---- FIELD -------------------------------------------------------------- */
.field-grid { width: min(1080px, 100%); display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .field-grid { grid-template-columns: 1fr; } }
.field-card { position: relative; overflow: hidden; }
.field-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
  background: radial-gradient(120% 80% at 50% -20%, rgba(91,224,230,0.10), transparent 60%);
}
.field-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(91,224,230,0.08); border: 1px solid rgba(91,224,230,0.25); margin-bottom: 16px; }
.field-icon svg { width: 30px; height: 30px; stroke: var(--cyan); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.field-name { font-family: var(--f-display); font-weight: 700; font-size: 18px; margin: 0 0 4px; color: var(--ink); }
.field-sub { font-size: 12.5px; color: var(--gold); letter-spacing: 0.03em; margin: 0 0 12px; font-weight: 600; }
.field-desc { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin: 0; }
.field-leverage {
  margin: 28px auto 0; max-width: 76ch; text-align: center; font-size: 15px; line-height: 1.7;
  color: var(--gold-bright); font-family: var(--f-display); font-weight: 500;
}
.field-metric { margin: 16px auto 0; text-align: center; max-width: 72ch; }
.field-metric b { display: inline-block; font-family: var(--f-display); font-weight: 800;
  font-size: clamp(18px, 2.4vw, 26px); color: var(--gold-bright); letter-spacing: 0.01em; }
.field-metric span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-mute); }

/* ---- DATA CENTER -------------------------------------------------------- */
.dc-stage { width: min(1100px, 100%); display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 900px) { .dc-stage { grid-template-columns: 1fr; } }
.dc-streams { display: flex; flex-direction: column; gap: 10px; }
.dc-stream {
  display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--ink-soft);
  background: var(--glass); border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 14px;
  position: relative; overflow: hidden;
}
.dc-stream .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; box-shadow: 0 0 8px var(--cyan); animation: pip 2.4s ease-in-out infinite; }
.dc-stream:nth-child(2n) .pip { animation-delay: .6s; }
.dc-stream:nth-child(3n) .pip { animation-delay: 1.2s; }
@keyframes pip { 0%,100%{ opacity: .4; } 50%{ opacity: 1; } }
body.no-anim .dc-stream .pip { animation: none; }

.dc-core { display: grid; place-items: center; justify-self: center; }
.dc-core-svg { width: clamp(180px, 26vw, 230px); height: auto; }
.dc-ring { stroke: var(--gold); stroke-width: 1.4; opacity: 0.5; transform-origin: 100px 100px; }
.dc-ring-1 { animation: spin 14s linear infinite; stroke-dasharray: 6 10; }
.dc-ring-2 { animation: spin 9s linear infinite reverse; stroke-dasharray: 3 8; }
@keyframes spin { to { transform: rotate(360deg); } }
body.no-anim .dc-ring { animation: none; }
.dc-core-dot { fill: var(--gold-bright); filter: drop-shadow(0 0 16px var(--gold)); animation: corepulse 3s ease-in-out infinite; transform-origin: 100px 100px; }
@keyframes corepulse { 0%,100%{ transform: scale(1);} 50%{ transform: scale(1.12);} }
body.no-anim .dc-core-dot { animation: none; }
.dc-core-label { display: block; text-align: center; margin-top: 10px; font-family: var(--f-display); font-weight: 700; color: var(--gold-bright); font-size: 15px; }

.dc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dc-stat { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.dc-stat-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); color: var(--gold-bright); line-height: 1; }
.dc-stat-label { font-size: 12px; color: var(--ink-mute); margin-top: 7px; letter-spacing: 0.02em; }
.dc-badge { margin: 0; font-size: 13.5px; color: var(--ink-soft); letter-spacing: 0.03em;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: var(--glass); }
.dc-proof { margin: 24px auto 0; max-width: 84ch; text-align: center; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.dc-proof::before { content: "● "; color: var(--ok); }
.dc-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-top: 20px; }
.dc-demo { font-size: 12px; color: var(--ink-mute); letter-spacing: 0.04em; border: 1px dashed var(--line-soft); border-radius: 999px; padding: 8px 14px; }

/* ---- COMPLAINT WALL ----------------------------------------------------- */
.wall-stage { width: min(940px, 100%); }
.wall-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.wall-input {
  width: 100%; resize: vertical; min-height: 56px;
  font-family: var(--f-body); font-size: 16px; line-height: 1.5; color: var(--ink);
  background: var(--glass-strong); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
}
.wall-input::placeholder { color: var(--ink-mute); }
.wall-input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.wall-actions { display: flex; gap: 12px; align-items: center; }
.wall-board { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; min-height: 60px; }
.sticky {
  position: relative; max-width: 280px; padding: 16px 18px 18px; border-radius: 4px 14px 14px 14px;
  background: linear-gradient(145deg, rgba(240,102,127,0.14), rgba(155,139,242,0.10));
  border: 1px solid rgba(240,102,127,0.28); color: var(--ink);
  font-size: 14px; line-height: 1.5; box-shadow: 0 16px 40px -22px rgba(0,0,0,0.8);
  animation: stickIn .5s var(--ease) both;
}
@keyframes stickIn { from { opacity: 0; transform: translateY(14px) rotate(-2deg) scale(.96);} to { opacity: 1; transform: rotate(-1deg);} }
body.no-anim .sticky { animation: none; }
.sticky.seed { opacity: 0.66; }
.sticky .sticky-meta { display: block; margin-top: 10px; font-size: 11px; color: var(--ok); letter-spacing: 0.03em; }
.sticky:nth-child(3n) { transform: rotate(1.2deg); }
.sticky:nth-child(2n) { transform: rotate(-1.6deg); }

.flyer-layer { position: fixed; inset: 0; z-index: var(--z-flyer); pointer-events: none; }
.flyer {
  position: fixed; padding: 10px 14px; border-radius: 10px; max-width: 240px;
  background: linear-gradient(145deg, rgba(240,102,127,0.95), rgba(155,139,242,0.92));
  color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  will-change: transform, opacity;
}

/* ---- AMBITION ----------------------------------------------------------- */
.ambition-stage { width: min(1000px, 100%); display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .ambition-stage { grid-template-columns: 1fr; justify-items: center; } }
.france-wrap { position: relative; width: clamp(240px, 34vw, 340px); }
.france-svg { width: 100%; height: auto; }
.france-outline { fill: url(#frFill); stroke: rgba(232,184,75,0.62); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.france-sketch  { fill: none; stroke: rgba(232,184,75,0.32); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.france-dot { fill: var(--gold-bright); }
.france-capital { fill: #fff; }
.france-capital-ring { fill: none; stroke: var(--gold-bright); stroke-width: 1.2; opacity: 0.7; transform-box: fill-box; transform-origin: center; animation: capitalPulse 2.6s ease-out infinite; }
body.no-anim .france-capital-ring { animation: none; }
@keyframes capitalPulse { 0% { transform: scale(0.7); opacity: 0.8; } 70% { transform: scale(1.7); opacity: 0; } 100% { opacity: 0; } }
.big-counter {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 6vw, 60px);
  color: #fff; text-shadow: 0 0 30px rgba(232,184,75,0.6);
}
.big-counter-plus { color: var(--gold-bright); }
.ambition-steps { display: flex; flex-direction: column; gap: 14px; }
.amb-step { display: flex; align-items: baseline; gap: 16px; padding: 14px 18px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line-soft); }
.amb-step.reached { border-color: var(--gold); background: rgba(232,184,75,0.07); }
.amb-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); color: var(--gold-bright); min-width: 2.6ch; }
.amb-num--loop { display: inline-block; text-align: center; font-size: clamp(22px, 3vw, 30px); animation: spin 6s linear infinite; transform-origin: 50% 55%; }
body.no-anim .amb-num--loop { animation: none; }
.amb-label { font-size: 14.5px; color: var(--ink-soft); }
.ambition-market { margin: 26px auto 6px; max-width: 80ch; text-align: center; font-size: 13.5px; color: var(--ink-mute); letter-spacing: 0.02em; }
.ambition-vision { margin: 6px auto 0; max-width: 70ch; text-align: center; font-size: 15px; color: var(--gold-bright); font-family: var(--f-display); }

/* ---- CLOSING ------------------------------------------------------------ */
.scene-closing { text-align: center; }
.closing-inner { max-width: 820px; }
.closing-title { margin-bottom: 26px; }
.closing-lines { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-direction: column; gap: 14px; }
.closing-lines li { font-size: clamp(15px, 1.8vw, 20px); line-height: 1.6; color: var(--ink-soft); }
.closing-lines li::before { content: "—"; color: var(--gold); margin-right: 10px; }
.closing-foot { margin-top: 30px; font-size: 12.5px; color: var(--ink-mute); letter-spacing: 0.08em; }

/* ---- PROBLEM / WHY NOW -------------------------------------------------- */
.problem-window {
  width: min(900px, 100%); display: flex; align-items: center; gap: 18px; margin: 0 auto 26px;
  padding: 18px 24px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(240,102,127,0.12), rgba(232,184,75,0.08));
  border: 1px solid rgba(240,102,127,0.32); box-shadow: var(--shadow-card);
}
.pw-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 12px;
  background: rgba(240,102,127,0.14); }
.pw-icon svg { width: 26px; height: 26px; stroke: var(--rose); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pw-label { font-family: var(--f-display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose); margin-bottom: 5px; }
.pw-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(15px, 1.9vw, 20px); color: var(--ink); line-height: 1.3; }
.pain-grid { width: min(1080px, 100%); display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card { display: flex; flex-direction: column; }
.pain-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px;
  background: rgba(240,102,127,0.09); border: 1px solid rgba(240,102,127,0.22); }
.pain-icon svg { width: 28px; height: 28px; stroke: var(--rose); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pain-icon svg .fill { fill: var(--rose); stroke: none; }
.pain-title { font-family: var(--f-display); font-weight: 700; font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.pain-detail { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }

/* ---- SYNERGY / WHY SUNMI ------------------------------------------------ */
.synergy-stats { width: min(1000px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 760px) { .synergy-stats { grid-template-columns: repeat(2, 1fr); } }
.syn-stat { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 15px; text-align: center; }
.syn-stat-num { font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 2.4vw, 26px); color: var(--gold-bright); line-height: 1.1; }
.syn-stat-label { font-size: 11.5px; color: var(--ink-mute); margin-top: 6px; line-height: 1.4; }
.synergy-fits { width: min(1000px, 100%); display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.syn-fit { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 12px; }
@media (max-width: 720px) { .syn-fit { grid-template-columns: 1fr; } .syn-arrow { transform: rotate(90deg); } }
.syn-cell { background: var(--glass); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px; }
.syn-cell.ours { border-color: rgba(232,184,75,0.4); background: rgba(232,184,75,0.06); }
.syn-cell p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.syn-tag { display: inline-block; font-family: var(--f-display); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.syn-tag.gold { color: var(--gold-bright); }
.syn-arrow { align-self: center; color: var(--gold); font-size: 20px; font-weight: 700; }
.synergy-payment { width: min(1000px, 100%); display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px;
  border-radius: var(--radius); background: rgba(91,224,230,0.06); border: 1px solid rgba(91,224,230,0.25); }
.syn-pay-icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(91,224,230,0.12); }
.syn-pay-icon svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.7; }
.synergy-payment p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.synergy-oneliner { margin: 20px auto 0; max-width: 80ch; text-align: center; font-family: var(--f-display);
  font-weight: 600; font-size: clamp(15px, 1.9vw, 20px); color: var(--gold-bright); }

/* ---- ASK / THE RAISE ---------------------------------------------------- */
.ask-headline { width: min(960px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 680px) { .ask-headline { grid-template-columns: 1fr; } }
.ask-num { text-align: center; padding: 18px 12px; border-radius: 16px; background: var(--glass);
  border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.ask-num-big { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 5vw, 46px); line-height: 1;
  background: linear-gradient(120deg, #fff, var(--gold-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ask-num-label { font-size: 12.5px; color: var(--ink-mute); margin-top: 8px; }
.ask-cols { width: min(1040px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .ask-cols { grid-template-columns: 1fr; } }
.ask-col-title { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--gold-bright); margin: 0 0 14px; }
.ask-consid { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.ask-consid:first-of-type { border-top: 0; padding-top: 0; }
.ask-consid-t { font-family: var(--f-display); font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 3px; }
.ask-consid-d { font-size: 12.5px; line-height: 1.5; color: var(--ink-mute); }
.uof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.uof-list li { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); padding-left: 16px; position: relative; }
.uof-list li::before { content: "▸"; position: absolute; left: 0; color: var(--gold); }
.ask-note { width: min(1040px, 100%); margin: 18px auto 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-soft);
  border-left: 2px solid var(--gold); padding: 6px 0 6px 16px; }

/* ---- LOOP / REQUIREMENT FLYWHEEL ---------------------------------------- */
.loop-stage { width: min(1040px, 100%); display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; }
@media (max-width: 820px) { .loop-stage { grid-template-columns: 1fr; justify-items: center; } }
.loop-wheel { position: relative; width: clamp(240px, 32vw, 320px); aspect-ratio: 1; }
.loop-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.loop-dot { fill: rgba(232,184,75,0.16); stroke: var(--gold); stroke-width: 1.5; }
.loop-dot-text { fill: var(--gold-bright); font-family: var(--f-display); font-weight: 700; }
.loop-pulse { stroke: var(--cyan); stroke-width: 2.5; stroke-dasharray: 10 24; stroke-linecap: round;
  transform-origin: 130px 130px; animation: spin 7s linear infinite; opacity: 0.85; }
body.no-anim .loop-pulse { animation: none; opacity: 0.4; }
.loop-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 18%; pointer-events: none; }
.loop-center-big { font-family: var(--f-display); font-weight: 800; font-size: clamp(15px, 2vw, 21px); color: var(--gold-bright); line-height: 1.15; }
.loop-center-sub { font-size: 11px; color: var(--ink-mute); margin-top: 6px; line-height: 1.4; }
.loop-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
@media (max-width: 560px) { .loop-steps { grid-template-columns: 1fr; } }
.loop-step-item { display: flex; align-items: flex-start; gap: 10px; }
.ls-n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 12px; color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold)); }
.ls-ic { flex: none; }
.ls-ic svg { width: 20px; height: 20px; stroke: var(--cyan); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.ls-ic svg .fill { fill: var(--cyan); stroke: none; }
.ls-text { display: flex; flex-direction: column; }
.ls-text b { font-family: var(--f-display); font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.25; }
.ls-text span { font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; }
.loop-foot { margin: 26px auto 0; max-width: 80ch; text-align: center; font-size: 14px; line-height: 1.6;
  color: var(--gold-bright); font-family: var(--f-display); }

/* ============================================================================
   ANTHROPOMORPHIC MOTION LAYER — "克制·优雅"
   Agents that breathe, perk up, speak; a command chain that talks; a deck
   that assembles. Everything here is gated behind body.no-anim (the toggle,
   which already mirrors prefers-reduced-motion) so it can all be turned off.
   ========================================================================== */

/* ---- node wrappers (positioning untouched; these carry the motion) ------ */
/* .node[transform=translate] > .node-body (ignite / hover / nod)
                              > .node-breath (idle breathing) > ring + glyph  */
.node-body  { transform-box: fill-box; transform-origin: center;
  transition: transform .28s var(--ease-settle); }
.node-breath { transform-box: fill-box; transform-origin: center; }

/* idle breathing — desynced per node via --breathe so 8 ministers read as 8
   individuals; the brain "thinks" a touch faster, the sovereign sits calm */
body:not(.no-anim) .node-breath { animation: breathe 5.5s ease-in-out infinite var(--breathe, 0s); }
body:not(.no-anim) .node-brain .node-breath { animation-duration: 4.2s; }
body:not(.no-anim) .node-sovereign .node-breath { animation-duration: 7s; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.022); } }

/* occasional "blink" — a faint glyph dip near the end of a long cycle */
body:not(.no-anim) .node-glyph { animation: nodeBlink 7.5s ease-in-out infinite var(--blink, 0s); }
@keyframes nodeBlink { 0%, 92%, 100% { opacity: 1; } 96% { opacity: 0.42; } }

/* hover / focus — the character gives you its attention (lift + a hair bigger) */
.node:hover .node-body, .node:focus-visible .node-body { transform: translateY(-3px) scale(1.05); }

/* palace entry — "列队上线": nodes ignite one by one (sequenced in JS) */
.node.pre-ignite { opacity: 0; }
body:not(.no-anim) .node.ignite { animation: nodeFade .55s ease both; }
body:not(.no-anim) .node.ignite .node-body { animation: nodeRise .65s var(--ease-settle); }
@keyframes nodeFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nodeRise { 0% { transform: scale(.62); } 100% { transform: scale(1); } }

/* click — a brief acknowledging "nod" as the agent speaks */
body:not(.no-anim) .node.speaking .node-body { animation: nod .55s var(--ease-settle); }
@keyframes nod { 0% { transform: scale(1); } 35% { transform: scale(.9); } 100% { transform: scale(1); } }

/* command received — a minister flashes "收到" when a packet lands on it */
body:not(.no-anim) .node.ack .node-ring { animation: ackPulse .9s var(--ease); }
@keyframes ackPulse {
  0%   { filter: drop-shadow(0 0 2px rgba(91, 224, 230, 0)); }
  30%  { filter: drop-shadow(0 0 14px rgba(91, 224, 230, 0.9)); }
  100% { filter: drop-shadow(0 0 2px rgba(91, 224, 230, 0)); }
}

/* 麾下小弟 — a busy little team: a slow drift + twinkle */
body:not(.no-anim) .worker-dot { transform-box: fill-box; transform-origin: center;
  animation: workerDrift 4.6s ease-in-out infinite var(--wd, 0s); }
@keyframes workerDrift { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-2px); opacity: .9; } }

/* ---- command packets (orders being dispatched along the edges) ---------- */
.cmd-packet { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
body.no-anim .cmd-packet { display: none; }

/* ---- speech bubble (the agent "开口说话" on the map) --------------------- */
.speech-bubble {
  position: absolute; z-index: 5; pointer-events: none;
  min-width: 56px; max-width: 230px; padding: 10px 13px;
  font-family: var(--f-body); font-size: 13.5px; line-height: 1.5; color: var(--ink);
  background: var(--glass-strong); border: 1px solid var(--line);
  border-radius: 13px 13px 13px 4px;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px);
  opacity: 0; transform: translate(-50%, -100%) translateY(-14px);
  transition: opacity .25s var(--ease), transform .32s var(--ease-settle);
}
.speech-bubble.show { opacity: 1; transform: translate(-50%, -100%) translateY(-8px); }
.speech-bubble.below { border-radius: 4px 13px 13px 13px; transform: translate(-50%, 0) translateY(14px); }
.speech-bubble.below.show { transform: translate(-50%, 0) translateY(8px); }
.speech-bubble::after {                 /* little tail pointing at the node */
  content: ""; position: absolute; left: 50%; margin-left: -6px; bottom: -6px;
  width: 12px; height: 12px; background: var(--glass-strong);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.speech-bubble.below::after { bottom: auto; top: -6px; transform: rotate(225deg); }
.sb-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 1px; vertical-align: -2px;
  background: var(--gold-bright); animation: caretBlink .8s step-end infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* ---- agent panel — it "assembles" rather than dumps --------------------- */
body:not(.no-anim) .agent-panel .panel-avatar,
body:not(.no-anim) .agent-panel .panel-name,
body:not(.no-anim) .agent-panel .panel-title,
body:not(.no-anim) .agent-panel .panel-quote,
body:not(.no-anim) .agent-panel .panel-row { opacity: 0; }
body:not(.no-anim) .agent-panel.open .panel-avatar { animation: panelPin .5s var(--ease-settle) .04s both; }
body:not(.no-anim) .agent-panel.open .panel-name   { animation: panelPin .5s var(--ease-settle) .10s both; }
body:not(.no-anim) .agent-panel.open .panel-title  { animation: panelPin .5s var(--ease-settle) .15s both; }
body:not(.no-anim) .agent-panel.open .panel-quote  { animation: panelPin .5s var(--ease-settle) .20s both; }
body:not(.no-anim) .agent-panel.open .panel-row    { animation: panelPin .5s var(--ease-settle) var(--d, .26s) both; }
@keyframes panelPin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* the avatar glyph keeps breathing while you read */
body:not(.no-anim) .agent-panel.open .panel-avatar svg { transform-origin: center; animation: breathe 4.5s ease-in-out infinite .6s; }

/* ---- site-wide: staggered grid entrances (痛点/外围/协同/Ask) ----------- */
/* the block itself doesn't slide; its cards rise one by one */
body:not(.no-anim) .scene > .stagger-in { transform: none; }
body:not(.no-anim) .stagger-in > * { opacity: 0; }
body:not(.no-anim) .scene.in-view .stagger-in > * { animation: riseIn .6s var(--ease-settle) both; }
.stagger-in > *:nth-child(1) { animation-delay: .05s; }
.stagger-in > *:nth-child(2) { animation-delay: .12s; }
.stagger-in > *:nth-child(3) { animation-delay: .19s; }
.stagger-in > *:nth-child(4) { animation-delay: .26s; }
.stagger-in > *:nth-child(5) { animation-delay: .33s; }
.stagger-in > *:nth-child(6) { animation-delay: .40s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---- site-wide: card / CTA hover (shadow-lift, no transform — keeps clear
   of the stagger animation that owns the cards' transform) ---------------- */
.glass-card { transition: border-color .25s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease); }
.glass-card:hover {
  border-color: rgba(232, 184, 75, 0.42);
  box-shadow: 0 34px 80px -34px rgba(0, 0, 0, 0.92), 0 0 0 1px rgba(232, 184, 75, 0.12);
  background: rgba(24, 24, 52, 0.6);
}
body.no-anim .glass-card { transition: none; }
.cta-primary:hover { transform: translateY(-1px); }
body.no-anim .cta-primary:hover { transform: none; }

/* ---- utility ------------------------------------------------------------ */
[hidden] { }
