/* Line & Loop site: the five service scenes, drawn in code. Used by the home (service cards) and by each
   service page (the same scene, larger). Every scene is one inline <svg class="sc"> on a 240 by 150 board
   inside a host that carries data-h (its hue), data-reveal (so the kit adds .in) and .sc-host.
   Pieces: .s-l a line that draws (pathLength="1"), .s-p pops, .s-r rises, .s-g grows from the left,
   .s-gy grows from the bottom. --d is the piece's place in the order. Colours: k-* strokes, f-* fills.
   The scene assembles when its host is revealed and again on hover or keyboard focus. Still: all drawn. */
.sc{display:block; width:100%; height:auto; aspect-ratio:240/150; overflow:visible; fill:none; stroke-width:2; stroke-linecap:round; stroke-linejoin:round}
.sc .k-p{stroke:var(--paper); stroke-width:1.5} .sc .k-h{stroke:var(--h)} .sc .k-i{stroke:var(--ink)} .sc .k-m{stroke:color-mix(in srgb,var(--ink) 24%,var(--paper))}
.sc .f-h{fill:var(--h)} .sc .f-s{fill:var(--h-soft)} .sc .f-p{fill:var(--paper)} .sc .f-i{fill:var(--ink)} .sc .f-m{fill:color-mix(in srgb,var(--ink) 18%,var(--paper))}
.sc .c1{fill:var(--c1)} .sc .c2{fill:var(--c2)} .sc .c3{fill:var(--c3)} .sc .c4{fill:var(--c4)} .sc .c5{fill:var(--c5)}
.sc text{fill:var(--ink); font:600 11px/1 var(--text)}
.sc .t-d{font:var(--d-w) 34px/1 var(--display); letter-spacing:var(--d-tr)}
.sc .t-on{fill:var(--on-hue); font:600 8px/1 var(--label); letter-spacing:.04em}
.s-l{stroke-dasharray:1; stroke-dashoffset:0}
.s-p,.s-r,.s-g,.s-gy{transform-box:fill-box; transform-origin:50% 50%}
.s-g{transform-origin:0 50%}
.s-gy{transform-origin:50% 100%}
html.motion .sc>*{transition:stroke-dashoffset .9s var(--ease) calc(var(--d,0) * 110ms + .3s),opacity .45s var(--ease) calc(var(--d,0) * 110ms + .3s),transform .7s var(--ease) calc(var(--d,0) * 110ms + .3s)}
html.motion [data-reveal]:not(.in) .sc>*{opacity:0}
html.motion [data-reveal]:not(.in) .s-l{stroke-dashoffset:1}
html.motion [data-reveal]:not(.in) .s-p{transform:scale(.5)}
html.motion [data-reveal]:not(.in) .s-r{transform:translateY(10px)}
html.motion [data-reveal]:not(.in) .s-g{transform:scaleX(0)}
html.motion [data-reveal]:not(.in) .s-gy{transform:scaleY(0)}
/* the replay: the same assembly as an animation, so leaving the card never snaps anything */
html.motion .sc-host.in:focus-visible .s-l{animation:s-draw .9s var(--ease) calc(var(--d,0) * 80ms) backwards}
html.motion .sc-host.in:focus-visible .s-p{animation:s-pop .6s var(--ease) calc(var(--d,0) * 80ms) backwards}
html.motion .sc-host.in:focus-visible .s-r{animation:s-rise .6s var(--ease) calc(var(--d,0) * 80ms) backwards}
html.motion .sc-host.in:focus-visible .s-g{animation:s-gx .6s var(--ease) calc(var(--d,0) * 80ms) backwards}
html.motion .sc-host.in:focus-visible .s-gy{animation:s-gy .6s var(--ease) calc(var(--d,0) * 80ms) backwards}
@media (hover:hover){
  html.motion .sc-host.in:hover .s-l{animation:s-draw .9s var(--ease) calc(var(--d,0) * 80ms) backwards}
  html.motion .sc-host.in:hover .s-p{animation:s-pop .6s var(--ease) calc(var(--d,0) * 80ms) backwards}
  html.motion .sc-host.in:hover .s-r{animation:s-rise .6s var(--ease) calc(var(--d,0) * 80ms) backwards}
  html.motion .sc-host.in:hover .s-g{animation:s-gx .6s var(--ease) calc(var(--d,0) * 80ms) backwards}
  html.motion .sc-host.in:hover .s-gy{animation:s-gy .6s var(--ease) calc(var(--d,0) * 80ms) backwards}
}
@keyframes s-draw{from{stroke-dashoffset:1; opacity:0}}
@keyframes s-pop{from{opacity:0; transform:scale(.5)}}
@keyframes s-rise{from{opacity:0; transform:translateY(10px)}}
@keyframes s-gx{from{opacity:0; transform:scaleX(0)}}
@keyframes s-gy{from{opacity:0; transform:scaleY(0)}}
@media (prefers-reduced-motion:reduce){.sc *{animation:none!important; transition:none!important}}

/* the small drawings on the example cards of the custom software page: same pieces, a 64 by 64 board */
.sc-s{aspect-ratio:1; width:64px}
