:root {
  --bg: #08111f;
  --glass: rgba(9, 18, 33, .72);
  --line: rgba(190, 220, 235, .14);
  --text: #e9eff3;
  --muted: #93a3b4;
  --gold: #3fb0a6;
  --gold-2: #8fdcd2;
  --gold-3: #22756f;
  --ivory: #eef3f6;
  --ink: #0a1424;
  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --sans: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --panel-w: 320px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.vz { position: fixed; inset: 0; }
.vz::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; z-index: 2; pointer-events: none; background: linear-gradient(to top, rgba(5,11,22,.78), rgba(5,11,22,.35) 45%, transparent); }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#scene:active { cursor: grabbing; }

.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid var(--line); }

/* top bar */
.vz-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: linear-gradient(to bottom, rgba(5,11,22,.8), rgba(5,11,22,.35) 70%, transparent); pointer-events: none; z-index: 5; padding-bottom: 34px; }
.vz-top > * { pointer-events: auto; }
.vz-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; }
.vz-back { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background .3s, color .3s; flex: none; }
.vz-back svg { width: 16px; height: 16px; }
.vz-brand:hover .vz-back { background: var(--ivory); color: var(--ink); }
.vz-mark { width: 22px; height: 22px; position: relative; flex: none; }
.vz-mark::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--gold); transform: rotate(45deg); }
.vz-mark::after { content: ''; position: absolute; inset: 8px; background: var(--gold); transform: rotate(45deg); }
.vz-mark.lg { width: 48px; height: 48px; margin: 0 auto 18px; }
.vz-mark.lg::before { inset: 8px; } .vz-mark.lg::after { inset: 17px; }
.vz-brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.vz-brand-text b { font-family: var(--serif); font-weight: 500; font-size: 21px; white-space: nowrap; }
.vz-brand-text small { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-top: 3px; white-space: nowrap; }

.vz-rooms { position: relative; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); }
.vz-rooms button { position: relative; z-index: 1; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: color .4s; }
.vz-rooms button svg { width: 16px; height: 16px; }
.vz-rooms button:hover { color: var(--text); }
.vz-rooms button.on { color: var(--ink); }
.vz-rooms .pill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: linear-gradient(120deg, var(--gold-2), var(--gold)); transition: transform .6s var(--ease), width .6s var(--ease); }

.vz-actions { display: flex; gap: 8px; margin-left: auto; }
.vz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: background .3s, color .3s, transform .4s var(--ease); }
.vz-btn svg { width: 17px; height: 17px; }
.vz-btn.ghost { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.vz-btn.ghost:hover { background: var(--ivory); color: var(--ink); }
.vz-btn.gold { background: linear-gradient(120deg, var(--gold-2), var(--gold) 55%, var(--gold-3)); color: var(--ink); }
.vz-btn.gold:hover { transform: translateY(-2px); }

/* info */
.vz-info { position: absolute; left: 24px; bottom: 96px; max-width: min(460px, calc(100vw - var(--panel-w) - 80px)); z-index: 4; pointer-events: none; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.vz-eyebrow { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); display: flex; align-items: center; gap: 10px; }
.vz-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.vz-info h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; margin: 10px 0 8px; }
.vz-info p { margin: 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(233,239,243,.8); }

/* surface switch */
.vz-surface { position: absolute; left: 24px; bottom: 28px; z-index: 4; display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.vz-surface-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding: 0 10px 0 12px; }
.vz-surface button { position: relative; z-index: 1; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); transition: color .4s; white-space: nowrap; }
.vz-surface button.on { color: var(--ink); }
.vz-ind { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--ivory); transition: transform .6s var(--ease), width .6s var(--ease); }

