/* ---- spiral ---- */

#st{position:relative;overflow:hidden;width:100%;height:100vh;min-height:640px;max-height:1000px;color:var(--ink);font-family:var(--body);background:radial-gradient(70% 80% at 62% 52%,#FBE3D6 0%,#F6C1CF 38%,#D9C3E2 72%,#9DB3DE 100%)}
#st canvas{position:absolute;inset:0;width:100%;height:100%}
#st .hd{position:absolute;left:56px;top:48px;z-index:5;pointer-events:none;max-width:420px}
#st .hd h2{font:500 40px/1.15 var(--head);margin:0;color:var(--ink);letter-spacing:-.01em}
#st .hd h2 em{font:italic 1.12em var(--math);color:#B0285F}
#st .cap{position:absolute;left:56px;bottom:44px;z-index:5;pointer-events:none;max-width:400px}
#st .cap b{display:block;font:600 20px var(--head);color:#B0285F}#st .cap span{display:block;font-size:17px;color:#2D4A78;margin-top:4px}
#st .cap p{font-size:16px;color:#2D4A78;margin:14px 0 0}
#st .key{position:absolute;left:56px;top:210px;z-index:5;list-style:none;margin:0;padding:0;display:grid;gap:8px;pointer-events:none}
#st .key li{font:600 14px var(--head);letter-spacing:.06em;text-transform:uppercase;display:flex;align-items:center;gap:10px}#st .key i{width:22px;height:7px;border-radius:4px;display:inline-block}
#st .pt{position:absolute;left:0;top:0;z-index:6;background:none;border:0;padding:6px 8px;margin:0;cursor:pointer;font:500 16px var(--body);color:var(--ink);white-space:nowrap;border-radius:8px;transition:opacity .6s,color .3s,background .3s;opacity:0;will-change:transform}
#st .pt.on{opacity:1}#st .pt.hl{font-weight:600;color:#B0285F}
#st .pt:hover,#st .pt:focus-visible,#st .pt.act{background:rgba(255,255,255,.35);outline:none;color:#B0285F}
#st .pt:focus-visible{box-shadow:0 0 0 2px #B0285F}
#st .pt.on.dim{opacity:.28}
#st .tip{position:absolute;z-index:8;pointer-events:none;background:rgba(15,59,102,.9);color:#fff;padding:10px 14px;border-radius:10px;font-size:14px;line-height:1.4;max-width:280px;opacity:0;transition:opacity .25s}
#st .tip b{display:block;font:600 16px var(--head)}#st .tip span{color:#F6C1CF}
#sh{position:fixed;inset:0;z-index:20;background:rgba(45,74,120,.28);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .35s}
#sh.open{opacity:1;pointer-events:auto}
#pn{position:fixed;z-index:21;top:0;right:0;bottom:0;width:min(440px,100%);background:linear-gradient(180deg,#F9D9DF,#E9D3E8 60%,#D3D9EF);box-shadow:-30px 0 60px -30px rgba(15,59,102,.45);transform:translateX(104%);transition:transform .45s var(--ease);display:flex;flex-direction:column;visibility:hidden}
#pn.open{transform:none;visibility:visible}
#pn header{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 22px 10px;gap:12px}
#pn h2{font:600 22px var(--head);margin:0;color:var(--ink)}#pn header p{margin:4px 0 0;font-size:15px;color:#3E5A78}
#x{border:0;background:rgba(255,255,255,.5);width:44px;height:44px;border-radius:50%;font-size:22px;cursor:pointer;color:var(--ink);flex:none}
#ch{display:flex;flex-wrap:wrap;gap:8px;padding:0 22px 12px}
#ch button{font:500 15px var(--body);border:1px solid rgba(15,59,102,.25);background:rgba(255,255,255,.35);color:var(--ink);border-radius:999px;padding:8px 14px;cursor:pointer;min-height:44px}
#ch button[aria-pressed=true]{background:#0F3B66;color:#fff;border-color:#0F3B66}
#cards{overflow:auto;padding:0 22px 26px;flex:1}

@media (max-width:700px){
 #st .hd{left:20px;right:20px;top:24px;max-width:none;text-align:center}#st .hd h2{font-size:26px}
 #st .key{left:20px;right:20px;top:auto;bottom:96px;grid-template-columns:1fr 1fr;gap:6px 14px}#st .key li{font-size:11px;letter-spacing:.03em}
 #st .cap{left:20px;right:20px;bottom:18px;text-align:center;max-width:none}#st .cap b{font-size:17px}#st .cap span{font-size:15px}#st .cap p{display:none}
 #st .pt{font-size:15px;padding:9px 8px;min-height:40px}
 #pn{top:auto;left:0;width:100%;height:82%;border-radius:20px 20px 0 0;transform:translateY(104%)}
}
#st .hit{position:absolute;left:0;top:0;z-index:7;border:0;border-radius:50%;background:transparent;cursor:pointer;padding:0;margin:0}
#st .hit:focus-visible{outline:2px solid #B0285F;outline-offset:-4px}
#st .lb{position:absolute;left:0;top:0;z-index:6;pointer-events:none;font:500 16px var(--body);color:var(--ink);white-space:nowrap;padding:2px 4px;opacity:0;transition:opacity .6s}
#st .lb.on{opacity:1}#st .lb.work{font-weight:600;color:#B0285F}#st .lb.on.dim{opacity:.25}

@media (max-width:700px){#st .hd h2{font-size:22px}#st .key{display:none}#st .cap{bottom:22px}#st .cap b{font-size:16px}#st .cap span{font-size:14px}#st .lb{font-size:15px}}
#st .replay{position:absolute;right:20px;bottom:16px;z-index:8;font:500 13px var(--body);color:#2D4A78;opacity:.6;background:none;border:0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
#st .replay:hover,#st .replay:focus-visible{opacity:1}
/* site: the fixed nav (76px, 64px on phones) sits over the top of this full-height section.
   A transparent top border keeps everything below it: the layout reads clientHeight, which excludes the border. */
#st{--navh:76px;box-sizing:border-box;border-top:var(--navh) solid transparent;background-origin:border-box}
@media (max-width:700px){#st{--navh:64px}}
/* site.css styles the Work section as .work (sand background); work labels and hit areas share that class */
#st .work{background:none}
#st .hd .eyebrow{margin-bottom:14px} /* site: section label above the heading */
@media (min-width:701px){#st .key{top:246px}} /* room for the label above the heading */
