/* ===================================================================
 * CitizOS · motion.css V3 · présence vivante
 * Refs · ShaderGradient · HumaneByDesign · Apple motion · Linear · Nothing
 * Background ambient · constellation organique · glow living cards
 * GPU-only · respecte prefers-reduced-motion
 * =================================================================== */

/* ─── Scroll reveal · fade-up + blur reveal ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 1.05s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 1.05s cubic-bezier(0.165, 0.84, 0.44, 1),
              filter 1.05s cubic-bezier(0.165, 0.84, 0.44, 1);
  will-change: opacity, transform, filter;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal.d1 { transition-delay: 0.05s; }
.reveal.d2 { transition-delay: 0.13s; }
.reveal.d3 { transition-delay: 0.21s; }
.reveal.d4 { transition-delay: 0.29s; }
.reveal.d5 { transition-delay: 0.37s; }
.reveal.d6 { transition-delay: 0.45s; }

/* ─── HERO · structure ─────────────────────────────────────────────── */
.cz-hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  padding: 100px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
  }
}

/* ─── BACKGROUND AMBIENT · 5 blobs lumineux + vignette ────────────── */
.cz-hero::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(35% 35% at 18% 28%, rgba(199,154,77,0.10) 0%, transparent 70%),
    radial-gradient(40% 40% at 78% 62%, rgba(42,138,140,0.08) 0%, transparent 70%),
    radial-gradient(45% 45% at 50% 88%, rgba(91,75,138,0.05) 0%, transparent 70%),
    radial-gradient(28% 28% at 90% 18%, rgba(184,104,128,0.04) 0%, transparent 70%),
    radial-gradient(30% 30% at 12% 75%, rgba(67,138,140,0.05) 0%, transparent 70%);
  filter: blur(40px);
  animation: ambient-drift 38s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  will-change: transform, opacity;
}
.cz-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(10,13,18,0.04) 100%);
}

@keyframes ambient-drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg);   opacity: 1; }
  25%  { transform: translate(-3%, 2%) scale(1.06) rotate(2deg);  opacity: 0.95; }
  50%  { transform: translate(2%, -3%) scale(0.98) rotate(-3deg); opacity: 1; }
  75%  { transform: translate(-2%, 3%) scale(1.04) rotate(1deg);  opacity: 0.92; }
  100% { transform: translate(3%, 1%) scale(1.02) rotate(-1deg);  opacity: 1; }
}

