:root{--edge:clamp(24px,4.45vw,80px);--stage:#0a0a0b;--panel:#111113;--well-d:#1b1b1e;--raised-d:#29292e;--hair:rgba(255,255,255,.07);--ink-d:#ecece6;--mute-d:#8a8a86;--mono:ui-monospace,"SF Mono",Menlo,monospace;--lav:#c9c4ff;--lav-ink:#6b5cf0;--well:#ecebe3;--warn:#c4562e;
 /* A plectrum: the cursor says "pluck". Hotspot at its tip. */
 --pick:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><path d='M5 25C2.5 18 4 8 11.5 4.5S27 5 26.5 12 13 24 5 25Z' fill='%23292d29' stroke='white' stroke-width='1.6' stroke-linejoin='round'/><path d='M10 14.5c2.5-3 6-5 10-5.5' fill='none' stroke='white' stroke-opacity='.35' stroke-width='1.2' stroke-linecap='round'/></svg>") 5 25, pointer;
 --pick-down:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'><path d='M5 25C2.5 18 4 8 11.5 4.5S27 5 26.5 12 13 24 5 25Z' fill='%236b5cf0' stroke='white' stroke-width='1.6' stroke-linejoin='round' transform='rotate(-12 5 25)'/></svg>") 5 25, pointer}
body{background:var(--background);min-height:100svh}
button{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.top{display:flex;justify-content:space-between;align-items:center;padding:22px var(--edge) 0;font-size:12px;color:var(--muted)}
.top a{color:var(--ink);text-decoration:none}.top .crumb span{margin:0 8px;color:var(--line)}
.exp{display:grid;grid-template-columns:minmax(0,6.8fr) minmax(0,4.2fr);gap:clamp(36px,4vw,72px);padding:40px var(--edge) 24px;align-items:start;max-width:1720px;margin:0 auto}
.kicker{font-size:12px;color:var(--muted);margin:0 0 12px}
h1{font-size:34px;font-weight:400;letter-spacing:-.025em;line-height:1.2;margin:0}
.rule{font-size:14px;color:var(--muted);margin:6px 0 0}
.claim{font-size:16px;line-height:1.6;max-width:44ch;margin:20px 0 0}

/* Specimen: text · size handle · bracket · ratio controls. */
.specimen{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 92px 190px;margin-top:40px}
.line{display:contents}
.txt{position:relative;padding:12px 0 13px;cursor:var(--pick);outline:none;-webkit-user-select:none;user-select:none;touch-action:manipulation}
.txt:active{cursor:var(--pick-down)}
.txt:focus-visible p{outline:2px solid var(--focus);outline-offset:4px;border-radius:2px}
.txt p{margin:0;letter-spacing:-.015em;line-height:1.15;transition:font-size .18s var(--ease-out,ease)}.txt p.body{letter-spacing:0;line-height:1.5;max-width:46ch}
.txt p .ch{display:inline-block;will-change:transform}
.string{position:absolute;left:0;bottom:-9px;width:calc(100% + 92px);height:18px;overflow:visible;pointer-events:none}
.string path{fill:none;stroke:var(--c);stroke-width:3;stroke-linecap:round;opacity:.55;transition:opacity .2s,stroke-width .2s}
.txt:hover .string path,.line.plucked .string path{opacity:1;stroke-width:3.5}
.line.off .string path{stroke:#e8754b;opacity:.9}
.rail{display:flex;align-items:center;justify-content:flex-end}
.handle{position:relative;z-index:2;font:11px/1 var(--mono);color:var(--muted);display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 8px;border:1px solid var(--line);border-radius:7px;background:var(--background);cursor:ns-resize;font-variant-numeric:tabular-nums;touch-action:none;-webkit-user-select:none;user-select:none}
.handle:hover,.handle.dragging{color:var(--ink);border-color:var(--ink)}
.handle .grip{display:grid;grid-template-columns:repeat(2,2px);gap:2px}.handle .grip b{width:2px;height:2px;border-radius:50%;background:currentColor;opacity:.55}
.swatch{width:7px;height:7px;border-radius:50%;background:var(--c)}
.line.off .handle{color:var(--warn);border-color:#e6bba8}
#bracket{position:absolute;inset:0;pointer-events:none;z-index:1;overflow:visible}

.toggle-slot{position:absolute;z-index:4;width:30px;height:30px;margin:-15px 0 0 -15px}
.master{position:absolute;z-index:4;transform:translateY(-50%);display:grid;gap:6px;width:170px}
.scrubbing .master .ic-number{box-shadow:inset 0 0 0 1.5px var(--ic-accent)}
.unlinked .master{display:none}
.step{position:absolute;z-index:4;transform:translateY(-50%);width:156px}
.step[hidden]{display:none}
.step .ic-number{height:26px;background:var(--background);box-shadow:inset 0 0 0 1px var(--line)}
.note{font-size:12px;color:var(--muted);margin:18px 0 0;max-width:62ch;line-height:1.55}

/* Stage. */
.instrument{border-radius:16px;overflow:hidden;background:var(--panel);box-shadow:0 1px 0 rgba(255,255,255,.04) inset,0 30px 60px -30px rgba(0,0,0,.45);position:sticky;top:20px}
.stage{position:relative;background:var(--stage);height:min(56vh,540px)}
.stage canvas{position:absolute;inset:0;width:100%;height:100%}
.stage .state{position:absolute;left:18px;top:16px;display:flex;gap:10px;align-items:center;font-size:12px;color:var(--mute-d)}
.state .tag{font:11px/1 var(--mono);color:var(--ink-d);padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.06);box-shadow:0 0 0 1px var(--hair) inset}
.state.off .tag{color:#ffb79c}
.rest{position:absolute;left:0;right:0;bottom:22px;margin:0;text-align:center;font-size:12px;color:var(--mute-d);transition:opacity .4s}
.rest.gone{opacity:0}
.actions{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid var(--hair)}
.actions .ic-btn-primary{padding:0 18px 0 14px;font-size:14px;transition:box-shadow .3s,transform .1s}
.actions .ic-btn-ghost{min-height:42px;border-radius:999px;font-size:13px}
.actions .invite{box-shadow:0 0 0 6px rgba(201,196,255,.14),0 10px 30px -8px rgba(201,196,255,.6)}
.actions .fine{margin-left:auto;min-height:34px;border-radius:10px;color:var(--ic-muted)}
.actions .fine .ic-btn-value{font:500 11px/1 var(--ic-mono);color:var(--ic-ink)}
.actions .fine::after{content:"";width:10px;height:10px;background:center/10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23999' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E")}
.actions .fine[aria-expanded="true"]::after{transform:rotate(180deg)}
.drawer{padding:6px 16px 18px;border-top:1px solid var(--hair)}
.drawer .cap{margin:14px 0 8px;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#56565a}
.foot{font-size:11px;color:var(--muted);margin:8px var(--edge) 28px;max-width:90ch}
@media(max-width:1100px){.exp{grid-template-columns:1fr}.instrument{position:relative;top:0}}

@media(prefers-reduced-motion:reduce){.txt p{transition:none}}
