:root {
  --bg:#191a19;
  --ink:#f5f4ef;
  --muted:#bebfb7;
  --line:#3b3c38;
}
.mast{background:#151614}
.crumbs{min-height:57px}
.product-grid{grid-template-columns:minmax(0,1.82fr) minmax(310px,.88fr);column-gap:clamp(30px,3.9vw,68px)}
.identity h1{font-family:var(--sans);font-weight:480;letter-spacing:-.045em;font-size:clamp(43px,4.32vw,66px);line-height:1.04;margin:15px 0 7px}
.identity h1 sup{font-size:.22em;top:.43em;margin-right:.02em}
.identity h1 span{white-space:nowrap}
.identity .kind{color:#c9cac3}
.purchase .description{margin-top:20px}
.size-options button{border-radius:7px}
.purchase .buy,.mobile-buy .buy{border-radius:7px}

.gallery{position:relative}
.media-stage{position:relative;width:100%;aspect-ratio:1.66;min-height:300px;background:#242622;border:1px solid #42443e;border-radius:13px 13px 0 0;overflow:hidden;isolation:isolate}
.gallery .hero-photo{position:absolute;inset:0;height:100%;min-height:0;aspect-ratio:auto;border:0;border-radius:0;z-index:0;transition:opacity .22s}
.gallery .hero-photo::after{display:none}
.gallery #hero-img{display:block;width:100%;height:100%;object-fit:contain}
.gallery .hero-photo[data-look=logs]{background:#080808}
.gallery .photo-label:hover{text-decoration:underline}
.gallery .photo-label{left:17px;top:auto;bottom:15px}
.gallery .frame-counter{bottom:19px;right:18px}
.gallery[data-mode="3d"] .photo-label,.gallery[data-mode="3d"] .frame-counter{display:none}
#scene-surface{position:absolute;inset:0;z-index:1;opacity:0;pointer-events:none;transition:opacity .28s ease}
#scene-surface iframe{border:0;width:100%;height:100%;display:block;background:transparent}
#scene-poster{position:absolute;inset:0;display:block;background:#20211e;pointer-events:none}
#scene-poster img{width:100%;height:100%;display:block;object-fit:cover}
.gallery[data-mode=photos] #scene-poster{display:none}
.gallery[data-mode="3d"].scene-ready #scene-surface{opacity:1;pointer-events:auto}
.gallery[data-mode="3d"] #photo-surface{visibility:hidden}
.gallery[data-mode="photos"] :is(#scene-surface,.orbit-hint,.scene-loading,.scene-error){visibility:hidden}
.mode-switch,.stage-expand,.orbit-hint,.scene-loading,.scene-error{position:absolute;z-index:5}
.mode-switch{top:15px;left:15px;display:flex;align-items:center;gap:2px;padding:3px;border-radius:30px;background:rgba(20,21,20,.78);border:1px solid #ffffff36;backdrop-filter:blur(10px)}
.mode-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 13px;border-radius:24px;min-height:31px;font-size:.82rem;font-weight:560;white-space:nowrap;color:#f4f4ed}
.mode-switch [aria-pressed=true]{color:#20231d;background:#f5f3e9}
.mode-switch svg{width:15px;height:15px;stroke-width:1.65}
.stage-expand{top:15px;right:15px;width:39px;height:39px;display:grid;place-items:center;color:#efefe9;border:1px solid #ffffff40;border-radius:50%;background:rgba(20,21,20,.75);backdrop-filter:blur(8px)}
.stage-expand:hover{background:#282a26}.stage-expand svg{width:16px;height:16px}
.orbit-hint,.scene-loading{left:16px;bottom:15px;display:inline-flex;align-items:center;gap:7px;min-height:29px;padding:4px 10px;color:#f0f1eb;font-size:.75rem;background:#171816b5;border:1px solid #ffffff2c;border-radius:20px;pointer-events:none}
.orbit-hint svg{width:16px;height:16px}.gallery:not(.scene-ready) .orbit-hint{display:none}
.scene-loading::before{content:"";width:11px;height:11px;border-radius:50%;border:1.5px solid #ffffff5e;border-top-color:#f8cf9d;animation:orion-loading 1s linear infinite}
@keyframes orion-loading{to{transform:rotate(1turn)}}
.scene-error{bottom:13px;left:13px;right:13px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:fit-content;padding:8px 12px;color:#f9f8ef;background:#20211fee;border:1px solid #6d6f64;border-radius:7px;font-size:.8rem}
.scene-error button{padding:3px 2px;text-decoration:underline;text-underline-offset:3px}
.appearance,.gallery .thumbs{padding:0 17px 15px;background:#232421;border:1px solid #42443e;border-top:0;border-radius:0 0 13px 13px}
.appearance{container:studio-controls / inline-size}
.appearance-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:54px}
.appearance-tabs{display:flex;gap:clamp(9px,1.35vw,23px);align-items:stretch;align-self:stretch}
.appearance-tabs button{position:relative;color:#b7b9ae;font-size:.86rem;font-weight:530;white-space:nowrap}
.appearance-tabs button:hover{color:var(--ink)}
.appearance-tabs [aria-selected=true]{color:#fff8ee}
.appearance-tabs [aria-selected=true]::after{content:"";position:absolute;bottom:8px;left:0;right:0;height:2px;border-radius:2px;background:var(--accent)}
.full-showroom{font-size:.77rem;color:#bdbfb5;white-space:nowrap;text-decoration:underline;text-decoration-color:#676a5e;text-underline-offset:3px}
.full-showroom:hover{color:white}
.full-showroom svg{display:none}
.effect-choices{display:grid;gap:8px;grid-template-columns:repeat(6,minmax(0,1fr))}
.effect-choices[data-layout=styles]{grid-template-columns:repeat(4,minmax(0,1fr))}
.effect-choice{position:relative;min-width:0;display:grid;grid-template-rows:auto 1fr;text-align:left;border:1px solid #4c4e45;border-radius:7px;overflow:hidden;background:#292b27;color:#d6d7cf;transition:background .15s,border-color .15s}
.effect-choice:hover{background:#33352f;border-color:#8b8f80}
.effect-choice[aria-pressed=true]{border-color:#eab480;background:#453a2e;color:#fff7eb}
.fire-chip{display:block;width:100%;height:clamp(35px,2.8vw,47px);background-color:#141411;background-image:url(media/flame-palette.webp);background-size:600% 400%;background-repeat:no-repeat}
.effect-name{display:block;align-self:center;padding:5px 7px;font-size:.77rem;line-height:1.3;font-weight:530}
.effect-choice[aria-pressed=true]::after{content:"✓";position:absolute;right:4px;top:4px;display:grid;place-items:center;height:16px;width:16px;background:#f6e5ce;color:#26241d;border-radius:50%;font-size:11px;font-weight:800;line-height:1;box-shadow:0 1px 4px #0008}
.effect-choices[data-layout=lighting]{grid-template-columns:repeat(10,minmax(0,1fr));gap:5px}
.effect-choices[data-layout=lighting] .effect-choice{text-align:center;justify-items:center;padding:5px 2px 2px;border-color:transparent;background:transparent}
.effect-choices[data-layout=lighting] .effect-choice[aria-pressed=true]{border-color:#b4926c;background:#36362e}
.light-chip{width:25px;height:25px;background:var(--chip);border:1px solid #ffffff28;border-radius:50%;box-shadow:inset 0 3px 7px #ffffff2a,inset 0 -4px 7px #0003}
.effect-choices[data-layout=lighting] .effect-choice::after{right:1px;top:0;width:13px;height:13px;font-size:9px}
.effect-choices[data-layout=lighting] .effect-name{font-size:.7rem;padding:4px 0;line-height:1.15}
#lighting-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px;margin-top:10px}
#light-level{display:flex;align-items:center;gap:9px;font-size:.77rem;color:#d0d2c6}
#light-level input{width:clamp(72px,14vw,150px);accent-color:var(--accent);margin:0;min-height:24px}
#light-fade{display:inline-flex;align-items:center;gap:7px;background:#242622;border:1px solid #676a60;color:#efeee6;border-radius:18px;padding:3px 12px;min-height:36px;font:inherit;font-size:.79rem;cursor:pointer}
#light-fade span{font-size:1.4rem;line-height:1;background:linear-gradient(100deg,#ffbd75,#eaa5e8,#85d3ff);background-clip:text;color:transparent}
#light-fade[aria-pressed=true]{background:#efe2d0;color:#30291f;border-color:#efe2d0}
#light-fade[aria-pressed=true] span{color:#7b4739}
#ember-help{margin:5px 0 0;color:var(--muted);font-size:.83rem;line-height:1.45}
.gallery .thumbs{grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding-top:12px;gap:9px}
.gallery .thumbs img{height:clamp(42px,4.25vw,69px);border-radius:4px}
.gallery .thumbs button:is([data-look=front],[data-look=angle]) img{background:white}
.gallery .thumbs button span{border-radius:6px}
.gallery [hidden]{display:none!important}

.studio-expanded{overflow:hidden}
.gallery.is-expanded{position:fixed;inset:0;z-index:100;background:#111210;padding:clamp(8px,1.4vw,22px);display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto;overscroll-behavior:contain}
.is-expanded .media-stage,.is-expanded .appearance,.is-expanded .thumbs{width:min(100%,1500px)}
.is-expanded .media-stage{flex:1;max-height:calc(100dvh - 130px);min-height:150px;aspect-ratio:auto}
.is-expanded .appearance,.is-expanded .thumbs{flex:none}
.is-expanded .fire-chip{height:45px}
.is-expanded .thumbs button span{width:100%;max-width:175px}
.studio-expanded .mobile-buy{display:none!important}
@media(min-width:741px) and (max-width:1060px){
 .product-grid{grid-template-columns:minmax(0,1.48fr) minmax(263px,.95fr);gap:0 24px}
 .media-stage{aspect-ratio:1.22}.identity h1{font-size:clamp(38px,4.6vw,51px)}
 .appearance,.gallery .thumbs{padding-inline:10px}.appearance-tabs{gap:12px}.appearance-tabs button{font-size:.8rem}
 .appearance-head{flex-wrap:wrap;min-height:47px}.full-showroom{font-size:.73rem}.effect-choices{gap:4px}.effect-name{padding:4px;font-size:.73rem}
}
@media(max-width:740px){
 .mast-inner{min-height:55px}.crumbs{display:none}
 .product-grid{grid-template-columns:minmax(0,1fr);gap:0}.identity{padding:18px 0 14px}.identity .maker{font-size:.67rem}
 .identity h1{font-size:clamp(39px,9.3vw,56px);margin:6px 0 2px;line-height:1.05}
 .identity .kind{font-size:.91rem}
 .media-stage{aspect-ratio:1.2;min-height:238px;max-height:485px;border-radius:10px 10px 0 0}
 .mode-switch{top:8px;left:8px}.mode-switch button{min-height:31px;padding:5px 10px;font-size:.77rem}
 .stage-expand{top:8px;right:8px;width:36px;height:36px}
 .orbit-hint,.scene-loading{bottom:8px;left:8px;min-height:24px;font-size:.68rem;padding:3px 7px}
 .gallery .photo-label{bottom:8px;left:8px}.gallery .frame-counter{bottom:13px;right:11px}
 .gallery .hero-photo:is([data-look=front],[data-look=angle]) #hero-img{padding:30px 5px 21px}
 .appearance,.gallery .thumbs{padding-inline:8px;padding-bottom:10px;border-radius:0 0 10px 10px}
 .appearance-head{min-height:44px;flex-wrap:nowrap}.appearance-tabs{gap:clamp(9px,3.6vw,22px)}
 .appearance-tabs button{font-size:.76rem}.appearance-tabs [aria-selected=true]::after{bottom:6px}
 .full-showroom{display:grid;place-items:center;width:28px;min-width:26px;height:32px}
 .full-showroom span{display:none}.full-showroom svg{display:block;width:15px;height:15px}
 .gallery .thumbs{padding-top:6px;gap:4px}.gallery .thumbs img{height:40px}
 .purchase .description{margin-top:16px}.gallery.is-expanded{padding:4px 4px max(4px,env(safe-area-inset-bottom));justify-content:flex-start}
 .is-expanded .media-stage{min-height:145px;max-height:none}.is-expanded .appearance{padding-inline:9px}.is-expanded .fire-chip{height:38px}
}
@media(max-width:359px){.appearance-tabs{gap:8px}.appearance-head{gap:4px}}
@media(prefers-reduced-motion:reduce){.scene-loading::before{animation:none}}

.scene-views{display:flex;gap:4px;align-items:center;border-bottom:1px solid #42443e;padding:10px 0}
.scene-views button,.build-steps button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:6px 12px;border-radius:6px;color:#c8cac1;font-size:.87rem;font-weight:550}
.scene-views button:hover,.build-steps button:hover{color:#fff;background:#353731}
.scene-views button[aria-pressed=true]{color:#fff5e7;background:#423d34}
.scene-views svg{width:17px;height:17px}
.build-steps{display:flex;gap:5px;flex-wrap:wrap;margin:12px 0}
.build-steps button{border:1px solid #57594f;min-height:36px}
.build-steps button[aria-pressed=true]{color:#231f18;background:#e5d8c6;border-color:#e5d8c6}
.framing-dimensions{display:flex;justify-content:space-between;align-items:baseline;gap:5px 14px;flex-wrap:wrap;font-size:.93rem}
.framing-dimensions span{color:var(--muted)}.framing-dimensions strong{font-weight:600}
.framing-guide{display:inline-block;margin-top:5px;color:var(--muted);text-decoration:underline;text-underline-offset:3px;font-size:.83rem}
.gallery:not(.scene-ready):is([data-scene=product],[data-scene=installation]) #scene-poster{visibility:hidden}
@media(max-width:740px){.scene-views{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:6px 0}.scene-views button{padding:4px 1px;gap:4px;min-height:44px;font-size:.875rem}.scene-views svg{width:15px;height:15px}}

@container studio-controls (max-width: 720px) {
  .appearance-head {
    flex-wrap:nowrap; min-height:52px; overflow-x:auto;
    overscroll-behavior-x:contain; scrollbar-width:none;
  }
  .appearance-head::-webkit-scrollbar { display:none }
  .appearance-tabs { flex:none; gap:clamp(9px,3cqi,20px) }
  .appearance-tabs button { flex:none; min-height:44px; font-size:.875rem }
  .full-showroom { display:grid; place-items:center; width:36px; height:44px; flex:none }
  .full-showroom span { display:none }
  .full-showroom svg { display:block; width:17px; height:17px }
  .appearance-tabs button:focus-visible, .effect-choice:focus-visible { outline-offset:-3px }
  .effect-choices, .effect-choices[data-layout=lighting] {
    display:flex; gap:8px; overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x proximity; padding-bottom:5px;
    scrollbar-width:thin; scrollbar-color:#77796c #232421;
  }
  .effect-choice {
    flex:0 0 clamp(106px,37%,164px); scroll-snap-align:start;
    border-radius:8px; text-align:center;
  }
  .effect-choice .fire-chip { height:auto; aspect-ratio:2.4 }
  .effect-choice .effect-name, .effect-choices[data-layout=lighting] .effect-name {
    padding:7px 4px; font-size:.9375rem; line-height:1.25;
  }
  .effect-choices[data-layout=lighting] .effect-choice {
    flex-basis:clamp(80px,26%,108px); padding:8px 0 0;
    background:#292b27; border:1px solid #4c4e45;
  }
  .effect-choices[data-layout=lighting] .effect-choice[aria-pressed=true] {
    border-color:#eab480; background:#453a2e;
  }
  .light-chip { width:32px; height:32px }
  .effect-choice[aria-pressed=true]::after, .effect-choices[data-layout=lighting] .effect-choice::after {
    right:5px; top:5px; width:18px; height:18px; font-size:12px;
  }
}
@container studio-controls (max-width: 305px) {
  .scene-views button { flex-direction:column; gap:2px; white-space:nowrap }
}
