/* Image-led material selection replaces the legacy 3D workspace. */
.studio-page{padding:128px max(24px,4vw) 88px;background:#f5f4f1;color:#111}
.studio-heading{max-width:1560px;margin:0 auto 32px;align-items:end}
.studio-heading h1{font-size:clamp(2rem,3.4vw,3.5rem);line-height:1.25;font-weight:500}
.studio-heading p:not(.eyebrow){max-width:52ch;margin:14px 0 0;color:#454545;font-size:1rem;line-height:1.75}
.studio-heading>a{color:#111;text-decoration:underline;text-underline-offset:5px}
.studio-layout{max-width:1560px;grid-template-columns:minmax(0,1fr) minmax(340px,390px);gap:0;border:1px solid #c9c7c1;background:#fff}
.studio-stage{background:#191919;color:#fff;display:flex;flex-direction:column;min-width:0}
.studio-scenes{position:static;z-index:auto;display:flex;gap:0;background:#191919;border-radius:0;padding:17px 22px;border-bottom:1px solid #4a4a4a}
.studio-page .studio-scenes button{flex:1;min-height:44px;white-space:nowrap;min-width:0;border:0;border-bottom:2px solid transparent;border-radius:0;padding:10px 8px;background:transparent;color:#e6e6e6;font-size:.9rem}
.studio-page .studio-scenes button:hover{background:#303030;color:#fff}
.studio-page .studio-scenes button[aria-pressed=true]{background:transparent;color:#ffb000;box-shadow:none;border-bottom-color:#ffb000}
.studio-preview{display:flex;flex:1;flex-direction:column;min-height:0;margin:0}
.studio-preview__media{min-height:520px;height:min(67vw,730px);max-height:760px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#252525}
.studio-preview__media img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}
.studio-preview__media canvas{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}
.studio-preview__media.is-showroom-floor{height:auto;min-height:0;aspect-ratio:1672 / 941}
.studio-preview__caption{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;padding:20px 28px 12px}
.studio-preview__caption span:first-child{color:#ffb000;font-size:.8rem;letter-spacing:.08em}
.studio-preview__caption strong{font-size:1.15rem;font-weight:500}
.studio-preview__caption span:last-child{margin-left:auto;color:#ccc;font-size:.75rem}
.studio-image-note{padding:0 28px 22px;margin:0;color:#c9c9c9;font-size:.75rem;line-height:1.7}
.studio-panel{display:flex;flex-direction:column;padding:28px;min-width:0}
.studio-panel__intro{border-bottom:1px solid #d7d4ce;padding-bottom:19px;margin-bottom:12px}
.studio-panel__intro h2{font-size:1.8rem;font-weight:500;margin:6px 0}
.studio-panel__intro p:last-child{font-size:.83rem;color:#4b4b4b;line-height:1.6;margin:0}
.studio-panel label{font-size:.8rem;font-weight:600;margin-top:15px}
.studio-panel input,.studio-panel select{width:100%;min-height:46px;border:1px solid #777;background:#fff;color:#111;border-radius:0;padding:9px 12px;font:inherit;font-size:.9rem}
#studio-status{min-height:0;margin:15px 0 9px;font-size:.78rem;color:#454545}
.studio-materials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:9px;max-height:455px;overflow:auto;padding:2px 4px 8px 2px;align-content:start}
.studio-page .studio-swatch{display:block;text-align:left;min-width:0;min-height:136px;padding:5px;border:1px solid #d3d0ca;background:#fff;border-radius:0}
.studio-page .studio-swatch:hover{background:#f5f2eb}
.studio-page .studio-swatch[aria-pressed=true]{background:#fff;border:2px solid #111;padding:4px;box-shadow:0 0 0 2px #ffb000}
.studio-swatch img,.studio-materials .studio-swatch img{display:block;width:100%;height:90px;object-fit:cover;background:#eee;margin:0 0 7px}
.studio-swatch span{font-size:.67rem;color:#555}
.studio-swatch strong{font-size:.76rem;line-height:1.35;color:#111;font-weight:600;min-height:2.7em}
.studio-selection{display:flex;flex-direction:column;gap:4px;border-top:1px solid #d7d4ce;margin-top:18px;padding:18px 0}
.studio-selection .eyebrow{margin:0}
.studio-selection strong{font-size:1.08rem}
.studio-selection a{font-size:.83rem;color:#111;text-decoration:underline;text-underline-offset:4px;margin-top:3px}
.studio-cta{margin-top:auto;border:1px solid #111;font-weight:600}
.studio-noscript{max-width:1560px;margin:24px auto}
.studio-layout template{display:none}
.studio-page :focus-visible{outline:3px solid #ffb000;outline-offset:3px;box-shadow:0 0 0 5px #111}
@media(max-width:1000px){.studio-layout{grid-template-columns:minmax(0,1fr) 330px}.studio-panel{padding:20px}.studio-preview__media{height:610px;min-height:420px}.studio-materials{grid-template-columns:repeat(2,minmax(0,1fr));max-height:395px}}
@media(max-width:760px){.studio-page{padding:104px 16px 56px}.studio-heading{display:block}.studio-heading>a{display:inline-block;margin-top:15px}.studio-layout{display:flex;flex-direction:column}.studio-stage{position:static;top:auto;z-index:auto}.studio-scenes{padding:8px;justify-content:space-around}.studio-page .studio-scenes button{flex:1;padding:11px 5px}.studio-preview__media{height:440px;min-height:0}.studio-preview__caption{padding:16px 18px 8px;gap:8px}.studio-preview__caption span:last-child{margin-left:0;width:100%}.studio-image-note{padding:0 18px 16px}.studio-panel{padding:20px}.studio-materials{grid-template-columns:repeat(3,minmax(0,1fr));max-height:350px}}
@media(max-width:420px){.studio-preview__media{height:360px}.studio-materials{grid-template-columns:repeat(2,minmax(0,1fr));max-height:340px}.studio-page .studio-scenes button{font-size:.8rem}.studio-heading h1{font-size:1.9rem}}
@media(prefers-reduced-motion:reduce){.studio-page *{transition:none!important;animation:none!important}}

/* Keep the scene visible while browsing swatches on a phone. */
.studio-page > .studio-image-note{max-width:1560px;margin:12px auto 0;padding:0;color:#454545}
@media(max-width:760px){
  .studio-stage{position:sticky;top:var(--header-height,72px);z-index:4;align-self:stretch;flex:none;box-shadow:0 8px 16px #00000018}
  .studio-scenes{padding:4px 8px}
  .studio-page .studio-scenes button{padding:8px 4px;min-height:44px}
  .studio-preview{flex:none}
  .studio-preview__media,.studio-preview__media.is-showroom-floor{height:30vh;height:30svh;min-height:120px;max-height:260px;aspect-ratio:auto}
  .studio-preview__caption{padding:9px 12px;gap:4px 10px;align-items:center}
  .studio-preview__caption strong{font-size:.9rem;line-height:1.4}
  .studio-preview__caption span:first-child{font-size:.72rem}
  .studio-preview__caption span:last-child{display:none}
  .studio-panel{padding:16px}
  .studio-panel__intro{padding-bottom:10px;margin-bottom:0}
  .studio-panel__intro .eyebrow{display:none}
  .studio-panel__intro h2{font-size:1.25rem}
  .studio-panel input,.studio-panel select{font-size:1rem}
  .studio-materials{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible;gap:8px}
  .studio-page .studio-swatch{min-height:118px}
  .studio-swatch img,.studio-materials .studio-swatch img{height:68px}
  .studio-panel :is(input,select,button,a){scroll-margin-top:calc(var(--header-height,72px) + min(30svh,260px) + 105px)}
}
@media(max-width:760px) and (max-height:500px) and (orientation:landscape){
  .studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,.85fr);align-items:start}
  .studio-stage{align-self:start}
  .studio-preview__media,.studio-preview__media.is-showroom-floor{height:calc(100svh - var(--header-height,72px) - 115px);min-height:90px;max-height:none}
  .studio-panel :is(input,select,button,a){scroll-margin-top:calc(var(--header-height,72px) + 12px)}
}