/* tile panel */
.vz-panel { position: absolute; top: 84px; right: 20px; bottom: 20px; width: var(--panel-w); z-index: 4; display: flex; flex-direction: column; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); overflow: hidden; }
.vz-panel-toggle { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 10px; font-family: var(--serif); font-size: 22px; cursor: default; }
.vz-panel-toggle svg { width: 18px; height: 18px; display: none; transition: transform .4s var(--ease); }
.vz-panel-body { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.vz-search { display: flex; align-items: center; gap: 10px; margin: 0 18px 12px; border-bottom: 1px solid var(--line); padding: 8px 0; }
.vz-search:focus-within { border-color: var(--gold); }
.vz-search svg { width: 16px; height: 16px; color: var(--muted); }
.vz-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 13px; }
.vz-search input::placeholder { color: #5e6e81; }
.vz-cats { display: flex; gap: 6px; padding: 0 18px 12px; overflow-x: auto; scrollbar-width: none; flex: none; }
.vz-cats::-webkit-scrollbar { display: none; }
.vz-cats button { flex: none; height: 28px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); white-space: nowrap; transition: all .3s; }
.vz-cats button.on { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.vz-list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.vz-tile { text-align: left; border-radius: 8px; padding: 4px; transition: background .3s; }
.vz-tile:hover { background: rgba(255,255,255,.05); }
.vz-tile .im { position: relative; aspect-ratio: 1 / 1.5; border-radius: 4px; overflow: hidden; background: #111f36; box-shadow: 0 0 0 1px rgba(255,255,255,.06); transition: box-shadow .3s; }
.vz-tile .im img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vz-tile:hover .im img { transform: scale(1.06); }
.vz-tile.on .im { box-shadow: 0 0 0 2px var(--gold); }
.vz-tile.on .im::after { content: ''; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(8,17,31,.5); }
.vz-tile b { display: block; font-family: var(--serif); font-weight: 500; font-size: 16px; line-height: 1.15; margin-top: 8px; }
.vz-tile span { display: block; font-size: 10px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.vz-none { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 30px 0; }

.vz-hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .1em; color: rgba(233,239,243,.75); background: rgba(8,17,31,.45); padding: 8px 14px; border-radius: 99px; pointer-events: none; transition: opacity 1s; white-space: nowrap; }
.vz-hint svg { width: 14px; height: 14px; }
.vz-hint.gone { opacity: 0; }

.vz-loading { position: absolute; inset: 0; z-index: 20; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); transition: opacity .8s, visibility .8s; }
.vz-loading.soft { background: rgba(8,17,31,.35); }
.vz-loading.done { opacity: 0; visibility: hidden; }
.vz-loading span { width: 36px; height: 36px; border: 1px solid var(--gold); transform: rotate(45deg); animation: spin 1.6s var(--ease) infinite; }
.vz-loading p { margin: 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
@keyframes spin { to { transform: rotate(405deg); } }

.vz-empty { position: absolute; inset: 0; z-index: 25; background: var(--bg); display: grid; place-content: center; text-align: center; padding: 20px; }
.vz-empty h2 { font-family: var(--serif); font-weight: 300; font-size: 44px; margin: 0 0 8px; }
.vz-empty p { color: var(--muted); margin: 0 0 24px; }

.flash { position: absolute; inset: 0; background: #fff; z-index: 30; pointer-events: none; animation: flash .6s ease-out forwards; }
@keyframes flash { from { opacity: .7; } to { opacity: 0; } }

/* responsive */
@media (max-width: 1100px) {
  .vz-rooms button span { display: none; }
  .vz-rooms button { padding: 0 14px; }
}
@media (max-width: 820px) {
  :root { --panel-w: 100%; }
  .vz-top { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .vz-brand-text small { display: none; }
  .vz-rooms { order: 3; width: 100%; justify-content: space-between; }
  .vz-rooms button { flex: 1; justify-content: center; padding: 0 8px; }
  .vz-actions .vz-btn span { display: none; }
  .vz-actions .vz-btn { width: 42px; padding: 0; }
  .vz-actions .vz-btn.gold span { display: inline; }
  .vz-actions .vz-btn.gold { width: auto; padding: 0 16px; }
  .vz-panel { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; height: auto; border-radius: 14px; }
  .vz-panel-toggle { cursor: pointer; padding: 12px 16px; font-size: 19px; }
  .vz-panel-toggle svg { display: block; }
  .vz-panel[data-open="false"] .vz-panel-body { display: none; }
  .vz-panel[data-open="false"] .vz-panel-toggle svg { transform: rotate(180deg); }
  .vz-search { margin: 0 16px 10px; }
  .vz-cats { padding: 0 16px 10px; }
  .vz-list { display: flex; overflow-x: auto; overflow-y: hidden; padding: 0 12px 14px; gap: 10px; }
  .vz-tile { flex: none; width: 92px; }
  .vz-tile b { font-size: 14px; }
  .vz-info { left: 16px; bottom: 84px; max-width: calc(100vw - 32px); }
  .vz-info h1 { font-size: 34px; }
  .vz-surface { left: 50%; transform: translateX(-50%); bottom: auto; top: 124px; }
  .vz-surface-label { display: none; }
  .vz-hint { display: none; }
}

.vz-colsel { margin: 0 18px 12px; height: 34px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); color: var(--text); padding: 0 10px; font: inherit; font-size: 12px; }
.vz-colsel option { background: #111f36; }

/* embedded inside a product page */
.embed .vz-brand, .embed .vz-panel, .embed .vz-info, .embed #enquire { display: none !important; }
.embed .vz-top { padding: 12px; background: linear-gradient(to bottom, rgba(5,11,22,.55), transparent); }
.embed .vz-rooms { margin-right: auto; }
.embed .vz::after { height: 22%; }
.embed .vz-surface { left: 12px; bottom: 12px; }
.embed .vz-hint { bottom: 18px; left: auto; right: 12px; transform: none; }
@media (max-width: 820px) {
  .embed .vz-top { flex-wrap: nowrap; }
  .embed .vz-rooms { order: 0; width: auto; }
  .embed .vz-rooms button { padding: 0 10px; }
  .embed .vz-surface { top: auto; bottom: 12px; left: 50%; transform: translateX(-50%); }
  .embed .vz-actions .vz-btn span { display: none; }
}

/* wall colour */
.vz-paint { position: absolute; left: 24px; bottom: 84px; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: opacity .4s; }
.vz-paint.off { opacity: .45; }
.vz-paint-toggle { display: flex; align-items: center; gap: 2px; cursor: default; }
.vz-paint-dot { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 2px rgba(255,255,255,.15); flex: none; }
.vz-paint-dot.on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 2px var(--gold); }
.vz-swatches { display: flex; gap: 6px; }
.vz-swatches .sw { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); transition: transform .3s var(--ease), box-shadow .3s; }
.vz-swatches .sw:hover { transform: scale(1.15); }
.vz-swatches .sw.on { box-shadow: inset 0 0 0 1px rgba(0,0,0,.25), 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.vz-picker { position: relative; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 4px; border-radius: 99px; border: 1px solid var(--line); cursor: pointer; font-size: 11px; color: var(--muted); }
.vz-picker:hover { color: var(--text); border-color: rgba(190,220,235,.3); }
.vz-picker input { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); cursor: pointer; -webkit-appearance: none; appearance: none; }
.vz-picker input::-webkit-color-swatch-wrapper { padding: 0; }
.vz-picker input::-webkit-color-swatch { border: 0; border-radius: 50%; opacity: 0; }
.vz-picker input::-moz-color-swatch { border: 0; border-radius: 50%; opacity: 0; }
.vz-paint-reset { font-size: 11px; color: var(--muted); padding: 0 6px; }
.vz-paint-reset:hover { color: var(--gold-2); }
.vz-info { bottom: 140px; }
.embed .vz-paint { left: 12px; bottom: 64px; }
@media (max-width: 1200px) { .vz-paint .vz-surface-label { display: none; } }
@media (max-width: 820px) {
  .vz-paint { left: 50%; transform: translateX(-50%); bottom: auto; top: 176px; max-width: calc(100vw - 20px); }
  .vz-paint .vz-swatches, .vz-paint .vz-picker, .vz-paint .vz-paint-reset { display: none; }
  .vz-paint.open { flex-wrap: wrap; justify-content: center; border-radius: 16px; }
  .vz-paint.open .vz-swatches, .vz-paint.open .vz-picker, .vz-paint.open .vz-paint-reset { display: flex; }
  .vz-paint-toggle { cursor: pointer; }
  .vz-paint .vz-surface-label { display: inline; padding-right: 6px; }
  .embed .vz-paint { top: auto; bottom: 64px; }
}

.vz-logo { height: 34px; width: auto; display: block; }
.vz-brand-text b[hidden] { display: none; }

.vz-loading span.spin-mark { width: 52px; height: 50px; border: 0; transform: none; animation: markPulse 1.6s var(--ease) infinite; }
@keyframes markPulse { 0%, 100% { opacity: .45; transform: scale(.92); } 50% { opacity: 1; transform: scale(1); } }
.vz-mark.lg { width: 70px; height: 66px; }
.vz-mark.lg::before, .vz-mark.lg::after { display: none; }
.mark-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vz-more { grid-column: 1 / -1; height: 1px; flex: none; width: 1px; }
@media (max-width: 820px) { .embed .vz-paint { left: 50%; transform: translateX(-50%); } }
