/* Home "Context" section: softly animated knowledge graph (mockup 18 Nov 2026, pending lock). Theme-aware. */
:root{--cg-gold:#E2B95A;--cg-node:#9DB4E8;--cg-ent:#C9D2E3;--cg-dot:rgba(190,204,230,.45);--cg-link:rgba(170,190,230,.16);--cg-hot:rgba(226,185,90,.55);--cg-lab:rgba(214,222,236,.78)}
html[data-theme="light"]{--cg-gold:#A87A1F;--cg-node:#2F5BD3;--cg-ent:#334155;--cg-dot:rgba(51,65,85,.35);--cg-link:rgba(51,65,85,.14);--cg-hot:rgba(168,122,31,.55);--cg-lab:rgba(30,41,59,.82)}
body.th-earth{--cg-gold:#9A5E14;--cg-node:#6B5A3A;--cg-ent:#4A3A25;--cg-dot:rgba(74,58,37,.35);--cg-link:rgba(74,58,37,.15);--cg-hot:rgba(154,94,20,.55);--cg-lab:rgba(60,45,28,.85)}
.ctx{padding:56px 0 52px;background:linear-gradient(180deg,color-mix(in srgb,var(--bg) 86%,transparent),color-mix(in srgb,var(--bg) 78%,transparent))}
.ctx-in{display:grid;grid-template-columns:360px 1fr;gap:40px;align-items:center}
.ctx-copy h2{margin-top:14px;font-size:44px;line-height:1.06}
.ctx-copy .ctx-ey{color:var(--cg-gold)}
.ctx-copy p{margin-top:16px;font-size:16.5px;line-height:1.55;color:var(--soft);max-width:340px}
.ctx-graph{position:relative;height:380px;border-radius:20px;overflow:hidden;
 background:radial-gradient(420px 260px at 50% 50%,color-mix(in srgb,var(--cg-gold) 9%,transparent),transparent 70%)}
.ctx-graph svg{display:block;width:100%;height:100%}
.ctx-ill{position:absolute;right:12px;bottom:10px;font:10px/1 var(--mono,ui-monospace,monospace);letter-spacing:.14em;text-transform:uppercase;color:var(--muted);opacity:.8}
#ctxg line{stroke:var(--cg-link);stroke-width:1;transition:stroke .25s,opacity .25s}
#ctxg line.ea{stroke:color-mix(in srgb,var(--cg-gold) 38%,transparent);stroke-width:1.2}
#ctxg .n circle.c{transition:opacity .25s}
#ctxg .n text{font:500 11.5px/1 Inter,system-ui,sans-serif;fill:var(--cg-lab);paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round;transition:opacity .25s}
#ctxg .n.ch text{font-weight:600;fill:var(--cg-node)}
#ctxg .n.ea text{font:600 12.5px/1 Inter,system-ui,sans-serif;fill:var(--cg-gold)}
#ctxg .n{cursor:pointer}
#ctxg .pulse{fill:var(--cg-gold)}
#ctxg.hov line{opacity:.18}
#ctxg.hov line.on{opacity:1;stroke:var(--cg-hot);stroke-width:1.5}
#ctxg.hov .n{opacity:.28}
#ctxg.hov .n.on{opacity:1}
#ctxg .n{transition:opacity .25s}
@media (max-width:640px){
 .ctx{padding:44px 0 40px}
 .ctx-in{grid-template-columns:1fr;gap:18px}
 .ctx-copy h2{font-size:32px}
 .ctx-copy p{font-size:15px;max-width:none}
 .ctx-graph{height:330px}
 .ctx-ill{top:8px;bottom:auto}
 #ctxg .n text{font-size:10.5px}
}
