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

.vis { position: relative; background: #ECEFF2; }
.vis__stage { position: relative; height: clamp(600px, calc(100svh - var(--top) - var(--hdr)), 980px); overflow: hidden; background: #ECEFF2; }
.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: the logo tile. Blue, rounded like the logo, the lime swoosh rising along its foot. */
.vis__intro { position: absolute; left: var(--gutter); top: clamp(1.2rem, .8rem + 1.6vw, 2.4rem); z-index: 3; width: min(540px, calc(100% - var(--gutter) * 2)); padding: clamp(1.4rem, 1rem + 1.6vw, 2.4rem) clamp(1.4rem, 1rem + 1.6vw, 2.4rem) clamp(3.2rem, 2.6rem + 2vw, 4.4rem); background: var(--pbc-blue); color: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(12 34 56 / .6); }
.vis__swoosh { position: absolute; left: -12%; right: -30%; bottom: -1px; height: 2.1rem; pointer-events: none; }
.vis__swoosh::before { content: ""; position: absolute; left: 14%; right: 0; top: 0; height: 260%; border-radius: 50% 50% 0 0 / 100% 100% 0 0; background: var(--mark); transform-origin: 50% 0; }
.vis__title { font: 800 clamp(2.3rem, 1.5rem + 2.6vw, 4.1rem)/.95 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; color: #fff; margin: 0 0 .4em; }
.vis__title em { font-style: italic; color: #fff; display: block; font-stretch: 100%; }
.vis--page .vis__title { font-size: var(--fs-h1); }
.vis__sub { font-size: 1.02rem; line-height: 1.55; max-width: 40ch; color: #E3EEF8; margin: 0 0 1.2rem; }
.vis__rooms-h { position: relative; z-index: 1; margin: 0 0 .5rem; font: 600 .74rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #D3E4F4; }
.vis__rooms { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vis__room { display: grid; gap: .3rem; padding: 4px 4px 6px; border-radius: 8px; background: rgb(12 34 56 / .28); color: #fff; text-align: left; transition: background-color .2s, transform .25s var(--ease); }
.vis__room img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 5px; background: #ECEFF2; }
.vis__room span { padding: 0 .3rem; font: 700 .86rem var(--f-display); font-stretch: 106%; }
.vis__room:hover { background: rgb(12 34 56 / .45); transform: translateY(-2px); }
.vis__room.is-on { background: #fff; color: var(--ink); }
.vis__room:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
.vis__room.is-on img { box-shadow: 0 0 0 2px var(--mark); }
@media (max-width: 1100px) {
	.vis__rooms { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
	.vis__rooms::-webkit-scrollbar { display: none; }
	.vis__room { flex: 0 0 132px; scroll-snap-align: start; }
}
@media (min-width: 1101px) { .vis--page .vis__intro { width: min(460px, 40%); } }

/* Camera and touch controls: top right. */
.vis__views { position: absolute; right: var(--gutter); top: clamp(1.2rem, .8rem + 1.6vw, 2.4rem); z-index: 3; display: flex; background: rgb(255 255 255 / .92); backdrop-filter: blur(6px); padding: 3px; border-radius: 999px; }
.vis__views button { border-radius: 999px; }
.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(--blue); 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: 1px solid var(--blue-100); border-radius: var(--r); 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(--mark); }
.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(--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 { border-radius: 4px; }
.sw__edge { position: absolute; top: 0; right: 0; bottom: 0; width: 6px; background: var(--e); box-shadow: inset 1px 0 0 rgb(0 0 0 / .15); }
.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(--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-edge { display: flex; align-items: center; gap: .45rem; margin: .3rem 0 0; font: 500 .8rem var(--f-body); color: var(--steel); }
.vis__pick-edge::before { content: ""; width: 16px; height: 6px; border-radius: 2px; background: var(--line-2); flex: none; }
.vis__pick-edge.is-match { color: var(--ink); }
.vis__pick-edge.is-match::before { background: var(--mark); }
.vis__sum-e { font: 500 .66rem var(--f-mono); color: var(--steel); }
.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--go { order: -1; width: 100%; }
}
@media (max-width: 1100px) {
	/* The tile sits above the room on tablets and phones, so nothing covers the 3D. */
	.vis { display: flex; flex-direction: column; }
	.vis__stage { order: 2; }
	.vis__dock { order: 3; }
	.vis__intro { position: relative; left: auto; top: auto; order: 1; width: auto; margin: 0; border-radius: 0; box-shadow: none; padding-inline: var(--gutter); }
	.vis__intro .vis__sub { max-width: 60ch; }
}
@media (max-width: 640px) {
	.vis__title { font-size: clamp(2.1rem, 1.3rem + 4vw, 2.8rem); }
	.vis__sub { font-size: .95rem; margin-bottom: 1rem; }
	.vis__intro { padding-top: 1.4rem; padding-bottom: 3rem; }
	.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; }
@media (min-width: 1101px) {
	.vis__intro { padding: 1.5rem 1.6rem 2.6rem; }
	.vis__title { font-size: clamp(2.1rem, 1.4rem + 2vw, 3.4rem); margin-bottom: .3em; }
	.vis--page .vis__title { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); }
	.vis__sub { font-size: .95rem; line-height: 1.5; margin-bottom: .9rem; }
	.vis__room img { aspect-ratio: 2 / 1; }
	.vis__room span { font-size: .8rem; }
	.vis__swoosh { height: 1.5rem; }
}
@media (min-width: 1101px) and (max-height: 960px) { .vis--hero .vis__sub { display: none; } }
.vis__rooms-h { color: #fff; }
