:root{font-family:Helvetica,Arial,sans-serif;color:#1c2422;background:#f7f8f3;--line:#d8ded4;--muted:#596560}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{min-height:48px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:transparent;color:inherit;cursor:pointer}button:hover{background:#e9eee4}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #334fba;outline-offset:4px}button:disabled{opacity:.4;cursor:default}button[aria-pressed=true]{border-color:#1c2422;box-shadow:inset 0 0 0 1px #1c2422}header{min-height:94px;display:flex;align-items:center;justify-content:space-between;padding:20px 36px;border-bottom:1px solid var(--line);gap:16px}header a{font:25px Georgia,serif;text-decoration:none;color:inherit;letter-spacing:-1px}header small{display:block;font:10px Helvetica,sans-serif;text-transform:uppercase;letter-spacing:2px;margin-top:5px}header>span,.topline,.bottomline,#frequency{font-size:10px;font-weight:600;letter-spacing:1.5px;color:var(--muted)}main{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(400px,1fr);min-height:calc(100dvh - 94px)}.stage{position:relative;min-height:740px;background:#eff2e8;overflow:hidden;border-right:1px solid var(--line)}.topline{position:absolute;top:30px;left:30px;right:30px;z-index:1;line-height:1.6}canvas{position:absolute;inset:0;display:block;width:100%;height:100%}.caption{position:absolute;bottom:78px;left:25px;right:25px;text-align:center;pointer-events:none}h1{font:normal clamp(30px,4vw,52px)/1.06 Georgia,serif;letter-spacing:-1.5px;margin:14px 0;overflow-wrap:anywhere}.caption>p:last-child{font-size:13px;line-height:1.6}.bottomline{position:absolute;bottom:25px;left:30px;right:30px;display:flex;justify-content:space-between;font-size:9px;gap:15px}.studio{padding:32px clamp(22px,3vw,48px);align-self:start}nav{display:flex;gap:8px;margin-bottom:32px}nav button{flex:1;padding:10px 6px;font-size:11px}nav button[aria-current=step]{background:#1c2422;color:white}.kicker{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted);text-transform:uppercase;margin:0 0 10px}h2{font:normal 33px/1.08 Georgia,serif;letter-spacing:-1px;margin:0 0 14px}p{line-height:1.55}.lead{color:var(--muted);font-size:14px;margin-bottom:24px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.choice{display:flex;align-items:center;gap:12px;text-align:left;padding:13px}.swatch{height:25px;width:25px;border-radius:50%;flex:none;border:1px solid #0002}.choice strong{font-size:14px;display:block}.choice small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.choice:last-child{grid-column:1/-1}.field{margin:24px 0}.field label{font-size:14px;font-weight:600;display:block;margin-bottom:12px}.field output{float:right;color:var(--muted);font-weight:400}.ends{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-top:8px}input[type=range]{width:100%;accent-color:#1c2422;min-height:30px}input[type=text],select{width:100%;padding:14px;border:1px solid var(--line);border-radius:10px;background:white;color:#1c2422;min-height:48px}footer{display:flex;gap:10px;margin-top:30px}.primary{background:#1c2422;color:white;flex:1}.primary:hover{background:#364c40}.note{font-size:11px;color:var(--muted);margin-top:24px;line-height:1.6}.card{padding:20px;background:#edf1e7;border-radius:14px;margin-top:20px}.card h3{font:normal 25px Georgia,serif;margin:0 0 10px}.card p{font-size:14px}.room-buttons{display:flex;gap:8px;margin:16px 0}.room-buttons button{flex:1}.small-button{width:100%;margin-top:12px}summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(min-width:1500px){.studio{max-width:670px;width:100%;justify-self:center}.stage{min-height:calc(100dvh - 94px)}}
@media(max-width:900px){header{padding:16px 20px}header>span{display:none}main{grid-template-columns:1fr}.stage{min-height:450px;border-right:0;border-bottom:1px solid var(--line)}.topline{top:20px;left:20px;right:20px;font-size:9px}.caption{bottom:52px}h1{font-size:33px}.bottomline{bottom:18px;left:20px;right:20px;font-size:8px}.studio{padding:24px;max-width:680px;width:100%;justify-self:center}nav{margin-bottom:26px}.caption>p:last-child{font-size:11px}}

/* Playground: a warmer, tactile interpretation of the exhibition palette. */
:root{--companion:#FB923C;--glow:#FB923C28;background:#fffcf7}
header{background:#fffcf7}header a{font-weight:bold;letter-spacing:-1.4px}header small{letter-spacing:2px;font-weight:normal}header>span{font-size:9px;letter-spacing:2px}
.stage{min-height:800px;background:radial-gradient(ellipse at 50% 40%,var(--glow),transparent 60%),#f1ecff;border-right-color:#e2ddeb}
.topline{display:flex;align-items:center;gap:8px;font-size:9px;letter-spacing:1.4px}.live-dot{width:7px;height:7px;background:#78609b;border-radius:50%;flex:none}.play-tag{margin-left:auto;font-size:10px;text-transform:none;letter-spacing:0;font-weight:400}
.speech{position:absolute;top:97px;left:50%;transform:translateX(-50%) rotate(-3deg);max-width:80%;width:max-content;background:#fffcf7;border:1px solid #e5ddf2;border-radius:18px 18px 18px 3px;padding:13px 20px;font:15px/1.5 Georgia,serif;color:#433451;pointer-events:none;box-shadow:0 4px 0 #d9ccec45;transition:opacity .2s}.speech.soft{opacity:.65}
.caption{bottom:151px}.caption h1{font-weight:bold;color:#302842;font-size:clamp(34px,4vw,57px);letter-spacing:-2px}#frequency{font-size:9px;letter-spacing:2px}.caption>p:last-child{color:#695b7c;font-size:13px}
canvas{cursor:crosshair;touch-action:pan-y}canvas:focus-visible{outline:3px solid #6f53b8;outline-offset:-6px}
.play-tools{position:absolute;bottom:83px;left:20px;right:20px;display:flex;justify-content:center;gap:7px;flex-wrap:wrap}.play-tools button{background:#fffcf7e8;border-color:#d7cce7;padding:10px 14px;font-size:12px;min-height:44px;box-shadow:0 3px 0 #c7b8db55;border-radius:999px}.play-tools button:hover{background:#fff;transform:translateY(-2px)}.play-tools button:active{transform:translateY(1px)}.undo-surprise{position:absolute;bottom:37px;left:50%;transform:translateX(-50%);font-size:11px;border:0;min-height:36px;padding:5px 14px;z-index:2;background:#f1ecff}.bottomline{bottom:19px;font-size:8px}.studio{padding-top:36px}.studio h2{font-weight:bold;letter-spacing:-1.3px;font-size:36px}.primary{background:#574071;border-color:#574071;border-radius:999px;box-shadow:0 4px 0 #352349}.primary:hover{background:#695084}.choices{gap:10px}.choice{border-radius:17px;background:#fff;min-height:73px;transition:transform .15s,border-color .15s}.choice:hover{transform:translateY(-2px);background:#fffaf0}.choice[aria-pressed=true]{background:#f0eafa;border-color:#655078;box-shadow:inset 0 0 0 1px #655078}.swatch{display:grid;place-items:center;font-size:17px;color:#252a36;width:33px;height:33px;border:0;box-shadow:inset 0 -3px 0 #0001}.choice:first-child .swatch{color:white}nav button{border-radius:999px;min-height:42px}nav button[aria-current=step]{background:#574071}input[type=range]{accent-color:#795b9b}.card{background:#f1ecf8}footer #back{border-radius:999px}
@media(min-width:1500px){.stage{min-height:calc(100dvh - 94px)}}
@media(max-width:900px){.stage{min-height:555px}.topline{font-size:8px;letter-spacing:1px}.play-tag{font-size:9px}.speech{top:64px;font-size:13px;padding:10px 15px;max-width:85%}.caption{bottom:128px}.caption h1{font-size:34px;margin:10px 0}.caption>p:last-child{font-size:11px}.play-tools{bottom:68px;left:12px;right:12px;gap:5px}.play-tools button{font-size:11px;padding:9px 11px}.undo-surprise{bottom:29px}.bottomline{bottom:12px}.studio h2{font-size:32px}.studio{padding:25px 20px}.choice{min-height:73px}.stage canvas{height:100%}}
@media(max-width:365px){.play-tag{display:none}.play-tools button{padding:9px 8px;font-size:10px}.swatch{width:26px;height:26px}.choice{padding:11px;gap:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.play-tools button:hover,.choice:hover{transform:none}}

/* Conversation and three-state expression. */
[hidden]{display:none!important}
.field label{display:flex;justify-content:space-between;gap:16px;align-items:baseline;line-height:1.4}.field output{float:none;text-align:right;font-size:12px;flex-shrink:0;max-width:46%;overflow-wrap:anywhere}.control-note{font-size:11px;line-height:1.6;color:var(--muted);margin:-9px 0 22px}.shape-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:24px 0}.shape-details summary{font-weight:600}.shape-details[open] summary{margin-bottom:12px}.face-choices{border:0;padding:0;margin:26px 0}.face-choices legend{font-size:14px;font-weight:600;padding:0;margin-bottom:12px}.face-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.face-options button{display:flex;flex-direction:column;align-items:center;gap:8px;border-radius:16px;font-size:12px;background:#fff}.face-options button[aria-pressed=true]{background:#f0eafa;border-color:#795b9b;box-shadow:inset 0 0 0 1px #795b9b}.face-icon{display:grid;place-items:center;font:28px/1 Georgia,serif;color:white;background:radial-gradient(ellipse,#a896c2,#c4afd8);text-shadow:0 1px 5px #60487666;width:48px;height:40px;border-radius:50%}.composer textarea:focus-visible{outline:3px solid #334fba;outline-offset:3px}
.conversation{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:26px}.conversation-heading{display:flex;align-items:start;justify-content:space-between;gap:12px}.conversation-heading h2{font-size:29px;margin-bottom:15px}.conversation-heading #connection{font-size:10px;color:#695b7c;text-align:right;max-width:120px;line-height:1.5;border:1px solid #ded4e8;border-radius:12px;padding:7px 10px}#connection[data-ready=true]{background:#eaf4e9;color:#355b39}.expression-bar{display:flex;justify-content:space-between;font-size:11px;color:#695b7c;margin-bottom:10px;gap:10px}#emotion-label{color:#574071}#chat-log{max-height:184px;overflow-y:auto;overscroll-behavior:contain;padding:5px 3px;scrollbar-width:thin}.chat-message{font-size:14px;padding:12px 14px;border-radius:14px;margin:6px 0;background:#f1ecf8;line-height:1.55;overflow-wrap:anywhere}.chat-message.user{margin-left:30px;background:#ecf0e8}.speaker{display:block;font-size:9px;text-transform:uppercase;letter-spacing:1px;color:#695b7c;margin-bottom:5px}.quick-prompts{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.quick-prompts button{padding:8px 12px;min-height:40px;border-radius:999px;font-size:11px;background:#fff}#chat-form label{font-size:12px;display:block;margin-bottom:8px}.composer{display:flex;gap:8px;align-items:stretch}.composer textarea{font:14px/1.5 Helvetica,Arial,sans-serif;color:#1c2422;border:1px solid #d8cedf;border-radius:12px;resize:vertical;min-width:0;flex:1;padding:12px;background:#fff;max-height:150px}.composer .primary{flex:none;padding:10px 16px;box-shadow:none;border-radius:12px}.chat-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.chat-actions button{font-size:10px;min-height:38px;padding:8px 10px;border:0;text-decoration:underline;text-underline-offset:3px}.chat-actions button[hidden]{display:none}#chat-help{margin:8px 0 0;font-size:10px}.speech{max-width:70%;width:420px;font:15px/1.55 Georgia,serif;max-height:150px;overflow:auto;text-align:center;top:66px;transform:translateX(-50%);border-radius:22px 22px 22px 5px}.stage{position:sticky;top:0;height:calc(100dvh - 94px);min-height:800px}.caption h1{font-size:clamp(32px,3.8vw,53px)}
@media(max-width:900px){.stage{position:relative;height:570px;min-height:570px}.speech{top:50px;font-size:12px;padding:10px 15px;max-width:87%;max-height:95px}.conversation-heading h2{font-size:25px}.conversation-heading #connection{max-width:105px;font-size:9px}.expression-bar{font-size:10px}.conversation{padding-bottom:20px}.composer .primary{padding:10px 13px}#chat-log{max-height:200px}.chat-actions button{min-height:44px}.quick-prompts button{min-height:44px}}
