/* Oabo Scorecard flow — one 13 s shared timeline; the un-animated state is the finished scene.
   Three hues only: ink, Oabo accent blue, and the semantic verification green. */

.oaboflow{
  --ink:#16181f; --ink-2:#565d6e; --rule:#d9dde5; --paper:#fff;
  --accent:#2a5bff; --verified:#0f7a50;
  --frame:#6e8190;           /* outlines that mean something: >=3:1 on white, sky, paper, sage */
  --cost:#565d6e;            /* cost is ink, never one of the three return lanes */
  --e-out:cubic-bezier(.22,.61,.36,1); --e-mid:cubic-bezier(.65,0,.35,1);
  --loop:13s;
  color:var(--ink);
}
.oaboflow[data-variant=experts]{--ink:#193244;--ink-2:#536674;--rule:#d7e0e6;--frame:#6e8190}
.oaboflow[data-variant=partners]{--ink:#24362f;--ink-2:#4f6156;--rule:#d4ded4;--frame:#6f7f74}

.oaboflow-svg{display:block;width:100%;height:auto}
.oaboflow-svg text{font:500 16px/1 inherit;font-family:inherit;fill:var(--ink)}

/* ---- one stroke system: 2 px, round joins ---- */
.oaboflow-svg .ln,.oaboflow-svg .box,.oaboflow-svg .tok-s,.oaboflow-svg .tok-g,
.oaboflow-svg .link,.oaboflow-svg .rail,.oaboflow-svg .hair,.oaboflow-svg .base,
.oaboflow-svg .split,.oaboflow-svg .beam{
  fill:none;stroke:var(--ink);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
}
.oaboflow-svg .rail,.oaboflow-svg .hair{stroke:var(--rule)}
.oaboflow-svg .split{stroke:var(--frame)}   /* keeps cost outside the three lanes */
.oaboflow-svg .base{stroke:var(--frame)}    /* the baseline the three lanes share */
.oaboflow-svg .box{stroke:var(--frame);fill:var(--paper)}
.oaboflow-svg .dot{fill:var(--ink)}
.oaboflow-svg .beam{stroke:var(--accent)}

.oaboflow-svg .ttl{text-anchor:middle;font-weight:600;font-size:16px}
.oaboflow-svg .cap{text-anchor:middle;font-size:14px;fill:var(--ink-2)}
.oaboflow-svg .box-t{text-anchor:middle;font-size:15px;font-weight:600}
.oaboflow-svg .box-n{text-anchor:middle;font-size:16px;font-weight:600;fill:var(--accent);font-variant-numeric:tabular-nums}
.oaboflow-svg .lk{font-size:11px;fill:var(--ink-2)}
.oaboflow-svg .tag{text-anchor:end;font-size:11px;fill:var(--ink-2)}
.oaboflow-svg .card-t{text-anchor:start}
.oaboflow-svg .badge .bg3{fill:var(--verified)}

/* token */
.oaboflow-svg .tok-s{fill:var(--paper);stroke:var(--accent)}
.oaboflow-svg .tok-g{stroke:var(--accent)}
.oaboflow-svg .tok-doc .ln{fill:var(--paper);stroke:var(--ink-2)}
.oaboflow-svg .tag-a rect,.oaboflow-svg .tag-b rect{fill:var(--paper);stroke:var(--ink-2);stroke-width:1.5}
.oaboflow-svg .tag-a text,.oaboflow-svg .tag-b text{text-anchor:middle;font-size:10px;fill:var(--ink-2)}

/* the report: three lanes of one hue, told apart by material, never summed */
.oaboflow-svg .l1 rect{fill:var(--accent);stroke:none}                                   /* cash: banked */
.oaboflow-svg .l2 rect{fill:#e5ebff;stroke:var(--accent);stroke-width:2}                 /* hours: held, not cash */
.oaboflow-svg .l3 rect{fill:none;stroke:var(--accent);stroke-width:2;stroke-dasharray:4 3} /* modeled: not banked */
.oaboflow-svg .l4 rect{fill:var(--cost);stroke:none}                                     /* cost, across the rule */
.oaboflow-svg .card-b{stroke:var(--ink)}

/* decision chips */
.oaboflow-svg .chip rect{fill:none;stroke:var(--frame);stroke-width:2}
.oaboflow-svg .chip text{text-anchor:middle;font-size:13px;font-weight:600;fill:var(--ink-2)}
.oaboflow:not([data-lit]) .c1 rect,.oaboflow[data-lit="1"] .c1 rect,
.oaboflow[data-lit="2"] .c2 rect,.oaboflow[data-lit="3"] .c3 rect{fill:var(--accent);stroke:var(--accent)}
.oaboflow:not([data-lit]) .c1 text,.oaboflow[data-lit="1"] .c1 text,
.oaboflow[data-lit="2"] .c2 text,.oaboflow[data-lit="3"] .c3 text{fill:#fff}

/* ---- layout ---- */
.oaboflow-svg .st{transform:translate(var(--sx),var(--sy))}

/* vertical is the default: it is how the page is read most often, and it needs no script */
.oaboflow-svg .st1{--sx:190px;--sy:160px}
.oaboflow-svg .st2{--sx:190px;--sy:390px}
.oaboflow-svg .st3{--sx:190px;--sy:620px}
.oaboflow-svg .st4{--sx:190px;--sy:850px}
.oaboflow-svg .st5{--sx:190px;--sy:1130px}
.oaboflow-svg .st6{--sx:190px;--sy:1390px}
.oaboflow-svg .rail-h,.oaboflow-svg .beam-h{display:none}
.oaboflow-svg .tok{
  --p1x:190px;--p1y:136px; --p2x:190px;--p2y:366px; --p3x:190px;--p3y:596px;
  --p4x:190px;--p4y:826px; --p5x:190px;--p5y:1130px;
  translate:var(--p5x) var(--p5y);opacity:0;
}
/* narrow widths get their own type scale — nothing below 11 px rendered at 390, 10 px at 320 */
.oaboflow.is-vert .ttl{font-size:17px}
.oaboflow.is-vert .cap{font-size:15px}
.oaboflow.is-vert .box-t{font-size:16px}
.oaboflow.is-vert .box-n{font-size:17px}
.oaboflow.is-vert .chip text{font-size:14px}
.oaboflow-svg .cardzoom{transform-box:fill-box;transform-origin:center;scale:1.4}
.oaboflow-svg .st5 .lbl{translate:0 34px}
/* vertical: the cost tags dock left of the token, below the box and clear of the stage title */
.oaboflow-svg .tags{transform-box:fill-box;transform-origin:left center;translate:-150px 26px;scale:1.4}
.oaboflow-svg .dupe rect{translate:-80px 24px}
.oaboflow-svg .tok-doc rect{y:-14px}

.oaboflow.is-wide .st1{--sx:100px;--sy:200px}
.oaboflow.is-wide .st2{--sx:270px;--sy:200px}
.oaboflow.is-wide .st3{--sx:425px;--sy:200px}
.oaboflow.is-wide .st4{--sx:575px;--sy:200px}
.oaboflow.is-wide .st5{--sx:790px;--sy:200px}
.oaboflow.is-wide .st6{--sx:1060px;--sy:200px}
.oaboflow.is-wide .rail-v,.oaboflow.is-wide .beam-v{display:none}
.oaboflow.is-wide .rail-h,.oaboflow.is-wide .beam-h{display:inline}
.oaboflow.is-wide .tok{
  --p1x:100px;--p1y:200px; --p2x:270px;--p2y:200px; --p3x:425px;--p3y:200px;
  --p4x:575px;--p4y:200px; --p5x:790px;--p5y:200px;
}
.oaboflow.is-wide .cardzoom{scale:1}
.oaboflow.is-wide .st5 .lbl{translate:0 0}
.oaboflow.is-wide .tags{translate:0 0;scale:1}
.oaboflow.is-wide .dupe rect{translate:0 0}
.oaboflow.is-wide .tok-doc rect{y:-24px}

/* ---- base = the finished scene (reduced motion, no-JS, and the loop's rest state) ---- */
.oaboflow-svg .dupe,.oaboflow-svg .bg1,.oaboflow-svg .bg2,
.oaboflow-svg .n1,.oaboflow-svg .n2,.oaboflow-svg .tag-a,.oaboflow-svg .tag-b{opacity:0}

/* ---- the single 13 s timeline: every element shares it, no delays ---- */
.oaboflow-svg,.oaboflow-svg .sweep,.oaboflow-svg .ev1,.oaboflow-svg .ev2,.oaboflow-svg .ev3,
.oaboflow-svg .st1 .ttl,.oaboflow-svg .st1 .cap,.oaboflow-svg .tok,
.oaboflow-svg .st2 .ev4,.oaboflow-svg .st2 .cap,.oaboflow-svg .tag-a,.oaboflow-svg .tag-b,
.oaboflow-svg .st3 .ev4,.oaboflow-svg .st3 .cap,.oaboflow-svg .dupe,
.oaboflow-svg .n1,.oaboflow-svg .n2,.oaboflow-svg .n3,
.oaboflow-svg .st4 .ev4,.oaboflow-svg .st4 .cap,.oaboflow-svg .tok-doc,
.oaboflow-svg .bg1,.oaboflow-svg .bg2,.oaboflow-svg .bg3,
.oaboflow-svg .card,.oaboflow-svg .st5 .ttl,.oaboflow-svg .st5 .cap,
.oaboflow-svg .l1,.oaboflow-svg .l2,.oaboflow-svg .l3,.oaboflow-svg .l4,
.oaboflow-svg .lk,.oaboflow-svg .tag,
.oaboflow-svg .ev6,.oaboflow-svg .st6 .ttl,.oaboflow-svg .st6 .cap,
.oaboflow-svg .c1,.oaboflow-svg .c2,.oaboflow-svg .c3{
  animation-duration:var(--loop);animation-iteration-count:infinite;animation-timing-function:linear;
}
.oaboflow.is-paused .oaboflow-svg,.oaboflow.is-paused .oaboflow-svg *{animation-play-state:paused}

/* the completed scene holds from 75 % to 94 % — 2.5 s of payoff before the soft reset */
.oaboflow-svg{animation-name:seam}
@keyframes seam{0%{opacity:0}3%{opacity:1}94%{opacity:1}100%{opacity:0}}

/* spine and beam reveal by scaling a stroke box — transform only, no dashoffset repaint */
.oaboflow-svg .sweep{transform-box:stroke-box}
.oaboflow-svg .sweepx{transform-origin:left center}
.oaboflow-svg .sweepy{transform-origin:center top}
.oaboflow-svg .rail-h{animation-name:swx0}
.oaboflow-svg .rail-v{animation-name:swy0}
.oaboflow-svg .beam-h{animation-name:swx64}
.oaboflow-svg .beam-v{animation-name:swy64}
@keyframes swx0{0%{scale:0 1}5%{scale:1 1;animation-timing-function:var(--e-out)}100%{scale:1 1}}
@keyframes swy0{0%{scale:1 0}5%{scale:1 1;animation-timing-function:var(--e-out)}100%{scale:1 1}}
@keyframes swx64{0%,64%{scale:0 1}68%{scale:1 1;animation-timing-function:var(--e-mid)}100%{scale:1 1}}
@keyframes swy64{0%,64%{scale:1 0}68%{scale:1 1;animation-timing-function:var(--e-mid)}100%{scale:1 1}}

/* beat 1 — agentic work happens */
@keyframes r3{0%,3%{opacity:0;translate:0 10px}8%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
@keyframes r45{0%,4.5%{opacity:0;translate:0 10px}9.5%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
@keyframes r65{0%,6.5%{opacity:0}10%{opacity:1;animation-timing-function:var(--e-out)}100%{opacity:1}}
@keyframes r7{0%,7%{opacity:0;translate:0 8px}12%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
.oaboflow-svg .ev1{animation-name:r3}
.oaboflow-svg .ev2{animation-name:r45}
.oaboflow-svg .ev3{animation-name:r65}
.oaboflow-svg .st1 .ttl{animation-name:r45}
.oaboflow-svg .st1 .cap{animation-name:r7}

/* the travelling token — the one object that carries the story */
.oaboflow-svg .tok{animation-name:travel}
@keyframes travel{
  0%,10%{translate:var(--p1x) var(--p1y);scale:.5;opacity:0}
  13%{translate:var(--p1x) var(--p1y);scale:1;opacity:1;animation-timing-function:var(--e-mid)}
  16%,24%{translate:var(--p2x) var(--p2y);scale:1;opacity:1;animation-timing-function:var(--e-mid)}
  27%,34%{translate:var(--p3x) var(--p3y);scale:1;opacity:1;animation-timing-function:var(--e-mid)}
  37%,46%{translate:var(--p4x) var(--p4y);scale:1;opacity:1;animation-timing-function:var(--e-mid)}
  50%{translate:var(--p5x) var(--p5y);scale:1;opacity:1;animation-timing-function:var(--e-out)}
  53%,100%{translate:var(--p5x) var(--p5y);scale:.4;opacity:0}
}

/* beat 2 — costs collected */
@keyframes r11{0%,11%{opacity:0;translate:0 10px}15%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
@keyframes r18{0%,18%{opacity:0;translate:0 8px}22%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
@keyframes snapA{0%,16%{opacity:0;translate:-10px 0}19%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}51%{opacity:1;translate:0 0}53%,100%{opacity:0;translate:0 0}}
@keyframes snapB{0%,18%{opacity:0;translate:-10px 0}21%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}51%{opacity:1;translate:0 0}53%,100%{opacity:0;translate:0 0}}
.oaboflow-svg .st2 .ev4{animation-name:r11}
.oaboflow-svg .st2 .cap{animation-name:r18}
.oaboflow-svg .tag-a{animation-name:snapA}
.oaboflow-svg .tag-b{animation-name:snapB}

/* beat 3 — work counted once */
@keyframes r22{0%,22%{opacity:0;translate:0 10px}26%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
@keyframes r25{0%,25%{opacity:0;translate:0 8px}29%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
@keyframes fold{0%,27%{opacity:0;scale:1 1;translate:0 -34px}
 29%{opacity:.85;scale:1 1;translate:0 -34px;animation-timing-function:var(--e-mid)}
 32%{opacity:0;scale:0 1;translate:0 -34px}100%{opacity:0;scale:0 1;translate:0 -34px}}
@keyframes n1{0%,25%{opacity:0}26%,28%{opacity:1}29%,100%{opacity:0}}
@keyframes n2{0%,28%{opacity:0}29%,31%{opacity:1}32%,100%{opacity:0}}
@keyframes n3{0%,31%{opacity:0}32%{opacity:1}100%{opacity:1}}
.oaboflow-svg .st3 .ev4{animation-name:r22}
.oaboflow-svg .st3 .cap{animation-name:r25}
.oaboflow-svg .dupe{animation-name:fold}
.oaboflow-svg .n1{animation-name:n1}
.oaboflow-svg .n2{animation-name:n2}
.oaboflow-svg .n3{animation-name:n3}

/* beat 4 — evidence recorded, review status steps up */
@keyframes r34{0%,34%{opacity:0;translate:0 10px}38%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
@keyframes doc{0%,38%{opacity:0;translate:6px 6px}41%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}51%{opacity:1;translate:0 0}53%,100%{opacity:0;translate:0 0}}
@keyframes b1{0%,38%{opacity:0}39%,42%{opacity:1}43%,100%{opacity:0}}
@keyframes b2{0%,42%{opacity:0}43%,46%{opacity:1}47%,100%{opacity:0}}
@keyframes b3{0%,46%{opacity:0}47%{opacity:1}100%{opacity:1}}
.oaboflow-svg .st4 .ev4{animation-name:r34}
.oaboflow-svg .st4 .cap{animation-name:r34}
.oaboflow-svg .tok-doc{animation-name:doc}
.oaboflow-svg .bg1{animation-name:b1}
.oaboflow-svg .bg2{animation-name:b2}
.oaboflow-svg .bg3{animation-name:b3}

/* beat 5 — the report assembles, lanes side by side */
@keyframes card{0%,50%{opacity:0;translate:0 12px;scale:.985}55%{opacity:1;translate:0 0;scale:1;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0;scale:1}}
@keyframes g55{0%,55%{scale:1 0}59%{scale:1 1;animation-timing-function:var(--e-out)}100%{scale:1 1}}
@keyframes g57{0%,57%{scale:1 0}61%{scale:1 1;animation-timing-function:var(--e-out)}100%{scale:1 1}}
@keyframes g59{0%,59%{scale:1 0}63%{scale:1 1;animation-timing-function:var(--e-out)}100%{scale:1 1}}
@keyframes g61{0%,61%{scale:1 0}65%{scale:1 1;animation-timing-function:var(--e-out)}100%{scale:1 1}}
@keyframes r59{0%,59%{opacity:0}64%{opacity:1;animation-timing-function:var(--e-out)}100%{opacity:1}}
@keyframes r64{0%,64%{opacity:0}67%{opacity:1;animation-timing-function:var(--e-out)}100%{opacity:1}}
.oaboflow-svg .card{animation-name:card;transform-origin:center}
.oaboflow-svg .lane{transform-box:fill-box;transform-origin:bottom center}
.oaboflow-svg .l1{animation-name:g55}
.oaboflow-svg .l2{animation-name:g57}
.oaboflow-svg .l3{animation-name:g59}
.oaboflow-svg .l4{animation-name:g61}
.oaboflow-svg .lk{animation-name:r59}
.oaboflow-svg .tag{animation-name:r64}
.oaboflow-svg .st5 .ttl{animation-name:card}
.oaboflow-svg .st5 .cap{animation-name:r59}

/* beat 6 — the readout reaches the decision-makers, and one decision lights */
@keyframes r66{0%,66%{opacity:0;translate:0 10px}70%{opacity:1;translate:0 0;animation-timing-function:var(--e-out)}100%{opacity:1;translate:0 0}}
@keyframes ch1{0%,68%{opacity:0;scale:.9}71%{opacity:1;scale:1;animation-timing-function:var(--e-out)}100%{opacity:1;scale:1}}
@keyframes ch2{0%,70%{opacity:0;scale:.9}73%{opacity:1;scale:1;animation-timing-function:var(--e-out)}100%{opacity:1;scale:1}}
@keyframes ch3{0%,72%{opacity:0;scale:.9}75%{opacity:1;scale:1;animation-timing-function:var(--e-out)}100%{opacity:1;scale:1}}
.oaboflow-svg .ev6{animation-name:r66}
.oaboflow-svg .st6 .ttl{animation-name:r66}
.oaboflow-svg .st6 .cap{animation-name:r66}
.oaboflow-svg .chip{transform-box:fill-box;transform-origin:center}
.oaboflow-svg .c1{animation-name:ch1}
.oaboflow-svg .c2{animation-name:ch2}
.oaboflow-svg .c3{animation-name:ch3}

/* ---- control ---- */
.oaboflow-bar{display:flex;justify-content:flex-end;margin-top:8px}
.oaboflow-btn{background:none;border:2px solid var(--frame);border-radius:999px;padding:6px 16px;
  font-size:13px;font-weight:600;color:var(--ink-2);cursor:pointer}
.oaboflow-btn:hover{border-color:var(--ink-2);color:var(--ink)}
.oaboflow-btn:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.oaboflow-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

@media (prefers-reduced-motion:reduce){
  .oaboflow:not(.force-motion) .oaboflow-svg,
  .oaboflow:not(.force-motion) .oaboflow-svg *{animation:none!important}
  .oaboflow:not(.force-motion) .tok,.oaboflow:not(.force-motion) .dupe,
  .oaboflow:not(.force-motion) .tag-a,.oaboflow:not(.force-motion) .tag-b{opacity:0}
}
