/* Kula Design System cover — a Kaleidoscope page as inline SVG, animated with CSS only (like ai-cover.css).
   At rest: a blueprint. Empty swatches, grey components, nothing themed yet.
   Hover (or keyboard focus) on the card: the tokens arrive in order. The primary scale fills in, the semantic roles take
   their colours, then each component picks them up: buttons, badge, toggle, checkbox, avatars, the focused input, the
   toast, the pills in the table. That is how the system went into the product: structure first, the theme as a layer.
   Every coloured part is a .kd-c overlay over its grey base. Its style carries --i, when it arrives, and --o, when it
   leaves (both in ms; the way out mirrors the way in at about half the time), so leaving the card, even halfway, plays
   it back. Only opacity and a translate are animated. Reduced motion is handled by the global rule in styles.css.
   The markup comes from ~/Desktop/ClaudeCode/kula-ds-cover/gen.py. */

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

/* ---------- OUT (rest state) ---------- */
.kd-c{opacity:0;transition:opacity .2s linear calc(var(--o)*1ms)}
.kd-knob{transition:transform .26s cubic-bezier(.75,0,.8,.2) calc(var(--o)*1ms)}

/* ---------- IN (hover / focus) ---------- */
.card:is(:hover,:focus-visible) .kd-c{opacity:1;transition:opacity .26s linear calc(var(--i)*1ms)}
.card:is(:hover,:focus-visible) .kd-knob{transform:translateX(36px);transition:transform .34s cubic-bezier(.2,.8,.25,1.3) calc(var(--i)*1ms)}

/* In the case hero the page is shown themed. */
.case__hero .kd-c{opacity:1}
.case__hero .kd-knob{transform:translateX(36px)}
