/* =============================================================
   NOUX — Shared visual artifacts (inner pages)
   Small animated glass vignettes in the established vocabulary:
   glass cards, orange pulses, growing bars, traveling dots.
   ============================================================= */
.viz {
  position: relative;
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 60%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 16px 36px -26px color-mix(in srgb, var(--ink) 30%, transparent);
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: 9px;
  width: min(320px, 100%);
}
.viz .vz-label {
  font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600; color: var(--ink-mute);
  display: flex; align-items: center; gap: 0.45rem;
}
.viz .vz-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); font-style: normal; }

/* --- Browser wireframe: a page composing itself --- */
.viz-browser .vz-dots { display: flex; gap: 4px; }
.viz-browser .vz-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.viz-browser .vz-dots i:first-child { background: var(--accent); }
.viz-browser .vz-t { height: 7px; border-radius: 4px; background: var(--ink); opacity: 0.85; transform-origin: left; animation: vz-grow-x 7s var(--ease) infinite; }
.viz-browser .vz-t.t2 { width: 62%; animation-delay: 0.35s; background: var(--ink-mute); }
.viz-browser .vz-img { height: 74px; border-radius: 6px; background: linear-gradient(120deg, var(--glow), var(--accent)); opacity: 0.8; transform-origin: left; animation: vz-grow-x 7s var(--ease) infinite; animation-delay: 0.7s; }
.viz-browser .vz-btn { width: 88px; height: 22px; border-radius: 100px; background: var(--accent); animation: vz-pop 7s var(--ease) infinite; animation-delay: 1.15s; }
@keyframes vz-grow-x { 0% { transform: scaleX(0); } 10%, 88% { transform: scaleX(1); } 97%, 100% { transform: scaleX(0); } }
@keyframes vz-pop { 0%, 14% { transform: scale(0); } 21%, 88% { transform: scale(1); } 97%, 100% { transform: scale(0); } }

/* --- Funnel: attention narrowing to a booked lead --- */
.viz-funnel .vz-bar { height: 16px; border-radius: 4px; background: color-mix(in srgb, var(--accent) 22%, var(--paper)); transform-origin: left; animation: vz-grow-x 6s var(--ease) infinite; }
.viz-funnel .vz-bar.b2 { width: 72%; animation-delay: 0.25s; background: color-mix(in srgb, var(--accent) 45%, var(--paper)); }
.viz-funnel .vz-bar.b3 { width: 46%; animation-delay: 0.5s; background: color-mix(in srgb, var(--accent) 70%, var(--paper)); }
.viz-funnel .vz-lead {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--ink); color: var(--bone); border-radius: 100px;
  font-family: var(--sans); font-size: 0.72rem; font-weight: 600; padding: 0.4em 0.9em;
  animation: vz-pop 6s var(--ease) infinite; animation-delay: 0.85s; transform-origin: left center;
}
.viz-funnel .vz-lead b { color: var(--glow); }

/* --- Flow: a task traveling through three stations --- */
.viz-flow .vz-track { display: flex; align-items: center; gap: 0; padding: 6px 2px; }
.viz-flow .vz-node { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink-mute); flex: none; }
.viz-flow .vz-node.on { border-color: var(--accent); }
.viz-flow .vz-seg { flex: 1; height: 1.5px; background: var(--line); position: relative; }
.viz-flow .vz-seg::after {
  content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
  opacity: 0; animation: vz-travel 5.2s ease-in-out infinite;
}
.viz-flow .vz-seg.s2::after { animation-delay: 2.6s; }
@keyframes vz-travel { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 42% { left: calc(100% - 9px); opacity: 1; } 52%, 100% { left: calc(100% - 9px); opacity: 0; } }
.viz-flow .vz-rows { display: flex; flex-direction: column; gap: 6px; }
.viz-flow .vz-row { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 0.78rem; color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: 6px; }
.viz-flow .vz-row b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* --- Growth: sparkline drawing itself --- */
.viz-growth svg { width: 100%; height: 70px; color: var(--accent); }
.viz-growth .vz-line { stroke-dasharray: 260; stroke-dashoffset: 260; animation: vz-draw 6s var(--ease) infinite; }
@keyframes vz-draw { 0% { stroke-dashoffset: 260; } 40%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 260; } }
.viz-growth .vz-metric { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--sans); }
.viz-growth .vz-metric b { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.viz-growth .vz-metric span { font-size: 0.75rem; color: var(--ink-mute); }

/* --- Scope: a defined box, checked off --- */
.viz-scope .vz-list { display: flex; flex-direction: column; gap: 7px; }
.viz-scope .vz-item { display: flex; align-items: center; gap: 0.6rem; font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); }
.viz-scope .vz-check {
  width: 17px; height: 17px; border-radius: 5px; flex: none;
  border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--paper); font-style: normal;
}
.viz-scope .vz-item.done .vz-check { background: var(--accent); border-color: var(--accent); }
.viz-scope .vz-item.done .vz-check::after { content: "✓"; }

/* --- Map: workflow audit, one bottleneck found --- */
.viz-map .vz-lanes { display: flex; flex-direction: column; gap: 8px; }
.viz-map .vz-lane { display: flex; align-items: center; gap: 6px; }
.viz-map .vz-lane .n { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink-mute); background: var(--paper); flex: none; }
.viz-map .vz-lane .s { flex: 1; height: 1.5px; background: var(--line); }
.viz-map .vz-lane .n.bad { border-color: var(--accent); background: var(--accent); animation: vz-blink 2.4s ease-in-out infinite; }
@keyframes vz-blink { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 7px transparent; } }
.viz-map .vz-note { font-family: var(--sans); font-size: 0.75rem; color: var(--accent); font-weight: 600; }

/* --- CRM: a record assembling itself --- */
.viz-crm .vz-card {
  background: color-mix(in srgb, var(--bone) 70%, transparent);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.85rem;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--ink);
  animation: vz-pop 6s var(--ease) infinite; transform-origin: left top;
}
.viz-crm .vz-card span { display: block; font-weight: 400; font-size: 0.72rem; color: var(--ink-mute); margin-top: 3px; }
.viz-crm .vz-card.c2 { animation-delay: 0.4s; }
.viz-crm .vz-auto { font-family: var(--sans); font-size: 0.72rem; color: var(--ink-mute); display: flex; align-items: center; gap: 0.45rem; }
.viz-crm .vz-auto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .viz *, .viz *::before, .viz *::after { animation: none !important; }
  .viz-browser .vz-t, .viz-browser .vz-img, .viz-browser .vz-btn,
  .viz-funnel .vz-bar, .viz-funnel .vz-lead { transform: none !important; }
  .viz-growth .vz-line { stroke-dashoffset: 0 !important; }
}
