/* Prototype B2: one evening in Dubai (art direction: Fable 5.1, round 1).
   A full-height column on paper beside the scene; inside the scene nothing
   but the evening, a caption and one control. Gold is a hairline and small
   type, never a fill over the picture. */
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-display-450.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #17191C;
  --ink-2: #4B5057;
  --ink-3: #6B7077;
  --paper: #FCFBF9;
  --line: #E6E1D7;
  --gold: #C4A062;
  --gold-text: #86642A;
  --gold-light: #D8BC86;
  --dusk: #17191C;
  --display: "Newsreader", Georgia, serif;
  --text: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --col: 380px;
  --flag: 24px;
  --bar-h: 72px;
  --free: calc(24px + var(--col) + 32px);      /* where the picture's own space begins, beside the sidebar */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); display: flex; flex-direction: column; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
.proto-flag { margin: 0; height: var(--flag); overflow: hidden; padding: 4px var(--gutter); background: var(--ink); color: rgba(255, 255, 255, 0.7); font: 500 11px/1.4 var(--text); letter-spacing: 0.04em; }
.bar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { display: grid; font: 500 20px/1.05 var(--display); letter-spacing: 0.28em; }
.brand-name span { font: 500 10px/1.6 var(--text); letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-2); }
.bar-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.bar-nav a { text-decoration: none; color: var(--ink-2); }
.bar-nav .bar-cta { color: var(--ink); background: var(--gold); padding: 11px 18px; border-radius: 2px; font-weight: 600; }

/* ---------- layout: the column and the scene ---------- */
.stage { flex: 1 1 auto; min-height: 600px; display: grid; grid-template-columns: var(--col) minmax(0, 1fr); grid-template-areas: "panel scene"; }
.scene { grid-area: scene; position: relative; overflow: hidden; background: var(--dusk); }
.panel { grid-area: panel; position: relative; z-index: 4; display: flex; flex-direction: column; min-height: 0; background: var(--paper); border-right: 1px solid var(--line); }
.panel-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 40px 40px 20px; display: grid; align-content: start; gap: 28px; }
.panel-foot { padding: 16px 40px 32px; border-top: 1px solid var(--line); background: var(--paper); }

