:root {
  --paper: #f3eee4;
  --paper-2: #ebe4d6;
  --ink: #1d2a22;
  --ink-2: #4c5a50;
  --line: #cfc5b2;
  --signal: #7a2e2a;          /* oxblood: only ever means "tap this" */
  --signal-ink: #fbf6ee;
  --available: #2f6b4f;
  --reserved: #8a5a14;
  --sold: #5f5e59;
  --field-line: #8a8272;      /* borders of fields, chips and filter buttons: 3:1 on paper */
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --panel-w: 460px;
  --ar: 1.7768;                 /* hero width / height, set from config.hero by stage.js */
  --stage-h-phone: 484px;       /* how tall the building is on a phone; its width follows the ratio */
  --w: min(1400px, max(720px, calc((100svh - 260px) * var(--ar))));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px)); }   /* scrolling (focus, scrollIntoView, #links) never parks content under the sticky header */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  font-variant-numeric: lining-nums;   /* Cormorant's old-style figures made "1L1" and "6101" read as letters */
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* top bar */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) clamp(16px, 4vw, 48px) 14px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; }
.brand-name { font: 500 26px/1.25 var(--serif); letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; margin-block: -0.125em; }
.brand-meta { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tally { margin: 0 0 0 auto; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tally b { color: var(--ink); font-weight: 600; }

.btn {
  border: 0; border-radius: 2px; cursor: pointer;
  padding: 11px 18px; font-weight: 500; font-size: 14px; letter-spacing: 0.02em;
  transition: transform 160ms var(--ease), background-color 160ms;
}
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { background: #8d3732; }
.btn-signal:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; pointer-events: none; }
.bar .btn { white-space: nowrap; flex: none; }
.btn.wide { width: 100%; padding: 14px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* intro + filters */
main { padding: 0 clamp(16px, 4vw, 48px); }
.intro { padding-block: clamp(18px, 3vw, 30px) 14px; max-width: var(--w); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 32px; }
.intro h1 { font: 400 clamp(38px, 4.6vw, 66px)/0.95 var(--serif); margin: 0; letter-spacing: -0.01em; }
.intro p { margin: 0 0 4px; max-width: 44ch; color: var(--ink-2); font-size: 14px; }

.filters {
  max-width: var(--w); margin: 0 auto 14px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  font-size: 13px;
}
.filters-label { color: var(--ink-2); letter-spacing: 0.08em; text-transform: uppercase; font-size: 11px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.block-filter { display: inline-flex; align-items: center; gap: 10px; }
.chip {
  min-width: 44px; min-height: 36px; padding: 0 12px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--field-line); background: transparent; font-size: 13px;
  transition: background-color 140ms, border-color 140ms, transform 140ms var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip:active, .icon-btn:active, .tabs button:active, .enlarge:active, .g-btn:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; min-height: 36px; }
.toggle input { accent-color: var(--ink); width: 16px; height: 16px; }
.legend { margin-left: auto; display: flex; gap: 14px; color: var(--ink-2); font-size: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.available { background: var(--available); }
.dot.reserved { background: var(--reserved); }
.dot.sold { background: var(--sold); }

/* the building */
.stage-wrap { max-width: var(--w); margin: 0 auto; }
.stage { position: relative; aspect-ratio: var(--ar); background: var(--paper-2); }
.stage img { width: 100%; height: 100%; object-fit: fill; }   /* stage ratio = image ratio, so nothing is cropped */
.img-note { position: absolute; left: 8px; bottom: 8px; margin: 0; padding: 4px 8px; border-radius: 2px; font-size: 12px; background: var(--paper); color: var(--signal); border: 1px solid var(--line); }
.view, .g-slide { position: relative; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.unit { cursor: pointer; outline: none; }
.unit polygon {
  fill: transparent; stroke: transparent; stroke-width: 2; vector-effect: non-scaling-stroke;
  transition: fill 180ms var(--ease), stroke 180ms var(--ease), opacity 180ms;
}
.unit .pin { transition: opacity 180ms; }
.unit.available .pin { fill: var(--available); }
.unit.reserved .pin { fill: var(--reserved); }
.unit.sold .pin { fill: var(--sold); }
.unit.sold .pin { opacity: 0.85; }
.unit:hover polygon, .unit.active polygon {
  fill: rgba(251, 246, 238, 0.42); stroke: #fbf6ee; stroke-width: 3;   /* always light: it sits on the photograph, whatever the page tone */
}
.unit.sold:hover polygon, .unit.sold.active polygon { fill: rgba(29, 42, 34, 0.22); }
/* keyboard focus: a paper line with a dark halo, visible on bright sky and dark brick alike */
.unit:focus-visible polygon { fill: rgba(251, 246, 238, 0.55); stroke: #fbf6ee; stroke-width: 3; filter: drop-shadow(0 0 1.5px rgba(17, 24, 20, 0.95)) drop-shadow(0 0 1px rgba(17, 24, 20, 0.95)); }
/* mouse and trackpad: the photograph stays clean until the pointer is on the building, then every home shows its pin */
@media (hover: hover) and (pointer: fine) {
  .unit .pin { opacity: 0; }
  .stage:hover .unit .pin, .stage:focus-within .unit .pin, body.kiosk .unit .pin { opacity: 1; }
  .stage:hover .unit.sold .pin { opacity: 0.85; }
}
/* land releases: plots coloured by status (no pins), numbers come with the hover card */
.plot-fill .pin { display: none; }
.plot-fill .unit polygon { stroke: rgba(251, 246, 238, 0.9); stroke-width: 1; }
.plot-fill .unit.available polygon { fill: rgba(47, 107, 79, 0.5); }
.plot-fill .unit.reserved polygon { fill: rgba(138, 90, 20, 0.55); }
.plot-fill .unit.sold polygon { fill: rgba(95, 94, 89, 0.42); }
.plot-fill .unit:hover polygon, .plot-fill .unit.active polygon { fill: var(--signal); stroke: #fbf6ee; stroke-width: 2.5; }
.unit.dim polygon { fill: rgba(29, 42, 34, 0.5); }
.unit.dim .pin { opacity: 0; }
.unit.dim { pointer-events: none; }

.card {
  position: absolute; z-index: 5; pointer-events: none; min-width: 210px;
  background: var(--paper); color: var(--ink); border-radius: 3px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 14px 34px -12px rgba(20, 28, 22, 0.45);
  padding: 12px 14px; transform: translate(-50%, calc(-100% - 14px));
  animation: rise 160ms var(--ease);
}
.card .c-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.card .c-unit { font: 500 22px/1 var(--serif); }
.card .c-level { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.card .c-meta { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.card .c-price { margin-top: 8px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card::after { content: ''; position: absolute; left: var(--tip, 50%); bottom: -6px; width: 12px; height: 12px; translate: -50% 0; rotate: 45deg; background: var(--paper); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)); } }

.stage-hint { display: none; margin: 8px 0 0; font-size: 12px; color: var(--ink-2); }

.badge { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.available { color: var(--available); }
.badge.reserved { color: var(--reserved); }
.badge.sold { color: var(--sold); }

/* list */
.list { max-width: var(--w); margin: clamp(40px, 6vw, 72px) auto 0; }
.list h2 { font: 400 34px/1 var(--serif); margin: 0 0 16px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 10px 12px; border-bottom: 1px solid var(--ink); }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: lining-nums tabular-nums; }
tbody tr { cursor: pointer; transition: background-color 140ms; }
tbody tr:hover, tbody tr:focus-within { background: var(--paper-2); }
tbody tr.dim { opacity: 0.35; }
td.u { font: 500 19px/1 var(--serif); }
.row-btn { font: inherit; color: inherit; background: none; border: 0; padding: 4px 0; min-height: 32px; cursor: pointer; text-align: left; }
.row-btn:disabled { cursor: default; }

.foot { max-width: var(--w); margin: 56px auto 0; padding: 22px clamp(16px, 4vw, 48px) calc(30px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.foot p { margin: 0; }

/* panel */
.panel {
  position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(var(--panel-w), 100vw);
  background: var(--paper); box-shadow: none; visibility: hidden;
  transform: translateX(100%); transition: transform 220ms cubic-bezier(0.4, 0, 1, 1), visibility 0s 220ms, box-shadow 0s 220ms;
  overflow-y: auto; overscroll-behavior: contain;
}
.panel.open { transform: none; visibility: visible; box-shadow: -20px 0 60px -30px rgba(20, 28, 22, 0.5); transition: transform 320ms var(--ease); }
.panel-inner { padding: calc(20px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px)); }
.panel-top { display: flex; align-items: center; gap: 2px; }
.panel-top h2 { font: 500 34px/1 var(--serif); margin: 0 auto 0 0; order: -1; outline: none; }   /* title left, controls grouped right */
.icon-btn { width: 40px; height: 40px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-2); transition: background-color 140ms, color 140ms, transform 140ms var(--ease); display: inline-grid; place-items: center; padding: 0; flex: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn.close { color: var(--ink); margin-left: 4px; }
.icon-btn.close svg { stroke-width: 1.8; }
.p-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; letter-spacing: 0.04em; }
.p-price { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 14px; }
.p-price span:first-child { font: 500 30px/1 var(--serif); }
.p-note { margin: -6px 0 14px; font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }   /* optional priceNote, e.g. a payment plan */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts div { padding: 11px 0 10px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 2px 0 0; font-weight: 500; font-variant-numeric: tabular-nums; }

.tabs { display: flex; gap: 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs button { background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.view { margin: 0; }
.view img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.view figcaption { font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.gallery { margin: 0; }
.g-fig { margin: 0; }
.g-frame { position: relative; overflow: hidden; background: var(--paper-2); touch-action: pan-y; }
.g-strip { display: flex; transition: transform 320ms var(--ease); }
.g-slide { flex: 0 0 100%; min-width: 0; }
.g-slide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.g-btn {
  position: absolute; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 90%, transparent); font-size: 22px; line-height: 1;
  transition: opacity 160ms, border-color 160ms;
}
.g-btn:hover:not(:disabled) { border-color: var(--ink); }
.g-btn:disabled { visibility: hidden; }
.g-prev { left: 10px; }
.g-next { right: 10px; }
.gallery.single .g-btn, .gallery.single .g-count { display: none; }
.g-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.g-room { font: 500 20px/1 var(--serif); color: var(--ink); }
.g-count { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.plan svg, .keyplan svg { width: 100%; height: auto; display: block; }
.keyplan { margin-top: 14px; }

.enquiry { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.enquiry h3 { font: 500 24px/1.1 var(--serif); margin: 0 0 4px; }
.enquiry label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.enquiry .opt { font-size: 12px; opacity: 0.85; }
.enquiry input[aria-invalid="true"] { border-color: var(--signal); box-shadow: inset 0 0 0 1px var(--signal); }
.enquiry .check:has(input[aria-invalid="true"]) { color: var(--signal); }
.enquiry input:not([type="checkbox"]) {
  font: inherit; font-size: 16px; color: var(--ink); padding: 11px 12px; border: 1px solid var(--field-line); border-radius: 2px; background: #fbf8f2;
}
.enquiry input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.enquiry .check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 12px; }
.enquiry .check input { margin-top: 2px; accent-color: var(--ink); width: 16px; height: 16px; }
.form-err { margin: 0; color: var(--signal); font-size: 13px; min-height: 0; }
.form-err:not(:empty)::before { content: 'Error: '; font-weight: 600; }
.form-err:empty { display: none; }
.form-ok { margin: 0; font-size: 14px; padding: 12px 14px; background: var(--paper-2); }

.panel.generic .unit-only, .panel.generic #prev, .panel.generic #next { display: none; }
.panel.generic .enquiry { margin-top: 8px; border-top: 0; }
body.locked { overflow: hidden; }
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(17, 24, 20, 0.16); }

/* phone */
@media (max-width: 760px) {
  .bar { gap: 12px; }
  .brand-meta, .tally { display: none; }
  .bar .btn { margin-left: auto; padding: 10px 14px; font-size: 13px; }
  .legend { margin-left: 0; width: 100%; }
  .stage-wrap { margin-inline: calc(-1 * clamp(16px, 4vw, 48px)); overflow-x: auto; scrollbar-width: none; }
  .stage-wrap::-webkit-scrollbar { display: none; }
  .stage { width: max(100%, calc(var(--stage-h-phone) * var(--ar))); }
  .stage-hint { display: block; padding-inline: 16px; position: sticky; left: 0; width: 100vw; max-width: 100%; }
  .panel {
    top: auto; left: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: 14px 14px 0 0;
    transform: translateY(100%);
  }
  .panel.open { transform: none; }
  .panel-top h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* config problems */
.config-errors { max-width: 720px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px); }
.config-errors h1 { font-family: var(--serif, 'Cormorant Garamond', serif); font-weight: 500; font-size: 32px; margin: 0 0 12px; }
.config-errors ul { padding-left: 20px; line-height: 1.6; }
.config-errors li { margin-bottom: 4px; }

/* ?preview=1: the onboarding tool's draft, never the published page */
.preview-ribbon { position: sticky; top: 0; z-index: 35; padding: 6px 16px; text-align: center; font: 600 13px var(--sans, system-ui); letter-spacing: 0.04em; background: var(--ink); color: var(--paper); }
.is-preview .bar { top: 29px; }

/* ---------- enlarge (lightbox) ---------- */
.view img, .g-slide img, .plan { cursor: zoom-in; }
#pane-plan { position: relative; }
.enlarge {
  position: absolute; z-index: 2; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(29, 42, 34, 0.18); background: rgba(251, 246, 238, 0.92); color: var(--ink);
  font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px -6px rgba(20, 28, 22, 0.45);
  transition: transform 160ms var(--ease), background-color 160ms;
}
.enlarge:hover { background: var(--paper); transform: scale(1.06); }
#pane-plan > .enlarge { top: 4px; right: 4px; }
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: var(--paper); overflow: hidden;
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-shade { position: absolute; inset: 0; background: rgba(17, 24, 20, 0.94); }
.lightbox.lb-pre .lb-shade, .lightbox.lb-pre .lb-stage, .lightbox.lb-pre .lb-meta,
.lightbox.lb-pre .lb-btn, .lightbox.lb-pre .lb-close { opacity: 0; }
.lb-stage, .lb-meta { position: relative; }
.lb-media { transform-origin: center center; will-change: transform; }
.lb-stage > * { grid-area: 1 / 1; }   /* outgoing and incoming photos overlap while they cross-fade */
.lb-stage {
  display: grid; place-items: center; min-height: 0; position: relative;
  padding: calc(56px + env(safe-area-inset-top, 0px)) clamp(12px, 6vw, 88px) 8px; touch-action: pan-y;
}
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7); }
.lb-svg { background: var(--paper); padding: 16px; border-radius: 3px; max-width: 100%; }
.lb-svg svg { display: block; width: auto; height: calc(100dvh - 170px); max-width: calc(100vw - 2 * clamp(12px, 6vw, 88px) - 32px); }
.lb-meta {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 10px clamp(16px, 6vw, 88px) calc(18px + env(safe-area-inset-bottom, 0px));
}
.lb-cap { font: 500 22px/1.2 var(--serif); }
.lb-count { font-size: 13px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.lb-btn, .lb-close {
  position: absolute; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(251, 246, 238, 0.35); background: rgba(17, 24, 20, 0.55); color: var(--paper); font-size: 24px; line-height: 1;
}
.lb-btn { top: 50%; transform: translateY(-50%); }
.lb-prev { left: clamp(8px, 2vw, 24px); }
.lb-next { right: clamp(8px, 2vw, 24px); }
.lb-btn:disabled { visibility: hidden; }
.lb-close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; font-size: 28px; }
.lb-btn:hover, .lb-close:hover { background: rgba(17, 24, 20, 0.85); border-color: var(--paper); }
.lightbox :focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.foot p + p { margin-top: 8px; }
.foot-tool { color: var(--signal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .lb-btn { top: auto; bottom: 64px; transform: none; } }

/* ---------- milestone 4: delivery, sharing, availability, kiosk ---------- */
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-ghost:hover { border-color: var(--ink); background: transparent; }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; margin: 6px 0 0; }
.p-actions .btn { padding: 0; min-height: 36px; font-size: 13px; border: 0; background: none; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.p-actions .btn:hover { color: var(--ink); text-decoration-color: var(--ink); }
.share-note { margin: 0; font-size: 12px; color: var(--ink-2); }
.share-note:empty { display: none; }
.share-link { flex: 1 1 100%; font: inherit; font-size: 13px; padding: 9px 10px; border: 1px solid var(--field-line); background: #fbf8f2; color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-fail { margin: 0; font-size: 14px; padding: 12px 14px; border: 1px solid var(--signal); background: var(--paper-2); }
.form-follow { display: grid; gap: 8px; justify-items: start; }
.form-follow:empty { display: none; }
.form-follow p { margin: 0; font-size: 13px; }
.form-follow .mono { font-weight: 600; user-select: all; }
.form-follow .btn { padding: 10px 16px; font-size: 14px; }
.avail-note { max-width: var(--w); margin: -6px auto 10px; font-size: 12px; color: var(--ink-2); }

/* show-suite screen: big targets, nothing that needs a mouse */
body.kiosk { -webkit-user-select: none; user-select: none; touch-action: manipulation; font-size: 17px; }
body.kiosk .foot, body.kiosk .home-link, body.kiosk .stage-hint, body.kiosk .p-share, body.kiosk #share-note, body.kiosk #share-link { display: none; }
body.kiosk .chip { min-height: 52px; padding: 0 22px; font-size: 16px; }
body.kiosk .toggle input { width: 26px; height: 26px; }
body.kiosk .toggle { font-size: 16px; gap: 10px; }
body.kiosk .btn { padding: 16px 24px; font-size: 16px; min-height: 52px; }
body.kiosk .icon-btn { width: 56px; height: 56px; font-size: 26px; }
body.kiosk .row-btn { min-height: 52px; font-size: 22px; }
body.kiosk td { padding-block: 16px; }
body.kiosk .tabs button { padding: 14px 0; font-size: 16px; }
body.kiosk .enquiry input:not([type="checkbox"]) { padding: 16px 14px; font-size: 18px; }
body.kiosk .enquiry .check input { width: 26px; height: 26px; }
body.kiosk .panel { --panel-w: 560px; }

/* ---------- panel extras (sticky enquire bar, where-it-is thumbnail, sheet grip), private tone, towers ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.panel-top { position: relative; }
.sheet-handle { display: none; }
.p-cta {
  position: sticky; bottom: 0; z-index: 3; margin-top: -1px;
  padding: 12px 24px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.p-cta .btn { min-height: 48px; font-size: 15px; }
.where { margin: 0 0 8px; }
.where-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.where-img svg { display: block; width: 100%; height: 100%; }
.where-halo { fill: rgba(251, 246, 238, 0.28); stroke: rgba(17, 24, 20, 0.7); stroke-width: 6px; vector-effect: non-scaling-stroke; }
.where-line { fill: none; stroke: #fbf6ee; stroke-width: 2.5px; vector-effect: non-scaling-stroke; }
.where figcaption { font-size: 12px; color: var(--ink-2); margin-top: 8px; }


/* a tall tower: on wide screens the list sits beside it instead of leaving empty margins */
@media (min-width: 1100px) {
  .portrait main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 72px); max-width: min(100%, 1400px); margin-inline: auto; }
  .portrait main > * { grid-column: 1 / -1; max-width: none; width: 100%; }
  .portrait .stage-wrap { grid-column: 1; width: 100%; max-width: 100%; }
  .portrait .stage { width: 100%; }
  .portrait .list { grid-column: 2; margin-top: 0; align-self: start; position: sticky; top: 88px; max-height: calc(100svh - 104px); overflow: auto; }
  .portrait .list table { min-width: 0; }
  .portrait .bar { padding-inline: max(48px, calc((100% - 1400px) / 2 + 48px)); }
}
@media (min-width: 1800px) {
  .portrait main { max-width: min(100%, 2200px); }
  .portrait .bar { padding-inline: max(48px, calc((100% - 2200px) / 2 + 48px)); }
}

/* private releases (tone: "private"): a darker, quieter room for super-prime homes */
.tone-private {
  --paper: #161a17; --paper-2: #20251f; --ink: #efe9dd; --ink-2: #b9b1a2; --line: #3a4037; --field-line: #7d7768;
  --signal: #b8955a; --signal-ink: #161a17;
  --available: #7fbf9b; --reserved: #d9a95b; --sold: #9c988e;
  color-scheme: dark;
}
.tone-private body { background: var(--paper); }
.tone-private .btn-signal:hover { background: #c9a66a; }
.tone-private .intro h1 { letter-spacing: 0.005em; }
.tone-private .brand-name { letter-spacing: 0.12em; text-transform: uppercase; font-size: 20px; }
.tone-private .toggle { display: none; }
.tone-private .enquiry input:not([type="checkbox"]), .tone-private .share-link { background: #1c201c; color: var(--ink); }
.tone-private .plan svg, .tone-private .keyplan svg { background: #f3eee4; border-radius: 2px; }
.tone-private .unit.sold:hover polygon, .tone-private .unit.sold.active polygon { fill: rgba(0, 0, 0, 0.3); }
.tone-private .scrim { background: rgba(0, 0, 0, 0.35); }

/* the `font:` shorthand resets font-variant-numeric, so every serif number gets lining figures here, last */
h1, h2, h3, .brand-name, .p-price span, td.u, .row-btn, .card .c-unit, .card .c-price, .g-room, .lb-cap, .facts dd, .tally { font-variant-numeric: lining-nums tabular-nums !important; }
.unit.active .pin { fill: var(--signal); opacity: 1 !important; }   /* the home that is open stays marked on the building */

.tone-private .enlarge { color: #161a17; }
.tone-private .g-btn { color: #161a17; }
td:nth-child(5), td:nth-child(6) { white-space: nowrap; }   /* "168 m²" and "AED 6,350,000" never break */

/* demos only: back to the studio's site, left of the development name */
.home-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-right: 16px; margin-right: 2px; border-right: 1px solid var(--line);
  font: 600 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; white-space: nowrap; flex: none; transition: color 140ms; }
.home-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease); }
.home-link:hover { color: var(--ink); }
.home-link:hover svg { transform: translateX(-2px); }
@media (max-width: 760px) { .home-link span { display: none; } .home-link { padding-right: 10px; min-width: 44px; justify-content: center; } }
