/* Ancient Compass: compass-family daily scenes (assets/scenes-compass.js). DesignOps 2026-10-26.
   Tokens only (tokens.css): --sc-line brass, --tc tradition accent, --sc-glow / --sc-sun / --sc-shadow, --c-raised, --c-rule.
   Reuses the shared .sc-* classes in site.css (hair ring, ticks, glow, halo, ray, lid, iris, limb...). Light + dark.
   Meaning-bearing strokes (brass, tradition colours) are >= 3:1 on the stage surface in both themes.
   Final picks (2026-10-26): eye-b, ninefold-a, company-a. Archived variant rules: _designops-scenes/scene-library/archive/. */
.scx-ring{fill:none;stroke:var(--sc-line);stroke-width:1;opacity:.75}
.scx-ring-i{opacity:.4}
.scx-ring-d{stroke-dasharray:100;stroke-dashoffset:100;opacity:0}
.scx-ticks line{stroke:var(--sc-line);stroke-width:.9;opacity:.6}
.scx-ticks-f line{opacity:.32}
.scx-petal{fill:color-mix(in srgb,var(--sc-sun) 46%,var(--c-raised));stroke:var(--sc-line);stroke-width:1.1;stroke-linejoin:round}
.scx-taper{fill:color-mix(in srgb,var(--sc-sun) 62%,var(--c-raised));stroke:var(--sc-line);stroke-width:1;stroke-linejoin:round}
.scx-hub{fill:var(--c-raised);stroke:var(--sc-line);stroke-width:1.1}
.scx-hub-f{fill:var(--tc);stroke:none}
.scx-hubring{fill:none;stroke:var(--sc-line);stroke-width:1}
.scx-needle-n{fill:var(--tc);stroke:var(--c-raised);stroke-width:2;paint-order:stroke;stroke-linejoin:round}
.scx-needle-s{fill:var(--c-raised);stroke:var(--sc-line);stroke-width:1;stroke-linejoin:round}

