/* state-seq (js/state-seq.js): config-driven animated media. The box is the site's dark .media.mframe (3840/2052, 1px --line, square,
   #000 ground in both themes); the stage is a fixed design-px frame scaled to the box width (js sets size + transform), so every layer
   keeps Figma's px geometry. Controls on the black ground use the dark-theme glass in both themes (as .phone-demo). No hover zoom, no
   inner scroll, no focus ring (css/theme.css removes rings site-wide) */
body.cs .media.mframe.sseq{display:block;background:var(--frame);user-select:none;-webkit-user-select:none} /* theme ground = the live prototypes' (.media.proto): --frame + 1px --line; controls = the theme glass */
.sseq .ss-stage{position:absolute;left:0;top:0;transform-origin:0 0;pointer-events:none;color:var(--ink);contain:layout style}
.sseq .ss-stage [data-l]:not(span):not(svg),.sseq .ss-stage .ss-abs{position:absolute;left:0;top:0;transform-origin:0 0}
body.cs .media.mframe.sseq img{transition:none;transform:none;border-radius:0;width:100%;height:100%;object-fit:cover;object-position:50% 0;display:block}
body.cs .media.sseq:hover img{transform:none}
.sseq.ss-step{cursor:pointer;touch-action:pan-y}
.ss-ctrl .mbtn svg{stroke-width:1.5}
.ss-ctrl .ss-next svg{transform:scaleX(-1)}
/* phones: rounded screens; .st = the 1px inside stroke (white 20%), .sh = the 40/0/24 drop shadow (black 24%) */
.sseq .ss-ph{overflow:hidden;background:#000;border-radius:32px}
.sseq .ss-ph:not(.st){background:transparent}   /* light feed phones: a black ground reads as a hairline on the grey frame */
body.cs .media.mframe.sseq .ss-ph img{width:calc(100% + 2px);height:calc(100% + 2px);max-width:none;margin:-1px}   /* cover the subpixel gap at the rounded edge */
.sseq .ss-ph.st::after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.2);border-radius:inherit;pointer-events:none}
.sseq .ss-ph.sh{box-shadow:40px 0 24px rgba(0,0,0,.24)}
.sseq .r30{border-radius:30px}.sseq .r28{border-radius:28px}.sseq .r26{border-radius:26px}
/* annotation type: Bitcount Grid Single 16/24, +.32 tracking, centred, white; keywords yellow (old flow) / green (VAC) */
.sseq .ss-note,.sseq .ss-mk,.sseq .ss-lab{font:400 16px/24px "Bitcount Grid Single",var(--mono,monospace);letter-spacing:.32px;font-variation-settings:"CRSV" 0,"ELSH" 0,"ELXP" 0;text-align:center;white-space:nowrap}
body.cs .media.mframe.sseq .ss-note img.ss-arr{position:absolute;left:-1px;top:-7.36px;height:15px;width:auto;max-width:none;object-fit:fill;object-position:-9999px 0;background:currentColor;-webkit-mask:var(--arr) 0 0/100% 100% no-repeat;mask:var(--arr) 0 0/100% 100% no-repeat}
/* arrows: the svg is the mask, the note ink (currentColor = --ink) the fill; the img keeps its intrinsic size, its own pixels shifted out */
.sseq img.ss-arr[src*="arrow-left-200"]{--arr:url(../assets/vac/vac-sol-arrow-left-200.svg)}.sseq img.ss-arr[src*="arrow-right-200"]{--arr:url(../assets/vac/vac-sol-arrow-right-200.svg)}
.sseq img.ss-arr[src*="arrow-left-400"]{--arr:url(../assets/vac/vac-sol-arrow-left-400.svg)}.sseq img.ss-arr[src*="arrow-right-400"]{--arr:url(../assets/vac/vac-sol-arrow-right-400.svg)}
.sseq .ss-stage .ss-note .ss-t{position:absolute;left:0;top:20px;width:100%}
.sseq .y{color:#a87b00}.sseq .g{color:#1f8a3d}html[data-theme=dark] .sseq .y{color:#ffcd2a}html[data-theme=dark] .sseq .g{color:#34c759} /* keywords: Figma hues in dark, deepened on the light ground for contrast */
.sseq .ss-mk{height:32px;border-radius:6px;color:#000;overflow:hidden}
.sseq .ss-mk>span{position:absolute;left:0;right:0;top:6px}
/* 07 conviction cards (vac_24..27): --frame cards on a --sheet container, radius 48, clipped; titles Instrument Sans 64/64 -.04em, body 24/32 two columns */
.sseq .cv-box{background:var(--frame);border:calc(1px*var(--inv,1)) solid var(--frame-line,var(--line));border-width:round(down,1px*var(--inv,1),1px);box-sizing:border-box;border-radius:48px;overflow:hidden} /* cards = the same 1px outline as the case media containers (--frame-line: dimmer in dark, --line in light; 1 CSS px at any stage scale via --inv); the container's former ground (--frame), both themes. The width is floored to whole stage px (what Chrome does anyway; WebKit on 2x screens otherwise keeps half px) so the body column math below can subtract exactly the same border */
body.cs .media.mframe.sseq.ss-cards{background:var(--sheet);border:0!important;max-width:100%;aspect-ratio:1920/1066} /* 1920 x 1066 stage (the media 3840/2052 = 1026 tall + 40): cards = stage height - hm 160, so 80 above, 80 below and every card 40 taller at the bottom, content top unchanged, + / x ride the bottom edge */ /* container = the page content sheet (--sheet), both themes: one surface, no visible box; no (invisible) 1px border either, so the stage, and the card row on it, spans the container's full width: the same edges as the other case media */
.sseq .cv-h{font:400 72px/72px var(--sans);letter-spacing:-2.88px;white-space:nowrap}
.sseq .ss-stage .cv-box .cv-b{position:absolute;left:0;top:264px;display:flex;gap:80px;width:calc(1838px - (var(--ins,32px) + 44px)*var(--inv,1));width:calc(1840px - (var(--ins,32px) + 44px)*var(--inv,1) - 2*round(down,1px*var(--inv,1),1px));font:400 30px/40px var(--sans);white-space:normal} /* cards span the container (stage) edge to edge, 80px padding: body 24/32 -> 30/40. The open card is the full 1920 stage; the body runs from its 80 left padding to 12 CSS px short of the x button. The button is 32 CSS px at --ins inside the card's right border, so the body's right edge sits ins + 32 + 12 CSS px = (ins + 44) x --inv design px inside that border: width = 1920 - 80 - (ins + 44) x inv - 2 x the card border (the same round(down, 1px x inv, 1px) as .cv-box; the first width is the fallback without round()). border | 80 | column | 80 | column | 12 | x | ins | border */
.sseq .cv-b>div{flex:1 1 0;min-width:0} /* the text boxes share that width equally: equal columns, one gap = the card padding */
.sseq .cv-b br.fl{display:none} /* Figma's hard breaks were set for 640px columns */
.sseq .cv-b p+p{margin-top:40px}  /* one blank line */
.sseq .cv-b em{font-style:italic}
@media (min-width:1025px){.sseq .ss-stage .cv-box .cv-b{font-size:32px;line-height:42px}.sseq .cv-b p+p{margin-top:42px}} /* desktop only (per Hang): open-card body 30/40 -> 32/42 design px (+2; 42 = the nearest even line to the 4:3 rhythm), the blank line between paragraphs follows; 641-1024 and phones keep 30/40 and their own rule */
@media (max-width:640px){
 body.cs .media.mframe.sseq.ss-tall{aspect-ratio:9/16}
 body.cs .media.mframe.sseq.ss-cards{aspect-ratio:900/1720} /* conviction phone stage 900 x 1720 (was 1600): cards 488 -> 528, peek tabs 200 -> 240 (title re-centred), so each box is 40 taller at the bottom; the open card takes the rest, 1296 -> 1376, so the open states keep 40 margins top and bottom (40 | card | 24 | tabs | 40; layout in the vac.html cfg) */
 body.cs .media.mframe.sseq.ss-sol{aspect-ratio:3/2} /* phones: a taller frame + the stage nudged up (layouts oy) so the marker pills clear the controls */
 .sseq.ss-tall .ss-stage .cv-box .cv-b{top:200px;display:block;width:788px;font-size:36px;line-height:41.33px}
 .sseq.ss-tall .cv-b>div{width:auto}.sseq.ss-tall .cv-b>div+div{margin-top:41.33px}
 .sseq.ss-tall .cv-b p+p{margin-top:41.33px}
 .sseq.ss-tall .cv-b br.fl{display:none}
 .sseq.ss-tall .cv-h{font-size:56px;line-height:var(--lh,56px);letter-spacing:-2.24px} /* --lh: tabs open up to 72 (1.29) */
}
@media (prefers-reduced-motion:reduce){.sseq .ss-stage *{transition:none}}
@media (prefers-reduced-motion:reduce){body.cs .media.mframe.sseq .car-pp{display:none}} /* nothing to pause: the key frame is static */
/* before/after segmented control (cfg.toggle), iOS style, in the .car-ctrl spot (32px inset, 16px on phones): a pill track of two equal
   segments + a thumb (2px inset) that slides behind the active label (--k, set by state-seq.js, autoplay too) on the SLOW spring
   (k80 c20 m1) as a linear() curve over 480ms. Track + thumb fill are clipped to 60%-smoothed squircles (js segClip).
   Light: the iOS translucent track (gray 12%) on the theme ground, white thumb, #171717 type; dark: gray
   24% + blur, #636366 thumb, white type. Labels: the mono label (--t-label: Bitcount Grid Single, .04em, caps) at 12px (10px on phones),
   one weight, so the inactive one is 56% ink. 28px tall x 64px segments (24 x 56 on phones). No focus ring, hover zoom or glow */
body.cs .media.mframe.sseq .ss-seg{--sw:64px;--sh:28px;position:relative;display:grid;grid-template-columns:repeat(var(--n,2),var(--sw));height:var(--sh);padding:2px;box-sizing:border-box;border-radius:calc(var(--sh)/2);background:rgba(118,118,128,.12);color:#171717;--th:#fff}
html[data-theme=dark] body.cs .media.mframe.sseq .ss-seg{background:rgba(118,118,128,.24);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);color:#fff;--th:#636366}
body.cs .media.mframe.sseq .ss-thumb{position:absolute;left:2px;top:2px;width:var(--sw);height:calc(var(--sh) - 4px);transform:translateX(calc(var(--k,0)*100%));transition:transform 480ms linear(0,.165,.413,.612,.751,.842,.9,.937,.961,.976,.985,.991,.995,.997,.998,.999,1);pointer-events:none}
body.cs .media.mframe.sseq .ss-thumb>i{display:block;width:100%;height:100%;background:var(--th);border-radius:calc(var(--sh)/2)}
body.cs .media.mframe.sseq .mbtn.ss-sb{position:relative;width:auto;height:100%;border:0;border-radius:0;background:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;box-shadow:none!important;outline:none;color:color-mix(in srgb,currentColor 56%,transparent);font:var(--t-label);font-size:12px;letter-spacing:var(--t-label-ls);font-variation-settings:"CRSV" 0,"ELSH" 0,"ELXP" 0;text-transform:uppercase;white-space:nowrap;top:1px;padding:0 0 0 var(--t-label-ls);transition:color 480ms ease}
body.cs .media.mframe.sseq .mbtn.ss-sb[aria-pressed=true]{color:inherit}
body.cs .media.mframe.sseq .mbtn.ss-sb:hover{transform:none;border:0}
@media (max-width:640px){body.cs .media.mframe.sseq .ss-seg{--sw:56px;--sh:24px}body.cs .media.mframe.sseq .mbtn.ss-sb{font-size:10px}}
@media (prefers-reduced-motion:reduce){body.cs .media.mframe.sseq .ss-thumb{transition:none}}
body.cs .media.mframe.sseq.ss-tapf{cursor:pointer}
/* card pieces (conviction): each card holds a + = the media play/pause button itself (.mbtn: 32px, 1px ring, glass, .2s ring), kept 32px
   (16px on phones) in CSS px from the card's right and bottom whatever the stage scale (--inv = 1/scale, set by state-seq.js); --pin shifts
   it left so a card pushed past the right edge still shows its +. The open card's + turns 45deg into an x with the card's spring (layer a) */
body.cs .media.mframe.sseq{--ins:32px}
body.cs .media.mframe.sseq.ss-cards{cursor:default}
body.cs .media.mframe.sseq .ss-stage [data-go]{pointer-events:auto;cursor:pointer}
body.cs .media.mframe.sseq .ss-stage .mbtn.cv-plus{position:absolute;left:auto;top:auto;right:calc(var(--ins)*var(--inv,1) + var(--pin,0px));bottom:calc(var(--ins)*var(--inv,1) + var(--pinb,0px));transform:scale(var(--inv,1));transform-origin:100% 100%;z-index:2}
body.cs .media.mframe.sseq .ss-stage .cv-plus svg{transform-origin:50% 50%}
@media (max-width:640px){body.cs .media.mframe.sseq{--ins:16px}}
/* resting-card teaser (layer bNs): the opening sentence of the card's copy under its title, body type; fades out as the card opens */
body.cs .media.mframe.sseq .ss-stage .cv-s{margin:0;font:400 30px/40px var(--sans);white-space:normal}
@media (max-width:640px){body.cs .media.mframe.sseq.ss-tall .ss-stage .cv-s{font-size:30px;line-height:40px}}
/* a live prototype right under a container (no intro text between): the containers' own 48px figure rhythm (.fig), not .proto-fig's 24 */
figure:has(>.media.sseq)+.wrap>.proto-fig:first-child{margin-top:48px}