/* ---------- the scene ---------- */
.map { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.map:active { cursor: grabbing; }
.map canvas { display: block; width: 100%; height: 100%; }
.veil { position: absolute; inset: 0; background: var(--dusk); opacity: 0; pointer-events: none; }
.tour-progress { position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 1px; }
.tour-progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* The developer's render: it takes over the scene at each project. The 3D
   behind it stands where the render was taken from; the two dissolve
   through a soft focus. Pins name what the render shows and open it large. */
.still { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: var(--dusk); }
.still-move { position: absolute; inset: 0; transform-origin: 50% 50%; }
.still-move picture, .still-move img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.still-move img { object-fit: cover; object-position: 28% 90%; }
.still-spots { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.still.is-rest .still-spots { opacity: 1; visibility: visible; transition: opacity .6s; }
.spot { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 9px; pointer-events: auto; appearance: none; border: 0; padding: 6px 8px 6px 0; margin: -6px 0 0 -9px; background: none; color: #fff; cursor: pointer; text-align: start; text-shadow: 0 0 6px rgba(10, 12, 14, 0.95), 0 1px 14px rgba(10, 12, 14, 0.9); }
.spot-ring { flex: none; width: 18px; height: 18px; border: 1.5px solid var(--gold-light); border-radius: 50%; background: rgba(23, 25, 28, 0.3); display: grid; place-items: center; transition: background .2s; }
.spot-ring::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.spot:hover .spot-ring, .spot:focus-visible .spot-ring { background: var(--gold); }
.spot-text { display: grid; gap: 1px; white-space: nowrap; }
.spot-text b { font: 400 16px/1.15 var(--display); }
.spot-text small { font: 600 11px/1.3 var(--text); color: var(--gold-light); }
.spot-ref { display: grid; justify-items: center; gap: 4px; padding: 0; margin: 0; pointer-events: none; cursor: default; font: 500 10.5px/1.2 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.78); white-space: nowrap; }
.spot-ref::after { content: ""; width: 1px; height: 22px; background: rgba(255, 255, 255, 0.55); }
.spot-ref.is-end { justify-items: end; }
.spot.is-off { display: none; }
.view-switch { position: absolute; z-index: 3; left: 32px; top: 24px; display: flex; padding: 3px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(23, 25, 28, 0.35); }
.view-switch button { appearance: none; border: 0; border-radius: 999px; padding: 7px 14px; background: none; color: rgba(255, 255, 255, 0.75); font: 500 12.5px/1 var(--text); cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.view-switch button:not([aria-pressed="true"]):hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.still-acts { position: absolute; z-index: 3; left: 32px; bottom: 28px; display: flex; gap: 8px; }
.still-more { appearance: none; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; padding: 9px 16px; background: rgba(23, 25, 28, 0.4); color: #fff; font: 600 13px/1 var(--text); cursor: pointer; transition: background .2s, border-color .2s; }
.still-more:hover, .still-more:focus-visible { background: rgba(23, 25, 28, 0.7); border-color: var(--gold-light); }
.scene.has-more .caption { bottom: 78px; }
.scene.on-render .credit-line > span:first-child { visibility: hidden; }

/* Everything that can be clicked in the picture breathes: a slow gold pulse. */
@keyframes ring-pulse { 0% { transform: scale(0.6); opacity: 0.95; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
.spot-ring { position: relative; }
.spot-ring::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold-light); animation: ring-pulse 2.6s ease-out infinite; pointer-events: none; }
.spot:hover .spot-text b, .spot:focus-visible .spot-text b { text-decoration: underline 1px var(--gold-light); text-underline-offset: 4px; }
.still-back { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) brightness(0.62) saturate(1.1); }
.hover-tip { position: absolute; z-index: 3; left: 0; top: 0; padding: 7px 12px; border-radius: 999px; background: rgba(15, 17, 20, 0.82); color: #fff; font: 500 12.5px/1 var(--text); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.hover-tip.is-on { opacity: 1; }
.hover-tip b { font-weight: 600; color: var(--gold-light); }

/* Overview markers: a numbered gold ring, a hairline leader, the name. No boxes. */
.labels { position: absolute; inset: 0; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .4s; }
.tag.is-hidden { opacity: 0; }
.tag-proj { display: flex; flex-direction: column; align-items: center; margin-top: 10px; pointer-events: auto; cursor: pointer; }
.tag.is-hidden { pointer-events: none; }
.tag-proj .tp-ring { position: relative; transition: transform .2s, background .2s, color .2s; }
.tag-proj .tp-ring::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold); animation: ring-pulse 2.6s ease-out infinite; pointer-events: none; }
.tag-proj:hover .tp-ring, .tag-proj.is-hot .tp-ring { transform: scale(1.18); background: var(--gold); color: var(--ink); }
.tag-proj.is-lit .tp-ring { box-shadow: 0 0 0 3px rgba(196, 160, 98, 0.25), 0 0 18px 4px rgba(255, 217, 138, 0.55); }
.tag-proj:hover .tp-label b, .tag-proj.is-hot .tp-label b { text-decoration: underline 1px var(--gold-light); text-underline-offset: 4px; }
.tp-label { display: grid; justify-items: center; gap: 1px; text-shadow: 0 1px 8px rgba(10, 12, 14, 0.85); }
.tp-label b { font: 400 17px/1.1 var(--display); color: #fff; }
.tp-label small { font: 500 11px/1.3 var(--text); color: var(--gold-light); }
.tp-leader { width: 1px; height: 36px; background: var(--gold); }
.tag-proj:nth-child(1) .tp-leader { height: 46px; }
.tag-proj:nth-child(2) .tp-leader { height: 26px; }
.tp-ring { display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--gold); border-radius: 50%; font: 600 11px/1 var(--text); color: #fff; background: rgba(23, 25, 28, 0.35); }
.scene.is-clay .tp-label { text-shadow: 0 0 6px rgba(233, 228, 220, 0.9); }
.scene.is-clay .tp-label b { color: var(--ink); }
.scene.is-clay .tp-label small { color: var(--gold-text); }
.scene.is-clay .tp-ring { color: var(--ink); background: rgba(252, 251, 249, 0.7); }
.scene.is-clay .tag-ref { color: var(--ink-3); text-shadow: none; }
/* Inside a community: a dot and a name; planned places dashed; the projects in gold and clickable. */
.tag-poi { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.poi-label { display: grid; justify-items: center; gap: 1px; text-shadow: 0 1px 8px rgba(10, 12, 14, 0.9); }
.poi-label b { font: 500 12.5px/1.2 var(--text); color: #fff; }
.poi-label small { font: 500 10.5px/1.2 var(--text); color: rgba(255, 255, 255, 0.7); }
.poi-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(23, 25, 28, 0.45); }
.tag-poi.is-planned .poi-dot { background: transparent; border: 1.5px dashed #fff; box-shadow: none; }
.tag-poi.is-project:not(.is-hidden) { pointer-events: auto; cursor: pointer; }      /* a hidden pin must not catch clicks meant for what is under it */
.tag-poi.is-project .poi-label b { font: 400 17px/1.1 var(--display); }
.tag-poi.is-project .poi-label small { color: var(--gold-light); }
.tag-poi.is-project .poi-dot { width: 14px; height: 14px; background: var(--gold); position: relative; }
.tag-poi.is-project .poi-dot::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--gold); animation: ring-pulse 2.6s ease-out infinite; }
.tag-poi.side-left, .tag-poi.side-right { flex-direction: row; gap: 9px; }
.tag-poi.side-right { flex-direction: row-reverse; }
.tag-poi.side-left .poi-label { justify-items: end; text-align: right; }
.tag-poi.side-right .poi-label { justify-items: start; text-align: left; }
.tag-poi.is-project:hover .poi-label b, .tag-poi.is-project.is-hot .poi-label b { text-decoration: underline 1px var(--gold-light); text-underline-offset: 4px; }
.tag-ref { font: 500 10.5px/1.2 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); text-shadow: 0 1px 6px rgba(10, 12, 14, 0.9); }

/* In the picture: a caption, one control, one line of credits. */
.caption { position: absolute; z-index: 3; left: 32px; bottom: 30px; margin: 0; display: grid; gap: 4px; max-width: min(560px, 70%); color: #fff; text-shadow: 0 1px 10px rgba(10, 12, 14, 0.7); transition: opacity .6s; }
.caption.is-hidden { opacity: 0; }
.cap-name { font: 400 20px/1.15 var(--display); }
.cap-sub { font: 500 11px/1.4 var(--text); color: rgba(255, 255, 255, 0.7); }
.play { position: absolute; z-index: 3; right: 24px; top: 24px; height: 38px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(23, 25, 28, 0.35); cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 0 15px 0 13px; color: #fff; font: 500 12.5px/1 var(--text); }
.play::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5.5px 0 5.5px 8.5px; border-color: transparent transparent transparent #fff; }
.play[data-state="playing"]::before { width: 8px; height: 10px; border: 0; border-left: 2.5px solid #fff; border-right: 2.5px solid #fff; }
.play:hover { border-color: var(--gold-light); background: rgba(23, 25, 28, 0.6); }
.play:disabled { opacity: 0.35; cursor: default; }
.credit-line { position: absolute; z-index: 3; right: 24px; bottom: 14px; display: flex; align-items: baseline; gap: 10px; font: 500 10.5px/1.4 var(--text); color: rgba(255, 255, 255, 0.55); }
.sources > summary { cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.sources > summary::-webkit-details-marker { display: none; }
.sources[open] .sources-body { position: absolute; right: 0; bottom: 22px; width: min(420px, 80vw); padding: 14px 16px; background: rgba(23, 25, 28, 0.94); color: rgba(255, 255, 255, 0.86); font: 400 12px/1.5 var(--text); border-radius: 2px; }
.sources-body p { margin: 0 0 8px; }
.sources-body p:last-child { margin: 0; }
.sources-body a { color: var(--gold-light); }
.text-btn { appearance: none; border: 0; padding: 0; background: none; font: inherit; color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-btn[aria-pressed="true"]::after { content: " (on)"; }
.nogl { position: absolute; z-index: 3; left: 32px; right: 32px; bottom: 60px; margin: 0; padding: 12px 14px; background: rgba(252, 251, 249, 0.94); border-radius: 2px; font-size: 14px; color: var(--ink-2); max-width: 420px; }

/* ---------- the column ---------- */
.intro { display: grid; gap: 14px; }
.eyebrow { margin: 0; font: 500 11px/1.5 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.panel h1 { margin: 0; font: 400 40px/1.05 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }

.picks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.picks li { border-bottom: 1px solid var(--line); }
.pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; min-height: 72px; padding: 14px 0; text-decoration: none; position: relative; }
.pick::before { content: ""; position: absolute; left: -40px; top: 0; bottom: 0; width: 2px; background: var(--gold); opacity: 0; transition: opacity .25s; }
.pick:hover .pick-name { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pick[aria-current="true"]::before { opacity: 1; }
.pick-name { font: 400 22px/1.2 var(--display); }
.pick-from { font: 500 14px/1.2 var(--text); font-variant-numeric: tabular-nums; color: var(--ink); text-align: end; }
.pick-dev { grid-column: 1 / -1; margin-top: 3px; font: 500 12px/1.4 var(--text); color: var(--ink-3); }

/* The selected project: the figures on a gold hairline, the decision in the footer. */
.evidence { display: grid; gap: 6px; }
.ev-back { justify-self: start; appearance: none; border: 0; padding: 0; margin-bottom: 8px; background: none; font: 500 13px/1.4 var(--text); color: var(--ink-3); cursor: pointer; }
.ev-back:hover { color: var(--ink); }
.ev-name { margin: 0; font: 400 32px/1.08 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
.ev-meta { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-3); }
.ev-inside { justify-self: start; appearance: none; margin: 0 0 18px; padding: 0 0 2px; border: 0; border-bottom: 1px solid var(--gold); background: none; font: 600 14px/1.4 var(--text); color: var(--ink); cursor: pointer; }
.ev-line { position: relative; list-style: none; margin: 0; padding: 0 0 0 20px; display: grid; gap: 16px; }
.ev-line::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--gold); }
.ev-line li { position: relative; display: grid; gap: 2px; }
.ev-line li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); }
.ev-step { font: 500 12px/1.4 var(--text); color: var(--ink-3); }
.ev-value { font: 600 17px/1.35 var(--text); font-variant-numeric: tabular-nums; }
.ev-src { font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.ev-shown { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ev-part-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ev-part { appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; padding: 6px 10px; font: 500 12.5px/1.2 var(--text); color: var(--ink-2); cursor: pointer; }
.ev-part[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.ev-part.is-priced::after { content: " · priced"; color: var(--gold-text); }
.ev-part.is-priced[aria-pressed="true"]::after { color: var(--gold-light); }
.ev-part-note { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ev-part-note:empty { display: none; }
.ev-model { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.ev-model summary { cursor: pointer; }
.ev-model p { margin: 8px 0 0; }

.actions, .ev-actions { display: grid; gap: 12px; justify-items: start; }
.ev-actions { display: none; }
.stage.is-chosen .intro, .stage.is-chosen .actions { display: none; }
.stage.is-chosen .ev-actions { display: grid; }
.stage.is-chosen .pick { min-height: 0; padding: 9px 0; }
.stage.is-chosen .pick-name { font-size: 17px; }
.stage.is-chosen .pick-dev, .stage.is-chosen .pick-from { display: none; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 22px; border-radius: 2px; background: var(--ink); color: #fff; font: 600 15px/1 var(--text); text-decoration: none; }
.btn:hover { background: #2b2e33; }
.link { font: 500 14px/1.4 var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; color: var(--ink-2); }

/* ---------- the gallery: the developers' own images, full-bleed ---------- */
.inside { position: absolute; inset: 0; z-index: 5; background: var(--dusk); animation: in-open .5s ease-out; }
@keyframes in-open { from { opacity: 0; } to { opacity: 1; } }
.in-view { position: absolute; inset: 0; overflow: hidden; }
.in-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.in-img.is-on { opacity: 1; }
.in-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0c0d; }
.in-play { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); appearance: none; border: 0; border-radius: 999px; padding: 14px 22px 14px 44px; background: #fff; color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; box-shadow: 0 10px 30px -10px rgba(10, 12, 14, 0.6); }
.in-play::before { content: ""; position: absolute; left: 22px; top: 50%; transform: translateY(-50%); border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); }
.in-tour { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0c0d; }
.in-units { display: flex; flex-wrap: wrap; gap: 6px; }
/* DAMAC's walkthrough gets the whole picture: the bar sits under it, never
   over it (Marwan, 5 Oct: the black bar covered the bottom of the tour), and
   folds to one line of text, one row of units and one row of images. */
.inside.is-tour { display: flex; flex-direction: column; }
.inside.is-tour .in-view { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; }
.inside.is-tour .in-bar { position: relative; inset: auto; flex: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; padding: 14px 32px 16px; background: #111315; }
.inside.is-tour .in-cap { min-width: 0; max-width: none; }
.inside.is-tour .in-title { display: none; }
.inside.is-tour .in-name { font-size: 20px; }
.inside.is-tour .in-src { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inside.is-tour .in-ask { justify-self: end; }
.inside.is-tour .in-ask p { display: none; }
.inside.is-tour .in-ask .btn { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.inside.is-tour .in-units, .inside.is-tour .in-rooms { grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.inside.is-tour .in-unit, .inside.is-tour .in-room { flex: none; }
.in-full { position: absolute; z-index: 2; right: 104px; top: 24px; appearance: none; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(23, 25, 28, 0.55); color: #fff; border-radius: 2px; padding: 9px 14px; font: 500 13px/1 var(--text); cursor: pointer; }
.in-unit { appearance: none; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; padding: 7px 12px; background: rgba(23, 25, 28, 0.55); color: rgba(255, 255, 255, 0.85); font: 500 12px/1 var(--text); cursor: pointer; }
.in-unit:hover { border-color: var(--gold-light); color: #fff; }
.in-unit[aria-pressed="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.in-pano { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.in-pano:active { cursor: grabbing; }
.in-hint { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); margin: 0; padding: 7px 12px; border-radius: 2px; background: rgba(23, 25, 28, 0.7); color: #fff; font: 500 12.5px/1 var(--text); pointer-events: none; }
.in-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 32px 24px; display: grid; gap: 14px; background: linear-gradient(180deg, rgba(23, 25, 28, 0) 0%, rgba(23, 25, 28, 0.78) 45%, rgba(23, 25, 28, 0.9) 100%); color: #fff; }
.in-cap { max-width: 640px; }
.in-title { margin: 0 0 4px; font: 500 11px/1.4 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-light); }
.in-name { margin: 0; font: 400 24px/1.15 var(--display); }
.in-src { margin: 4px 0 0; font: 400 12px/1.5 var(--text); color: rgba(255, 255, 255, 0.72); }
.in-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: 720px; }
.in-ask p { margin: 0; flex: 1 1 260px; font-size: 12.5px; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.btn-light { width: auto; background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper); }
.in-rooms { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.in-room { appearance: none; border: 0; padding: 4px 0; background: none; color: rgba(255, 255, 255, 0.62); font: 500 13px/1.3 var(--text); cursor: pointer; border-bottom: 1px solid transparent; }
.in-room:hover { color: #fff; }
.in-room[aria-pressed="true"] { color: #fff; border-bottom-color: var(--gold); }
.in-out { position: absolute; z-index: 2; right: 24px; top: 24px; appearance: none; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(23, 25, 28, 0.35); color: #fff; border-radius: 2px; padding: 9px 14px; font: 500 13px/1 var(--text); cursor: pointer; }
.stage.is-inside .play, .stage.is-inside .caption, .stage.is-inside .labels, .stage.is-inside .tour-progress, .stage.is-inside .credit-line, .stage.is-inside .view-switch, .stage.is-inside .still-acts { visibility: hidden; }
.stage.is-touring .view-switch, .stage.is-touring .still-acts { visibility: hidden; }

/* ---------- a community's card ----------
   The place first: pictures of what it will be, drive times, what is there
   today and what is coming, then the homes in it side by side. */
.community { display: grid; gap: 6px; min-width: 0; }
.cm-kicker { margin: 0; font: 600 11px/1.4 var(--text); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-text); }
.cm-meta { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cm-shots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; margin: 0 0 14px; padding-bottom: 6px; overscroll-behavior-x: contain; }
.cm-shots:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cm-shot { flex: 0 0 86%; margin: 0; scroll-snap-align: start; display: grid; gap: 8px; min-width: 0; }
.cm-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: rgba(127, 127, 127, 0.15); }
.cm-shot figcaption { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
.cm-kind { display: inline-block; margin-right: 7px; padding: 1px 6px; border: 1px solid var(--line); border-radius: 3px; font: 600 10px/1.5 var(--text); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); vertical-align: 1px; }
.cm-kind-photo { border-color: var(--gold); color: var(--gold-text); }
.cm-block { display: grid; gap: 10px; margin-top: 12px; min-width: 0; }
.cm-h { margin: 0; font: 600 11px/1.4 var(--text); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.cm-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.cm-time { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cm-time:nth-child(odd) { padding-right: 14px; }
.cm-time:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.cm-time dt { font-size: 13px; color: var(--ink-2); min-width: 0; }
.cm-time dd { margin: 0; font: 600 14px/1.3 var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cm-fact { display: grid; gap: 4px; }
.cm-status { justify-self: start; display: inline-flex; align-items: center; gap: 7px; font: 600 10.5px/1.4 var(--text); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.cm-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1px dashed var(--ink-3); box-sizing: border-box; }
.cm-status.is-today { color: var(--gold-text); }
.cm-status.is-today::before { border: 0; background: var(--gold); }
.cm-status.is-building { color: var(--ink-2); }
.cm-status.is-building::before { border: 1px solid var(--gold); background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); }
.cm-text { font-size: 14px; line-height: 1.5; }
.cm-table-wrap { overflow-x: auto; min-width: 0; }
.cm-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; line-height: 1.4; }
.cm-table thead th { padding: 0 0 8px 10px; font: 400 18px/1.15 var(--display); text-align: left; vertical-align: bottom; color: var(--ink); }
.cm-table thead td { width: 76px; }
.cm-table.is-three thead td { width: 70px; }
.cm-table.is-three thead th { font-size: 16px; }
.cm-table tbody th { padding: 9px 0; font: 500 11.5px/1.4 var(--text); color: var(--ink-3); text-align: left; vertical-align: top; }
.cm-table td { padding: 9px 0 9px 10px; vertical-align: top; color: var(--ink); overflow-wrap: anywhere; }
.cm-table tbody tr { border-top: 1px solid var(--line); }
.cm-table.is-three td { font-variant-numeric: tabular-nums; }
.cm-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.cm-open { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 6px; }
.cm-open .ev-inside { margin: 0; }
.community .ev-src { margin-top: 14px; }

/* ---------- the floating layout (tablet and desktop) ----------
   The picture runs full-bleed; the bar is transparent over a soft scrim and
   the sidebar floats on dark glass, so the eye lands on the property first. */
@media (min-width: 641px) {
  .bar { position: absolute; z-index: 6; left: 0; right: 0; top: var(--flag); height: var(--bar-h); padding-block: 0; background: linear-gradient(180deg, rgba(10, 12, 14, 0.62) 0%, rgba(10, 12, 14, 0.28) 60%, rgba(10, 12, 14, 0) 100%); border-bottom: 0; }
  .brand-name { color: #fff; }
  .brand-name span { color: rgba(255, 255, 255, 0.72); }
  .bar-nav a { color: rgba(255, 255, 255, 0.84); }
  .bar-nav a:hover { color: #fff; }
  .stage { display: block; position: relative; }
  .scene { position: absolute; inset: 0; }
  .panel { position: absolute; left: 24px; top: calc(var(--bar-h) + 4px); max-height: calc(100% - var(--bar-h) - 28px); width: var(--col); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; overflow: hidden;
    background: rgba(15, 17, 20, 0.52); -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
    --ink: #fff; --ink-2: rgba(255, 255, 255, 0.8); --ink-3: rgba(255, 255, 255, 0.6); --line: rgba(255, 255, 255, 0.14); --paper: transparent; --gold-text: var(--gold-light); color: #fff; }
  .panel-body { padding: 28px 28px 16px; gap: 22px; }
  .panel-foot { padding: 14px 28px 22px; }
  .panel h1 { font-size: 32px; }
  .panel .lede { font-size: 14px; }
  .pick::before { left: -28px; }
  .pick-name { font-size: 20px; }
  .pick:hover { background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)); }
  .ev-name { font-size: 28px; }
  .panel .btn { background: #fff; color: #17191c; }
  .panel .btn:hover { background: #ebe6dd; }
  .panel .ev-part[aria-pressed="true"] { background: #fff; border-color: #fff; color: #17191c; }
  .panel .ev-part:hover { border-color: var(--gold-light); }
  .panel .ev-line li::before { background: #1d2024; }
  .panel :focus-visible { outline-color: var(--gold-light); }
  .caption, .still-acts, .nogl { left: var(--free); }
  .view-switch { left: var(--free); top: calc(var(--bar-h) + 14px); }
  .play { top: calc(var(--bar-h) + 14px); }
  .tour-progress { top: auto; bottom: 0; height: 2px; }
  .inside { z-index: 7; }
}

@media (max-width: 980px) {
  .bar-nav a:not(.bar-cta):not([lang]) { display: none; }
  :root { --col: 340px; }
  .panel h1 { font-size: 28px; }
}
@media (max-width: 640px) {
  .bar { padding-block: 12px; }
  .brand img { width: 36px; height: auto; }
  .brand-name { font-size: 17px; }
  .bar-nav { gap: 14px; }
  .bar-nav .bar-cta { padding: 9px 12px; font-size: 14px; }
  .bar-nav a[lang] { display: none; }
  html, body { height: auto; }
  body { display: block; }
  .stage { display: block; min-height: 0; }
  .scene { height: clamp(280px, 38svh, 340px); }
  .bar-nav .bar-cta { display: none; }
  .panel { border-right: 0; margin-top: -18px; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px -18px rgba(23, 25, 28, 0.5); }
  .panel-body { overflow: visible; padding: 26px var(--gutter) 8px; gap: 22px; }
  .panel-foot { position: sticky; bottom: 0; padding: 12px var(--gutter) calc(14px + env(safe-area-inset-bottom, 0px)); }
  .panel h1 { font-size: 27px; }
  .lede { display: none; }
  .pick::before { left: calc(-1 * var(--gutter)); }
  .caption { left: var(--gutter); top: 16px; bottom: auto; max-width: calc(100% - 170px); }
  .cap-name { font-size: 18px; }
  .play { right: 12px; top: 12px; height: 34px; padding: 0 12px 0 11px; font-size: 12px; }
  .credit-line { left: var(--gutter); right: var(--gutter); bottom: 26px; justify-content: space-between; font-size: 9.5px; }
  .tag-ref { display: none; }
  .tp-label small { display: none; }
  .tp-label b { font-size: 15px; }
  .tag-proj .tp-leader, .tag-proj:nth-child(1) .tp-leader, .tag-proj:nth-child(2) .tp-leader { height: 16px; }
  .view-switch { left: auto; right: var(--gutter); top: auto; bottom: 64px; }
  .view-switch button { padding: 7px 12px; }
  .still-acts { left: var(--gutter); bottom: 70px; }
  .scene.has-more .caption { bottom: auto; }
  .still-spots { display: none; }        /* too small a picture for pins; the gallery has the same images */
  .cm-shot { flex-basis: 88%; }
  .still-move img { object-position: 35% 85%; }
  .inside { position: fixed; inset: 0; z-index: 20; }
  .in-bar { padding: 50px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); }
  .in-name { font-size: 20px; }
  .in-rooms { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .in-room { flex: none; }
  .in-out { top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; }
  .in-full { top: calc(58px + env(safe-area-inset-top, 0px)); right: 12px; }      /* under Close: DAMAC's own label sits top left */
  .inside.is-tour .in-bar { padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px)); gap: 8px 12px; }
  .inside.is-tour .in-name { font-size: 17px; }
  .inside.is-tour .in-src { font-size: 11px; }
  .inside.is-tour .in-ask .btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .tag, .caption, .inside, .still-spots { transition: none; animation: none; } .spot-ring::before, .tp-ring::before { animation: none; opacity: 0; } }

/* ---------- the live site (5 Oct 2026) ---------- */
/* Inside the homepage's frame: the homepage carries the header and the form. */
html.is-embed { --flag: 0px; --bar-h: 0px; }
html.is-embed .bar, html.is-embed .proto-flag { display: none; }
@media (min-width: 641px) { html.is-embed .panel { top: 20px; max-height: calc(100% - 40px); } html.is-embed .view-switch, html.is-embed .play { top: 20px; } }
@media (max-width: 640px) {
  /* Phones: the frame shows the 3D only; the homepage below has the projects and the form. */
  html.is-embed, html.is-embed body { height: 100%; overflow: hidden; }
  html.is-embed .scene { height: 100svh; }
  html.is-embed .panel { display: none; }
}
/* Consent banner (tracking.js), as on the other pages. */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 40; max-width: 420px; background: #fff; border: 1px solid #E6E1D7; border-radius: 10px; padding: 18px; box-shadow: 0 20px 50px -24px rgba(23, 25, 28, 0.4); display: grid; gap: 14px; font: 400 14px/1.5 var(--text); color: #4B5057; }
.consent a { color: #86642A; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent .btn { min-height: 42px; font-size: 14px; padding: 0 14px; border: 1px solid transparent; cursor: pointer; }
.consent .btn-ghost { background: transparent; border-color: #CFC8BA; color: #17191C; }
.consent .btn-gold { background: #C4A062; color: #17191C; }
@media (max-width: 640px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