/* ─── HERO TEXT REVEAL · mask + blur ──────────────────────────────── */
.mask-line {
  display: block;
  overflow: hidden;
  line-height: 1.15;
}
.mask-line > span {
  display: block;
  transform: translateY(110%);
  filter: blur(6px);
  opacity: 0;
  animation: mask-reveal 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes mask-reveal {
  0%   { transform: translateY(110%); filter: blur(6px); opacity: 0; }
  60%  { filter: blur(0); opacity: 1; }
  100% { transform: translateY(0); filter: blur(0); opacity: 1; }
}
.cz-hero h1 .mask-line:nth-of-type(1) > span { animation-delay: 0.22s; }
.cz-hero h1 .mask-line:nth-of-type(2) > span { animation-delay: 0.42s; }
.cz-hero h1 .mask-line:nth-of-type(3) > span { animation-delay: 0.62s; }

.cz-hero .eyebrow,
.cz-hero .lead,
.cz-hero .cz-hero-tags {
  opacity: 0;
  animation: fade-rise-blur 1.05s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.cz-hero .eyebrow      { animation-delay: 0.08s; }
.cz-hero .lead         { animation-delay: 0.75s; }
.cz-hero .cz-hero-tags { animation-delay: 0.92s; }

@keyframes fade-rise-blur {
  0%   { opacity: 0; transform: translateY(16px); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ─── CONSTELLATION ORGANIQUE · paths Bezier + halos + sparks ─────── */
.cz-constellation {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 480px;
  margin: 0 auto;
  perspective: 1400px;
  opacity: 0;
  animation: const-rise 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) 1.0s forwards;
}
@keyframes const-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.94); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.cz-constellation .stage {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: const-breathe 80s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes const-breathe {
  0%   { transform: rotateY(-3deg) rotateX(2deg) scale(1); }
  25%  { transform: rotateY(2deg) rotateX(-1deg) scale(1.015); }
  50%  { transform: rotateY(4deg) rotateX(-3deg) scale(1.025); }
  75%  { transform: rotateY(-1deg) rotateX(1deg) scale(1.01); }
  100% { transform: rotateY(-3deg) rotateX(2deg) scale(1); }
}

.cz-constellation svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Paths organiques · stroke-dashoffset draw */
.cz-constellation .conn {
  stroke: var(--ink);
  stroke-width: 0.7;
  fill: none;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: conn-draw 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  opacity: 0.18;
}
@keyframes conn-draw {
  to { stroke-dashoffset: 0; }
}
.cz-constellation .conn:nth-of-type(1) { animation-delay: 1.20s; }
.cz-constellation .conn:nth-of-type(2) { animation-delay: 1.38s; }
.cz-constellation .conn:nth-of-type(3) { animation-delay: 1.56s; }
.cz-constellation .conn:nth-of-type(4) { animation-delay: 1.74s; }
.cz-constellation .conn:nth-of-type(5) { animation-delay: 1.92s; }
.cz-constellation .conn:nth-of-type(6) { animation-delay: 2.10s; }

/* Nodes · scale + opacity + respiration permanente */
.cz-constellation .node {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  opacity: 0;
  animation:
    node-pop 0.85s cubic-bezier(0.34, 1.45, 0.64, 1) forwards,
    node-breathe 4.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes node-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes node-breathe {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.08); filter: brightness(1.15); }
}
.cz-constellation .node:nth-of-type(1) { animation-delay: 1.25s, 3.8s; }
.cz-constellation .node:nth-of-type(2) { animation-delay: 1.45s, 4.2s; }
.cz-constellation .node:nth-of-type(3) { animation-delay: 1.65s, 5.0s; }
.cz-constellation .node:nth-of-type(4) { animation-delay: 1.85s, 4.5s; }
.cz-constellation .node:nth-of-type(5) { animation-delay: 2.05s, 5.5s; }
.cz-constellation .node:nth-of-type(6) { animation-delay: 2.25s, 4.8s; }

/* Halo glow autour des nodes (via filter SVG) */
.cz-constellation .node-glow {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation:
    node-glow-fadein 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    node-glow-pulse 4.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes node-glow-fadein {
  to { opacity: 0.5; }
}
@keyframes node-glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.2); }
}
.cz-constellation .node-glow:nth-of-type(1) { animation-delay: 1.40s, 3.8s; }
.cz-constellation .node-glow:nth-of-type(2) { animation-delay: 1.60s, 4.2s; }
.cz-constellation .node-glow:nth-of-type(3) { animation-delay: 1.80s, 5.0s; }
.cz-constellation .node-glow:nth-of-type(4) { animation-delay: 2.00s, 4.5s; }
.cz-constellation .node-glow:nth-of-type(5) { animation-delay: 2.20s, 5.5s; }
.cz-constellation .node-glow:nth-of-type(6) { animation-delay: 2.40s, 4.8s; }

/* Core · respiration + ring radiant */
.cz-constellation .core {
  transform-box: fill-box;
  transform-origin: center;
  animation: core-breathe 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) 2.4s infinite;
}
@keyframes core-breathe {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.08); filter: brightness(1.1); }
}