/* eye -> sun (eye-b) */
.scx-sun{fill:color-mix(in srgb,var(--sc-sun) calc(62% + var(--sc-lit,0) * 38%),var(--c-raised));stroke:var(--sc-line);stroke-width:1.6;opacity:0}
.scx-sunglow{fill:none;stroke:var(--sc-glow);stroke-width:12;opacity:0;filter:blur(6px)}
.scx-sunring{fill:none;stroke:var(--sc-line);stroke-width:1;stroke-dasharray:1 3.2;opacity:0}
.scx-corelight{fill:color-mix(in srgb,var(--sc-glow) 70%,#fff);filter:blur(3px);opacity:0}
:root[data-theme="dark"] .scx-sunring{fill:none;stroke:var(--sc-line);stroke-width:1;stroke-dasharray:1 3.2;opacity:0}
.scx-sray{transform-box:view-box;transform-origin:160px 160px}
.scx-fray{transform-box:view-box;transform-origin:160px 160px}
/* the settled sun keeps living, gently: a slow pulse travels round the twelve rays (one 9 s wave) and the ray ring drifts
   at the home compass's idle pace (240 s a turn). CSS only, on its own layer; paused on hover and in reduced motion. */
.sc-eye-b.is-done:not(.is-rm) .scx-sray{animation:scx-ray 9s ease-in-out infinite;animation-delay:calc(var(--i) * -1.125s)}
.sc-eye-b.is-done:not(.is-rm) .scx-fray{animation:scx-drift 240s linear infinite}
@keyframes scx-ray{0%,100%{transform:scale(1);opacity:.86}50%{transform:scale(1.045);opacity:1}}
@keyframes scx-drift{to{transform:rotate(360deg)}}
.sc:hover .scx-sray,.sc:hover .scx-fray{animation-play-state:paused}

/* dial */
.scx-mark{fill:color-mix(in srgb,var(--sc-line) calc(var(--on,0) * 100%),var(--c-raised));stroke:var(--sc-line);stroke-width:1.1}
.scx-sweep{fill:none;stroke:var(--tc);stroke-width:1.2;stroke-linecap:round;stroke-dasharray:1.5 4}
.scx-star{fill:color-mix(in srgb,var(--tc) calc(var(--on,0) * 100%),var(--c-raised));stroke:var(--sc-line);stroke-width:1.1;stroke-linejoin:round}

/* balance (v2, CON-44): hanging justice scales */
.scb-cord{fill:none;stroke:var(--sc-line);stroke-width:1.1;opacity:.8}
.scb-hook{fill:none;stroke:var(--sc-line);stroke-width:1.2}
.scb-bead{fill:var(--sc-glow);filter:drop-shadow(0 0 4px var(--sc-glow));opacity:0}
.scb-plumb{fill:none;stroke:var(--tc);stroke-width:1;stroke-dasharray:2 4;opacity:0}
.scb-gauge{fill:none;stroke:var(--sc-line);stroke-width:1.2;stroke-linecap:round}
.scb-mark{fill:color-mix(in srgb,var(--tc) calc(var(--on,0) * 100%),var(--c-raised));stroke:var(--tc);stroke-width:1.3}
.scb-beam{fill:none;stroke:var(--sc-line);stroke-width:2.4;stroke-linecap:round}
.scb-tongue{fill:none;stroke:var(--tc);stroke-width:2;stroke-linecap:round}
.scb-end{fill:var(--sc-line)}
.scb-pivot{fill:var(--c-raised);stroke:var(--sc-line);stroke-width:1.4}
.scb-string{fill:none;stroke:var(--sc-line);stroke-width:1;opacity:.85}
.scb-pan{fill:color-mix(in srgb,var(--sc-sun) var(--scb-pan,40%),var(--c-raised));stroke:var(--sc-line);stroke-width:1.4}
.scb-weight{fill:var(--c-muted);stroke:var(--c-raised);stroke-width:1;paint-order:stroke}

/* company-a (CON-52): smooth threads from a softened centre to each light */
.scx-dot{fill:var(--sc-line);stroke:var(--c-raised);stroke-width:1.5;paint-order:stroke}
.scc-core{fill:var(--tc)}
.scc-cglow{fill:var(--sc-glow);filter:blur(7px);opacity:.35}
.scc-spoke{fill:none;stroke:color-mix(in srgb,var(--sc-line) calc(var(--tense,0) * 100%),var(--tc));stroke-width:calc(1.5px - var(--tense,0) * .4px);stroke-linecap:round;opacity:0}
.scc-burst line{stroke:var(--sc-line);stroke-width:1.5;stroke-linecap:round;opacity:.8}

/* seam (v2, CON-57): crack -> stitched -> healed, brighter whole. The disc warms with --lit (0..1, set by the scene).
   Light: brass seam on the lit disc 3.9:1 (3.5 inside the inner glow), crack edge (muted ink) 6.1:1. Dark: smaller lift, a softer
   inner glow and a pale-gold seam (5.7:1 on the lit disc), crack 5.2:1. Balance pans in dark use a lower tint (weights 4.2:1). */
.sc{--scs-base:30%;--scs-lift:30%}
:root[data-theme="dark"] .sc{--scb-pan:25%;--scs-base:16%;--scs-lift:10%;--scs-inner:.4;--scs-seam:color-mix(in srgb,var(--sc-glow) 60%,#fff)}
@media (prefers-color-scheme:dark){:root:not([data-theme]) .sc{--scb-pan:25%;--scs-base:16%;--scs-lift:10%;--scs-inner:.4;--scs-seam:color-mix(in srgb,var(--sc-glow) 60%,#fff)}}
.scs-face{fill:color-mix(in srgb,var(--sc-sun) calc(var(--scs-base) + var(--lit,0) * var(--scs-lift)),var(--c-raised))}
.scs-inner{opacity:calc((.15 + var(--lit,0) * .85) * var(--scs-inner,1))}
.scs-rim{fill:none;stroke:var(--sc-line);stroke-width:1.6}
.scs-edge{fill:none;stroke:var(--c-muted);stroke-width:1;stroke-linejoin:round;opacity:0}
.scs-hair{fill:none;stroke:var(--c-muted);stroke-width:1;stroke-linejoin:round;stroke-dasharray:100;stroke-dashoffset:100;opacity:0}
.scs-fleck{fill:var(--c-muted);opacity:0}
.scs-stitch{stroke:var(--sc-line);stroke-width:1.7;stroke-linecap:round;opacity:0}
.scs-pt{fill:var(--sc-glow);stroke:var(--sc-line);stroke-width:.9;filter:drop-shadow(0 0 3px var(--sc-glow));opacity:0}
.scs-seam{fill:none;stroke:var(--scs-seam,var(--sc-line));stroke-width:2.3;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100}
.scs-seamglow{fill:none;stroke:var(--sc-glow);stroke-width:8;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;filter:blur(4px);opacity:0}
.scs-vein{fill:none;stroke:color-mix(in srgb,var(--sc-glow) 55%,var(--sc-line));stroke-width:.9;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;opacity:.75;filter:drop-shadow(0 0 2px var(--sc-glow))}
.scs-head{fill:var(--sc-glow);filter:drop-shadow(0 0 5px var(--sc-glow));opacity:0}

/* ninefold-a: soft nine-part flower */
.scx-node{fill:color-mix(in srgb,var(--tc) calc(var(--on,0) * 100%),var(--c-raised));stroke:var(--sc-line);stroke-width:1.1}

@media (prefers-reduced-motion:reduce){.scx-sray,.scx-fray{animation:none!important}}
