/* PoC 7.8 · pages/intelligence.css · from poc76b.html lines 253–302 */
/* intelligence · the network */
#net{left:46vw;right:clamp(16px,5vw,80px);top:11vh;bottom:9vh}
#net .lg{position:absolute;left:0;right:0;top:0;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 16px;font-size:11px;letter-spacing:.06em;color:var(--dim);pointer-events:none}
#net .lg i{display:inline-block;vertical-align:middle;margin-right:6px;border-radius:50%}
#net .lg .p{width:12px;height:12px;background:var(--teal);box-shadow:0 0 8px var(--teal)}
#net .lg .w{width:7px;height:7px;background:#fff}
#net .lg .f{width:16px;height:8px;border-radius:3px;border:1.5px solid var(--mag)}
#net .map{position:absolute;left:0;right:0;top:26px;height:64%}
#net svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
#net line{stroke:rgba(95,243,230,.18);stroke-width:1.5;vector-effect:non-scaling-stroke;transition:stroke .3s}
#net line.on{stroke:var(--teal);stroke-dasharray:6 8;animation:flowd 2.4s linear infinite}
#net line.wait{stroke:var(--amber);stroke-dasharray:3 7}
#net line.esc{stroke:var(--amber);stroke-dasharray:6 8;animation:flowd 2.4s linear infinite}
@keyframes flowd{to{stroke-dashoffset:-14}}
#nl line[data-l=wf]:not([class]),#nl line[data-l=wf][class=""]{stroke-dasharray:2 12;animation:flowd3 6s linear infinite}
@keyframes flowd3{to{stroke-dashoffset:-28}}
#line.idle .node:first-child i{animation:nbreath 3.2s ease-in-out infinite}
@keyframes nbreath{50%{border-color:rgba(95,243,230,.7);box-shadow:0 0 0 5px rgba(95,243,230,.08),0 0 18px rgba(95,243,230,.35)}}
.ag{position:absolute;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;border:0;cursor:pointer;padding:0;background:radial-gradient(circle at 35% 30%,#fff,rgba(150,255,250,.85) 16%,rgba(95,243,230,.3) 45%,rgba(95,243,230,.04) 70%);box-shadow:0 0 26px rgba(95,243,230,.35);animation:bob 5s ease-in-out infinite;transition:box-shadow .4s,filter .4s;filter:saturate(.6) brightness(.8)}
.ag:nth-of-type(2){animation-delay:-1.6s}.ag:nth-of-type(3){animation-delay:-3.2s}
.ag.on{filter:none;box-shadow:0 0 0 6px rgba(95,243,230,.18),0 0 50px rgba(95,243,230,.8)}
.ag.esc{filter:none;background:radial-gradient(circle at 35% 30%,#fff,rgba(255,220,170,.9) 16%,rgba(255,194,122,.35) 45%,rgba(255,194,122,.05) 70%);box-shadow:0 0 0 8px rgba(255,194,122,.2),0 0 50px rgba(255,194,122,.85)}
.ag span{position:absolute;top:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:13px;font-weight:600;text-shadow:0 2px 10px #000;pointer-events:none;text-align:center}
.ag small{display:block;font-weight:400;color:var(--teal);font-size:12px;min-height:1.2em}
.ag.esc small{color:var(--amber)}
.ag:focus-visible,.wf:focus-visible{outline:2px solid #fff;outline-offset:6px}
@keyframes bob{50%{translate:0 -6px}}
.wk{position:absolute;margin:-6px 0 0 -6px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 0 12px rgba(255,255,255,.8);transition:opacity 1.1s,transform 1.1s;pointer-events:none}
.wk.new,.wk:has(em:empty){opacity:0;transform:scale(.2)}
.wk.done{background:var(--teal);box-shadow:0 0 12px var(--teal)}
.wk.wait{background:var(--amber);box-shadow:0 0 14px var(--amber);animation:pulse2 1.2s infinite}
.wk.gone{opacity:0;transform:scale(.2)}
.wk em{position:absolute;top:16px;left:50%;transform:translateX(-50%);font-style:normal;font-size:11px;white-space:nowrap;color:var(--ink);text-shadow:0 1px 8px #000}
.wf{position:absolute;left:8%;right:8%;bottom:0;height:38px;border-radius:12px;border:1.5px solid rgba(213,140,255,.5);background:rgba(20,8,40,.55);display:grid;grid-template-columns:repeat(4,1fr);align-items:center;cursor:pointer;padding:0;color:inherit}
.wf .st{font-size:11px;letter-spacing:.06em;text-align:center;color:var(--dim);transition:color .3s}
.wf .st.on{color:#fff;text-shadow:0 0 10px var(--mag)}
.wf .tk{position:absolute;top:50%;left:calc(12.5% + var(--wt,0)*25%);width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:var(--mag);box-shadow:0 0 12px var(--mag);transition:left .5s,opacity .3s;opacity:0}
.wf.run .tk{opacity:1}
.wf .wfl{position:absolute;left:10px;bottom:calc(100% + 4px);font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--mag);pointer-events:none}
.feed{padding-top:26px!important;position:absolute;left:0;right:0;bottom:0;height:calc(22% - 6px);min-height:132px;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;padding:10px 14px;border-radius:14px;background:rgba(10,6,30,.72);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(8px);overflow:hidden}
.feed .fh{position:absolute;top:8px;left:14px;font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--amber)}
#fl{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;gap:4px;overflow:hidden;-webkit-mask:linear-gradient(180deg,transparent,#000 12px);mask:linear-gradient(180deg,transparent,#000 12px)}
.feed p{font-size:13px;line-height:1.35;color:var(--dim);flex:none}
.feed p.nw{animation:fadein .45s both}
@keyframes fadein{from{opacity:0}}
.feed p:last-of-type{color:var(--ink)}
.feed p b{color:var(--teal);font-weight:600}
.feed p.e b{color:var(--amber)}
.feed .esc{display:flex;gap:8px;margin-top:4px;pointer-events:auto}
.feed .esc[hidden]{display:none}
/* V9.1 (Olof 2026-10-22): on wide screens the painted moons are the agents. The buttons sit on the moons with no sphere of
   their own; the moon's own glow (.sun, in the painting) breathes at rest and flares when its agent works, and hand-offs
   travel between the moons as pulses of light along the curves of the painted threads. */
#sc5 .sun{width:9.5%;aspect-ratio:1;background:radial-gradient(closest-side,rgba(255,244,214,.95),rgba(255,206,130,.55) 38%,rgba(255,170,90,.16) 66%,transparent);opacity:.18;scale:.9;transition:opacity 1.1s ease,scale 1.1s cubic-bezier(.2,.8,.2,1),filter 1.1s;animation:sunb 5.2s ease-in-out infinite}
#sc5 .sun[data-s=knowledge]{animation-delay:-1.7s}#sc5 .sun[data-s=quality]{animation-delay:-3.4s}
@keyframes sunb{50%{opacity:.34}}
#sc5 .sun.on{opacity:.9;scale:1.18;animation:sunw 2.4s ease-in-out infinite}
@keyframes sunw{50%{opacity:.7;scale:1.1}}
#sc5 .sun.esc{opacity:.95;scale:1.22;filter:hue-rotate(-18deg) saturate(1.6);animation:sunw 1.3s ease-in-out infinite}
#sc5 .sun.ping{animation:sunp .9s cubic-bezier(.2,.8,.2,1)}
@keyframes sunp{from{opacity:1;scale:1.38}}
body.agpin .ag{background:none;box-shadow:none;filter:none;animation:none;width:var(--sw,96px);height:var(--sw,96px);margin:calc(var(--sw,96px)/-2) 0 0 calc(var(--sw,96px)/-2)}
body.agpin .ag::before{content:"";position:absolute;inset:-10%;border-radius:50%;border:1px solid rgba(255,232,190,.0);transition:border-color .5s,inset .5s}
body.agpin .ag:hover::before,body.agpin .ag:focus-visible::before{border-color:rgba(255,232,190,.55);inset:-16%}
body.agpin .ag.on::before{border-color:rgba(255,232,190,.35);animation:agring 2.4s ease-out infinite}
body.agpin .ag.esc::before{border-color:rgba(255,184,110,.7)}
@keyframes agring{from{inset:-6%;opacity:1}to{inset:-38%;opacity:0}}
body.agpin .ag span{top:calc(100% + 10px);font-size:13px;letter-spacing:.08em;color:#fff4e2;text-shadow:0 0 12px rgba(255,190,110,.75),0 1px 3px rgba(0,0,0,.9)}
body.agpin .ag small{color:#ffd9a0;font-size:12px;font-style:italic;letter-spacing:.02em;transition:opacity .4s}
body.agpin .ag:focus-visible{outline:none}
body.agpin #nl line{stroke:transparent}
#ncv{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:4}
body:not(.agpin) #ncv{display:none}
@media (prefers-reduced-motion:reduce){#sc5 .sun{animation:none!important}}
/* temporary work agents wake on the painted orbs of the lower string: a small spark that grows in, works, and sinks back */
body.agpin .wk{width:16px;height:16px;margin:-8px 0 0 -8px;background:radial-gradient(closest-side,#fff,rgba(160,255,248,.9) 40%,rgba(95,243,230,0));box-shadow:0 0 18px 4px rgba(95,243,230,.55);transition:opacity .6s,transform .4s cubic-bezier(.3,1.6,.5,1),translate .6s}
body.agpin .wk.new{transform:scale(0)}
body.agpin .wk.run{animation:wkf 1.1s ease-in-out infinite}
@keyframes wkf{50%{box-shadow:0 0 26px 8px rgba(95,243,230,.75)}}
body.agpin .wk.done{background:radial-gradient(closest-side,#fff,rgba(255,250,235,.9) 40%,rgba(255,240,200,0));box-shadow:0 0 14px 3px rgba(255,244,214,.5)}
body.agpin .wk.gone{opacity:.0;transform:scale(.6);translate:0 4px}
body.agpin .wk em{top:18px;font-size:11px;padding:1px 7px;border-radius:999px;background:rgba(14,8,34,.55)}
body.agpin #wl line,body.agpin #wl line[class]{stroke:transparent}
/* the story is told by the moons: the legend goes, the log becomes a one-line caption, the workflow bar shows only while it runs */
body.agpin #net .lg{display:none}
body.agpin #net .feed{background:none;border:0;backdrop-filter:none;min-height:0;height:auto;padding:0 8px!important;bottom:-2px;align-items:center;text-align:center}
body.agpin #net .feed .fh{display:none}
body.agpin #fl{-webkit-mask:none;mask:none}
body.agpin .feed p{display:none;font-size:15px;color:#fff4e2;text-shadow:0 0 14px rgba(20,8,40,.95),0 1px 3px #000}
body.agpin .feed p:last-of-type{display:block}
body.agpin .feed p b{color:#ffd9a0}
body.agpin .wf{transition:opacity .6s;bottom:44px}
body.agpin .wf:not(.run){opacity:0;pointer-events:none}
#sc5 .sun.on{scale:1.28}
/* V9.1 round 3 (judge): no vector rings or boxes on the painting; the lead moon is the largest; the workflow bar goes on wide
   screens (the caption names the step); work agents are bare sparks with light text; one centred caption under the island */
body.agpin .ag.on::before,body.agpin .ag.esc::before{border-color:transparent;animation:none}
#sc5 .sun[data-s=lead]{width:12.5%}
body.agpin .wf{display:none}
body.agpin .wk em{background:none;padding:0;top:20px;font-size:12px;letter-spacing:.06em;color:#fff4e2;text-shadow:0 0 10px rgba(60,220,210,.7),0 1px 3px #000}
body.agpin .ag span{font-size:15px}
body.agpin .ag small{font-style:normal;font-size:13px;color:#fff1dc;text-shadow:0 0 10px rgba(20,8,40,.95),0 1px 3px #000}
body.agpin #net .feed{visibility:hidden}
#sc5 .agcap{display:none}
body.agpin #sc5 .agcap{display:block;position:absolute;left:50%;bottom:7%;width:min(72vw,920px);transform:translateX(-50%);margin:0;text-align:center;font-size:19px;letter-spacing:.01em;padding:8px 26px;color:#fff4e2;text-shadow:0 0 14px rgba(20,8,40,.95),0 1px 3px #000;background:radial-gradient(closest-side,rgba(14,6,34,.6),transparent);pointer-events:none;z-index:5}
body.agpin #sc5 .agcap b{color:#ffd9a0}
#sc5 .agcap.in{animation:capin .7s ease-out}
@keyframes capin{from{opacity:0;translate:0 6px}}
/* round 4: soft flare on arrival, calm small-caps labels, a serif caption */
@keyframes sunp{from{opacity:1;scale:1.6}}
body.agpin .ag span{font-style:normal;font-variant:small-caps;font-weight:500;letter-spacing:.1em;font-size:16px;text-shadow:0 0 14px rgba(255,190,110,.6),0 0 4px rgba(20,8,40,.9)}
body.agpin .ag small{text-shadow:0 0 12px rgba(20,8,40,.95)}
body.agpin #sc5 .agcap{font-family:ui-serif,Georgia,serif;font-size:21px;letter-spacing:.02em;bottom:5%}
body.agpin .wk em{opacity:0;transition:opacity .6s}
body.agpin .wk.new em,body.agpin .wk.run em{opacity:1}
/* round 5: the caption tells the story, so the moons carry only their names (serif, like the caption) and the work sparks no labels */
body.agpin .ag small{display:none}
body.agpin .ag span{font-family:ui-serif,Georgia,serif;font-variant:normal;font-weight:500;letter-spacing:.03em;font-size:18px;color:#fff1dc;opacity:.88}
body.agpin .wk em,body.agpin .wk.new em,body.agpin .wk.run em{display:none}
#sc5 .agcap.in{animation-duration:.4s}
body.agpin #sc5 .agcap{color:#fff4e2;text-shadow:0 0 18px rgba(14,6,34,1),0 0 6px rgba(14,6,34,.9),0 1px 2px #000}
/* round 6: depth-still.js moves each glow with a transform, and the scale property multiplies that offset, so a flaring moon's
   centre (and the name pinned under it) jumped sideways. The moon itself never scales; its light does, on a pseudo element. */
#sc5 .sun{scale:none!important;background:none}
#sc5 .sun::before{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(closest-side,rgba(255,244,214,.95),rgba(255,206,130,.55) 38%,rgba(255,170,90,.16) 66%,transparent);transition:scale 1.1s cubic-bezier(.2,.8,.2,1)}
#sc5 .sun[data-s=lead]::before{inset:-6%}
#sc5 .sun.on::before{scale:1.28;animation:sunws 2.4s ease-in-out infinite}
#sc5 .sun.esc::before{scale:1.22;animation:sunws 1.3s ease-in-out infinite}
#sc5 .sun.ping::before{animation:sunps .9s cubic-bezier(.2,.8,.2,1)}
@keyframes sunws{50%{scale:1.1}}
@keyframes sunps{from{scale:1.6}}
@media (prefers-reduced-motion:reduce){#sc5 .sun::before{animation:none!important}}
body.agpin .ag span{font-size:22px;letter-spacing:.05em;opacity:1;color:#fff6e8;text-shadow:0 0 16px rgba(14,6,34,1),0 0 6px rgba(14,6,34,.9),0 0 22px rgba(255,190,110,.35);transition:color .5s,text-shadow .5s}
body.agpin .ag.on span{color:#fff;text-shadow:0 0 16px rgba(14,6,34,1),0 0 26px rgba(255,200,120,.8)}
#sc5 .sun.ping{animation:sunp 1.2s cubic-bezier(.2,.8,.2,1)}
#sc5 .sun.ping::before{animation:sunps 1.2s cubic-bezier(.2,.8,.2,1)}
@keyframes sunps{from{scale:1.75}}
/* V9.3: every painted teal light is a sub-agent you can click */
#sc5 .sub{display:none}
body.agpin #sc5 .sub{display:block;position:absolute;width:2.2%;aspect-ratio:1;margin:0;translate:-50% -50%;border:0;border-radius:50%;background:none;cursor:pointer;z-index:6;padding:0}
body.agpin #sc5 .sub::after{content:"";position:absolute;inset:-25%;border-radius:50%;box-shadow:0 0 0 1px rgba(160,255,245,0);transition:box-shadow .3s,inset .3s}
body.agpin #sc5 .sub:hover::after,body.agpin #sc5 .sub:focus-visible::after{inset:-45%;box-shadow:0 0 18px 4px rgba(110,255,236,.55)}
body.agpin #sc5 .sub:focus-visible{outline:none}
/* V9.4: the caption lives in the painting, just under the lower string of lights, so it reads next to the agents */
body.agpin #sc5 .agcap{top:47.5%;bottom:auto;width:62%;font-size:clamp(17px,1.55vw,24px);padding:10px 34px;background:radial-gradient(closest-side,rgba(14,6,34,.72),rgba(14,6,34,.35) 60%,transparent)}
/* V9.5: a moon name that would touch the page copy sits above its moon */
body.agpin .ag.lup span{top:auto;bottom:calc(100% + 10px)}
body.agpin #sc5 .agcap{transition:left .5s ease,width .5s ease}
/* V9.7: the story's step counter above the caption and the choice under it; the old worker chips give way to the story */
#net .agstep,#net .agesc{display:none}
body.agpin #net .agstep{display:block;position:absolute;margin:0;transform:translate(-50%,-100%);font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#ffd9a0;text-shadow:0 0 10px rgba(14,6,34,1),0 1px 2px #000;opacity:0;transition:opacity .4s;pointer-events:none;z-index:5;white-space:nowrap}
body.agpin #net .agstep.on{opacity:.85}
body.agpin #net .agesc{display:flex;gap:10px;position:absolute;transform:translate(-50%,8px);z-index:7;visibility:hidden;opacity:0;transition:opacity .35s,visibility 0s .35s}
body.agpin #net .agesc.on{visibility:visible;opacity:1;transition:opacity .35s}
body.agpin.agstory #wks{opacity:0}
#net .agstep:focus{outline:none}

/* master pass · the story on phones: caption in the free sky under the work lights, the copy shrinks to its heading and buttons while a story runs,
   the old feed box stays hidden (the caption and the step counter carry it) */
@media (max-width:760px){
 body.agpin #net{overflow:visible}
 body.agpin #net .feed{display:none}
 body.agpin #sc5 .agcap{top:50%;bottom:auto;left:50%;width:calc(100vw - 24px);white-space:normal;font-size:15px;line-height:1.35;padding:8px 14px;background:radial-gradient(closest-side,rgba(14,6,34,.78),rgba(14,6,34,.45) 60%,transparent)}
 body.agpin .ag span{font-size:11px;letter-spacing:.04em;padding:2px 7px;border-radius:999px;background:rgba(14,6,34,.72);box-shadow:0 0 0 1px rgba(255,220,160,.12)}
 body.agpin .ag small{font-size:10px}
 body.agpin .wk em{display:block;font-size:10px;padding:1px 6px;border-radius:999px;background:rgba(14,6,34,.72)}
 body.agpin .wk.new em,body.agpin .wk.run em{display:block}
 body.agpin #net .agstep{font-size:12px;letter-spacing:.16em;padding:3px 9px;border-radius:999px;background:rgba(14,6,34,.72)}
 body.agpin #net .agstep.on{opacity:1}
 /* the idle caption ("waiting for a direction") would sit behind the full copy: on phones it shows only while a story runs */
 body.agpin:not(.agstory) #sc5 .agcap{display:none}
 body.agstory .copy[data-c="3"]>p.plain,body.agstory .copy[data-c="3"]>p.ln,body.agstory .copy[data-c="3"] .hints{display:none}
}
