/* =============================================================================
   Blackrock Drill & Blast · css/sections/step-anim.css · Process A steps 01 + 02: the looping line drawings (svg.sa)
   Five designs (demo toggles anim-p1 / anim-p2): sa--survey, sa--plan, sa--walk (step 01), sa--pattern, sa--sheet
   (step 02). Same plate and line language as the step 03 blast (css/sections/blast-anim.css): a --ink-0 plate, bone
   hairlines, amber only for what acts or binds (the survey beam, the walker, the limits, the delays, the primer, the ticks).
   The svg fills its box like a photo (absolute, preserveAspectRatio slice): the 4:5 desktop frame crops the sides, the
   4:3 figure crops top and bottom, so every design keeps what matters inside x 52-428 / y 128-416 of its 480 viewBox
   (and clear of the figure's chip, top left). js/sections/step-anim.js sets --u (1 / slice scale) and --k (1 on phones,
   up to 1.2 on the large plate): strokes and labels keep one pixel size in both boxes, and the .sa-s islands (the scope
   tag, the checklist) are drawn in px and scaled as a whole by --u x --k. Without JS both stay 1 and the plate reads.
   Nothing is hidden here: the markup is the complete end frame, the JS hides and reveals. The frame's slides cross-fade
   with .process-a__anim (css/sections/blast-anim.css).
   ============================================================================= */

.sa { --u: 1; --k: 1; --px: calc(var(--u) * var(--k) * 1px); --s: calc(var(--u) * var(--k)); --plate: var(--ink-0);
  position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; color: var(--bone); background: var(--plate); }
.sa[hidden] { display: none; }                         /* the frame twins are not inside a toggle wrapper */
.sa path, .sa rect, .sa circle, .sa line { fill: none; stroke: currentColor; stroke-width: calc(var(--px) * 1.2); stroke-linecap: butt; stroke-linejoin: miter; }

/* line weights: faint guides, thin details, hatch */
.sa .sa-grid { stroke-width: var(--px); stroke-opacity: .06; }
.sa .sa-f { stroke-width: var(--px); stroke-opacity: .3; stroke-dasharray: calc(var(--px) * 2) calc(var(--px) * 4); }
.sa .sa-t { stroke-width: var(--px); stroke-opacity: .6; }
.sa .sa-h { stroke-width: var(--px); stroke-opacity: .42; }
.sa .sa-drop { stroke-width: var(--px); stroke-opacity: .26; stroke-dasharray: calc(var(--px) * 1.5) calc(var(--px) * 3.5); }
.sa .sa-dim { stroke-width: var(--px); stroke-opacity: .55; }
.sa .sa-ground, .sa .sa-crest, .sa .sa-wall { stroke-opacity: .92; stroke-width: calc(var(--px) * 1.3); stroke-linejoin: round; }
.sa .sa-tri { stroke-opacity: .85; }
.sa .sa-route, .sa .sa-road { stroke-opacity: .8; }
.sa .sa-bound { stroke-width: var(--px); stroke-opacity: .62; }
.sa .sa-area { stroke-opacity: .85; }
.sa .sa-axis { stroke-opacity: .7; }
.sa .sa-tie { stroke-width: var(--px); stroke-opacity: .5; }
.sa .sa-track { stroke-width: var(--px); stroke-opacity: .3; }
.sa .sa-cont { stroke-width: var(--px); stroke-opacity: .4; stroke-linejoin: round; }
.sa .sa-cont--top { stroke-opacity: .7; }
.sa .sa-trail { stroke-opacity: .75; }

/* fills: plate (masks what passes behind), bone dots, light bone (charge, bars, the building, the scale) */
.sa .sa-pf, .sa .sa-hole, .sa .sa-wp { fill: var(--plate); }
.sa .sa-roof { fill: var(--plate); stroke-opacity: .85; }
.sa .sa-bf { fill: currentColor; stroke: none; }
.sa .sa-bfill { fill: currentColor; fill-opacity: .55; stroke: none; }
.sa .sa-bld, .sa .sa-bar, .sa .sa-charge { fill: currentColor; fill-opacity: .16; }
.sa .sa-charge { fill-opacity: .2; stroke: none; }
.sa .sa-bar { stroke-opacity: .8; }
.sa .sa-ah { fill: currentColor; fill-opacity: .85; stroke: none; }
.sa .sa-hach { fill: currentColor; fill-opacity: .5; stroke: none; }

/* the one accent: beam, limits, ring, pulses, delays, ticks */
.sa .sa-a, .sa .sa-ray, .sa .sa-limit, .sa .sa-ring, .sa .sa-pulse, .sa .sa-tick, .sa .sa-iso { stroke: var(--accent); }
.sa .sa-af { fill: var(--accent); stroke: none; }
.sa .sa-ray { stroke-width: var(--px); }
.sa .sa-limit { stroke-width: calc(var(--px) * 1.4); }
.sa .sa-iso { stroke-width: var(--px); stroke-opacity: .55; stroke-linecap: round; }
.sa .sa-pulse { stroke-width: var(--px); }
.sa .sa-halo { stroke: var(--accent); stroke-opacity: .45; stroke-width: var(--px); }

/* labels: mono, muted; key words in stone, numbers in amber; a plate halo keeps them clear of the lines */
.sa text { font-family: var(--mono); font-weight: 500; font-size: calc(var(--px) * 11); letter-spacing: .08em; font-variant-numeric: tabular-nums;
  fill: var(--muted); stroke: var(--plate); stroke-width: calc(var(--px) * 4); stroke-linejoin: round; paint-order: stroke fill; }
.sa .sa-k { fill: var(--stone); }
.sa .sa-amber, .sa .sa-n { fill: var(--accent); }
.sa .sa-n { letter-spacing: .02em; }

/* islands drawn in px (the scope tag, the checklist): one scale for the whole group */
.sa .sa-s { transform: scale(var(--s)); }
.sa .sa-s text { font-size: 11px; stroke-width: 4px; }
.sa .sa-s path, .sa .sa-s rect { stroke-width: 1.2px; }
.sa .sa-s .sa-box { fill: var(--plate); stroke-opacity: .7; }
.sa .sa-s .sa-tick { stroke-width: 1.8px; stroke-linecap: round; stroke-linejoin: round; }
.sa .sa-tag text { fill: var(--bone); }

