/* Ivory keycaps on a warm molded case, placed on the desk before the drive. */
.ivory-stage{width:min(174cqw,124cqh);translate:0 -2%}
.studio-keyboard{position:absolute;left:17%;top:95%;width:66%;height:18%;z-index:6;margin:0;padding:2.4% 2% 1.6%;border:1px solid #9c8968;border-top:2px solid #f0dfbc;border-bottom:5px solid #79694f;border-radius:6px 6px 9px 9px;background:repeating-linear-gradient(93deg,#fff1 0 1px,transparent 1px 3px),linear-gradient(125deg,#e0cfac,#c2ae88 55%,#ae9873);box-shadow:inset 0 2px 3px #fff9,inset 0 -3px 4px #715d3b66,0 10px 10px #17140877;transform:perspective(900px) rotateX(24deg);transform-origin:center top;cursor:pointer;isolation:isolate}
.studio-keyboard:after{content:'';position:absolute;left:3%;right:3%;height:5px;bottom:-9px;background:#1c211a;border-radius:0 0 6px 6px;z-index:-1;box-shadow:0 6px 9px #0006}
.keyboard-nameplate{position:absolute;left:4%;right:4%;top:4%;display:flex;align-items:center;justify-content:space-between;color:#6f6048;font:400 .48cqw/1 'IBM Plex Mono',monospace;letter-spacing:.15em;white-space:nowrap;text-shadow:0 1px #f2e3bf77}
.keyboard-nameplate i{width:.45cqw;height:.22cqw;background:#8ded74;border-radius:1px;box-shadow:0 0 4px #8ded7477}
.keyboard-deck{display:flex;flex-direction:column;height:100%;gap:3%;padding:.5%;border:1px solid #9d896855;border-radius:3px;background:#63564066;box-shadow:inset 0 2px 3px #493c25aa;pointer-events:none}
.keyboard-row{display:flex;gap:.65%;min-height:0;flex:1}
.keyboard-key{display:flex;align-items:center;justify-content:center;min-width:0;position:relative;padding:0 1%;border:1px solid #ad9c7e;border-top-color:#f7ebcc;border-radius:2px;background:linear-gradient(155deg,#f0e4c7,#dbcbab 70%,#b9a682);box-shadow:inset 0 1px 1px #fff9,0 2px 0 #827052,0 3px 2px #332b22aa;color:#3f4438;font:500 .66cqw/1 Arial,sans-serif;text-shadow:0 1px #fff4;transition:transform .035s,box-shadow .035s,background .035s}
.keyboard-row:first-child{flex:.65;margin-bottom:1%}
.keyboard-row:first-child .keyboard-key{background:linear-gradient(#c7baa0,#b3a283);font-size:.5cqw}
.keyboard-key.is-pressing{transform:translateY(22%);background:linear-gradient(#c7d5ad,#b8c79d);box-shadow:inset 0 2px 3px #515b3d66,0 1px 0 #756347}
.studio-keyboard:focus-visible{outline:2px solid #8bff9c;outline-offset:6px}
@media(max-width:900px){.ivory-stage{width:min(174cqw,124cqh)}}
@media(max-width:560px){.ivory-stage{width:min(162cqw,124cqh)}.keyboard-nameplate{font-size:.55cqw}.keyboard-key{font-size:.72cqw}}
@media(prefers-reduced-motion:reduce){.keyboard-key{transition:none}.keyboard-key.is-pressing{transform:none}}

/* The original chosen keyboard is clipped to its silhouette; the key overlays animate without redrawing it. */
.studio-keyboard{left:10%;top:87.5%;width:80%;height:auto;aspect-ratio:2048/684;padding:0;border:0;border-radius:0;background:none;box-shadow:none;transform:none;overflow:visible}
.studio-keyboard:before{content:"";position:absolute;inset:0;background:url("assets/hardware/orange-keyboard.webp") center/100% 100% no-repeat;clip-path:polygon(15% 18.4%,84% 18.4%,87% 19.5%,88.5% 22%,90.6% 73%,90.5% 78%,89.5% 82.5%,87% 84%,12% 84%,9.8% 82%,9% 79%,9% 75%,12.4% 23%,13.4% 20%);pointer-events:none}
.studio-keyboard:after{display:none}
.keyboard-nameplate{display:none}
.keyboard-deck{position:absolute;left:13.1%;right:13.1%;top:24.5%;height:49%;padding:0;gap:1%;border:0;background:none;box-shadow:none}
.keyboard-row{gap:.65%}
.keyboard-key,.keyboard-row:first-child .keyboard-key{color:transparent;text-shadow:none;border:0;border-radius:3px;background:transparent;box-shadow:none;padding:0;transition:background .035s,transform .035s}
.keyboard-key.is-pressing{background:#44331d55;box-shadow:inset 0 2px 4px #23190977;transform:translateY(12%)}
