/* Explainer animations (index.html, developers.html). Behaviour: explainer.js + scene-*.js */
.ex{margin:0;border-radius:28px;overflow:hidden;background:radial-gradient(120% 90% at 50% 0%,#18212a 0%,#0f1317 62%);color:#e9ebe6;box-shadow:0 1px 0 rgba(255,255,255,.04) inset,0 24px 60px -24px rgba(15,19,23,.55)}
.ex-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;padding:22px 28px 0}
.ex-eyebrow{display:inline-flex;align-items:center;gap:8px;font-family:'Atkinson Hyperlegible Mono',monospace;font-size:13px;color:#8b939b}
.ex-eyebrow::before{content:'';width:8px;height:8px;border-radius:50%;background:#3ad68e;box-shadow:0 0 0 4px rgba(58,214,142,.16)}
.ex-stage{padding:14px 20px 4px;background-image:radial-gradient(rgba(255,255,255,.055) 1px,transparent 1.2px);background-size:22px 22px}
.ex-stage svg{display:block;width:100%;height:auto;margin:0 auto;overflow:visible}
.ex-stage svg.tall{max-width:460px}
.ex-panel{display:flex;flex-wrap:wrap;gap:18px 32px;align-items:flex-end;justify-content:space-between;padding:20px 28px 26px;border-top:1px solid rgba(255,255,255,.07);background:rgba(10,13,16,.45)}
.ex-cap{flex:1 1 420px;min-width:0;min-height:8.2em}
.ex-count{font-family:'Atkinson Hyperlegible Mono',monospace;font-size:13px;color:#3ad68e}
.ex-cap h3{font-size:clamp(22px,2.4vw,27px);line-height:1.15;font-weight:800;letter-spacing:-.015em;margin:6px 0 8px;color:#fff;text-wrap:balance}
.ex-cap p{color:#b8bec4;font-size:17px;line-height:1.5;max-width:40em;text-wrap:pretty}
.ex-ctrl{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.ex-btns{display:flex;gap:8px}
.ex-btn{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1.5px solid rgba(255,255,255,.14);background:rgba(255,255,255,.04);color:#e9ebe6;cursor:pointer;padding:0;transition:background .2s,border-color .2s,color .2s,transform .15s}
.ex-btn:hover{border-color:#3ad68e;color:#3ad68e}
.ex-btn:active{transform:scale(.94)}
.ex-btn:focus-visible,.ex-dots button:focus-visible{outline:2px solid #3ad68e;outline-offset:3px}
.ex-btn svg{width:18px;height:18px;fill:currentColor}
.ex-btn.play{background:#3ad68e;border-color:#3ad68e;color:#0f1317;width:54px;height:54px}
.ex-btn.play:hover{background:#5fe3a6;color:#0f1317}
.ex-btn.play .i-play,.ex-btn.play.paused .i-pause{display:none}
.ex-btn.play.paused .i-play{display:block}
.ex-dots{display:flex;gap:2px;list-style:none;margin:0;padding:0}
.ex-dots button{display:block;width:26px;height:24px;background:none;border:0;cursor:pointer;padding:0;position:relative;border-radius:6px}
.ex-dots button::after{content:'';position:absolute;left:4px;right:4px;top:10px;height:4px;border-radius:2px;background:rgba(255,255,255,.16);transition:background .3s}
.ex-dots button.past::after{background:rgba(58,214,142,.5)}
.ex-dots button[aria-current="step"]::after{background:#3ad68e}
.ex-dots button:hover::after{background:#8b939b}
.ex-steps{margin:0;padding:24px 28px 28px;list-style:none;counter-reset:exs;display:grid;gap:16px}
.ex-steps li{counter-increment:exs}
.ex-steps h3{font-size:19px;font-weight:800;color:#fff}
.ex-steps h3::before{content:counter(exs) '. ';color:#3ad68e}
.ex-steps p{color:#b8bec4;font-size:16px}
.ex:not(.js) .ex-stage,.ex:not(.js) .ex-panel{display:none}
.ex.js .ex-steps{display:none}
@media (max-width:640px){
  .ex{border-radius:20px}
  .ex-head{padding:18px 16px 0}
  .ex-stage{padding:10px 8px 0}
  .ex-panel{padding:16px 16px 20px;flex-direction:column;align-items:stretch}
  .ex-cap{flex:none;min-height:10.5em}
  .ex-cap p{font-size:16px}
  .ex-ctrl{flex-direction:column-reverse;align-items:center;gap:14px}
}
/* svg parts */
.ex-flows path{fill:none;stroke:rgba(255,255,255,.09);stroke-width:2;stroke-dasharray:2 7;stroke-linecap:round}
.ex-phone{fill:#1c242b;stroke:#333d46;stroke-width:1.5}
.ex-phone.you{stroke:rgba(233,235,230,.45)}
.ex-phone.mum{stroke:rgba(58,214,142,.7)}
.ex-notch{fill:#2b343d}
.ex-ring{fill:none;stroke:#3ad68e;stroke-width:3;opacity:0;transform-box:fill-box;transform-origin:center}
.ex-ring.stranger{stroke:#e9ebe6}
.ex-pill rect{fill:rgba(255,255,255,.07);stroke:rgba(255,255,255,.12)}
.ex-pill text{fill:#e9ebe6;font-weight:700}
.ex-pill.mum rect{fill:rgba(58,214,142,.14);stroke:rgba(58,214,142,.4)}
.ex-pill.mum text{fill:#3ad68e}
.ex-grp{fill:#8b939b;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-flap{fill:none;stroke:#0f1317;stroke-opacity:.22;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.ex-shackle{fill:none;stroke:#0f1317;stroke-width:3}
.ex-lockbody{fill:#0f1317}
.ex-tag{transform-box:fill-box;transform-origin:center}
.ex-keytag{fill:#3ad68e;stroke:#0f1317;stroke-width:2.5}
.ex-keyglyph{fill:none;stroke:#0f1317;stroke-width:2.4;stroke-linecap:round}
.ex-noslot{fill:#0f1317;stroke:#ff8a5c;stroke-width:2;stroke-dasharray:4 3}
.ex-noslash{stroke:#ff8a5c;stroke-width:2.2;stroke-linecap:round}
[data-state="denied"] .ex-env{stroke:#ff8a5c;stroke-width:3}
.ex-val{fill:#e9ebe6;font-weight:800;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.ex-chip.mum .ex-val{fill:#3ad68e}
.ex-sub{fill:#8b939b;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-agepill{fill:rgba(58,214,142,.14)}
.ex-chip.mum .ex-sub{fill:#3ad68e}
[data-state="stale"] .ex-agepill{fill:rgba(255,138,92,.16)}
[data-state="stale"] .ex-sub{fill:#ff8a5c}
.ex-badge text{fill:#8b939b;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-minilock path{stroke:#8b939b;stroke-width:2}
.ex-minilock rect{fill:#8b939b}
.ex-keylbl{fill:#3ad68e;font-weight:700}
.ex-nokey{fill:#ff8a5c;font-weight:700}
.ex-sleep rect{fill:#06080a;opacity:.86}
.ex-sleep text{fill:#8b939b;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-moon{fill:#8b939b}

/* ---- developer scene (developers.html) ---- */
.ex.dev .ex-panel{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start;gap:20px 36px}
.ex.dev .ex-cap{min-height:9.5em}
.ex.dev .ex-ctrl{grid-column:1 / -1;flex-direction:row;justify-content:space-between;align-items:center;padding-top:4px;border-top:1px solid rgba(255,255,255,.07);padding-top:16px}
.ex-specbox{min-width:0}
.ex-spec{margin:0;display:grid;grid-template-columns:max-content minmax(0,1fr);gap:7px 16px;font-family:'Atkinson Hyperlegible Mono',monospace;font-size:13.5px;line-height:1.45;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px 16px}
.ex-spec dt{color:#8b939b}
.ex-spec dd{margin:0;color:#e9ebe6;overflow-wrap:anywhere}
.ex-spec code{font:inherit;color:#3ad68e}
.ex-spec a{color:#8fb3ff;text-decoration-thickness:1px}
.ex-spec a:hover{color:#3ad68e}
.ex-steps .ex-spec{margin-top:10px}
@media (max-width:700px){
  .ex.dev .ex-panel{grid-template-columns:minmax(0,1fr)}
  .ex.dev .ex-cap{min-height:12em}
  .ex.dev .ex-ctrl{flex-direction:column;align-items:center}
  .ex-spec{grid-template-columns:minmax(0,1fr);gap:2px 0;font-size:13px}
  .ex-spec dd{margin-bottom:8px}
}
.ex-flowline{fill:none;stroke:rgba(255,255,255,.09);stroke-width:2;stroke-dasharray:2 7;stroke-linecap:round}
.ex-hiline{fill:none;stroke:#3ad68e;stroke-width:2.5;stroke-dasharray:6 6;stroke-linecap:round;opacity:.8}
.ex-relay rect{fill:#161d24;stroke:#3a4550;stroke-width:1.5}
.ex-relay text{fill:#e9ebe6;font-weight:700}
.ex-relayglyph{fill:none;stroke:#8fb3ff;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.ex-ring.relay{stroke:#8fb3ff}
.ex-code rect{fill:#0a0e12;stroke:rgba(58,214,142,.45);stroke-width:1.5}
.ex-code text{fill:#d4d8dc;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-blk rect{fill:#1c242b;stroke:#3a4550;stroke-width:1.2}
.ex-blk text{fill:#b8bec4;font-family:'Atkinson Hyperlegible Mono',monospace;font-weight:600}
.ex-blk.s1 rect{fill:rgba(58,214,142,.16);stroke:rgba(58,214,142,.6)}
.ex-blk.s1 text{fill:#3ad68e}
.ex-blk.s2 rect{fill:rgba(143,179,255,.16);stroke:rgba(143,179,255,.6)}
.ex-blk.s2 text{fill:#8fb3ff}
.ex-blk.add text{fill:#3ad68e}
.ex-blk.rm rect{stroke:rgba(255,138,92,.7)}
.ex-blk.rm text{fill:#ff8a5c}
.ex-sec{stroke:#0f1317;stroke-width:2.5}
.ex-sec1{fill:#3ad68e}
.ex-sec2{fill:#8fb3ff}
.ex-sectext{fill:#0f1317;font-family:'Atkinson Hyperlegible Mono',monospace;font-weight:600}
.ex-welcome rect{fill:#3ad68e}
.ex-welcome text{fill:#0f1317;font-family:'Atkinson Hyperlegible Mono',monospace;font-weight:600}
.ex-slot{fill:none;stroke:rgba(255,255,255,.22);stroke-width:1.5;stroke-dasharray:4 4}
.ex-slottext{fill:#5b636b;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-slotdeny{fill:none;stroke:#ff8a5c;stroke-width:2.5}
.ex-dim{fill:#0f1317;opacity:.5}
.ex-rank circle{fill:#e9ebe6;stroke:#0f1317;stroke-width:2.5}
.ex-rank text{fill:#0f1317;font-weight:800}
.ex-dot{fill:#8fb3ff}
.ex-note text{fill:#8fb3ff;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-leak text{fill:#ffc46b;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-techlink{font-family:'Atkinson Hyperlegible Mono',monospace;font-size:13px;color:#b8bec4;text-decoration-thickness:1px}
.ex-techlink:hover{color:#3ad68e}

/* ---- scale-up scene (developers.html, "the idea at scale") ---- */
.ex-node .ex-ncirc{fill:#16212b;stroke:#3ad68e;stroke-width:2.5}
.ex-node .ex-gly{fill:none;stroke:#0f1317;stroke-width:2.4;stroke-linecap:round}
.ex-node .ex-gly-f{fill:#0f1317}
.ex-snode-hero .ex-ncirc{fill:#3ad68e;stroke:#06281b;stroke-width:1.5}
.ex-rnode-hero .ex-ncirc{fill:#16212b;stroke:#3ad68e}
.ex-cnode-hero .ex-ncirc{fill:#16212b;stroke:#8fb3ff}
.ex-cnode-hero .ex-gly{stroke:#8fb3ff}
.ex-anode-hero .ex-ncirc{fill:#16212b;stroke:#ffc46b}
.ex-anode-hero .ex-gly{stroke:#ffc46b}
.ex-snode{fill:#3ad68e;stroke:#06281b;stroke-width:1.5}
.ex-rnode{fill:#16212b;stroke:#3ad68e;stroke-width:2}
.ex-mlink{stroke:rgba(255,255,255,.22);stroke-width:1.5}
.ex-ktok circle.ex-keytag{fill:#3ad68e;stroke:#0f1317;stroke-width:2}
.ex-ktok .ex-keyglyph{fill:none;stroke:#0f1317;stroke-width:2.2;stroke-linecap:round}
.ex-carrier{fill:#3a4550}
.ex-mesh{fill:none;stroke:#3ad68e;stroke-width:1.4;stroke-linecap:round;opacity:0}
.ex-cnode-mini{fill:#16212b;stroke:#8fb3ff;stroke-width:2}
.ex-anode-mini{fill:#16212b;stroke:#ffc46b;stroke-width:2}
@media (prefers-reduced-motion:no-preference){
  .ex.scale .ex-mesh{animation-name:ex-flow;animation-timing-function:linear;animation-iteration-count:infinite}
  .ex.scale .ex-mesh.rev{animation-direction:reverse}
  @keyframes ex-flow{to{stroke-dashoffset:-16}}
}
@media (prefers-reduced-motion:reduce){
  .ex.scale .ex-mesh{stroke-dasharray:none !important}
}
.ex-spoke{fill:none;stroke:#c0603d;stroke-width:1.6;stroke-dasharray:4 5;stroke-linecap:round}
.ex-server rect{fill:#2a1c1a;stroke:#c0603d;stroke-width:2}
.ex-servertext{fill:#e9a583;font-family:'Atkinson Hyperlegible Mono',monospace;font-weight:600;letter-spacing:.08em}
.ex-nlabel text{fill:#b8bec4;font-family:'Atkinson Hyperlegible Mono',monospace}
.ex-nlabel.clin text{fill:#8fb3ff}
.ex-nlabel.res text{fill:#ffc46b}
.ex-bignote text{fill:#3ad68e;font-family:'Atkinson Hyperlegible Next',sans-serif;font-weight:800}
