/* Institute Lux Consilio — interactive mathematical exhibit. */
.kx{--kx-ink:#102d3d;--kx-navy:#081e2f;--kx-panel:#0a2335;--kx-light:#eaf4f3;--kx-gold:#eac284;--kx-teal:#77d9c8;--kx-muted:#9bb5c2}
.kx section[id]{scroll-margin-top:100px}.kx h1,.kx h2,.kx h3{letter-spacing:-.035em;line-height:1.12}.kx h1{font-size:clamp(42px,6vw,82px);margin:12px 0 20px;max-width:860px}.kx h2{font-size:clamp(28px,4vw,48px);margin:12px 0 18px}.kx h3{font-size:22px;margin:0 0 10px}
.kx-hero{background:radial-gradient(ellipse at 78% 25%,#1c4c5c 0%,#102f45 33%,#081e2f 75%);color:#f2f6f4;padding:clamp(54px,7vw,110px) 0 40px}.kx-hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:42px;align-items:center}.kx-hero .eyebrow{color:var(--kx-gold)}.kx-hero p{max-width:760px;color:#c6dce1;font-size:18px}.kx-hero strong{color:#fff}.kx-hero svg{width:100%;height:auto;max-width:480px}.kx-hero .kx-note{font-size:13px;border-left:2px solid var(--kx-gold);padding-left:18px}
.kx-nav{background:#f0f5f6;border-bottom:1px solid #d6e1e5;padding:15px 0}.kx-nav .wrap{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.kx-nav a,.kx-nav button{font-size:13px;text-decoration:none;border:1px solid #c8d7dd;padding:8px 12px;border-radius:4px;background:white;color:#163b50}.kx-nav button{margin-left:auto;cursor:pointer}
.kx-section{padding:clamp(46px,6vw,86px) 0;border-bottom:1px solid #dbe6e8}.kx-section:nth-of-type(even){background:#f4f8f8}.kx-intro{max-width:870px;margin:0 0 26px;color:#405a67;font-size:17px}.kx-scope{display:inline-block;font-size:11px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;color:#315b68;border:1px solid #a8c0c7;padding:6px 10px;border-radius:3px;margin:0 0 8px}.kx-scope.actual{background:#e1f1ed;border-color:#96bbb1;color:#265c52}
.kx-lab{background:#081e2f;color:var(--kx-light);border:1px solid #28465a;border-radius:12px;padding:clamp(13px,2.5vw,25px);box-shadow:0 16px 40px #122b3614;min-width:0}.kx-lab h3{color:var(--kx-light);font-size:18px}.kx-lab p{color:#c3d7df;font-size:13px;line-height:1.55}.kx-lab .eyebrow{color:var(--kx-gold)}
.kx-controls{display:flex;gap:10px;align-items:end;flex-wrap:wrap;padding:0 0 15px;border-bottom:1px solid #2c495d;margin-bottom:16px}.kx-controls label{display:grid;gap:4px;font-size:11px;color:#b9d0d8;min-width:0}.kx-controls button,.kx-controls select,.kx-nav button{font:inherit;font-size:13px;min-height:40px;border-radius:5px;padding:8px 12px;cursor:pointer}.kx-controls button{color:#e4efee;background:#18394d;border:1px solid #466274}.kx-controls button[data-play]{background:#87d5c5;color:#092b33;font-weight:750;border-color:#87d5c5;min-width:90px}.kx-controls select{background:#132f43;color:#f0f5f5;border:1px solid #587485;max-width:100%}.kx-controls input[type=range],.kx-range input{accent-color:#77d9c8;min-width:110px;width:100%}.kx-range{display:grid;gap:5px;margin:12px 0;color:#c8dbe0;font-size:12px}.kx-controls button:focus-visible,.kx-controls select:focus-visible,.kx-nav button:focus-visible{outline:3px solid #eac284;outline-offset:2px}
.kx-grid{display:grid;gap:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.kx-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.kx-cell{border:1px solid #2c495d;background:#102c3e;border-radius:7px;min-width:0;padding:12px}.kx-cell h3{font-size:14px;color:#eef6f5;letter-spacing:0}.kx-cell p{font-variant-numeric:tabular-nums;margin:8px 0 0}.kx canvas{display:block;width:100%;height:auto;background:var(--kx-panel);border-radius:5px;min-width:0}.kx canvas[data-phase]{aspect-ratio:auto;height:230px}.kx canvas[data-traces]{height:260px}.kx canvas[data-scene]{height:300px;cursor:crosshair}.kx canvas[data-balance]{height:340px}.kx canvas[data-obstruction]{height:210px}.kx canvas[data-history]{height:305px}.kx canvas[data-matrix]{height:290px}.kx canvas[data-scale]{height:280px}
.kx-caption{font-size:12px!important;color:#adc4cd!important;margin:12px 0 0}.kx-legend{display:flex;gap:13px;flex-wrap:wrap;font-size:12px;color:#c5d9df;margin:10px 0}.kx-legend span:before{content:"";width:9px;height:9px;display:inline-block;margin-right:6px;background:var(--swatch);border-radius:50%}.kx-stats{display:flex;gap:22px;flex-wrap:wrap;margin:12px 0 16px}.kx-stat{display:grid;gap:3px;min-width:100px}.kx-stat span{font-size:11px;color:#a9c2cc}.kx-stat strong{font-size:clamp(18px,3vw,26px);font-variant-numeric:tabular-nums;color:#edf6f4;font-weight:600}.kx-stat small{font-size:11px;color:#c1d1d6}
.kx-detail{border:1px solid #d4e0e3;padding:18px 20px;border-radius:7px;margin:20px 0;background:#fff}.kx-detail summary{font-weight:700;color:#18465a;cursor:pointer}.kx-detail p,.kx-detail li{color:#38515f;font-size:15px;line-height:1.65}.kx-detail code{font-size:13px;overflow-wrap:anywhere}.kx-eq{overflow-x:auto;padding:12px 0;font-family:Georgia,serif;font-size:clamp(17px,2vw,25px);color:#153f50}.kx-matrix{width:100%;max-width:520px;border-collapse:separate;border-spacing:4px;font-variant-numeric:tabular-nums;font-size:12px;text-align:center}.kx-matrix th{color:#b8cdd5;font-weight:500}.kx-matrix td{background:#1d4254;padding:9px 5px;border-radius:4px;color:#eff8f5}.kx-matrix td:nth-child(4){background:#255c60}
.kx-status{max-width:900px;border-left:3px solid #987644;padding:14px 20px;background:#f7f4eb;color:#54452c;margin:24px 0}.kx-status p{margin:5px 0}.kx-nojs{border:1px solid #bacbd1;padding:12px;margin:15px 0}.kx-path{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:30px}.kx-path a{background:#fff;border:1px solid #d7e4e7;border-radius:6px;padding:18px;text-decoration:none;color:#183b4e}.kx-path strong{display:block;margin:6px 0;font-size:18px}.kx-path span{font-size:13px;color:#4c6775}
@media(max-width:780px){.kx-hero-grid,.kx-grid,.kx-grid.two,.kx-path{grid-template-columns:1fr}.kx-hero-grid{gap:12px}.kx-hero svg{max-width:300px;margin:0 auto;display:block}.kx .wrap{width:min(calc(100% - 28px),1200px)}.kx-nav button{margin-left:0}.kx-section{padding-block:44px}.kx-controls{gap:7px}.kx-lab{padding:12px}.kx-grid{gap:10px}.kx h1{font-size:clamp(38px,10vw,58px)}}@media(prefers-reduced-motion:reduce){.kx *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

.kx-matrix{table-layout:fixed;overflow-wrap:anywhere}.kx-matrix td,.kx-matrix th{font-size:clamp(9px,1.2vw,12px)}.kx-stat{max-width:100%;overflow-wrap:anywhere}.kx-controls label{max-width:100%}.kx canvas{max-width:100%}