.cz-constellation .core-ring {
  transform-box: fill-box;
  transform-origin: center;
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.7;
  opacity: 0;
  animation: core-ring-radiant 4.5s cubic-bezier(0.165, 0.84, 0.44, 1) 2.6s infinite;
}
@keyframes core-ring-radiant {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Sparks aléatoires sur les connexions */
.cz-constellation .spark {
  fill: var(--gold);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: spark-flash 7s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes spark-flash {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  35%      { opacity: 0; transform: scale(0.5); }
  45%      { opacity: 0.9; transform: scale(1.4); }
  60%      { opacity: 0; transform: scale(2.2); }
}
.cz-constellation .spark:nth-of-type(1) { animation-delay: 3.5s; }
.cz-constellation .spark:nth-of-type(2) { animation-delay: 5.8s; }
.cz-constellation .spark:nth-of-type(3) { animation-delay: 8.4s; }
.cz-constellation .spark:nth-of-type(4) { animation-delay: 11.0s; }

/* Labels · fade-in séquentiel + breathing */
.cz-constellation .node-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  fill: var(--ink-mute);
  opacity: 0;
  animation:
    label-fade 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards,
    label-breathe 6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
@keyframes label-fade {
  to { opacity: 0.7; }
}
@keyframes label-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.85; }
}
.cz-constellation .node-label:nth-of-type(1) { animation-delay: 1.55s, 4.0s; }
.cz-constellation .node-label:nth-of-type(2) { animation-delay: 1.75s, 4.5s; }
.cz-constellation .node-label:nth-of-type(3) { animation-delay: 1.95s, 5.2s; }
.cz-constellation .node-label:nth-of-type(4) { animation-delay: 2.15s, 4.7s; }
.cz-constellation .node-label:nth-of-type(5) { animation-delay: 2.35s, 5.7s; }
.cz-constellation .node-label:nth-of-type(6) { animation-delay: 2.55s, 5.0s; }

/* ─── PULSE-DOT ring · gold radiant ───────────────────────────────── */
.pulse-dot {
  position: relative;
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(199,154,77,0.4);
}
.pulse-dot::before,
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
  opacity: 0;
}
.pulse-dot::before { animation: pulse-ring 3s cubic-bezier(0.165, 0.84, 0.44, 1) infinite; }
.pulse-dot::after  { animation: pulse-ring 3s cubic-bezier(0.165, 0.84, 0.44, 1) infinite 1.5s; }
@keyframes pulse-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(4.5); opacity: 0; }
}

/* ─── CARDS verticales · living module hover ──────────────────────── */
.cz-vertical {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.4s var(--ease),
              box-shadow 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  isolation: isolate;
}
.cz-vertical:hover {
  transform: translateY(-3px) rotateX(0.5deg);
  border-color: var(--line-strong);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 18px 48px rgba(10,13,18,0.07),
    0 6px 18px rgba(10,13,18,0.04),
    0 2px 6px rgba(10,13,18,0.02);
}

/* Glow radial dynamique qui suit le cursor (via CSS variables) */
.cz-vertical::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 0%),
    color-mix(in oklab, var(--vert-color, var(--ink)) 12%, transparent),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}
.cz-vertical:hover::after { opacity: 1; }

/* Children doivent passer au-dessus du ::after */
.cz-vertical > * { position: relative; z-index: 1; }

.cz-vertical::before {
  transition: height 0.4s var(--ease), opacity 0.3s;
  z-index: 2;
}
.cz-vertical:hover::before {
  height: 3px;
  opacity: 1;
}
.cz-vertical .arr {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s;
}
.cz-vertical:hover .arr {
  transform: translateX(4px);
  color: var(--ink);
}

/* ─── NAV underline + logo glyph ──────────────────────────────────── */
.cz-nav .links a {
  position: relative;
}
.cz-nav .links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.36s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cz-nav .links a:hover::after,
.cz-nav .links a.active::after { transform: scaleX(1); }

.cz-logo .glyph {
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s;
}
.cz-logo:hover .glyph {
  transform: rotate(45deg);
  background: var(--gold);
}
.cz-logo:hover .glyph::after { background: var(--ink); }

/* ─── Status badges, capacités, demos, footer ─────────────────────── */
.cz-status { transition: transform 0.3s var(--ease); }
.cz-vertical:hover .cz-status { transform: translateY(-1px); }

