/* Backyard pool visualizer. Uses the site's estate materials: obsidian lacquer,
   brass rules, travertine type. No inline styles; the page's CSP forbids them. */
.viz-lock, .viz-lock body { overflow: hidden; overscroll-behavior: none; }
.viz-stage [hidden] { display: none !important; }
.viz-launch { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; padding: 32px 24px; text-align: center; background: linear-gradient(#060b116b, #060b11d9), url('hero-estate.webp') center / cover; }
.viz-launch > div { max-width: 470px; }
.viz-launch h3 { font-size: clamp(32px, 5vw, 52px); color: #fff7e2; }
.viz-launch p { color: #f4efe6; }
.viz-launch .eyebrow { color: #ebd4a2; }
.viz-launch .btn { margin-top: 10px; }

.viz-hero { padding-bottom: 56px; border-bottom: 0; }
.viz-hero .btn { font: inherit; font-size: .85rem; font-weight: 800; }
.viz-privacy { flex: 1 1 100%; margin-top: .5rem; font-size: .78rem; line-height: 1.5; letter-spacing: .02em; color: #9fb0c0; }
.viz-privacy::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .6rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(200, 162, 92, .18); vertical-align: middle; }

.viz-section { background: var(--obsidian); padding: 0 0 92px; color: var(--cream); }
.viz-noscript { padding: 1.5rem; color: var(--cream); }
.viz-noscript a { color: var(--gold2); text-decoration: underline; }

/* ---- The stage: an engraved plate holding the picture and its controls. */
.viz-stage {
  --viz-rule: rgba(235, 212, 162, .34);
  --viz-rule-faint: rgba(235, 212, 162, .14);
  --viz-lacquer: rgba(6, 11, 17, .78);
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, #101c2a, #060b11 60%);
  box-shadow: inset 0 1px 0 rgba(255, 247, 226, .28), inset 0 0 0 1px var(--viz-rule), 0 1px 0 rgba(0, 0, 0, .5), 0 34px 70px -28px rgba(0, 0, 0, .9);
  color: var(--cream);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
.viz-view {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 420px;
  max-height: 74vh;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #5d9fd6 0%, #a9d2ee 52%, #e9f3f8 62%, #4f7a35 62.2%, #42692c 100%);
}
.viz-stage.is-night .viz-view { background: linear-gradient(180deg, #060b18 0%, #14233f 45%, #3a3550 62%, #1c2c1a 62.2%, #10190f 100%); }
.viz-canvas, .viz-video, .viz-photo, .viz-dusk, .viz-gesture { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-video, .viz-photo { object-fit: cover; background: #05090e; }
/* The picture arrives the way a pool fills: rising from the bottom edge. */
.viz-canvas { display: block; clip-path: inset(100% 0 0 0); transform: scale(1.05); transition: clip-path 900ms cubic-bezier(.2, .9, .3, 1), transform 1100ms cubic-bezier(.2, 1.1, .3, 1); }
.viz-stage.is-ready .viz-canvas { clip-path: inset(0); transform: none; }
/* Nightfall: dusk is drawn down over the camera picture like a shade. */
.viz-dusk { background: linear-gradient(180deg, rgba(6, 14, 34, .58) 92%, rgba(6, 14, 34, 0)); height: 110%; transform: translateY(-101%); transition: transform 720ms cubic-bezier(.2, .85, .25, 1); pointer-events: none; }
.viz-stage.is-night[data-mode="live"] .viz-dusk, .viz-stage.is-night[data-mode="photo"] .viz-dusk { transform: none; }
/* Golden hour warms the camera picture the same way. */
.viz-stage.is-gold .viz-dusk { background: linear-gradient(180deg, rgba(255, 138, 48, .16) 92%, rgba(255, 138, 48, 0)); }
.viz-stage.is-gold[data-mode="live"] .viz-dusk, .viz-stage.is-gold[data-mode="photo"] .viz-dusk { transform: none; }
.viz-gesture { touch-action: pan-y; cursor: grab; outline: 0; }
.viz-gesture:active { cursor: grabbing; }
.viz-gesture:focus-visible { box-shadow: inset 0 0 0 2px var(--gold2); }
.viz-stage.is-full .viz-gesture { touch-action: none; }

/* Vignette and key light over the picture; never intercepts touches. */
.viz-view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, transparent 58%, rgba(3, 7, 12, .5) 100%), linear-gradient(180deg, rgba(3, 7, 12, .42), transparent 22%); }

/* ---- Top bar */
.viz-top { position: absolute; inset: 0 0 auto 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); pointer-events: none; }
.viz-top > * { pointer-events: auto; }
.viz-title { margin-right: auto; display: grid; gap: 1px; padding: 9px 16px 10px; border-radius: 14px; background: var(--viz-lacquer); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 247, 226, .22), inset 0 0 0 1px var(--viz-rule); }
.viz-title strong { font: 400 1.32rem/1.1 "Instrument Serif", Georgia, serif; letter-spacing: -.01em; background: var(--wow-leaf, linear-gradient(100deg, #c8a25c, #fff7e2 42%, #c8a25c)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.viz-title span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #c4d0dc; font-weight: 700; }
.viz-chip { appearance: none; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px 0 11px; border-radius: 999px; border: 0; background: var(--viz-lacquer); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--viz-rule); color: var(--cream); font: 700 .78rem/1 Manrope, sans-serif; cursor: pointer; }
.viz-chip svg, .viz-tool svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* The shutter is a brass ring around a travertine button. */
.viz-shutter { appearance: none; flex: 0 0 auto; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: conic-gradient(from 210deg, #7a5822, #ebd4a2, #fff7e2, #c8a25c, #7a5822, #ebd4a2, #7a5822); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(47, 31, 7, .6); display: grid; place-items: center; transition: transform 420ms cubic-bezier(.2, 1.4, .35, 1); }
.viz-shutter span { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #fffdf6, #eae2d3 55%, #cfc3ab); box-shadow: inset 0 0 0 2px #060b11, inset 0 -3px 6px rgba(0, 0, 0, .18); }
.viz-shutter:active { transform: scale(.9); }

/* ---- Guidance */
.viz-hint { position: absolute; z-index: 3; left: 50%; top: calc(max(14px, env(safe-area-inset-top)) + 74px); transform: translateX(-50%); margin: 0; max-width: min(88%, 520px); padding: 9px 16px; border-radius: 999px; text-align: center; font-size: .8rem; line-height: 1.35; font-weight: 600; color: #f4efe6; background: rgba(6, 11, 17, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--viz-rule-faint); pointer-events: none; }
.viz-hint:empty { display: none; }

.viz-rail { position: absolute; z-index: 3; right: max(14px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); display: grid; gap: 8px; }
.viz-tool { appearance: none; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 14px; background: var(--viz-lacquer); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 247, 226, .18), inset 0 0 0 1px var(--viz-rule-faint); color: var(--gold2); cursor: pointer; transition: transform 380ms cubic-bezier(.2, 1.4, .35, 1), box-shadow 160ms ease; }
.viz-tool:hover { box-shadow: inset 0 1px 0 rgba(255, 247, 226, .3), inset 0 0 0 1px var(--viz-rule); }
.viz-tool:active { transform: scale(.9); }
.viz-tool[aria-pressed="true"] { color: #2f1f07; background: var(--wow-leaf, linear-gradient(100deg, #c8a25c, #fff7e2 42%, #c8a25c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px -10px rgba(0, 0, 0, .9); }
.viz-ar { color: #2f1f07; background: var(--wow-leaf, linear-gradient(100deg, #c8a25c, #fff7e2 42%, #c8a25c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px -10px rgba(0, 0, 0, .9); padding: 0 14px 0 11px; }
.viz-ar:disabled { opacity: .7; cursor: progress; }
.viz-sun { display: grid; gap: 4px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #c4d0dc; max-width: 320px; }
.viz-sun input { width: 100%; accent-color: #c8a25c; }

.viz-tilt { position: absolute; z-index: 3; left: max(14px, env(safe-area-inset-left)); bottom: 18px; display: grid; gap: 4px; padding: 10px 14px 12px; border-radius: 14px; background: var(--viz-lacquer); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--viz-rule-faint); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #c4d0dc; }
.viz-tilt input { width: min(46vw, 220px); accent-color: #c8a25c; }
.viz-stage.is-full .viz-tilt { bottom: calc(var(--viz-sheet-h, 96px) + 14px); }

.viz-loading { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 16px; background: radial-gradient(90% 70% at 50% 40%, #12283c, #060b11); font: 400 1.4rem "Instrument Serif", Georgia, serif; color: var(--gold2); }
.viz-loading span:last-child { max-width: 30ch; text-align: center; line-height: 1.25; padding: 0 18px; }
.viz-stage.is-unavailable .viz-ripple { animation: none; }
.viz-stage.is-unavailable :is(.viz-top, .viz-rail, .viz-hint) { display: none; }
.viz-ripple { width: 74px; height: 74px; border-radius: 50%; border: 1px solid var(--gold); box-shadow: 0 0 0 0 rgba(200, 162, 92, .5), inset 0 0 18px rgba(46, 179, 230, .5); background: radial-gradient(circle at 40% 35%, #2eb3e6, #053e6b 70%); animation: viz-ripple 1.9s cubic-bezier(.3, .6, .3, 1) infinite; }
@keyframes viz-ripple { 0% { box-shadow: 0 0 0 0 rgba(200, 162, 92, .55), 0 0 0 0 rgba(200, 162, 92, .3), inset 0 0 18px rgba(46, 179, 230, .5); } 100% { box-shadow: 0 0 0 26px rgba(200, 162, 92, 0), 0 0 0 52px rgba(200, 162, 92, 0), inset 0 0 18px rgba(46, 179, 230, .5); } }
/* The shutter closes and opens once when a picture is taken. */
.viz-stage.is-flash .viz-view::before { content: ""; position: absolute; inset: 0; z-index: 5; background: #05090e; pointer-events: none; transform-origin: 50% 0; animation: viz-shutter 420ms cubic-bezier(.3, .9, .3, 1) both; }
@keyframes viz-shutter { 0% { transform: scaleY(0); } 42% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }

/* ---- Option sheet */
.viz-sheet { position: relative; z-index: 3; padding: 6px 20px 20px; background: linear-gradient(180deg, #0d1826, #060b11); box-shadow: inset 0 1px 0 var(--viz-rule); }
.viz-sheet::before { content: ""; position: absolute; inset: 5px 0 auto 0; height: 1px; background: var(--viz-rule-faint); pointer-events: none; }
.viz-grip { display: none; appearance: none; width: 100%; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.viz-grip::before { content: ""; display: block; width: 44px; height: 4px; margin: 9px auto 0; border-radius: 4px; background: linear-gradient(90deg, #7a5822, #ebd4a2, #7a5822); }
.viz-tabs { display: flex; gap: 4px; margin: 10px 0 14px; overflow-x: auto; scrollbar-width: none; }
.viz-tabs::-webkit-scrollbar { display: none; }
.viz-tabs [role="tab"] { appearance: none; flex: 0 0 auto; min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #aebccb; font: 700 .74rem/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: color 160ms ease, background 160ms ease; }
.viz-tabs [role="tab"]:hover { color: var(--cream); }
.viz-tabs [role="tab"][aria-selected="true"] { color: #2f1f07; background: var(--wow-leaf, linear-gradient(100deg, #c8a25c, #fff7e2 42%, #c8a25c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 6px 16px -8px rgba(0, 0, 0, .8); }
.viz-panel { display: grid; gap: 12px; animation: viz-rise 360ms cubic-bezier(.2, 1.1, .3, 1); }
.viz-panel[hidden] { display: none; }
@keyframes viz-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.viz-note { margin: 0; font-size: .78rem; line-height: 1.5; color: #a9b8c7; max-width: 70ch; }
.viz-note strong { color: var(--gold2); font-weight: 700; }

/* Layout cards: small plan plates. */
.viz-designs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 1fr); gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #7a5822 transparent; }
.viz-design { appearance: none; scroll-snap-align: start; display: grid; gap: 4px; padding: 12px 13px 12px; border: 0; border-radius: 14px; text-align: left; cursor: pointer; background: linear-gradient(180deg, #132131, #0a1420); box-shadow: inset 0 1px 0 rgba(255, 247, 226, .12), inset 0 0 0 1px rgba(255, 255, 255, .09); color: var(--cream); transition: transform 420ms cubic-bezier(.2, 1.3, .35, 1), box-shadow 180ms ease; }
.viz-design:hover { transform: translateY(-2px); }
.viz-design svg { width: 100%; height: 54px; margin-bottom: 4px; overflow: visible; }
.viz-design svg path { fill: rgba(46, 179, 230, .22); stroke: #8fd3ee; stroke-width: 1.1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.viz-design .viz-plan-spa { fill: rgba(235, 212, 162, .5); stroke: #ebd4a2; stroke-width: 1; vector-effect: non-scaling-stroke; }
.viz-design-name { font: 400 1.12rem/1.15 "Instrument Serif", Georgia, serif; }
.viz-design-meta { font-size: .66rem; line-height: 1.35; letter-spacing: .04em; color: #9fb0c0; }
.viz-design[aria-pressed="true"] { box-shadow: inset 0 1px 0 rgba(255, 247, 226, .4), inset 0 0 0 1.5px #c8a25c, inset 0 0 0 5px rgba(200, 162, 92, .12), 0 14px 26px -16px rgba(0, 0, 0, .9); }
.viz-design[aria-pressed="true"] svg path { fill: rgba(46, 179, 230, .5); stroke: #dff5ff; }
.viz-design[aria-pressed="true"] .viz-design-name { color: var(--gold2); }

/* Water finishes: pebble sample discs. */
.viz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-swatch { appearance: none; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; cursor: pointer; transition: transform 420ms cubic-bezier(.2, 1.5, .35, 1); }
.viz-swatch .swatch-dot { width: 36px; height: 36px; flex-basis: 36px; border: 1px solid rgba(255, 255, 255, .5); box-shadow: inset 0 -5px 9px rgba(0, 0, 0, .28), inset 0 4px 6px rgba(255, 255, 255, .28), 0 4px 10px -4px rgba(0, 0, 0, .8); }
.viz-swatch:hover { transform: scale(1.08); }
.viz-swatch[aria-pressed="true"] { transform: scale(1.1); box-shadow: 0 0 0 2px #060b11, 0 0 0 4px #c8a25c; }

.viz-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-pill { appearance: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(14, 26, 40, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #d6e0ea; font: 650 .8rem/1 Manrope, sans-serif; cursor: pointer; transition: transform 380ms cubic-bezier(.2, 1.4, .35, 1), box-shadow 160ms ease, color 160ms ease; }
.viz-pill:active { transform: scale(.95); }
.viz-pill[aria-pressed="true"] { color: #2f1f07; background: var(--wow-leaf, linear-gradient(100deg, #c8a25c, #fff7e2 42%, #c8a25c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 18px -10px rgba(0, 0, 0, .9); }
.viz-material { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
.viz-material-0 { background: linear-gradient(135deg, #ece4d3, #dfd3bc 55%, #cbbd9f); }
.viz-material-1 { background: repeating-linear-gradient(0deg, #b3a996 0 6px, #6f675c 6px 7px), #a89d89; }
.viz-material-2 { background: radial-gradient(circle at 30% 30%, #f6f1e6 0 18%, transparent 19%), radial-gradient(circle at 70% 65%, #d6ccb7 0 22%, transparent 23%), #e7dfce; }
.viz-material-3 { background: linear-gradient(135deg, #dddbd4, #b9b7b0); }
.viz-material-4 { background: repeating-linear-gradient(0deg, #c6c4bd 0 2px, #a5a39c 2px 3px); }

.viz-leds { display: flex; gap: 10px; align-items: center; }
.viz-led { appearance: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 18px -2px currentColor; transition: transform 420ms cubic-bezier(.2, 1.5, .35, 1); }
.viz-led-0 { color: #fff1d0; background: radial-gradient(circle at 40% 35%, #ffffff, #fff1d0 60%, #cdb98a); }
.viz-led-1 { color: #27a8ff; background: radial-gradient(circle at 40% 35%, #bfe6ff, #27a8ff 60%, #0b5fa8); }
.viz-led-2 { color: #2de39a; background: radial-gradient(circle at 40% 35%, #c9ffe9, #2de39a 60%, #0c8a58); }
.viz-led-3 { color: #e04bd0; background: radial-gradient(circle at 40% 35%, #ffd3fa, #e04bd0 60%, #8a1f7f); }
.viz-led[aria-pressed="true"] { transform: scale(1.1); box-shadow: 0 0 0 2px #060b11, 0 0 0 4px #c8a25c, 0 0 22px -2px currentColor; }

.viz-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--viz-rule-faint); }
.viz-actions .btn { font: inherit; font-size: .82rem; font-weight: 800; min-height: 48px; }
.viz-actions .btn[hidden] { display: none; }
.viz-actions .btn:disabled { opacity: .6; cursor: progress; }

.viz-stage :is(button, a, input):focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }

/* ---- Dialog card */
.viz-modal { position: fixed; inset: 0; z-index: 2147483002; display: grid; place-items: center; padding: 18px; background: rgba(3, 7, 12, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.viz-modal[hidden] { display: none; }
.viz-card { position: relative; width: min(100%, 460px); max-height: 100%; overflow: auto; padding: 26px 24px 22px; border-radius: 18px; outline: 0; background: linear-gradient(180deg, #17283a, #0c1520 22%, #060b11); box-shadow: inset 0 1px 0 rgba(255, 247, 226, .4), inset 0 0 0 1px var(--viz-rule), 0 34px 60px -24px #000; animation: viz-deal 480ms cubic-bezier(.2, 1.25, .3, 1); }
.viz-card::before { content: ""; position: absolute; inset: 6px; border-radius: 13px; border: 1px solid var(--viz-rule-faint); pointer-events: none; }
@keyframes viz-deal { from { opacity: 0; transform: translateY(26px) scale(.96); } to { opacity: 1; transform: none; } }
.viz-card h3 { font-size: 1.75rem; color: var(--gold2); margin-bottom: .5rem; }
.viz-card p { font-size: .88rem; line-height: 1.6; color: #cfd9e3; margin: 0 0 1.1rem; }
.viz-shot { margin: 0 0 1.1rem; border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--viz-rule), 0 14px 30px -18px #000; }
.viz-shot[hidden] { display: none; }
.viz-shot img { display: block; width: 100%; max-height: 42vh; object-fit: contain; background: #05090e; }
.viz-card-actions { display: grid; gap: 8px; }
.viz-card-actions .btn { width: 100%; font: inherit; font-size: .82rem; font-weight: 800; }

/* ---- Full-screen camera, photo and AR views */
.viz-stage.is-full { position: fixed; inset: 0; z-index: 2147483001; border-radius: 0; box-shadow: none; background: #05090e; }
.viz-stage.is-full .viz-view { position: absolute; inset: 0; aspect-ratio: auto; min-height: 0; max-height: none; height: 100%; }
.viz-stage.is-full .viz-sheet { position: absolute; inset: auto 0 0 0; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(6, 11, 17, .84); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-radius: 20px 20px 0 0; box-shadow: inset 0 1px 0 var(--viz-rule), 0 -20px 40px -20px rgba(0, 0, 0, .8); max-height: 62%; overflow-y: auto; transition: transform 460ms cubic-bezier(.2, 1.1, .3, 1); }
.viz-stage.is-full .viz-grip { display: block; }
.viz-stage.is-full .viz-tabs { margin: 2px 0 10px; }
.viz-stage.is-full .viz-sheet.is-collapsed .viz-panels, .viz-stage.is-full .viz-sheet.is-collapsed .viz-actions { display: none; }
.viz-stage.is-full .viz-rail { top: 42%; }
.viz-stage.is-full .viz-actions { margin-top: 12px; padding-top: 12px; }
.viz-stage.is-xr { background: transparent; box-shadow: none; }
.viz-stage.is-xr .viz-view { background: transparent; }
.viz-stage.is-xr :is(.viz-canvas, .viz-video, .viz-photo, .viz-dusk), .viz-stage.is-xr .viz-view::after { display: none; }

/* ---- How it works */
.viz-how { background: var(--cream); }
.viz-steps { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.viz-steps li { padding: 1.6rem 1.5rem 1.4rem; background: var(--paper-card, #fcfaf5); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(13, 24, 36, .1), inset 0 0 0 6px var(--paper-card, #fcfaf5), inset 0 0 0 7px rgba(122, 88, 34, .22), 0 18px 34px -24px rgba(5, 18, 34, .5); }
.viz-steps span { display: block; font: 400 2.1rem/1 "Instrument Serif", Georgia, serif; color: #977135; margin-bottom: .7rem; }
.viz-steps h3 { font-size: 1.45rem; }
.viz-steps p { font-size: .92rem; color: var(--muted); margin: 0; }
.viz-disclaimer { font-size: .8rem; line-height: 1.6; color: var(--muted); max-width: 86ch; padding-left: 1rem; border-left: 2px solid #c8a25c; }
.viz-how .btn.ghost-dark { background: transparent; color: var(--ink); border-color: rgba(13, 24, 36, .35); }
.viz-how .btn.ghost-dark:hover { background: rgba(13, 24, 36, .06); }

@media (max-width: 900px) {
  .viz-view { aspect-ratio: 4 / 5; min-height: 0; max-height: 70vh; }
  .viz-steps { grid-template-columns: 1fr; }
  .viz-sheet { padding: 4px 14px 16px; }
  .viz-title strong { font-size: 1.12rem; }
  .viz-hint { font-size: .72rem; max-width: 80%; padding: 7px 14px; border-radius: 16px; }
  .viz-actions .btn { flex: 1 1 100%; }
  .viz-section { padding-bottom: 64px; }
  .viz-section > .wrap { width: min(1180px, calc(100% - 24px)); }
}
@media (orientation: landscape) and (max-height: 520px) {
  .viz-stage.is-full .viz-sheet { max-height: 78%; }
  .viz-stage.is-full .viz-rail { grid-auto-flow: column; top: auto; bottom: 64px; transform: none; }
  .viz-hint { top: calc(max(10px, env(safe-area-inset-top)) + 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .viz-stage *, .viz-stage *::before, .viz-stage *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
