:root {
	--bg: #11130f;
	--panel: rgba(21, 23, 19, 0.82);
	--panel-solid: #181a15;
	--line: rgba(236, 226, 205, 0.1);
	--line-2: rgba(236, 226, 205, 0.18);
	--text: #efe9dc;
	--muted: #a7a18f;
	--faint: #6f6b5f;
	--bronze: #c59465;
	--bronze-2: #e2b98a;
	--gold: #f2c77e;
	--sage: #c9cfa6;
	--danger: #d9786d;
	--radius: 14px;
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.38), 0 2px 6px rgba(0, 0, 0, 0.25);
	--serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
	--sans: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); font: 13px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { font: 12px ui-monospace, Consolas, monospace; color: var(--bronze-2); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }

#app { position: fixed; inset: 0; }
#stage { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
#stage canvas { display: block; outline: none; }
.label-layer { position: absolute; inset: 0; pointer-events: none; }
.label-layer > * { pointer-events: none; }

/* ------------------------------------------------------------------ top bar */
.topbar {
	position: absolute; top: 14px; left: 14px; right: 14px; height: 58px; z-index: 20;
	display: grid; grid-template-columns: 340px 1fr auto; align-items: center; gap: 16px;
	padding: 0 10px 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	backdrop-filter: blur(16px) saturate(1.2); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand .emblem { height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand .wordmark { height: 15px; width: auto; align-self: flex-start; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search { position: relative; max-width: 560px; width: 100%; justify-self: center; }
.search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; }
.search input {
	width: 100%; height: 38px; padding: 0 40px 0 38px; border-radius: 10px; border: 1px solid var(--line-2);
	background: rgba(255, 255, 255, 0.04); outline: none; transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--bronze); background: rgba(255, 255, 255, 0.07); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 11px var(--sans); color: var(--faint); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.suggest {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column; padding: 6px;
	background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); max-height: 60vh; overflow: auto;
}
.suggest.open { display: flex; }
.sg { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; text-align: left; }
.sg.on, .sg:hover { background: rgba(197, 148, 101, 0.16); }
.sg-k { min-width: 64px; font: 600 12px var(--sans); color: var(--bronze-2); }
.sg-t { display: flex; flex-direction: column; min-width: 0; }
.sg-t b { font-weight: 600; }
.sg-t small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tools { display: flex; align-items: center; gap: 4px; }
.tool {
	display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border-radius: 9px; color: var(--muted);
	text-decoration: none; transition: background .15s, color .15s; white-space: nowrap;
}
.tool:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.tool.on { color: var(--gold); background: rgba(242, 199, 126, 0.1); }
.tool.icon-only { padding: 0 9px; }
.tool.switch { margin-left: 6px; border: 1px solid var(--line-2); color: var(--text); }
.tool.switch:hover { border-color: var(--bronze); }

/* ------------------------------------------------------------------ panels */
.panel {
	position: absolute; top: 84px; bottom: 14px; z-index: 15; background: var(--panel); border: 1px solid var(--line);
	border-radius: var(--radius); backdrop-filter: blur(16px) saturate(1.2); box-shadow: var(--shadow);
}
.panel.left { left: 14px; width: 318px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.panel.left.collapsed { transform: translateX(calc(-100% - 14px)); }
.panel.left .scroll { position: absolute; inset: 0; overflow-y: auto; padding: 6px 16px 18px; scrollbar-width: thin; scrollbar-color: #3a3a33 transparent; }
.collapse {
	position: absolute; right: -14px; top: 18px; width: 26px; height: 40px; border-radius: 0 8px 8px 0;
	background: var(--panel-solid); border: 1px solid var(--line); border-left: 0; display: grid; place-items: center; color: var(--muted);
}
.panel.left.collapsed .collapse { right: -40px; border-radius: 8px; border-left: 1px solid var(--line); }
.panel.left.collapsed .collapse svg { transform: rotate(180deg); }
section { padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h3 { margin: 0 0 10px; font: 600 11px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hint { font: 400 11px var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.sub { margin: 12px 0 6px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.link { color: var(--bronze-2); font: 500 11px var(--sans); letter-spacing: 0; text-transform: none; text-decoration: underline; text-underline-offset: 2px; }

.blocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.blk { display: flex; flex-direction: column; align-items: center; padding: 7px 4px 6px; border: 1px solid var(--line-2); border-radius: 10px; transition: all .15s; }
.blk b { font: 600 20px/1 var(--serif); }
.blk small { color: var(--muted); font-size: 10px; margin-top: 3px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.blk.luxury b { color: var(--bronze-2); }
.blk:hover { border-color: var(--bronze); }
.blk.on { background: rgba(242, 199, 126, 0.14); border-color: var(--gold); }
.blk.all b { font: 600 15px/20px var(--sans); }

.floor-row { display: flex; align-items: center; gap: 12px; }
.floor-val b { display: inline-block; min-width: 44px; text-align: center; font: 600 18px var(--serif); color: var(--gold); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--bronze), rgba(255, 255, 255, 0.15)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--gold); border: 3px solid #2a2419; box-shadow: 0 0 0 1px var(--gold); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 3px solid #2a2419; }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini {
	display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2);
	font-size: 12px; color: var(--text); cursor: pointer; background: rgba(255, 255, 255, 0.03); text-decoration: none;
}
.mini svg { width: 14px; height: 14px; }
.mini:hover { border-color: var(--bronze); }
.mini.ghost { border-color: transparent; color: var(--muted); }
.mini.ghost:hover { color: var(--text); }

.seg { display: grid; grid-template-columns: repeat(5, auto); gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.seg button { padding: 6px 4px; border-radius: 7px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--bronze); color: #1a150f; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.lg { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; }
.lg i, .cat i, .chip i, .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; flex: none; }
.lg em { font-style: normal; color: var(--faint); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; transition: all .15s; }
.chip small { color: var(--faint); font-size: 10.5px; }
.chip:hover { border-color: var(--bronze); }
.chip.on { background: rgba(197, 148, 101, 0.22); border-color: var(--bronze); color: #fff; }
.cat-list { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.cat { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 7px; text-align: left; font-size: 12px; }
.cat span { flex: 1; }
.cat em { font-style: normal; color: var(--faint); font-size: 11px; }
.cat:hover { background: rgba(255, 255, 255, 0.05); }
.cat.on { background: rgba(197, 148, 101, 0.2); }
.cat.on em { color: var(--bronze-2); }

.compass-pick { position: relative; width: 150px; height: 150px; margin: 4px auto 0; border-radius: 50%; border: 1px dashed var(--line-2); }
.compass-pick .fc { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.fdir { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 26px; border-radius: 8px; font: 600 11px var(--sans); border: 1px solid var(--line-2); background: var(--panel-solid); }
.fdir:hover { border-color: var(--bronze); }
.fdir.on { background: var(--bronze); color: #1a150f; border-color: var(--bronze); }

.dual { position: relative; height: 26px; }
.dual input { position: absolute; inset: 0; pointer-events: none; }
.dual input::-webkit-slider-thumb { pointer-events: auto; }
.dual input::-moz-range-thumb { pointer-events: auto; }
.dual input + input::-webkit-slider-runnable-track { background: transparent; }

.results { display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow: auto; margin: 0 -6px; scrollbar-width: thin; }
.res { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; text-align: left; }
.res:hover { background: rgba(255, 255, 255, 0.05); }
.rs { font: 600 16px var(--serif); color: var(--bronze-2); min-width: 32px; }
.rt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rt b { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt small { color: var(--muted); font-size: 11px; }
.res em { font-style: normal; color: var(--faint); font-size: 11px; }

/* ------------------------------------------------------------------ unit card */
.panel.right { right: 14px; width: 372px; overflow-y: auto; padding: 18px 18px 16px; scrollbar-width: thin; animation: slideIn .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes slideIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.uc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.uc-no { font: 600 38px/1 var(--serif); letter-spacing: 0.01em; color: #fff; }
.uc-no.fac { font-size: 26px; display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.uc-blk { color: var(--muted); margin-top: 6px; font-size: 12px; }
.icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); flex: none; }
.icon:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.uc-type { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 7px; background: var(--c); color: #16130f; font: 700 13px var(--sans); }
.badge em { font-style: normal; font-size: 10px; padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .18); }
.uc-plan, .uc-photo { margin: 0; border-radius: 11px; overflow: hidden; background: #efeede; cursor: zoom-in; position: relative; border: 1px solid var(--line); }
.uc-plan img { display: block; width: 100%; aspect-ratio: 1.41; object-fit: cover; object-position: 50% 40%; transform: scale(1.35); transform-origin: 55% 45%; transition: transform .4s; }
.uc-plan:hover img { transform: scale(1.5); }
.uc-photo img { display: block; width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.uc-plan figcaption, .uc-photo figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 22px 12px 9px;
	background: linear-gradient(transparent, rgba(12, 12, 10, 0.85)); color: #fff; font-size: 12px;
}
.uc-plan figcaption span { margin-left: auto; color: rgba(255, 255, 255, .7); font-size: 11px; }
.uc-mirror { margin: 10px 0 0; padding: 8px 10px; border-radius: 9px; background: rgba(242, 199, 126, .1); border: 1px solid rgba(242, 199, 126, .25); font-size: 12px; }
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 14px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.uc-grid > div { background: var(--panel-solid); padding: 10px 12px; }
.uc-grid .wide { grid-column: span 2; }
dt { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
dd { margin: 0; font: 600 15px var(--sans); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
dd small { font: 400 11.5px var(--sans); color: var(--muted); width: 100%; }
.needle { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transform: rotate(var(--r)); }
.needle::after { content: ""; position: absolute; left: 50%; top: 1px; width: 2px; height: 7px; margin-left: -1px; background: var(--gold); border-radius: 2px; }
.dot { border-radius: 50%; }
.uc-views { margin-top: 12px; }
.uc-views > div { display: flex; flex-wrap: wrap; gap: 5px; }
.uc-views span { padding: 3px 9px; border-radius: 999px; background: rgba(201, 207, 166, .12); color: var(--sage); font-size: 11.5px; }
.uc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 12.5px; transition: all .15s; }
.btn:hover { border-color: var(--bronze); background: rgba(197, 148, 101, .08); }
.btn.primary { grid-column: span 2; height: 42px; background: linear-gradient(180deg, #d3a372, #b98657); color: #1a140d; border: 0; font-weight: 700; font-size: 13.5px; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.icon { width: 36px; padding: 0; }
.uc-step { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line-2); border-radius: 9px; padding: 0 2px; color: var(--muted); font-size: 12px; }
.uc-step .btn { border: 0; height: 32px; }
.uc-same { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.uc-foot { font-size: 11px; color: var(--faint); margin: 14px 0 0; }
.fnum { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 50%; font: 700 13px var(--sans); color: #fff; }
.fnum.island { background: #4f93bf; }
.fnum.grand { background: #c1704f; }
.fnum.wellness { background: #3aa98e; }
.fnum.estate { background: #8c8a86; }

/* ------------------------------------------------------------------ stacking chart drawer */
.drawer {
	position: absolute; left: 346px; right: 400px; bottom: 14px; z-index: 14; max-height: 36vh; display: flex; flex-direction: column;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); box-shadow: var(--shadow);
}
#card.hidden ~ .drawer { right: 14px; }
.panel.left.collapsed ~ .drawer { left: 14px; }
.drawer-head { display: flex; align-items: center; gap: 14px; padding: 10px 10px 8px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font: 600 18px var(--serif); letter-spacing: 0; text-transform: none; color: var(--text); }
.drawer-head h3 small { font: 400 12px var(--sans); color: var(--muted); margin-left: 8px; }
.drawer-head .hint { margin-left: auto; }
.chart-wrap { overflow: auto; padding: 8px 12px 12px; scrollbar-width: thin; }
.stackchart { border-collapse: separate; border-spacing: 2px; font-size: 11px; margin: 0 auto; }
.stackchart th { color: var(--muted); font-weight: 500; padding: 0 6px; position: sticky; background: var(--panel-solid); }
.stackchart thead th { top: 0; z-index: 2; padding: 4px 2px; }
.stackchart thead th b { display: block; font: 600 14px var(--serif); color: var(--text); }
.stackchart thead th small { font-size: 10px; color: var(--sage); }
.stackchart tbody th { left: 0; z-index: 1; text-align: right; }
.stackchart td { width: 62px; min-width: 52px; height: 20px; text-align: center; border-radius: 4px; background: color-mix(in srgb, var(--c) 78%, #1a1a16); color: #16130f; font-weight: 600; cursor: pointer; transition: transform .1s; }
.stackchart td:hover { transform: scale(1.08); box-shadow: 0 0 0 2px #fff; position: relative; z-index: 3; }
.stackchart td.dim { background: rgba(255, 255, 255, .06); color: var(--faint); }
.stackchart td.sel { box-shadow: 0 0 0 2px var(--gold), 0 0 12px var(--gold); position: relative; z-index: 2; }
.stackchart td.void { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 4px, transparent 4px 8px); cursor: default; }
.stackchart tr.above td { opacity: .35; }
.stackchart td.st-sold::after { content: ""; display: block; height: 2px; margin: -2px 6px 0; background: #16130f; opacity: .6; }

/* ------------------------------------------------------------------ HUD */
.hud { position: absolute; right: 14px; bottom: 14px; z-index: 12; display: flex; align-items: flex-end; gap: 10px; transition: right .3s; }
#card:not(.hidden) ~ .hud { right: 400px; }
#chart:not(.hidden) ~ .hud { bottom: calc(36vh + 26px); }
#chart:not(.hidden) ~ .hud .minimap { display: none; }
.compass { width: 66px; height: 66px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); box-shadow: var(--shadow); padding: 4px; }
.compass svg { width: 100%; height: 100%; stroke: none; }
.compass .ring { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.compass .n { fill: var(--gold); }
.compass .s { fill: #6d6a60; }
.compass .lbl { fill: var(--text); font: 700 11px var(--sans); text-anchor: middle; }
.compass .lbl.sm { fill: var(--muted); font-size: 9px; }
.minimap { border-radius: 12px; overflow: hidden; background: rgba(233, 229, 214, .92); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: crosshair; padding: 4px; }
.minimap canvas { display: block; }

.pop { position: absolute; top: 84px; right: 14px; z-index: 22; width: 290px; padding: 14px 16px; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.pop h4 { margin: 0 0 10px; font: 600 14px var(--sans); display: flex; justify-content: space-between; }
.pop label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.pop label b { color: var(--gold); font-weight: 600; }
.pop select { height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); padding: 0 8px; }

.tooltip {
	position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; display: flex; flex-direction: column; gap: 1px; padding: 8px 11px;
	background: rgba(17, 18, 15, 0.94); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); font-size: 12px; white-space: nowrap;
}
.tooltip b { font: 600 18px var(--serif); color: #fff; }
.tooltip small { color: var(--muted); }

.tourbar, .viewbar {
	position: absolute; left: 50%; top: 86px; transform: translateX(-50%); z-index: 21; display: flex; align-items: center; gap: 16px;
	padding: 12px 12px 12px 20px; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow);
	width: min(720px, calc(100% - 700px)); min-width: 460px; animation: dropIn .4s cubic-bezier(.2, .8, .2, 1);
}
@keyframes dropIn { from { transform: translate(-50%, -12px); opacity: 0; } }
.tb-cap { display: flex; flex-direction: column; flex: 1; gap: 2px; }
.tb-cap small { color: var(--bronze-2); font-size: 11px; letter-spacing: .08em; }
.tb-cap b { font: 600 20px var(--serif); }
.tb-cap span { color: var(--muted); font-size: 12.5px; }
.tb-btns { display: flex; align-items: center; gap: 4px; }
.viewbar { width: auto; min-width: 0; }
.viewbar b { display: block; font: 600 17px var(--serif); }
.viewbar small { color: var(--muted); }
.vb-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 199, 126, .2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(242, 199, 126, 0); } }
#app.viewing .panel.left, #app.viewing .drawer, #app.viewing .panel.right, #app.viewing .hud .minimap { opacity: 0; pointer-events: none; transition: opacity .3s; }

/* ------------------------------------------------------------------ lightbox / modal */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(8, 9, 7, .92); display: flex; flex-direction: column; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.lb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.lb-head b { font: 600 22px var(--serif); display: block; }
.lb-head small { color: var(--muted); }
.lb-tools { display: flex; gap: 8px; align-items: center; }
.lb-stage { flex: 1; overflow: hidden; display: grid; place-items: center; cursor: grab; touch-action: none; margin: 0 20px; border-radius: 12px; }
.lightbox.plan .lb-stage { background: #f3f2e7; }
.lb-stage:active { cursor: grabbing; }
.lb-stage img { max-width: 100%; max-height: 100%; user-select: none; -webkit-user-drag: none; transition: transform .05s; transform-origin: center; }
.lb-thumbs { display: flex; gap: 8px; padding: 12px 20px 16px; overflow-x: auto; }
.lb-thumbs:empty { display: none; }
.lb-thumbs button { flex: none; width: 128px; border-radius: 8px; overflow: hidden; opacity: .55; border: 2px solid transparent; text-align: left; }
.lb-thumbs button.on, .lb-thumbs button:hover { opacity: 1; border-color: var(--bronze); }
.lb-thumbs img { width: 100%; aspect-ratio: 1.5; object-fit: cover; display: block; }
.lb-thumbs span { display: block; padding: 4px 6px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #111; }

.modal { position: fixed; inset: 0; z-index: 60; background: rgba(8, 9, 7, .7); display: grid; place-items: center; animation: fade .2s; }
.modal-card { position: relative; width: min(820px, 92vw); padding: 28px 30px 22px; background: var(--panel-solid); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); }
.modal-card h2 { margin: 0 0 16px; font: 600 30px var(--serif); }
.modal-card .close { position: absolute; top: 16px; right: 16px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 22px; margin-bottom: 18px; }
.help-grid h4 { margin: 0 0 4px; color: var(--bronze-2); font-size: 13px; }
.help-grid p { margin: 0; color: var(--muted); font-size: 12.5px; }
.help-grid b { color: var(--text); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 70; padding: 10px 16px; border-radius: 10px; background: #f0e6d4; color: #1c1812; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------------ 3D labels */
.fac-pin {
	pointer-events: auto !important; display: flex; align-items: center; gap: 0; height: 24px; padding: 0; border-radius: 999px;
	background: var(--pc, #4f93bf); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 0 0 2px rgba(255, 255, 255, .85);
	font: 700 11px var(--sans); transform-origin: center; white-space: nowrap; /* no transform transition: the 3D label layer rewrites transform every frame, a transition would restart 100+ times a frame */
}
.fac-pin .n { min-width: 24px; text-align: center; }
.fac-pin { position: relative; }
.fac-pin .t { position: absolute; left: calc(100% + 6px); top: 50%; padding: 3px 9px; border-radius: 999px; background: var(--pc, #4f93bf); box-shadow: 0 2px 8px rgba(0,0,0,.35); font-weight: 600; opacity: 0; pointer-events: none; transform: translate(-6px, -50%); transition: opacity .2s, transform .2s; }
.fac-pin:hover, .fac-pin.active { transform: scale(1.12); z-index: 5; }
.fac-pin:hover .t, .fac-pin.active .t { opacity: 1; transform: translate(0, -50%); }
.fac-pin.compact { transform: scale(.72); }
.fac-pin.compact:hover { transform: scale(1); }
.fac-pin.has-photo .n::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #fff; margin-left: 2px; vertical-align: 5px; }
.club-island { --pc: #4f93bf; }
.club-grand { --pc: #c1704f; }
.club-wellness { --pc: #3aa98e; }
.club-estate { --pc: #8c8a86; }
.fac-pin.letter { height: 20px; font-size: 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.fac-pin.letter .n { min-width: 20px; }

.blk-tag {
	pointer-events: auto !important; display: flex; flex-direction: column; align-items: center; padding: 5px 11px 6px; border-radius: 10px;
	background: rgba(20, 21, 17, .86); border: 1px solid rgba(242, 199, 126, .45); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.blk-tag b { font: 600 16px/1 var(--serif); letter-spacing: .06em; color: var(--gold); }
.blk-tag small { font-size: 10px; color: var(--muted); margin-top: 2px; white-space: nowrap; }
.blk-tag:hover { transform: translateY(-2px); border-color: var(--gold); }
.sel-tag { display: flex; flex-direction: column; align-items: center; transform: translateY(-26px); padding: 4px 10px 5px; border-radius: 9px; background: #fff3d6; color: #1c1710; box-shadow: 0 6px 18px rgba(0,0,0,.35); font: 600 10px var(--sans); white-space: nowrap; }
.sel-tag::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #fff3d6; }
.sel-tag b { font: 700 16px/1.1 var(--serif); }
#app.viewing .sel-tag, #app.viewing .blk-tag, #app.viewing .fac-pin { opacity: .0; pointer-events: none !important; }

.road-tag { font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #4a4033; text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 0 10px rgba(255,255,255,.9); white-space: nowrap; }
.dark-ground .road-tag { color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8); }
.lm-tag { display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #2c2821; font: 600 11px var(--sans); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); white-space: nowrap; }
.lm-tag i { font-style: normal; font-size: 9px; padding: 2px 5px; border-radius: 999px; background: #6c6a62; color: #fff; letter-spacing: .04em; }
.lm-tag.lm-mrt i, .lm-tag.lm-mrt-exit i { background: #9d5a2b; }
.lm-tag.lm-school i { background: #4b7e9b; }
.lm-tag.lm-mall i { background: #9b4b7e; }
.lm-tag.lm-park i { background: #4f8a4a; }
.lm-tag.lm-place_of_worship { padding-left: 9px; font-weight: 500; opacity: .85; }
.lm-tag.lm-mrt-exit { font-size: 10px; background: #9d5a2b; color: #fff; }

/* ------------------------------------------------------------------ loading */
.loading { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: radial-gradient(ellipse at center, #1f2119, #0d0e0b); transition: opacity .6s; }
.loading.done { opacity: 0; pointer-events: none; }
.loading .ld { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loading img.e { width: 88px; animation: breathe 2.4s ease-in-out infinite; }
.loading img.w { width: 260px; }
.loading .bar { width: 220px; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.loading .bar i { display: block; height: 100%; width: 100%; background: var(--bronze-2); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.loading small { color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.96); } }

.attrib { position: absolute; left: 346px; bottom: 16px; z-index: 11; font-size: 10.5px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 2px #000; max-width: 40vw; }
.panel.left.collapsed ~ .attrib { left: 16px; }
#chart:not(.hidden) ~ .attrib { display: none; }

@media (max-width: 1280px) {
	.tool span { display: none; }
	.tool { padding: 0 9px; }
	.topbar { grid-template-columns: 290px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ Version B extras */
.tiles-badge {
	position: absolute; left: 346px; top: 84px; z-index: 13; display: flex; align-items: center; gap: 8px; padding: 6px 12px;
	background: var(--panel); border: 1px solid var(--line); border-radius: 999px; backdrop-filter: blur(12px); font-size: 11.5px; color: var(--muted);
}
.panel.left.collapsed ~ .tiles-badge { left: 16px; }
.tiles-badge i { width: 8px; height: 8px; border-radius: 50%; background: #8c8a86; }
.tiles-badge i.on { background: #5aa877; box-shadow: 0 0 0 3px rgba(90, 168, 119, .25); }
.banner { position: absolute; left: 50%; top: 86px; transform: translateX(-50%); z-index: 30; max-width: 640px; padding: 12px 16px; border-radius: 12px; background: #3a2320; border: 1px solid #7a3b33; color: #f6ddd7; font-size: 12.5px; box-shadow: var(--shadow); }
.key-card { width: min(560px, 92vw); }
.key-card p { font-size: 13px; }
.key-field { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 8px; font-size: 12px; color: var(--muted); }
.key-field input { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); padding: 0 12px; outline: none; }
.key-field input:focus { border-color: var(--bronze); }
.key-card .btn.primary { grid-column: auto; padding: 0 18px; }
#app.viewing .hud { right: 14px !important; bottom: 14px !important; }

/* ------------------------------------------------------------------ feng shui: door direction + plan compass */
.door-cell dd { font-size: 16px; }
.door-cell .mtn { font: 600 15px var(--serif); color: var(--gold); padding: 1px 8px; border-radius: 6px; background: rgba(242, 199, 126, .12); }
.door-cell .deg { font-weight: 700; color: var(--text); }
.door-cell small.warn { color: #f0c27e; margin-top: 4px; }
.lb-canvas { position: relative; max-width: 100%; max-height: 100%; transform-origin: center; }
.lb-canvas img { display: block; max-width: calc(100vw - 40px); max-height: calc(100vh - 190px); user-select: none; -webkit-user-drag: none; }
.lb-canvas img.flip { transform: scaleX(-1); }
.lb-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.lb-note { margin: 8px 20px 12px; font-size: 12.5px; color: var(--muted); }
.lb-note b { color: #f0c27e; }
.tgl { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 12px; cursor: pointer; }
.tgl input { accent-color: #c59465; margin: 0; }
.bg-sector { fill: rgba(125, 84, 57, .05); stroke: none; }
.bg-sector.alt { fill: rgba(125, 84, 57, .10); }
.bg-sector.on { fill: rgba(214, 150, 60, .22); }
.bg-ring { fill: none; stroke: #7d5439; stroke-width: 2.5; opacity: .75; }
.bg-ring.thin { stroke-width: 1.5; opacity: .5; }
.bg-ray { stroke: #7d5439; stroke-width: 2; stroke-dasharray: 10 8; opacity: .6; }
.bg-tick { stroke: #7d5439; stroke-width: 1.2; opacity: .5; }
.bg-tick.major { stroke-width: 2.4; opacity: .85; }
.bg-mtn { fill: #6b4a33; text-anchor: middle; dominant-baseline: middle; font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; opacity: .8; }
.bg-mtn.on { fill: #c0741b; font-weight: 700; opacity: 1; }
.bg-lbl text { fill: #5a3d2a; text-anchor: middle; font-family: "Jost", "Segoe UI", sans-serif; font-weight: 600; }
.bg-lbl text + text { font-weight: 500; opacity: .8; }
.bg-lbl.on text { fill: #c0741b; }
.bg-centre { fill: #7d5439; }
.door-mk circle { fill: #f2b24c; stroke: #fff; stroke-width: 4; }
.door-mk path { stroke: #d98f1e; stroke-width: 9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.door-lab rect { fill: #2b2118; opacity: .92; }
.door-lab text { fill: #fff3d6; text-anchor: middle; font-family: "Jost", "Segoe UI", sans-serif; font-weight: 600; }
.north circle { fill: rgba(255, 255, 255, .85); stroke: #7d5439; stroke-width: 3; }
.north .n { fill: #c0741b; }
.north line { stroke: #7d5439; stroke-width: 3; }
.north text { fill: #7d5439; text-anchor: middle; font-family: "Jost", "Segoe UI", sans-serif; font-weight: 700; }
.compass-pick .fc { text-align: center; line-height: 1.3; }

/* ------------------------------------------------------------------ show-on-map switches */
.show-on-map { padding-top: 10px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 12.5px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { position: relative; flex: none; width: 34px; height: 20px; border-radius: 999px; background: rgba(255, 255, 255, .14); transition: background .2s; }
.switch-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #d9d3c5; transition: transform .2s; }
.switch-row input:checked + i { background: var(--bronze); }
.switch-row input:checked + i::after { transform: translateX(14px); background: #fff; }
.switch-row input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.mobile-only { display: none !important; }
.gl-lost { max-width: 420px; }

/* ------------------------------------------------------------------ phones */
@media (max-width: 760px) {
	.mobile-only { display: flex !important; }
	.topbar { top: 8px; left: 8px; right: 8px; height: auto; grid-template-columns: 1fr auto; gap: 8px; padding: 6px 6px 6px 10px; row-gap: 6px; }
	.brand .emblem { height: 28px; }
	.brand .wordmark { height: 11px; }
	.brand small, .brand .brand-text { display: none; }
	.search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
	.search kbd { display: none; }
	.search input { height: 36px; font-size: 16px; }
	.tools { gap: 0; }
	.tool { padding: 0 7px; height: 34px; }
	.tool span { display: none; }
	.tool[data-tool="gallery"], .tool[data-tool="help"], .tool[data-tool="tour"] { display: none; }
	.tool.switch { margin-left: 2px; }
	.panel { top: 108px; bottom: 8px; }
	.panel.left { left: 8px; width: calc(100% - 16px); z-index: 25; }
	.panel.left.collapsed { transform: translateX(calc(-100% - 20px)); }
	.panel.left .collapse { display: none; }
	.panel.right { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 62vh; padding: 14px 14px 12px; z-index: 24; border-radius: 16px 16px 12px 12px; }
	.uc-no { font-size: 30px; }
	.uc-plan img { aspect-ratio: 1.9; }
	.drawer { left: 8px !important; right: 8px !important; bottom: 8px; max-height: 42vh; }
	.drawer-head .hint { display: none; }
	.hud { right: 8px !important; bottom: 8px; }
	#card:not(.hidden) ~ .hud, #chart:not(.hidden) ~ .hud { display: none; }
	.minimap { display: none; }
	.compass { width: 52px; height: 52px; }
	.tiles-badge, .attrib { left: 8px !important; top: auto; bottom: 66px; font-size: 10.5px; }
	.pop { top: 108px; right: 8px; left: 8px; width: auto; }
	.tourbar, .viewbar { top: 108px; width: calc(100% - 16px); min-width: 0; padding: 10px 10px 10px 14px; }
	.tb-cap b { font-size: 17px; }
	.tb-cap span { font-size: 12px; }
	.modal-card { padding: 22px 18px 16px; }
	.help-grid { grid-template-columns: 1fr; gap: 10px; }
	.lb-head { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
	.lb-head b { font-size: 18px; }
	.lb-stage { margin: 0 8px; }
	.lb-canvas img { max-width: calc(100vw - 16px); max-height: calc(100vh - 230px); }
	.fac-pin { height: 22px; font-size: 10px; }
	.fac-pin .n { min-width: 22px; }
	.blk-tag { padding: 3px 8px 4px; }
	.blk-tag b { font-size: 13px; }
	.blk-tag small { display: none; }
	.lm-tag { font-size: 10px; }
	.road-tag { font-size: 9.5px; letter-spacing: .1em; }
	.tooltip { display: none !important; }
}

/* the centre caption must not block clicks on the direction buttons around it */
.compass-pick .fc { pointer-events: none; }
.compass-pick .fdir { z-index: 1; }

/* ------------------------------------------------------------------ agent brand (Artifact copy) */
.brand.agent { cursor: default; }
.agent-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--bronze); color: var(--bronze-2); font: 600 15px/1 var(--serif); letter-spacing: .06em; flex: none; }
.agent-title { font: 600 17px/1.1 var(--serif); letter-spacing: .02em; color: var(--text); white-space: nowrap; }

/* low-quality tiers: drop the blur-behind-WebGL effects, which re-composite every frame */
.q-low .topbar, .q-low .panel, .q-low .drawer, .q-low .compass, .q-low .tiles-badge { backdrop-filter: none; background: var(--panel-solid, #142330); }
.q-low .fac-pin { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }

.tiles-badge i.wait { background: #d9c08a; animation: tb-pulse 1.2s ease-in-out infinite; }
@keyframes tb-pulse { 50% { opacity: .35; } }
.tiles-badge .link { margin-left: 4px; background: none; border: 0; color: var(--gold); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ============================================================================
   Website explorer theme: VionaPropnex fonts + ink/brass palette over the 3D app,
   members gate UI (unlock panel, chip, lock badges, teasers, shortlist).
   ========================================================================== */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/fraunces-var.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-var.woff2") format("woff2"); }

:root {
	--bg: #0f1922;
	--panel: rgba(17, 29, 39, 0.86);
	--panel-solid: #142330;
	--line: rgba(232, 226, 214, 0.1);
	--line-2: rgba(232, 226, 214, 0.18);
	--text: #ece6da;
	--muted: #a9b2b8;
	--faint: #74828c;
	--bronze: #b08d4a;
	--bronze-2: #d9c08a;
	--gold: #d9c08a;
	--sage: #c9cfa6;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
	--wa-deep: #075e54;
}

/* ---- site wordmark in the explorer top bar ------------------------------- */
.brand.site { gap: 0; }
.vp-wordmark { font: 600 21px/1 var(--serif); letter-spacing: -0.01em; color: var(--text); }
.vp-wordmark span { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-left: 6px; vertical-align: 2px; }

/* ---- member chip (top bar) ------------------------------------------------ */
.tool.member-chip.cta { background: linear-gradient(180deg, #c9a45f, #a8843f); color: #18120a; font-weight: 700; }
.tool.member-chip.cta:hover { filter: brightness(1.06); color: #18120a; }
.tool.member-chip.cta span { display: inline; }
.member-menu { width: 330px; }
.member-menu h4 { flex-direction: column; align-items: flex-start; gap: 2px; }
.sl-head { display: flex; justify-content: space-between; margin: 10px 0 6px; font-size: 12.5px; }
.sl { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.sl li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); font-size: 12px; }
.sl li .link { font: 600 15px var(--serif); text-decoration: none; }
.sl li span { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-x { width: 24px; height: 24px; font-size: 16px; }
.member-menu .btn { width: 100%; margin-top: 6px; }
.member-menu .btn.primary { grid-column: auto; height: 40px; }

/* ---- lock badges ------------------------------------------------------- */
[data-lock].locked { position: relative; }
[data-lock].locked > .lk { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #18120a; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); pointer-events: none; z-index: 2; }
[data-lock].locked > .lk svg { width: 11px; height: 11px; stroke-width: 2.4; }
.tool[data-lock].locked > .lk { top: 2px; right: 2px; }
.seg button[data-lock].locked > .lk { top: -5px; right: -3px; width: 15px; height: 15px; }
.seg button[data-lock].locked > .lk svg { width: 9px; height: 9px; }
.blurlock[data-lock].locked { cursor: pointer; }
.blurlock[data-lock].locked > *:not(.lk) { filter: blur(3px); opacity: 0.55; pointer-events: none; }
.blurlock[data-lock].locked::after { content: "Members only · unlock free"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 5px 11px; border-radius: 999px; background: rgba(15, 25, 34, 0.92); border: 1px solid var(--gold); color: var(--gold); font: 600 11.5px var(--sans); white-space: nowrap; pointer-events: none; }
.uc-plan[data-lock].locked figcaption span { color: var(--gold); }
.teaser dd .link { color: var(--gold); font: 600 14px var(--sans); text-align: left; }
.teaser dd small { color: var(--muted); }
.btn.fav { grid-column: span 2; }
.btn.fav.on { border-color: #d36b72; color: #f2a5ab; background: rgba(211, 107, 114, 0.1); }

/* ---- stacking chart teaser ----------------------------------------------- */
.chart-teaser { position: relative; display: grid; place-items: center; min-height: 180px; padding: 12px; }
.ct-fake { position: absolute; inset: 10px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; filter: blur(2.5px); opacity: 0.45; }
.ct-fake i { border-radius: 3px; background: var(--c); min-height: 14px; }
.ct-copy { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 22px; border-radius: 14px; background: rgba(15, 25, 34, 0.92); border: 1px solid var(--line-2); text-align: center; max-width: 380px; }
.ct-copy b { font: 600 18px var(--serif); }
.ct-copy span { color: var(--muted); font-size: 12.5px; }
.ct-copy .btn.primary { grid-column: auto; height: 38px; padding: 0 18px; margin-top: 4px; }

/* ---- unlock panel ------------------------------------------------------- */
.modal.unlock { z-index: 80; padding: 16px; overflow-y: auto; }
.unlock-card { width: min(920px, 100%); padding: 0; overflow: hidden; }
.unlock-card.narrow { width: min(440px, 100%); padding: 26px 24px 22px; }
.unlock-card .close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.unlock-grid { display: grid; grid-template-columns: 1fr 1.05fr; }
.unlock-pitch { padding: 30px 28px 26px; background: linear-gradient(160deg, rgba(176, 141, 74, 0.16), rgba(176, 141, 74, 0.02)); border-right: 1px solid var(--line); }
.unlock-pitch .eyebrow { display: inline-block; font: 700 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.unlock-pitch h2 { margin: 0 0 8px; font: 600 28px/1.15 var(--serif); text-wrap: balance; }
.unlock-pitch > p { margin: 0 0 16px; font-size: 13.5px; }
.feat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; }
.feat li.want { background: rgba(217, 192, 138, 0.14); outline: 1px solid rgba(217, 192, 138, 0.4); }
.feat i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(217, 192, 138, 0.16); color: var(--gold); }
.feat i svg { width: 13px; height: 13px; stroke-width: 2.6; }
.feat b { display: block; font-size: 13.5px; font-weight: 600; }
.feat span { display: block; font-size: 12.5px; color: var(--muted); }
.unlock-form { padding: 30px 28px 24px; display: flex; flex-direction: column; justify-content: center; }
.su-form { display: flex; flex-direction: column; gap: 10px; }
.su-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); min-width: 0; }
.fld.wide { grid-column: 1 / -1; }
.fld em { font-style: normal; color: var(--faint); }
.fld input, .fld select { height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); padding: 0 12px; color: var(--text); font: 15px var(--sans); outline: none; width: 100%; }
.fld input:focus, .fld select:focus { border-color: var(--gold); }
.fld select option { color: #111; }
.consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; cursor: pointer; }
.consent input { margin-top: 2px; accent-color: var(--bronze); width: 16px; height: 16px; flex: none; }
.pdpa-note { margin: 0; font-size: 11.5px; color: var(--faint); }
.pdpa-note a { color: var(--muted); }
.su-error { margin: 0; padding: 8px 10px; border-radius: 8px; background: rgba(179, 38, 30, 0.18); border: 1px solid rgba(179, 38, 30, 0.5); color: #f3b4ae; font-size: 12.5px; }
.su-submit { height: 46px !important; font-size: 15px !important; }
.su-alt { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.su-state h3 { margin: 0 0 8px; font: 600 24px var(--serif); }
.su-state p { margin: 0 0 12px; font-size: 13.5px; }
.su-state .btn { width: 100%; }
.su-state .row-btns .btn { width: auto; flex: 1; }
.btn.wa { background: var(--wa-deep); border-color: var(--wa-deep); color: #fff; font-weight: 600; height: 44px; }
.btn.wa:hover { background: #064e46; }
.btn.wa svg, .member-menu .btn svg { width: 17px; height: 17px; }

@media (max-width: 760px) {
	.unlock-grid { grid-template-columns: 1fr; }
	.unlock-pitch { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 18px 18px; }
	.unlock-pitch h2 { font-size: 23px; }
	.feat { gap: 4px; }
	.feat span { display: none; }
	.unlock-form { padding: 20px 18px 22px; }
	.su-grid { grid-template-columns: 1fr; }
	.tool.member-chip.cta span { display: inline; font-size: 12px; }
	.member-menu { width: auto; }
	.vp-wordmark { font-size: 17px; }
	.vp-wordmark span { font-size: 10.5px; }
}

@media (max-width: 760px) {
	.brand.site .brand-text { display: flex !important; }
	.brand.site small { display: none; }
}

/* ---- website menu (top-left button + slide-out panel) -------------------- */
.topbar.has-menu { grid-template-columns: auto 300px 1fr auto; padding-left: 8px; }
.menu-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--text); font: 600 13px var(--sans); }
.menu-btn:hover { border-color: var(--gold); color: var(--gold); }
.site-menu { position: fixed; inset: 0; z-index: 90; }
.sm-scrim { position: absolute; inset: 0; background: rgba(6, 12, 17, .55); animation: fade .2s; }
.sm-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 22px; background: var(--panel-solid); border-right: 1px solid var(--line-2); box-shadow: var(--shadow); overflow-y: auto; animation: smIn .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes smIn { from { transform: translateX(-24px); opacity: 0; } }
.sm-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sm-head .vp-wordmark { text-decoration: none; }
.sm-list, .sm-list ul { list-style: none; margin: 0; padding: 0; }
.sm-list > li > a, .sm-list ul a { display: block; padding: 10px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font: 500 15px var(--sans); }
.sm-list a:hover, .sm-list a:focus-visible { background: rgba(217, 192, 138, .12); color: var(--gold); outline: none; }
.sm-group > span { display: block; padding: 14px 10px 4px; font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.sm-group ul a { padding-left: 18px; font-size: 14.5px; color: var(--muted); }
.sm-list a[href*="3D-model-explorer"] { color: var(--gold); }
.sm-cta { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; }
.sm-cta .btn { width: 100%; height: 44px; text-decoration: none; }
@media (max-width: 760px) {
	.topbar.has-menu { grid-template-columns: auto 1fr auto; }
	.menu-btn span { display: none; }
	.menu-btn { padding: 0 9px; }
}

@media (max-width: 760px) {
	.topbar.has-menu .brand { display: none !important; }
	.topbar.has-menu .tools { justify-self: end; }
}