.cz-caps { transition: border-left-color 0.4s var(--ease); }
.cz-caps:hover { border-left-color: var(--ink); }
.cz-caps .list span {
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s;
}
.cz-caps .list span:hover {
  transform: translateY(-1px);
  background: rgba(199,154,77,0.16);
  color: var(--ink);
}

.cz-pilote .demo {
  transition: padding-left 0.35s var(--ease);
  border-bottom: 1px dashed transparent;
}
.cz-pilote .demo:hover { padding-left: 4px; }

.cz-footer a { position: relative; transition: color 0.25s; }
.cz-footer a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.cz-footer a:hover::after { transform: scaleX(1); }

/* ─── GLASSMORPHISM · status block ────────────────────────────────── */
.cz-status-block {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(229,227,223,0.7);
  transition: border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.4s;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 10px 32px rgba(10,13,18,0.04);
}
.cz-status-block:hover {
  background: rgba(255,255,255,0.78);
  border-color: var(--gold);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 12px 40px rgba(199,154,77,0.10),
    0 0 0 1px var(--gold-soft);
}

/* ─── ATMOSPHERIC GRAIN · texture invisible ───────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.85 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  opacity: 0.018;
  mix-blend-mode: overlay;
}

/* ─── Numbers count-up · tabular nums ─────────────────────────────── */
[data-count] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════════
 *  SECTION ACTIVATORS · micro-cinématique au scroll par module
 *  Pattern · [› module] ───── 0×XXX · status
 *  ═══════════════════════════════════════════════════════════════════ */

.section-activator {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.section-activator.activated {
  opacity: 1;
  transform: translateY(0);
}

.section-activator .sa-tag {
  color: var(--gold);
  font-weight: 600;
}

/* Loading bar qui se remplit séquentiellement */
.section-activator .sa-bar {
  position: relative;
  flex: 0 0 64px;
  height: 1px;
  background: var(--line-strong);
  overflow: hidden;
}
.section-activator .sa-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  box-shadow: 0 0 6px rgba(199,154,77,0.5);
}
.section-activator.activated .sa-bar::after {
  animation: sa-bar-fill 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s forwards;
}
@keyframes sa-bar-fill {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* ID hex de module · style "registre système" */
.section-activator .sa-id {
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.16em;
  opacity: 0;
  transform: translateX(-6px);
}
.section-activator.activated .sa-id {
  animation: sa-fade-slide 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.95s forwards;
}

/* Séparateur · dot avec subtle pulse */
.section-activator .sa-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: none;
}
.section-activator.activated .sa-sep {
  animation: sa-sep-in 0.3s ease 1.10s forwards,
             sa-sep-pulse 2.4s ease-in-out 1.5s infinite;
}
@keyframes sa-sep-in {
  to { opacity: 1; }
}
@keyframes sa-sep-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Status text */
.section-activator .sa-status {
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(-6px);
}
.section-activator.activated .sa-status {
  animation: sa-fade-slide 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 1.20s forwards;
}

@keyframes sa-fade-slide {
  to { opacity: 1; transform: translateX(0); }
}

/* Caret blink à la fin du status · indique "live" */
.section-activator .sa-caret {
  display: inline-block;
  width: 7px; height: 11px;
  background: var(--gold);
  margin-left: 6px;
  vertical-align: -1px;
  opacity: 0;
  animation: none;
}
.section-activator.activated .sa-caret {
  animation: sa-caret-in 0.2s ease 1.65s forwards,
             cursor-blink 1.1s steps(2) 1.85s infinite;
}
@keyframes sa-caret-in {
  to { opacity: 1; }
}

/* Sur la couche système (fond noir), ajuster les couleurs */
.cz-os-section .section-activator,
.cz-os-section .section-activator .sa-id,
.cz-os-section .section-activator .sa-status {
  color: rgba(245,243,237,0.6);
}
.cz-os-section .section-activator .sa-bar {
  background: rgba(245,243,237,0.2);
}

