/* 3D kitchen: full-width stage with a configurator dock of sample chips. */

.vis { position: relative; background: #ECE9E4; }
.vis__stage { position: relative; height: clamp(600px, calc(100svh - var(--top) - var(--hdr)), 980px); overflow: hidden; background: #ECE9E4; }
.vis--page .vis__stage { height: clamp(620px, calc(100svh - var(--top) - var(--hdr)), 1000px); }
.vis__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s var(--ease); outline: 0; }
.vis.is-ready .vis__canvas { opacity: 1; }
.vis__poster { position: absolute; inset: 0; transition: opacity 1.1s var(--ease); background: linear-gradient(180deg, #F2F0EC 0 60%, #D9CCBA 60% 100%); }
.vis__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.vis.is-ready .vis__poster { opacity: 0; pointer-events: none; }

/* Headline: top left, over the open wall. */
.vis__intro { position: absolute; left: 0; top: 0; z-index: 2; padding: clamp(1.6rem, 1rem + 3vw, 4rem) var(--gutter); max-width: min(720px, 94%); pointer-events: none; }
.vis__intro::before { content: ""; position: absolute; inset: -30% -25% -50% -35%; background: radial-gradient(closest-side, rgb(240 238 234 / .88), rgb(240 238 234 / .55) 60%, rgb(240 238 234 / 0)); z-index: -1; }
.vis__title { font: 300 var(--fs-hero)/.98 var(--f-display); letter-spacing: -.03em; color: var(--ink); margin: 0 0 .4em; }
.vis__title span { display: block; color: var(--ink); font-weight: 400; }
.vis__sub { font-size: var(--fs-lead); max-width: 34ch; color: var(--ink-2); margin: 0; }
@media (min-width: 1101px) { .vis__intro { max-width: 46%; } }

/* Camera and touch controls: top right. */
.vis__views { position: absolute; right: var(--gutter); top: clamp(1.4rem, 1rem + 2vw, 2.6rem); z-index: 3; display: flex; background: rgb(255 255 255 / .9); backdrop-filter: blur(6px); padding: 3px; }
.vis__views button { min-height: 38px; padding: 0 .9rem; font: 400 .88rem var(--f-display); color: var(--ink-2); }
.vis__views button:hover { color: var(--ink); background: var(--paper); }
.vis__views button.is-on { background: var(--ink); color: #fff; }
.vis__explore { position: absolute; right: var(--gutter); top: calc(clamp(1.4rem, 1rem + 2vw, 2.6rem) + 54px); z-index: 3; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .95rem; background: rgb(255 255 255 / .92); font: 500 .86rem var(--f-display); color: var(--ink); }
.vis__explore[aria-pressed="true"] { background: var(--ink); color: #fff; }

.vis__loading { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: grid; justify-items: center; gap: .8rem; font: 400 .9rem var(--f-display); color: var(--ink-2); background: rgb(255 255 255 / .86); padding: 1.1rem 1.5rem; }
.bars--load { width: 64px; }
.bars--load i { animation: load 1.5s var(--ease-in-out) infinite; transform-origin: left; }
.bars--load i:nth-child(2) { animation-delay: .15s; }
.bars--load i:nth-child(3) { animation-delay: .3s; }
@keyframes load { 0%, 100% { transform: scaleX(.15); } 50% { transform: scaleX(1); } }
.vis__fallback { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; z-index: 3; background: #fff; padding: 1rem 1.2rem; border-left: 3px solid var(--erb-blue); margin: 0; max-width: 520px; }

/* The dock: floats over the foot of the kitchen on wide screens, sits below it on phones. */
.vis__dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 var(--gutter) clamp(1rem, 2vw, 1.8rem); pointer-events: none; }
.vis__dock-in { max-width: var(--max); margin: 0 auto; background: rgb(255 255 255 / .96); backdrop-filter: blur(12px); box-shadow: 0 30px 60px -30px rgb(18 26 35 / .45), 0 0 0 1px rgb(18 26 35 / .05); pointer-events: auto; }
@media (max-width: 1100px) {
	.vis__stage { height: auto; aspect-ratio: 4 / 3.2; max-height: 72svh; min-height: 360px; }
	.vis__dock { position: static; padding: 0; }
	.vis__dock-in { box-shadow: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) { .vis__stage { aspect-ratio: 4 / 4.4; } }

.vis__bar { display: flex; align-items: stretch; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: 0 1.1rem; }
.vis__zones { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.vis__zones::-webkit-scrollbar { display: none; }
.vis__zone { display: inline-flex; align-items: center; gap: .55rem; min-height: 54px; padding: 0 .85rem; font: 400 .92rem var(--f-display); color: var(--steel); border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s, border-color .2s; }
.vis__zone:hover { color: var(--ink); }
.vis__zone.is-on { color: var(--ink); border-bottom-color: var(--erb-red); }
.vis__zone-sw { width: 18px; height: 22px; background: var(--stone) center / cover; box-shadow: inset 0 0 0 1px rgb(18 26 35 / .12); flex: none; }
.vis__filters { display: flex; align-items: center; gap: .9rem; }
.vis__tones { display: flex; gap: 0; }
.vis__tones button { min-height: 34px; padding: 0 .7rem; font: 400 .86rem var(--f-display); color: var(--steel); white-space: nowrap; }
.vis__tones button:hover { color: var(--ink); }
.vis__tones button.is-on { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; text-decoration-color: var(--ink); }
.vis__search { display: flex; align-items: center; gap: .45rem; border-bottom: 1px solid var(--line-2); padding: 0 .2rem; }
.vis__search:focus-within { border-color: var(--erb-blue); }
.vis__search .ico { width: 16px; height: 16px; color: var(--steel); }
.vis__search input { border: 0; box-shadow: none !important; min-height: 36px; padding: 0; width: 150px; background: transparent; font-size: .9rem; }
@media (max-width: 1240px) { .vis__tones { display: none; } }
@media (max-width: 700px) { .vis__bar { flex-direction: column; gap: 0; padding: 0; } .vis__filters { padding: .5rem 1rem; border-top: 1px solid var(--line); } .vis__search { flex: 1; } .vis__search input { width: 100%; } }

/* Sample chips. */
.vis__strip { position: relative; }
.vis__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 78px; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 1rem 1.1rem .7rem; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.vis__grid::-webkit-scrollbar { display: none; }
.vis__nudge { position: absolute; top: 0; bottom: 0; z-index: 2; width: 44px; display: grid; place-items: center; color: var(--ink); background: linear-gradient(90deg, rgb(255 255 255 / .98) 55%, rgb(255 255 255 / 0)); transition: opacity .2s; }
.vis__nudge--l { left: 0; }
.vis__nudge--r { right: 0; background: linear-gradient(270deg, rgb(255 255 255 / .98) 55%, rgb(255 255 255 / 0)); }
.vis__nudge:disabled { opacity: 0; pointer-events: none; }
@media (pointer: coarse) { .vis__nudge { display: none; } }
.sw { display: grid; gap: 5px; text-align: left; min-width: 0; scroll-snap-align: start; }
.sw__img { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--avg); overflow: hidden; box-shadow: inset 0 0 0 1px rgb(18 26 35 / .08); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.sw__img img { width: 100%; height: 100%; object-fit: cover; }
.sw__img::after { content: ""; position: absolute; top: 6px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: inset 0 1px 2px rgb(18 26 35 / .35); }
.sw__name { font: 500 .76rem/1.2 var(--f-display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw__range { font: 500 .62rem var(--f-mono); color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw:hover .sw__img { transform: translateY(-4px); box-shadow: 0 12px 18px -12px rgb(18 26 35 / .5), inset 0 0 0 1px rgb(18 26 35 / .08); }
.sw.is-on .sw__img { transform: translateY(-6px); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--ink), 0 14px 20px -12px rgb(18 26 35 / .5); }
.sw:focus-visible { outline: 0; }
.sw:focus-visible .sw__img { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--erb-blue); }
.vis__none { grid-column: 1 / -1; color: var(--steel); margin: .6rem 0; white-space: nowrap; }

/* Chosen decor + actions. */
.vis__pick { display: flex; align-items: center; gap: .9rem; padding: .7rem 1.1rem .8rem; border-top: 1px solid var(--line); }
.vis__pick-img { width: 40px; height: 48px; object-fit: cover; flex: none; }
.vis__pick-txt { min-width: 0; flex: 1; }
.vis__pick-name { font: 500 1rem/1.2 var(--f-display); color: var(--ink); margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis__pick-meta { font: 500 .7rem var(--f-mono); color: var(--steel); margin: .15rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis__pick-btns { display: flex; align-items: center; gap: .9rem; flex: none; }
.vis__link { font: 400 .9rem var(--f-display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .3em; white-space: nowrap; }
.vis__link:hover { text-decoration-color: var(--ink); }
@media (max-width: 900px) {
	.vis__pick { flex-wrap: wrap; }
	.vis__pick-btns { width: 100%; flex-wrap: wrap; gap: .6rem 1rem; }
	.vis__pick-btns .btn--red { order: -1; width: 100%; }
}
@media (max-width: 640px) {
	.vis__title { font-size: clamp(2rem, 1.3rem + 3.6vw, 2.6rem); }
	.vis__sub { display: none; }
	.vis__intro { padding-top: 1.1rem; }
	.vis__intro::before { inset: -20% -20% -45% -20%; }
	.vis__views { top: auto; bottom: .9rem; right: auto; left: var(--gutter); }
	.vis__views button { padding: 0 .65rem; font-size: .84rem; }
	.vis__explore { top: auto; bottom: .9rem; }
	.vis__explore span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.vis.is-empty .vis__dock, .vis.is-empty .vis__views { display: none; }
