/* ============================================================
   Animated hero visuals — one per solution / industry.
   Pure CSS, no JS. Every animation stops under prefers-reduced-motion,
   leaving a static composed state that still reads correctly.
   ============================================================ */

.viz{flex:1 1 404px;min-width:320px;align-self:flex-start;background:rgba(255,255,255,.05);
  box-shadow:inset 0 0 0 1px var(--line-d);border-radius:var(--r-l);padding:20px;overflow:hidden}
.viz-hd{display:flex;align-items:center;gap:9px;margin-bottom:16px}
.viz-hd i{width:7px;height:7px;border-radius:50%;background:var(--amber);flex:none;
  box-shadow:0 0 0 0 rgba(242,140,27,.45);animation:pulse 2.4s ease-out infinite}
.viz-hd b{font:600 11px var(--sans);letter-spacing:.1em;text-transform:uppercase;color:#ffb04d}
.viz-hd span{margin-left:auto;font-size:11px;color:#a9a6c9;letter-spacing:.04em}
.viz-ft{margin-top:16px;padding-top:13px;border-top:1px solid rgba(255,255,255,.1);
  font-size:12.5px;color:#9f9cc4;line-height:1.45}
.viz-stage{position:relative;min-height:244px}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(242,140,27,.45)}70%{box-shadow:0 0 0 9px rgba(242,140,27,0)}100%{box-shadow:0 0 0 0 rgba(242,140,27,0)}}

/* ---------- 1. chat: a thread assembling itself ---------- */
.v-chat{display:flex;flex-direction:column;gap:9px}
.v-chat .b{max-width:84%;padding:10px 13px;border-radius:13px;font-size:12.5px;line-height:1.45;
  opacity:0;transform:translateY(7px);animation:rise .5s ease-out forwards}
.v-chat .them{align-self:flex-start;background:rgba(255,255,255,.1);color:#e3e1f2;border-bottom-left-radius:4px}
.v-chat .us{align-self:flex-end;background:var(--amber);color:#1b1004;border-bottom-right-radius:4px}
.v-chat .b:nth-child(1){animation-delay:.2s}
.v-chat .b:nth-child(2){animation-delay:1.1s}
.v-chat .b:nth-child(3){animation-delay:2.0s}
.v-chat .b:nth-child(4){animation-delay:2.9s}
.v-chat .dots{align-self:flex-start;display:flex;gap:4px;padding:11px 13px;border-radius:13px;
  background:rgba(255,255,255,.1);opacity:0;animation:blip 3.8s ease-in-out .6s infinite}
.v-chat .dots i{width:5px;height:5px;border-radius:50%;background:#b9b6d8;animation:bob .9s ease-in-out infinite}
.v-chat .dots i:nth-child(2){animation-delay:.15s}.v-chat .dots i:nth-child(3){animation-delay:.3s}
.v-hand{display:flex;align-items:center;gap:8px;margin-top:4px;padding:9px 11px;border-radius:9px;
  background:rgba(242,140,27,.14);box-shadow:inset 0 0 0 1px rgba(242,140,27,.4);
  font-size:11.5px;color:#ffd4a3;opacity:0;animation:rise .5s ease-out 3.7s forwards}
@keyframes rise{to{opacity:1;transform:none}}
@keyframes bob{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-4px);opacity:1}}
@keyframes blip{0%,12%{opacity:1}22%,100%{opacity:0}}

/* ---------- 2. route: a marker travelling a path ---------- */
.v-route .map{position:relative;height:150px;border-radius:var(--r-m);overflow:hidden;
  background:#171538;background-image:linear-gradient(rgba(255,255,255,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.055) 1px,transparent 1px);background-size:30px 30px}
.v-route .path{position:absolute;left:10%;right:12%;top:52%;height:2px;background:rgba(255,255,255,.18);
  border-radius:2px;transform:rotate(-11deg)}
.v-route .path::after{content:"";position:absolute;inset:0;background:var(--amber);border-radius:2px;
  transform-origin:left;transform:scaleX(0);animation:draw 6s ease-in-out infinite}
.v-route .dot{position:absolute;top:52%;left:10%;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;
  background:var(--amber);box-shadow:0 0 0 5px rgba(242,140,27,.26);animation:travel 6s ease-in-out infinite}
.v-route .stop{position:absolute;width:8px;height:8px;border-radius:50%;background:#6e6b92;
  box-shadow:0 0 0 4px rgba(110,107,146,.2)}
.v-route .rows{margin-top:12px}
.v-route .r{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.08);
  font-size:11.5px;color:#b9b6d8}
.v-route .r:last-child{border-bottom:0}
.v-route .r i{width:7px;height:7px;border-radius:50%;flex:none;background:#6e6b92}
.v-route .r.live i{background:var(--amber);animation:flash 1.8s ease-in-out infinite}
.v-route .r b{color:#fff;font-weight:600;min-width:104px}
.v-route .r span{margin-left:auto;font-size:10.5px;letter-spacing:.03em}
@keyframes draw{0%,8%{transform:scaleX(0)}70%,100%{transform:scaleX(1)}}
@keyframes travel{0%,8%{left:10%;top:52%}70%,100%{left:86%;top:36%}}
@keyframes flash{0%,100%{opacity:1}50%{opacity:.35}}

/* ---------- 3. pipeline: a card moving through stages ---------- */
.v-pipe{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.v-pipe .col{background:rgba(255,255,255,.05);border-radius:9px;padding:9px 7px;min-height:168px}
.v-pipe .col .h{font:600 9.5px var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#a9a6c9;
  margin-bottom:9px;text-align:center;line-height:1.3}
.v-pipe .card{height:26px;border-radius:6px;background:rgba(255,255,255,.14);margin-bottom:6px}
.v-pipe .card.sm{height:18px;opacity:.5}
.v-pipe .mover{background:var(--amber);position:relative;animation:hop 8s ease-in-out infinite}
.v-pipe .mover::after{content:"";position:absolute;inset:0;border-radius:6px;
  box-shadow:0 0 0 0 rgba(242,140,27,.5);animation:ping 2s ease-out infinite}
.v-pipe .tally{margin-top:9px;text-align:center;font:700 13px var(--display);color:#fff}
.v-pipe .tally span{display:block;font:400 9.5px var(--sans);color:#a9a6c9;margin-top:1px}
@keyframes hop{0%,18%{transform:translate(0,0)}25%,43%{transform:translate(calc(100% + 7px),14px)}
  50%,68%{transform:translate(calc(200% + 14px),28px)}75%,100%{transform:translate(calc(300% + 21px),42px)}}
@keyframes ping{0%{box-shadow:0 0 0 0 rgba(242,140,27,.5)}70%{box-shadow:0 0 0 10px rgba(242,140,27,0)}100%{box-shadow:0 0 0 0 rgba(242,140,27,0)}}

/* ---------- 4. worklist: a queue clearing ---------- */
.v-work .row{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:9px;
  background:rgba(255,255,255,.05);margin-bottom:7px}
.v-work .row b{font-size:11.5px;color:#fff;font-weight:600;flex:1;min-width:0}
.v-work .row em{font-style:normal;font-size:10px;color:#a9a6c9;font-variant-numeric:tabular-nums}
.v-work .pill{font-size:9.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;
  padding:4px 8px;border-radius:var(--r-full);white-space:nowrap;position:relative;overflow:hidden}
.v-work .pill span{display:block}
.v-work .pill .a{color:#b9b6d8}
.v-work .pill .b{position:absolute;inset:0;display:grid;place-items:center;color:#1b1004;opacity:0;background:var(--amber);border-radius:inherit;padding:0 8px}
.v-work .row{position:relative}
.v-work .row .pill{background:rgba(255,255,255,.1)}
.v-work .row:nth-child(1) .pill{animation:swap 7s ease-in-out .3s infinite}
.v-work .row:nth-child(2) .pill{animation:swap 7s ease-in-out 1.4s infinite}
.v-work .row:nth-child(3) .pill{animation:swap 7s ease-in-out 2.5s infinite}
.v-work .row:nth-child(4) .pill{animation:swap 7s ease-in-out 3.6s infinite}
.v-work .row:nth-child(1) .pill .b{animation:fadein 7s ease-in-out .3s infinite}
.v-work .row:nth-child(2) .pill .b{animation:fadein 7s ease-in-out 1.4s infinite}
.v-work .row:nth-child(3) .pill .b{animation:fadein 7s ease-in-out 2.5s infinite}
.v-work .row:nth-child(4) .pill .b{animation:fadein 7s ease-in-out 3.6s infinite}
.v-work .row:nth-child(1) .pill .a{animation:fadeout 7s ease-in-out .3s infinite}
.v-work .row:nth-child(2) .pill .a{animation:fadeout 7s ease-in-out 1.4s infinite}
.v-work .row:nth-child(3) .pill .a{animation:fadeout 7s ease-in-out 2.5s infinite}
.v-work .row:nth-child(4) .pill .a{animation:fadeout 7s ease-in-out 3.6s infinite}
@keyframes swap{0%,18%{background:rgba(255,255,255,.1)}26%,88%{background:var(--amber)}100%{background:rgba(255,255,255,.1)}}
@keyframes fadein{0%,20%{opacity:0}28%,88%{opacity:1}100%{opacity:0}}
@keyframes fadeout{0%,20%{opacity:1}28%,88%{opacity:0}100%{opacity:1}}

/* ---------- 5. counter: a figure climbing + bars ---------- */
.v-count .big{font:700 46px/1 var(--display);letter-spacing:-.03em;color:#fff;overflow:hidden;height:46px}
.v-count .big i{display:block;font-style:normal;animation:roll 6s cubic-bezier(.3,.9,.3,1) infinite}
.v-count .cap{font-size:12.5px;color:#b9b6d8;margin-top:8px;line-height:1.45}
.v-count .bars{display:flex;align-items:flex-end;gap:7px;height:92px;margin-top:20px}
.v-count .bars i{flex:1;border-radius:4px 4px 0 0;background:rgba(255,255,255,.17);transform-origin:bottom;
  transform:scaleY(.2);animation:grow 6s ease-out infinite}
.v-count .bars i:nth-child(1){animation-delay:.1s}.v-count .bars i:nth-child(2){animation-delay:.25s}
.v-count .bars i:nth-child(3){animation-delay:.4s}.v-count .bars i:nth-child(4){animation-delay:.55s}
.v-count .bars i:nth-child(5){animation-delay:.7s}.v-count .bars i:nth-child(6){animation-delay:.85s}
.v-count .bars i:last-child{background:var(--amber)}
.v-count .legend{display:flex;justify-content:space-between;margin-top:9px;font-size:10px;color:#a9a6c9}
@keyframes roll{0%{transform:translateY(0)}18%{transform:translateY(-100%)}36%{transform:translateY(-200%)}
  54%,100%{transform:translateY(-300%)}}
@keyframes grow{0%{transform:scaleY(.2)}45%,100%{transform:scaleY(1)}}

/* ---------- 6. doc: extraction with a scan sweep ---------- */
.v-doc .sheet{position:relative;background:rgba(255,255,255,.07);border-radius:var(--r-m);padding:16px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);overflow:hidden}
.v-doc .sheet::after{content:"";position:absolute;left:0;right:0;height:46px;top:-46px;
  background:linear-gradient(180deg,transparent,rgba(242,140,27,.28),transparent);
  animation:sweep 5s ease-in-out infinite}
.v-doc .ln{height:7px;border-radius:4px;background:rgba(255,255,255,.14);margin-bottom:8px}
.v-doc .ln.s{width:58%}.v-doc .ln.m{width:80%}
.v-doc .fields{margin-top:14px}
.v-doc .f{display:flex;align-items:center;gap:9px;padding:7px 0;font-size:11.5px;color:#b9b6d8}
.v-doc .f em{font-style:normal;color:#a9a6c9;min-width:78px}
.v-doc .f b{color:#fff;font-weight:600;opacity:0;animation:rise .4s ease-out forwards}
.v-doc .f:nth-child(1) b{animation-delay:1.6s}.v-doc .f:nth-child(2) b{animation-delay:2.1s}
.v-doc .f:nth-child(3) b{animation-delay:2.6s}
.v-doc .f svg{width:13px;height:13px;color:var(--amber);margin-left:auto;opacity:0;animation:rise .4s ease-out forwards}
.v-doc .f:nth-child(1) svg{animation-delay:1.8s}.v-doc .f:nth-child(2) svg{animation-delay:2.3s}
.v-doc .f:nth-child(3) svg{animation-delay:2.8s}
.v-doc .stamp{margin-top:12px;display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:var(--r-full);
  background:rgba(242,140,27,.14);box-shadow:inset 0 0 0 1px rgba(242,140,27,.4);font-size:11px;color:#ffd4a3;
  opacity:0;animation:rise .5s ease-out 3.3s forwards}
@keyframes sweep{0%{top:-46px}55%,100%{top:100%}}

/* ---------- 7. grid: tiles resolving under a filter ---------- */
.v-grid .chips{display:flex;gap:6px;margin-bottom:12px;flex-wrap:wrap}
.v-grid .chips i{font-style:normal;font-size:10px;padding:5px 9px;border-radius:var(--r-full);
  background:rgba(255,255,255,.08);color:#b9b6d8}
.v-grid .chips i:first-child{background:var(--amber);color:#1b1004;font-weight:700}
.v-grid .tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.v-grid .t{border-radius:9px;background:rgba(255,255,255,.07);padding:9px;opacity:0;transform:scale(.94);
  animation:pop .5s ease-out forwards}
.v-grid .t i{display:block;height:34px;border-radius:5px;background:rgba(255,255,255,.12);margin-bottom:7px}
.v-grid .t:nth-child(3n+1) i{background:rgba(242,140,27,.3)}
.v-grid .t b{display:block;height:5px;border-radius:3px;background:rgba(255,255,255,.3);width:72%}
.v-grid .t em{display:block;height:5px;border-radius:3px;background:rgba(255,255,255,.14);width:46%;margin-top:5px}
.v-grid .t:nth-child(1){animation-delay:.2s}.v-grid .t:nth-child(2){animation-delay:.35s}
.v-grid .t:nth-child(3){animation-delay:.5s}.v-grid .t:nth-child(4){animation-delay:.65s}
.v-grid .t:nth-child(5){animation-delay:.8s}.v-grid .t:nth-child(6){animation-delay:.95s}
@keyframes pop{to{opacity:1;transform:none}}

/* ---------- reduced motion: hold the finished state ---------- */
@media (prefers-reduced-motion:reduce){
  .viz *{animation:none!important;transition:none!important}
  .v-chat .b,.v-hand,.v-doc .f b,.v-doc .f svg,.v-doc .stamp,.v-grid .t{opacity:1!important;transform:none!important}
  .v-chat .dots{display:none}
  .v-route .path::after{transform:scaleX(1)!important}
  .v-route .dot{left:86%!important;top:36%!important}
  .v-count .big i{transform:translateY(-300%)!important}
  .v-count .bars i{transform:scaleY(1)!important}
  .v-work .pill{background:var(--amber)!important}
  .v-work .pill .a{opacity:0!important}.v-work .pill .b{opacity:1!important}
  .v-pipe .mover{transform:translate(calc(300% + 21px),42px)!important}
  .v-doc .sheet::after{display:none}
}
@media (max-width:820px){.viz-stage{min-height:0}.v-pipe .col{min-height:140px}}
