.configuration-page{max-width:1500px;padding-top:26px;padding-bottom:64px}
.machine-configurator{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,1fr);gap:40px;align-items:center}
.configuration-page .machine-stage{position:relative;min-width:0}
.configuration-page .machine-stage model-viewer{display:block;width:100%;height:min(75vh,820px);min-height:560px;--progress-bar-color:#c8102e;--poster-color:transparent;outline:none}
.configuration-page .machine-stage model-viewer:focus-visible{outline:2px solid var(--text);outline-offset:-6px}
.configuration-page .machine-stage-message{position:absolute;top:43%;left:10%;width:80%;text-align:center;color:var(--text-muted)}
.machine-options{padding:30px 0;min-width:0}
.machine-options h1{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:clamp(38px,4vw,62px);line-height:1.04;letter-spacing:-.035em;margin:0 0 20px}
.machine-intro{max-width:38ch;color:var(--text-muted);line-height:1.65;margin-bottom:28px}
.machine-options fieldset{border:0;border-top:1px solid var(--line-strong);padding:18px 0 20px;margin:0;min-width:0}
.machine-options legend{float:left;width:100%;font-weight:700;font-size:13px;margin-bottom:13px}
.machine-options legend span{font-weight:500;color:var(--text-muted);margin-left:10px}
.machine-options fieldset>div{clear:both}
/* Choice controls: flat tonal tiles (DESIGN.md: surface steps and hairlines,
   no glow). Selected = solid text-colour ring plus a check badge. */
.machine-options button{position:relative;font:inherit;cursor:pointer;color:var(--text-muted);border:1px solid var(--line);border-radius:8px;background:var(--surface);min-height:44px;font-size:12px;font-weight:600;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}
.machine-options button:hover{background:var(--surface-2);border-color:var(--line-strong);color:var(--text)}
.machine-options button:active{transform:scale(.97)}
.machine-options button[aria-pressed=true]{color:var(--text);border-color:var(--text);box-shadow:inset 0 0 0 1px var(--text);background:var(--surface-2)}
.machine-options button:focus-visible{outline:2px solid var(--text);outline-offset:3px}
.machine-designs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.machine-designs button{display:flex;flex-direction:column;align-items:stretch;padding:6px 6px 10px;text-align:center}
.machine-designs img{display:block;height:118px;width:100%;object-fit:cover;object-position:center 30%;margin-bottom:9px;background:var(--bg-deep);border-radius:5px;transition:transform .3s ease}
.machine-designs button:hover img{transform:scale(1.04)}
.machine-designs button{overflow:hidden}
.machine-designs button[aria-pressed=true]::after{content:"";position:absolute;top:10px;right:10px;width:20px;height:20px;border-radius:50%;background:var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%2312141C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
.machine-swatches{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px}
.machine-swatches button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:14px 8px 12px}
.machine-swatches span{display:block;width:30px;height:30px;flex-shrink:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);transition:transform .18s ease}
.machine-swatches button:hover span{transform:scale(1.08)}
.machine-swatches button[aria-pressed=true] span{outline:2px solid var(--text);outline-offset:3px}
:root[data-theme=light] .machine-swatches span{box-shadow:inset 0 0 0 1px rgba(15,18,30,.2)}
:root[data-theme=light] .machine-designs button[aria-pressed=true]::after{filter:invert(1)}
@media(prefers-reduced-motion:reduce){.machine-options button,.machine-designs img,.machine-swatches span{transition:none}.machine-designs button:hover img,.machine-swatches button:hover span{transform:none}}
.machine-view-hint{text-align:center;font-size:12px;color:var(--text-muted);margin:12px 0}
.machine-status,.machine-note{font-size:12px;line-height:1.65;color:var(--text-muted)}
.machine-status{min-height:40px;margin:0 0 14px}
.machine-note{margin:14px 0 0;max-width:55ch}
.machine-options .machine-retry{padding:8px 16px;margin-bottom:12px}
@media(max-width:900px){.machine-configurator{gap:20px;grid-template-columns:minmax(0,1fr) minmax(330px,1fr)}.machine-options h1{font-size:42px}.configuration-page .machine-stage model-viewer{min-height:500px;height:68vh}}
@media(max-width:700px){.configuration-page{padding-top:10px;padding-bottom:32px}.machine-configurator{grid-template-columns:1fr;gap:0}.configuration-page .machine-stage model-viewer{height:58vh;min-height:330px;max-height:590px}.machine-options{padding:28px 0 0}.machine-options h1{font-size:42px}.machine-designs img{height:84px}.machine-designs{gap:6px}.machine-designs button{padding:4px 4px 8px}.machine-designs button[aria-pressed=true]::after{top:7px;right:7px;width:16px;height:16px}.machine-swatches{gap:6px}.machine-designs button{font-size:11px}.machine-intro{max-width:100%}}
/* Owner's call (27 Oct 2026): nothing under the configurator on this page. */
body:has(.configuration-page) .site-footer{display:none}

/* Keep the first frame styled, then introduce controls and the finished model. */
.configuration-page .machine-options > *{animation:configuration-enter .55s cubic-bezier(.16,1,.3,1) backwards}
.configuration-page .machine-options fieldset{animation-delay:70ms}
.configuration-page .machine-options fieldset:nth-of-type(2){animation-delay:110ms}
.configuration-page .machine-options fieldset:nth-of-type(3){animation-delay:150ms}
.configuration-page .machine-stage model-viewer{opacity:0;transform:translateY(18px);pointer-events:none;transition:opacity .6s ease,transform .7s cubic-bezier(.16,1,.3,1)}
.configuration-page .machine-stage model-viewer.is-ready{opacity:1;transform:none;pointer-events:auto}
@keyframes configuration-enter{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.configuration-page .machine-options > *{animation:none}.configuration-page .machine-stage model-viewer{transition:none;transform:none}}