/* ═══════════════════════════════════════════════════════════════════
 *  MODULE TIMELINE · indicator vertical fixed (droite écran)
 *  ═══════════════════════════════════════════════════════════════════ */

.module-timeline {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 26px;
  align-items: flex-end;
  opacity: 0;
  animation: mt-appear 1s cubic-bezier(0.22, 0.61, 0.36, 1) 3.6s forwards;
}
@media (min-width: 1100px) {
  .module-timeline { display: flex; }
}
@keyframes mt-appear {
  to { opacity: 1; }
}

.module-timeline .mt-line {
  position: absolute;
  right: 5.5px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--line-strong) 10%,
    var(--line-strong) 90%,
    transparent 100%
  );
  z-index: -1;
}

.mt-node {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  cursor: pointer;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--ink-veil);
  transition: color 0.4s var(--ease);
}
.mt-node:hover { color: var(--ink); }

.mt-label {
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s;
  white-space: nowrap;
  text-transform: uppercase;
}
.mt-node:hover .mt-label,
.mt-node.active .mt-label {
  opacity: 1;
  transform: translateX(0);
}

.mt-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-veil);
  position: relative;
  transition: background 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.45s var(--ease);
}

.mt-node:hover .mt-dot {
  background: var(--gold);
  transform: scale(1.25);
}

.mt-node.active {
  color: var(--ink);
}
.mt-node.active .mt-dot {
  background: var(--gold);
  transform: scale(1.45);
  box-shadow: 0 0 14px rgba(199,154,77,0.55);
}
.mt-node.active .mt-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: mt-pulse 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes mt-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
 *  ANIMATIONS SPÉCIFIQUES PAR SECTION
 *  Singularité par module · sensation différente à chaque scroll
 *  ═══════════════════════════════════════════════════════════════════ */

