.robot-gallery{margin:0 0 clamp(40px,7vw,88px);border:1px solid #cecece;background:#f1f1f1;color:#222222;border-radius:20px;overflow:hidden}
.robot-gallery header{height:auto;display:flex;flex-wrap:wrap;justify-content:space-between;padding:22px clamp(20px,4vw,48px);gap:16px;border-bottom:1px solid #cecece}
.robot-gallery h2{font-size:clamp(26px,4vw,45px);font-weight:550;line-height:1.1;letter-spacing:-.05em;margin:6px 0}
.robot-gallery button{min-height:44px;background:white;color:#222222}
.robot-gallery [aria-pressed=true]{background:#222222;color:white}
.robot-stage{position:relative;display:grid;place-items:center;touch-action:pan-y;cursor:grab;user-select:none;background-image:radial-gradient(#c5c5c5 1px,transparent 1px);background-size:16px 16px}
.robot-stage:active{cursor:grabbing}
.robot-sprite{display:block;width:min(100%,580px);aspect-ratio:540/420;background-size:contain;background-repeat:no-repeat;background-position:center;background-image:url(arena-ev3-360.webp)}
.robot-stage[data-model=spike] .robot-sprite{background-image:url(arena-spike-360.webp)}
.robot-gallery .robot-controls{padding:12px clamp(16px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #cecece}
.robot-controls output{font:600 13px monospace;padding:0 8px}

.hero{padding-top:24px}
.hero figure{margin:0 0 32px;border-radius:16px;overflow:hidden;background:#222}
.hero video{display:block;width:100%;aspect-ratio:16/9;max-height:70vh;object-fit:contain}
@media(max-width:720px){.hero video{aspect-ratio:9/16;max-height:none}}

.robot-stage[data-model=matrix] .robot-sprite{background-image:url(arena-matrix-360.webp)}
.hero p,.chapter-copy p{font-size:clamp(17px,2vw,21px);line-height:1.55;max-width:54ch;margin:16px 0 26px}
.chapter{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,5fr);align-items:center;background:#fafafa;margin-bottom:24px}
.chapter-copy{padding:clamp(24px,5vw,72px)}
.chapter-copy h2{margin-top:14px}
.chapter .robot-stage{background-color:#ededeb}
.chapter .robot-controls{background:#fff}
@media(max-width:720px){.chapter{grid-template-columns:1fr}.chapter-copy p{margin-bottom:0}}
.chapter .robot-stage{aspect-ratio:540/420}
.robot-stage canvas{width:100%;height:100%;display:block;touch-action:none}
.camera-tools:not([hidden]){display:flex;gap:6px}
#robot-lab .chapter{width:100vw;max-width:100vw;margin:0 calc(50% - 50vw);border:0;border-top:1px solid #bdbdbd;border-radius:0;padding:clamp(38px,7vw,98px) max(5vw,calc((100vw - 1120px)/2));box-sizing:border-box;column-gap:4vw;background:#f5f5f2}
#robot-lab .chapter:nth-child(2){background:#e8eeee}
#robot-lab .chapter:nth-child(3){background:#efede9}
.chapter .chapter-copy{padding:0}
.chapter-copy h2{font-size:clamp(50px,8vw,108px);letter-spacing:-.07em}
.chapter-copy h3,.studio-editor h3{margin:12px 0;font-size:clamp(22px,3vw,40px);letter-spacing:-.04em}
.studio-editor{grid-column:1/-1;margin-top:clamp(24px,5vw,64px);border-top:1px solid #aaa;padding-top:20px;min-width:0}
.studio-editor iframe{display:block;width:100%;height:clamp(460px,68vh,760px);border:1px solid #bbb;background:white;box-sizing:border-box}
