/* Kula AI cover — an AgentForge conversation as inline SVG, animated with CSS only (like kula-board.css for the ATS).
   At rest: the question has been asked and the agents are working, the first step done, the answer a skeleton.
   Hover (or keyboard focus) on the card: the steps tick off one by one, the header turns to "Thought for 3.5 seconds",
   the skeleton gives way to the candidate, the score pops in and the reason's highlight fades in.
   Each part has an IN timing (under :hover) and a mirrored OUT timing (the rest state), so leaving the card, even
   halfway, plays it back the same way. Reduced motion is handled by the global rule in styles.css. */

.cover--forge{background:#F8F9FC}
.case__hero[data-k="ai"]{background:#F8F9FC}
@media (min-width:901px){
  .case__hero .cover--forge{-webkit-mask-image:linear-gradient(to right,#000 62%,transparent 96%);mask-image:linear-gradient(to right,#000 62%,transparent 96%)}
}
.af{position:absolute;inset:0;width:100%;height:100%;display:block;overflow:hidden}
.af g{transform-box:fill-box;transform-origin:center}
/* The generic card zoom would fight the animation; keep the page still. */
.card:is(:hover,:focus-visible) .cover--forge{transform:none}

/* ---------- OUT (rest state) ---------- */
.af-done{opacity:0;transform:scale(.4)}
.af-step0 .af-done{opacity:1;transform:none}
.af-step1 .af-done{transition:opacity .16s linear .72s,transform .2s cubic-bezier(.75,0,.8,.2) .72s}
.af-step2 .af-done{transition:opacity .16s linear .56s,transform .2s cubic-bezier(.75,0,.8,.2) .56s}
.af-step3 .af-done{transition:opacity .16s linear .40s,transform .2s cubic-bezier(.75,0,.8,.2) .40s}
.af-step4 .af-done{transition:opacity .16s linear .24s,transform .2s cubic-bezier(.75,0,.8,.2) .24s}
.af-step1 .af-dot{animation:af-pulse 1.4s ease-in-out infinite}
.af-think-a{transition:opacity .2s linear .62s}
.af-think-b{opacity:0;transition:opacity .2s linear .5s}
.af-skel{transition:opacity .24s linear .26s}
.af-card{opacity:0;transform:translateY(26px);transition:opacity .24s linear .14s,transform .34s cubic-bezier(.75,0,.8,.2) .1s}
.af-score{opacity:0;transform:scale(.6);transition:opacity .14s linear .02s,transform .18s cubic-bezier(.75,0,.8,.2) .02s}
/* The reason's highlight fades in where it sits; it never moves (a rect has no box of its own to grow from). */
.af-why-hl{opacity:0;transition:opacity .2s linear 0s}
@keyframes af-pulse{50%{stroke:#605AFB}}

/* ---------- IN (hover / focus) ---------- */
.card:is(:hover,:focus-visible) .af-step1 .af-done{opacity:1;transform:none;transition:opacity .16s linear .12s,transform .24s cubic-bezier(.2,.8,.25,1.4) .12s}
.card:is(:hover,:focus-visible) .af-step2 .af-done{opacity:1;transform:none;transition:opacity .16s linear .28s,transform .24s cubic-bezier(.2,.8,.25,1.4) .28s}
.card:is(:hover,:focus-visible) .af-step3 .af-done{opacity:1;transform:none;transition:opacity .16s linear .44s,transform .24s cubic-bezier(.2,.8,.25,1.4) .44s}
.card:is(:hover,:focus-visible) .af-step4 .af-done{opacity:1;transform:none;transition:opacity .16s linear .60s,transform .24s cubic-bezier(.2,.8,.25,1.4) .60s}
.card:is(:hover,:focus-visible) .af-step1 .af-dot{animation:none}
.card:is(:hover,:focus-visible) .af-think-a{opacity:0;transition:opacity .2s linear .72s}
.card:is(:hover,:focus-visible) .af-think-b{opacity:1;transition:opacity .2s linear .84s}
.card:is(:hover,:focus-visible) .af-skel{opacity:0;transition:opacity .24s linear .9s}
.card:is(:hover,:focus-visible) .af-card{opacity:1;transform:none;transition:opacity .24s linear .96s,transform .42s cubic-bezier(.2,.8,.25,1) .96s}
.card:is(:hover,:focus-visible) .af-score{opacity:1;transform:none;transition:opacity .14s linear 1.3s,transform .3s cubic-bezier(.2,.8,.25,1.5) 1.3s}
.card:is(:hover,:focus-visible) .af-why-hl{opacity:1;transition:opacity .45s ease 1.42s}

/* In the case hero the conversation is shown finished. */
.case__hero .af-done,.case__hero .af-think-b,.case__hero .af-card,.case__hero .af-score,.case__hero .af-why-hl{opacity:1;transform:none}
.case__hero .af-think-a,.case__hero .af-skel{opacity:0}
.case__hero .af-step1 .af-dot{animation:none}
