.filters,.choices,.demo-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 26px}
.filters{margin:0 0 32px;gap:6px clamp(16px,2.1vw,38px)}
.filters button,.choices button:not(.btn){position:relative;color:#decbd7;padding:10px 0;font-size:1rem}
.filters button:after,.choices button[aria-pressed]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:2px;background:#efaa78;transform:scaleX(0);transition:transform calc(.32s * var(--studio-transition,1))}
.filters [aria-pressed=true]:after,.filters button:is(.touch-lit,:hover:where(html:not(.touch-input) *)):after,.choices [aria-pressed=true]:after{transform:scaleX(1)}
.filters button[aria-pressed=true],.filters button:is(.touch-lit,:hover:where(html:not(.touch-input) *)),.choices button[aria-pressed=true]{color:#ffb884}
#list .svc,#projects .case{animation:appear calc(.38s * var(--studio-motion,1)) ease-out both}
@keyframes appear{from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
#projects{background:none;padding:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
#projects article{padding:0;border:1px solid #e2a98042;border-radius:18px;background:linear-gradient(135deg,#321d36,#23142b);overflow:hidden;transition:border-color calc(.35s * var(--studio-transition,1)),box-shadow calc(.35s * var(--studio-transition,1))}
#projects article:is(:is(.touch-lit,:hover:where(html:not(.touch-input) *)),:focus-within){border-color:#edab7f9e;box-shadow:0 12px 32px #0d061655,0 0 22px #e3905d12}
.open-case{display:flex;flex-direction:column;align-items:start;padding:clamp(18px,2.2vw,34px);color:inherit;text-align:left;width:100%;height:100%;gap:14px}
.open-case:is(.touch-lit,:hover:where(html:not(.touch-input) *)){color:inherit}.open-case:focus-visible{outline-offset:-5px}
.artwork{display:flex;width:100%;aspect-ratio:1.86;overflow:hidden;isolation:isolate;border-radius:10px;position:relative;flex-direction:column;justify-content:space-evenly;padding:4% 7%;font-size:clamp(13px,1.13vw,18px);box-shadow:inset 0 0 0 1px #fff1;transition:transform calc(.45s * var(--studio-transition,1));pointer-events:none}
.case:is(.touch-lit,:hover:where(html:not(.touch-input) *)) .artwork{transform:perspective(800px) rotateY(var(--tilt,0deg)) scale(1.025)}
.artwork strong{font-size:clamp(26px,2.75vw,48px);font-weight:500;line-height:1.1;letter-spacing:-.04em}
.artwork b,.meta{font:500 .86rem/1.4 "Segoe UI",sans-serif;letter-spacing:.07em;text-transform:uppercase}
.meta,.try,.related-item strong{color:#f8ae7a}.open-case .meta{margin-top:10px}
.case-title{font:normal clamp(28px,2.5vw,44px)/1.12 Georgia,serif;letter-spacing:-.025em}
.summary{color:#e7d6e0;font-size:1rem;margin-bottom:6px}.try{margin-top:auto;border-bottom:1px solid #cc8b68;padding-bottom:3px}
.art1{background:radial-gradient(ellipse at top right,#357468,transparent 73%),#102d31;color:#c6f8e0}
.bars{display:flex;align-items:flex-end;height:40%;gap:3%;border-bottom:1px solid #b7f5e466;background:repeating-linear-gradient(#9eeacf25 0 1px,transparent 1px 33%)}
.bars i{flex:1;background:linear-gradient(#99e6bf,#439e90);border-radius:3px 3px 0 0;transform-origin:bottom}
.case:is(.touch-lit,:hover:where(html:not(.touch-input) *)) .bars i:nth-child(odd){animation:grow calc(2s * var(--studio-motion,1)) ease-in-out infinite}
.art2,.terminal{background:repeating-linear-gradient(0deg,#748dae15 0 1px,transparent 1px 28px),repeating-linear-gradient(90deg,#748dae15 0 1px,transparent 1px 34px),#101f31;color:#bfdeed}
.art2 svg,.terminal svg{display:block;width:100%;height:auto;max-height:80%}
.art0{background:radial-gradient(circle at 80% 40%,#f6c0c5,transparent 68%),#fff1eb;color:#752848;align-items:center;gap:3px}
.person{display:grid;place-items:center;border-radius:50%;aspect-ratio:1;width:17%;background:#9a4167;color:#fff4ee;font-family:Georgia,serif}
.badge{padding:3px 14px;border-radius:36px;background:#fff9;font-size:.84rem}
.art3{background:linear-gradient(120deg,#122e3f,#245360);color:#a9f3e7}
.matrix{display:grid;grid-template-columns:repeat(13,1fr);gap:5px;height:38%}.matrix i{background:#6dd5bba8;border-radius:2px}.matrix .mismatch{background:#ffb97b}
.art4,.art5{padding:0}.artwork img{width:100%;height:100%;position:absolute;object-fit:cover;inset:0}
.art5{background:#f6d7b7}.art5 img{object-fit:contain}
.related{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0 28px}
.related-item{display:flex;align-items:center;gap:14px;text-align:left;padding:9px 14px 9px 9px;background:#170e2180;border:1px solid #edac8038;border-radius:10px;font-size:1rem;max-width:100%}
.related-item:is(.touch-lit,:hover:where(html:not(.touch-input) *)){color:#ffca9e;border-color:#edac8099}
.related-item strong{display:block;font-size:.875rem;font-weight:400}
.related-item .artwork{width:90px;height:60px;flex:none;font-size:9px;padding:5px}
.related-item .artwork b,.related-item .badge{display:none}.related-item .artwork strong{font-size:11px;color:inherit}.related-item .person{width:24px}.related-item .matrix{gap:1px}.related-item .artwork svg{width:100%}
.demo{background:radial-gradient(ellipse at 92% 0%,#492842,transparent 65%),#24142e;color:#fff0d8;border:1px solid #bd826b99;border-radius:18px;padding:clamp(22px,4vw,52px);width:min(820px,94vw);max-height:90dvh;overscroll-behavior:contain}
.demo::backdrop{background:#10081bcb;backdrop-filter:blur(6px)}body:has(.demo[open]){overflow:hidden}
.demo[open]{animation:appear calc(.3s * var(--studio-motion,1)) ease-out}.demo h2{font-size:clamp(32px,4vw,52px);margin:18px 0}.demo .meta{padding-right:40px}.dismiss{position:absolute;right:15px;top:10px;font-size:30px;width:44px;height:44px}
.playground{padding:clamp(16px,2.1vw,32px);margin:24px 0;border:1px solid #fff2;background:#120c1e80;border-radius:12px}
.playground input{accent-color:#e9a272;padding:0}.playground input[type=checkbox]{width:auto}.playground label:has([type=checkbox]){display:flex;align-items:center}
.playground meter{display:block;width:100%;height:22px;margin:15px 0}.playground .btn:disabled{opacity:.5;cursor:default}
.demo-actions,.playground:has(.slide) .choices{justify-content:space-between}
.playground table{width:100%;border-collapse:collapse;text-align:left;margin-top:18px}.playground td,.playground th{padding:8px 4px;border-bottom:1px solid #fff2}.diff{color:#ffae76}
.slide{width:100%;max-height:45vh;object-fit:contain;display:block}.terminal{margin:12px 0;padding:10px}.terminal p{margin:0;font-size:1rem}.choices{margin-top:12px}
@media(max-width:760px){#projects{grid-template-columns:100%;gap:22px}.filters{gap:3px 16px;margin-bottom:24px}.filters button{font-size:.93rem;padding:8px 0}.artwork{max-height:290px}.related-item{width:100%;font-size:15px;gap:10px}.related-item .artwork{width:68px;height:48px}.demo-actions .btn{padding:.72em 1em;font-size:1rem}.demo .meta{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){#list .svc,#projects .case,.demo[open],.case:is(.touch-lit,:hover:where(html:not(.touch-input) *)) .bars i:nth-child(odd){animation:none}.case:is(.touch-lit,:hover:where(html:not(.touch-input) *)) .artwork{transform:none}.filters button:after{transition:none}}