/* PILOTE (0×PIL) · les 5 tags Commerce/Media/etc pulsent séquentiellement */
.cz-pilote .demo .tag {
  position: relative;
  transition: color 0.3s, text-shadow 0.4s;
}
.cz-pilote.module-armed .demo .tag {
  animation: pilote-tag-pulse 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.cz-pilote.module-armed .demo:nth-child(1) .tag { animation-delay: 0.0s; }
.cz-pilote.module-armed .demo:nth-child(2) .tag { animation-delay: 0.18s; }
.cz-pilote.module-armed .demo:nth-child(3) .tag { animation-delay: 0.36s; }
.cz-pilote.module-armed .demo:nth-child(4) .tag { animation-delay: 0.54s; }
.cz-pilote.module-armed .demo:nth-child(5) .tag { animation-delay: 0.72s; }

@keyframes pilote-tag-pulse {
  0%   { color: var(--gold); text-shadow: 0 0 0 transparent; }
  40%  { color: var(--ink); text-shadow: 0 0 8px rgba(199,154,77,0.6); }
  100% { color: var(--gold); text-shadow: 0 0 0 transparent; }
}

/* OS / BACKSTAGE (0×OS) · les 6 couches s'allument avec un check */
.cz-backstage .os-mention ul li {
  position: relative;
  transition: color 0.3s;
}
.cz-backstage .os-mention ul li::before {
  transition: color 0.4s, transform 0.4s, opacity 0.4s;
}
.cz-backstage.module-armed .os-mention ul li {
  animation: os-line-light 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.cz-backstage.module-armed .os-mention ul li:nth-child(1) { animation-delay: 0.0s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(2) { animation-delay: 0.12s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(3) { animation-delay: 0.24s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(4) { animation-delay: 0.36s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(5) { animation-delay: 0.48s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(6) { animation-delay: 0.60s; }

@keyframes os-line-light {
  0%   { background: transparent; }
  40%  { background: rgba(199,154,77,0.08); }
  100% { background: transparent; }
}

.cz-backstage .os-mention ul li b::after {
  content: ' ●';
  color: var(--ink-veil);
  font-size: 8px;
  margin-left: 4px;
  vertical-align: middle;
  transition: color 0.5s;
}
.cz-backstage.module-armed .os-mention ul li b::after {
  animation: os-status-light 0.5s ease forwards;
}
.cz-backstage.module-armed .os-mention ul li:nth-child(1) b::after { animation-delay: 0.20s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(2) b::after { animation-delay: 0.32s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(3) b::after { animation-delay: 0.44s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(4) b::after { animation-delay: 0.56s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(5) b::after { animation-delay: 0.68s; }
.cz-backstage.module-armed .os-mention ul li:nth-child(6) b::after { animation-delay: 0.80s; }

@keyframes os-status-light {
  to { color: var(--gold); }
}

/* DOCTRINE (0×DOC) · numérotation qui scintille au passage */
#doctrine .num {
  position: relative;
  display: inline-block;
}
#doctrine.module-armed .num::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: doc-tick 0.5s ease forwards;
}
#doctrine.module-armed > .container > div > div:nth-child(1) .num::before { animation-delay: 0.0s; }
#doctrine.module-armed > .container > div > div:nth-child(2) .num::before { animation-delay: 0.2s; }
#doctrine.module-armed > .container > div > div:nth-child(3) .num::before { animation-delay: 0.4s; }
@keyframes doc-tick {
  0%   { opacity: 0; transform: translateY(-50%) scale(0.5); }
  50%  { opacity: 1; transform: translateY(-50%) scale(1.2); }
  100% { opacity: 0; transform: translateY(-50%) scale(1.6); }
}

/* STATUT (0×STA) · scintillement subtle sur les val du status block */
#statut .cz-status-block .item .val {
  position: relative;
  transition: color 0.4s;
}
#statut.module-armed .cz-status-block .item .val {
  animation: stat-flash 1s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
#statut.module-armed .cz-status-block .grid .item:nth-child(1) .val { animation-delay: 0.0s; }
#statut.module-armed .cz-status-block .grid .item:nth-child(2) .val { animation-delay: 0.10s; }
#statut.module-armed .cz-status-block .grid .item:nth-child(3) .val { animation-delay: 0.20s; }
#statut.module-armed .cz-status-block .grid .item:nth-child(4) .val { animation-delay: 0.30s; }
#statut.module-armed .cz-status-block .grid .item:nth-child(5) .val { animation-delay: 0.40s; }
#statut.module-armed .cz-status-block .grid .item:nth-child(6) .val { animation-delay: 0.50s; }
@keyframes stat-flash {
  0%   { color: var(--ink); }
  40%  { color: var(--gold); }
  100% { color: var(--ink); }
}

/* ═══════════════════════════════════════════════════════════════════
 *  NARRATION BRIDGES · voix-off entre les modules
 *  ═══════════════════════════════════════════════════════════════════ */

.narration-bridge {
  padding: 48px 0 24px;
  text-align: center;
  position: relative;
}
.narration-bridge .nb-inner {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  max-width: 720px;
  padding: 0 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s cubic-bezier(0.165, 0.84, 0.44, 1),
              transform 0.9s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.narration-bridge.activated .nb-inner {
  opacity: 1;
  transform: translateY(0);
}

.narration-bridge .nb-rail {
  flex: 0 0 64px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.narration-bridge .nb-rail::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 6px rgba(199,154,77,0.5);
}
.narration-bridge.activated .nb-rail::after {
  animation: nb-rail-fill 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}
@keyframes nb-rail-fill {
  to { transform: scaleX(1); }
}

.narration-bridge .nb-text {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-style: italic;
  line-height: 1.6;
  text-align: left;
}
.narration-bridge .nb-text .nb-tag {
  color: var(--gold);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.18em;
  margin-right: 8px;
}

.narration-bridge .nb-rail-end {
  flex: 0 0 64px;
  height: 1px;
  background: var(--line-strong);
  position: relative;
  overflow: hidden;
}
.narration-bridge .nb-rail-end::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  box-shadow: 0 0 6px rgba(199,154,77,0.5);
}
.narration-bridge.activated .nb-rail-end::after {
  animation: nb-rail-fill 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.35s forwards;
}

/* ═══════════════════════════════════════════════════════════════════
 *  RASSURANCE BAND · 3 micro-promesses sous le hero
 *  ═══════════════════════════════════════════════════════════════════ */

.cz-rassurance {
  padding: 40px 0 20px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.rassurance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}
@media (min-width: 768px) {
  .rassurance-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

.rassurance-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 8px 0;
}
.rassurance-item .r-mark {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--paper-card);
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
}
.rassurance-item .r-text {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.rassurance-item .r-text strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════
 *  MANIFESTE · l'humain au centre · placement entre cas pilote et OS
 *  ═══════════════════════════════════════════════════════════════════ */

.cz-manifeste {
  padding: 100px 0;
  background: var(--paper);
  position: relative;
}
.cz-manifeste::before,
.cz-manifeste::after {
  content: '';
  display: block;
  position: absolute;
  left: 50%;
  width: 64px;
  height: 1px;
  background: var(--line-strong);
  transform: translateX(-50%);
}
.cz-manifeste::before { top: 0; }
.cz-manifeste::after { bottom: 0; }

.cz-manifeste .m-header {
  text-align: center;
  margin-bottom: 56px;
}
.cz-manifeste .m-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.cz-manifeste h2 {
  max-width: 22ch;
  margin: 0 auto;
}
.cz-manifeste h2 em {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 500;
}
.cz-manifeste .m-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 20px auto 0;
  line-height: 1.6;
}

.cz-manifeste .m-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .cz-manifeste .m-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

.cz-manifeste .m-promise {
  position: relative;
  padding: 24px 22px;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.cz-manifeste .m-promise::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.5s ease, width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.cz-manifeste.module-armed .m-promise::before {
  opacity: 0.9;
  width: 32px;
  animation: manifeste-mark-draw 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.cz-manifeste.module-armed .m-promise:nth-child(1)::before { animation-delay: 0.05s; }
.cz-manifeste.module-armed .m-promise:nth-child(2)::before { animation-delay: 0.20s; }
.cz-manifeste.module-armed .m-promise:nth-child(3)::before { animation-delay: 0.35s; }

@keyframes manifeste-mark-draw {
  0%   { width: 0; opacity: 0; }
  100% { width: 32px; opacity: 0.9; }
}

.cz-manifeste .m-promise .m-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}
.cz-manifeste .m-promise h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.cz-manifeste .m-promise p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .module-timeline { animation: none !important; opacity: 1 !important; }
  .mt-node.active .mt-dot::after { animation: none !important; opacity: 0 !important; }
  .cz-pilote .demo .tag,
  .cz-backstage .os-mention ul li,
  .cz-backstage .os-mention ul li b::after,
  #doctrine.module-armed .num::before,
  #statut.module-armed .cz-status-block .item .val {
    animation: none !important;
  }
  .narration-bridge .nb-inner {
    opacity: 1 !important; transform: none !important;
  }
  .narration-bridge .nb-rail::after,
  .narration-bridge .nb-rail-end::after {
    transform: scaleX(1) !important; animation: none !important;
  }
  .cz-manifeste .m-promise::before {
    opacity: 0.9 !important; width: 32px !important; animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-activator,
  .section-activator * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .section-activator .sa-bar::after {
    transform: scaleX(1) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
 *  REDUCED MOTION
 *  ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .mask-line > span,
  .cz-hero .eyebrow,
  .cz-hero .lead,
  .cz-hero .cz-hero-tags,
  .cz-constellation,
  .cz-constellation .conn,
  .cz-constellation .node,
  .cz-constellation .node-glow,
  .cz-constellation .node-label,
  .cz-constellation .core,
  .cz-constellation .core-ring,
  .cz-constellation .spark,
  .cz-constellation .stage {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .cz-hero::before, .cz-hero::after { animation: none !important; }
  .pulse-dot::before, .pulse-dot::after { animation: none !important; opacity: 0 !important; }
  body::after { opacity: 0 !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
