/* The site's stylesheet. The fonts (--font, --font-display) and palette come from
 * content/site.json: the build writes them to :root in each page's head. */
@font-face{font-family:"Poppins";src:url("/assets/fonts/Poppins-300.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("/assets/fonts/Poppins-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("/assets/fonts/Poppins-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Poppins";src:url("/assets/fonts/Poppins-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}

:root {
  --gutter: clamp(22px, 4.8vw, 88px);
  --opening-gutter: clamp(22px, 2.25vw, 44px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
  --ease-both: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 56px;
}

* { box-sizing: border-box; }
html {
  color-scheme: light;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button, a, input, select, summary { touch-action: manipulation; }
button:disabled, button[aria-disabled="true"] { cursor: not-allowed; opacity: 0.5; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.04; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: fixed; top: -100px; left: 20px; background: #fff; padding: 15px; z-index: 100; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.arrow-glyph { font-family: var(--font); font-variant-emoji: text; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }

/* ── Logo: the one lockup, sized by font-size wherever it appears ── */
.wordmark { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font); white-space: nowrap; line-height: 1; }
.wordmark svg { width: auto; height: 1.04em; flex: none; overflow: visible; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 25;
  height: var(--header-h);
  display: flex; align-items: center; gap: 36px;
  padding: 0 var(--opening-gutter);
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, color 0.2s, border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.menu-toggle {
  width: 44px; height: 44px; margin-left: -6px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 0 6px;
}
.menu-toggle span { display: block; width: 32px; height: 1px; background: currentColor; }
.site-header .brand { margin-right: auto; font-size: 32px; display: inline-flex; align-items: center; min-height: 44px; }
.header-actions { display: flex; align-items: center; gap: 28px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.header-actions a { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.header-actions .btn-tour {
  background: var(--ink); color: #fff; padding: 0 18px; min-height: 36px;
  transition: background-color 0.2s;
}
.header-actions .btn-tour:hover { background: var(--ink-2); }
.header-actions a:not(.btn-tour):hover { text-decoration: underline; text-underline-offset: 5px; }

/* Home: the header floats over the hero in white and turns solid once past it. */
.home-header { position: fixed; inset: 0 0 auto; background: transparent; color: #fff; pointer-events: none; }
.home-header > * { pointer-events: auto; }
.home-header .btn-tour { background: #fff; color: var(--ink); }
.home-header .btn-tour:hover { background: var(--mist); }
body.is-departed .home-header { background: var(--ink); }

/* ── Drawer (side menu: stepped panel) ──────────── */
.side-menu {
  position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none;
  border: 0; margin: 0; padding: 0; background: transparent; overflow: hidden;
  color: var(--ink); font-family: var(--font);
}
.side-menu::backdrop { background: var(--ink); opacity: 0; transition: opacity 0.42s; }
.side-menu[data-visible="true"]::backdrop { opacity: 0.5; }
.side-menu-panel {
  position: relative; width: min(760px, 55vw); height: 100%; background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 76%, 92% 76%, 92% 100%, 0 100%);
  padding: 24px clamp(32px, 4.2vw, 80px) 48px;
  display: flex; flex-direction: column;
  transform: translateX(-102%);
  transition: transform 0.65s var(--ease-out);
  overflow-y: auto;
}
.side-menu[data-visible="true"] .side-menu-panel { transform: translateX(0); }
.side-menu[data-visible="false"] .side-menu-panel { transition-duration: 0.4s; transition-timing-function: var(--ease-in); }
.side-menu-top { display: flex; align-items: center; min-height: 32px; padding-left: 62px; font-size: 19px; }
.side-menu .menu-close { position: fixed; top: 6px; left: var(--opening-gutter); width: 44px; height: 44px; z-index: 3; margin-left: -6px; }
.side-menu .menu-close span {
  position: absolute; left: 6px; top: 18px; width: 32px; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease-out);
}
.side-menu .menu-close span:last-child { top: 25px; }
.side-menu[data-visible="true"] .menu-close span:first-child { transform: translateY(3.5px) rotate(45deg); }
.side-menu[data-visible="true"] .menu-close span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.side-menu nav { margin: auto 0; padding: 48px 0; display: flex; flex-direction: column; }
.side-menu nav a {
  display: flex; align-items: center; gap: 20px; padding: 11px 0;
  font-size: clamp(19px, 1.65vw, 24px); line-height: 1.15; letter-spacing: 0.01em; text-transform: uppercase;
  opacity: 0; transform: translateX(-48px);
  transition: opacity 0.42s, transform 0.55s var(--ease-out); transition-delay: 0s;
}
.side-menu nav a[aria-current="page"] { color: var(--accent-text); }
.side-menu nav a:hover { color: var(--accent-text); }
.side-menu[data-visible="true"] nav a { opacity: 1; transform: none; transition-delay: 140ms; }
.side-menu[data-visible="false"] nav a { opacity: 0; transform: translateX(-48px); transition-duration: 0.25s; transition-delay: 0s; }
.side-menu-bottom { padding-right: 9%; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; font-family: var(--font); }
.side-menu-bottom .btn { font-size: 12px; }
.side-menu-bottom p { font-size: 12px; line-height: 1.6; color: var(--muted); }
.side-menu-bottom p a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ── Buttons and links ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 48px; padding: 0 20px; background: var(--ink); color: #fff;
  font-size: 13px; letter-spacing: 0.02em; white-space: nowrap;
  transition: background-color 0.2s, transform 0.12s;
}
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.text-link { border-bottom: 1px solid currentColor; padding: 10px 0; display: inline-flex; gap: 16px; align-items: center; font-size: 13px; letter-spacing: 0.02em; }
.text-link:hover { color: var(--accent-text); }
.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inline-link:hover { color: var(--accent-text); }
.label { font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }

/* ── Home hero: the full-bleed photo, one short line, one Explore link ─── */

.next-chapter { position: relative; padding: 72px var(--opening-gutter) 72px; background: var(--ink); color: #fff; }
.next-chapter h1 {
  font-size: clamp(26px, 3.1vw, 50px); font-weight: 300; line-height: 1.24; letter-spacing: -0.015em;
  text-indent: 28%; max-width: 1180px; text-wrap: pretty;
}
.next-chapter-bottom { display: flex; justify-content: flex-end; align-items: end; gap: 24px; margin-top: 52px; flex-wrap: wrap; }
.next-chapter-bottom a { border-bottom: 1px solid #ffffff9a; padding: 14px 0; display: inline-flex; align-items: center; font-size: 14px; }
.next-chapter :focus-visible { outline-color: #fff; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 96px var(--gutter); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 32px 64px; align-items: end; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(36px, 4.6vw, 66px); }
.section-head p { color: var(--muted); max-width: 52ch; }
.page-intro { padding: 88px var(--gutter) 56px; }
.page-intro h1 { font-size: clamp(48px, 7.5vw, 108px); letter-spacing: -0.055em; margin-bottom: 28px; }
.page-intro .intro-body { font-size: 18px; color: var(--muted); max-width: 640px; }
.page-intro .intro-actions { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin-top: 34px; }
.crumb { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); min-height: 44px; }
.crumb:hover { color: var(--ink); }

/* Editorial chapters: large real photographs with a narrow text column. */
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; align-items: end; padding: 0 var(--gutter); margin-bottom: 96px; }
.chapter figure { grid-column: 1 / span 8; }
.chapter figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.chapter-text { grid-column: 10 / span 3; padding-bottom: 8px; }
.chapter-text h2 { font-size: clamp(30px, 3.2vw, 46px); margin-bottom: 20px; }
.chapter-text p { color: var(--muted); margin-bottom: 22px; }
.chapter.flip figure { grid-column: 5 / span 8; grid-row: 1; }
.chapter.flip .chapter-text { grid-column: 1 / span 3; grid-row: 1; }
.chapter-wide { padding: 0 var(--gutter); margin-bottom: 96px; }
.chapter-wide img { width: 100%; height: min(78svh, 760px); object-fit: cover; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }

/* Tour band. */
.tour-band { padding: 88px var(--gutter); background: var(--mist); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.tour-band h2 { font-size: clamp(42px, 7vw, 104px); letter-spacing: -0.055em; line-height: 1.02; }
.tour-band h2 a { display: inline-block; }
.tour-band h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.12em; }
.tour-band-side { display: grid; gap: 18px; font-size: 15px; }
.tour-band-side p { color: var(--muted); }
.tour-band-side .row { display: flex; flex-wrap: wrap; gap: 12px; }
.tour-band-side .tour-band-criteria { font-size: 13px; }

/* ── Footer (four columns) ────────────────────────────────────── */
.site-footer { position: relative; z-index: 6; background: #fff; padding: 56px var(--gutter) 24px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; align-items: start; }
.footer-brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.footer-brand-col .brand { font-size: 36px; }
.footer-brand-col .powered-by-kiara { border-top: 1px solid var(--line); padding-top: 18px; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
.footer-group > h2 { margin: 0 0 8px; font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--muted); }
.footer-group address { font-style: normal; line-height: 1.7; }
.footer-group a { min-height: 32px; display: inline-flex; align-items: center; gap: 6px; }
.footer-group a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-hours { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 6px; }
.compliance-links a { gap: 10px; min-height: 40px; }
.compliance-links svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.footer-eho { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); max-width: 980px; }
.footer-eho svg { width: 40px; height: 40px; color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--muted); margin-top: 22px; }
.footer-bottom > span:first-child { margin-right: auto; color: var(--ink); }
.powered-by-kiara { --kiara-orange: #f26440; display: inline-flex; align-items: center; gap: 12px; color: var(--muted); transition: opacity 0.2s; min-height: 44px; }
.pbk-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.pbk-lockup { display: inline-flex; align-items: center; gap: 9px; }
.pbk-mark, .pbk-wordmark { display: block; background-color: currentColor; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.pbk-mark { width: 20px; height: 22px; color: var(--kiara-orange); -webkit-mask-image: url("/assets/brand/kiara-mark.png"); mask-image: url("/assets/brand/kiara-mark.png"); }
.pbk-wordmark { width: 79px; height: 19px; color: var(--ink); -webkit-mask-image: url("/assets/brand/kiara-wordmark.png"); mask-image: url("/assets/brand/kiara-wordmark.png"); }
.powered-by-kiara:hover { opacity: 0.72; }

/* ── Floor plan tiles (two-up) ───────────────────── */
.plan-filter { margin: 0 var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; flex-wrap: wrap; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .seg a {
  font-size: 13px; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); display: inline-flex; align-items: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.seg button:hover, .seg a:hover { border-color: var(--ink); }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan-grid { margin: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 56px 44px; }
.plan-tile { display: block; position: relative; }
.plan-tile-image { display: block; aspect-ratio: 16 / 10; background: var(--mist); padding: 28px; position: relative; overflow: hidden; }
.plan-tile-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.65s var(--ease-both); }
.plan-tile:hover .plan-tile-image img { transform: scale(1.035); }
.plan-tile-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; }
.plan-tile-info h3 { font-size: 30px; }
.plan-tile-info span { font-size: 13px; }
.plan-tile-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.plan-tile-meta .avail { color: var(--accent-text); }
.plan-tile[hidden] { display: none; }
.plan-note { font-size: 13px; color: var(--muted); margin: 44px var(--gutter) 88px; max-width: 820px; }

/* ── Building explorer ────────────────────────────────────────────────── */
.explorer { padding: 0 var(--gutter) 72px; }
.explorer-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.explorer-head h2 { font-size: clamp(32px, 3.8vw, 54px); }
.ex-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; border-top: 1px solid var(--line); padding: 14px 0; }
.ex-bar + .ex-bar { border-top-style: dashed; }
.ex-group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ex-group > .label { margin-right: 4px; }
.ex-tabs { display: inline-flex; border: 1px solid var(--line); }
.ex-tabs button { min-height: 44px; padding: 0 18px; font-size: 13px; transition: background-color 0.15s, color 0.15s; }
.ex-tabs button + button { border-left: 1px solid var(--line); }
.ex-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ex-tabs button:not([aria-pressed="true"]):hover { background: var(--mist); }
.ex-reset { font-size: 13px; min-height: 44px; padding: 0 4px; border-bottom: 1px solid currentColor; }
.ex-reset[hidden] { display: none; }
.ex-chips { display: none; }
.ex-filter-toggle { display: none; }

.ex-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; margin-top: 8px; }
.ex-stage { position: relative; width: 100%; background: #f4f5f8; aspect-ratio: 16 / 10; min-height: 420px; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ex-stage canvas, .ex-stage .ex-overlay, .ex-stage .ex-plan { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ex-stage[data-view="3d"] { cursor: grab; }
.ex-stage[data-view="3d"].is-dragging { cursor: grabbing; }
.ex-stage[data-view="2d"] canvas, .ex-stage[data-view="2d"] .ex-overlay { display: none; }
.ex-stage[data-view="3d"] .ex-plan { display: none; }
.ex-unit-target { fill: none; stroke: none; pointer-events: none; outline: none; }
.ex-unit-target:focus-visible { stroke: var(--ink); stroke-width: 2; }
.ex-overlay .xray { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.ex-overlay .xray-top { fill: color-mix(in srgb, var(--accent) 22%, transparent); stroke: var(--accent); stroke-width: 1.5; }
.ex-overlay .xray.is-selected, .ex-overlay .xray-top.is-selected { stroke: var(--ink); }
.ex-overlay .xray-top.is-selected { fill: color-mix(in srgb, var(--ink) 55%, transparent); stroke-width: 2.5; }

/* 2D plan view */
.ex-plan .unit { stroke: color-mix(in srgb, var(--ink) 40%, var(--paper)); stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill 0.16s, stroke 0.16s; }
.ex-plan .unit.is-off { fill: url(#ex-hatch); }
.ex-plan .unit.is-avail { fill: color-mix(in srgb, var(--accent) 20%, var(--paper)); stroke: var(--accent); stroke-width: 1.6; cursor: pointer; }
.ex-plan .unit.is-filtered { fill: var(--paper); stroke: var(--accent); stroke-dasharray: 4 3; }
.ex-plan .unit.is-hover { stroke: var(--ink); stroke-width: 2.4; }
.ex-plan .unit.is-selected { fill: var(--ink); stroke: var(--ink); stroke-width: 2.6; }
.ex-plan .unit-no.is-selected { fill: var(--paper); }
.ex-plan .unit:focus-visible { outline: none; stroke: var(--ink); stroke-width: 3; }
.ex-plan .unit-no { font: 500 var(--ex-label-size, 13px) var(--font); fill: var(--muted); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ex-plan .unit-no.is-avail { fill: var(--ink); font-weight: 700; }
.ex-plan .amenity-label { font: 500 var(--ex-label-size, 13px) var(--font); fill: var(--muted); letter-spacing: 0.02em; pointer-events: none; }

.ex-controls { position: absolute; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; }
.ex-controls button {
  min-width: 44px; height: 44px; padding: 0 10px; background: var(--paper); border: 1px solid var(--line);
  font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color 0.15s, border-color 0.15s;
}
.ex-controls button:hover { border-color: var(--ink); }
.ex-controls button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ex-controls .sep { width: 8px; }
.ex-compass { position: absolute; right: 14px; top: 14px; width: 54px; height: 54px; z-index: 2; pointer-events: none; color: var(--ink); }
.ex-hint { position: absolute; right: 14px; bottom: 16px; font-size: 12px; color: var(--muted); z-index: 2; pointer-events: none; background: #f4f5f8cc; padding: 2px 6px; }
.ex-floor-label { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 13px; background: var(--paper); padding: 6px 10px; border: 1px solid var(--line); pointer-events: none; }
.ex-tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); padding: 10px 12px; font-size: 13px; line-height: 1.45; min-width: 170px;
  box-shadow: 0 12px 44px color-mix(in srgb, var(--ink) 20%, transparent); opacity: 0; transform: translateY(4px); transition: opacity 0.12s, transform 0.12s;
}
.ex-tip.is-on { opacity: 1; transform: none; }
.ex-tip strong { display: block; font-size: 15px; font-weight: 500; }
.ex-tip .muted { color: var(--muted); }
.ex-empty { position: absolute; inset: auto 14px 70px; z-index: 4; background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.ex-empty[hidden] { display: none; }

.ex-side { display: flex; flex-direction: column; min-height: 0; }
.ex-status { font-size: 12px; color: var(--muted); padding: 10px 0 0; line-height: 1.5; }
.ex-list-empty { padding: 24px 0; font-size: 14px; }

/* Detail card: docked on desktop, bottom sheet on phones */
.unit-card {
  position: absolute; inset: 14px 14px 14px auto; width: min(360px, 46%); margin: 0; max-height: none; height: auto;
  border: 1px solid var(--line); padding: 0; background: var(--paper); color: var(--ink); z-index: 6;
  box-shadow: 0 12px 44px color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 2px; overflow: auto;
}
.unit-card[open] { display: flex; flex-direction: column; animation: card-in 0.35s var(--ease-out); }
@keyframes card-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.unit-card::backdrop { background: color-mix(in srgb, var(--ink) 40%, transparent); }
.uc-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 18px 18px 0; }
.uc-head h3 { font-size: 28px; letter-spacing: -0.03em; }
.uc-close { width: 44px; height: 44px; margin: -8px -10px 0 0; font-size: 26px; font-weight: 300; line-height: 1; flex: none; }
.uc-rent { padding: 6px 18px 0; font-size: 22px; font-variant-numeric: tabular-nums; }
.uc-rent small { font-size: 13px; color: var(--muted); }
.uc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 14px 18px; font-size: 13px; }
.uc-facts dt { color: var(--muted); font-size: 12px; }
.uc-facts dd { font-variant-numeric: tabular-nums; }
.uc-features { padding: 0 18px 10px; font-size: 13px; color: var(--muted); }
.uc-figs { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 0 18px; }
.uc-figs figure { background: var(--mist); }
.uc-figs button { display: block; width: 100%; }
.uc-figs img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; padding: 6px; }
.uc-figs svg { width: 100%; aspect-ratio: 4 / 3; display: block; }
.uc-figs figcaption { font-size: 11px; color: var(--muted); padding: 4px 6px 6px; line-height: 1.35; }
.uc-actions { display: grid; gap: 8px; padding: 14px 18px 6px; }
.uc-actions .btn { width: 100%; }
.uc-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 4px 18px 8px; font-size: 13px; }
.uc-links a { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.uc-fees { margin: 4px 18px 18px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }
.uc-fees summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; color: var(--ink); }
.uc-fees p { margin-bottom: 8px; }
.uc-note { padding: 0 18px 10px; font-size: 12px; color: var(--muted); }

/* ── Plan detail and apartment detail ─────────────────────────────────── */
.detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; padding: 0 var(--gutter) 88px; align-items: start; }
.detail-media { background: var(--mist); position: relative; }
.detail-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; mix-blend-mode: multiply; padding: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.facts div { padding: 14px 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.detail-rent { font-size: 30px; letter-spacing: -0.03em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.detail-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.detail-links a { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.notice { background: #f6efe3; border-left: 3px solid var(--brass); padding: 14px 16px; font-size: 14px; margin-bottom: 20px; }
.notice[hidden] { display: none; }
.fees-block { font-size: 13px; color: var(--muted); max-width: 70ch; margin-top: 18px; }
.fees-block summary { cursor: pointer; color: var(--ink); min-height: 40px; display: flex; align-items: center; }
.fees-block ul { padding-left: 18px; margin: 6px 0 10px; }

/* ── Gallery ──────────────────────────────────────────────────────────── */
.gallery-seq { padding: 0 var(--gutter) 88px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.gallery-seq figure { margin: 0; }
.gallery-seq figure[hidden] { display: none; }
.gallery-seq button { display: block; width: 100%; overflow: hidden; }
.gallery-seq img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.65s var(--ease-both); }
.gallery-seq button:hover img { transform: scale(1.02); }

/* Lightbox and tour dialogs */
.lightbox, .tour-dialog { border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; background: #070b20; color: #fff; }
.lightbox::backdrop, .tour-dialog::backdrop { background: #070b20; }
.lightbox[open], .tour-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.dlg-bar { display: flex; align-items: center; gap: 12px; padding: 8px var(--opening-gutter); min-height: 60px; }
.dlg-bar h2 { font-size: 18px; letter-spacing: -0.01em; margin-right: auto; }
.dlg-bar button, .dlg-bar a { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid #ffffff40; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: #fff; }
.dlg-bar button:hover, .dlg-bar a:hover { border-color: #fff; }
.lightbox figure { display: grid; place-items: center; padding: 0 var(--opening-gutter); min-height: 0; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; }
.lightbox figcaption, .dlg-foot { padding: 10px var(--opening-gutter) 16px; font-size: 13px; color: #bdbec4; }
.tour-frame { position: relative; margin: 0 var(--opening-gutter); background: #000; min-height: 0; }
.tour-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-loading { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: #bdbec4; }
.tour-loading[hidden] { display: none; }

/* ── Forms (underline fields) ─────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; font-size: 13px; }
.field input, .field select, .field textarea {
  border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; background: transparent; font-size: 16px; border-radius: 0; min-height: 44px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field .hint { font-size: 12px; color: var(--muted); }
.field [aria-invalid="true"] { border-bottom-color: #a23b2a; }
.field-error { font-size: 12px; color: #a23b2a; }
.form-status { margin-top: 18px; font-size: 14px; padding: 14px 16px; background: var(--mist); }
.form-status[hidden] { display: none; }
.form-status.is-error { background: #f8ebe8; }
.consent { font-size: 12px; color: var(--muted); }

/* ── Prose (policies, accessibility) and FAQ ─────────────────────────── */
.prose { padding: 0 var(--gutter) 96px; max-width: calc(64ch + 2 * var(--gutter)); }
.prose h2 { font-size: 28px; letter-spacing: -0.02em; margin: 40px 0 14px; }
.prose p, .prose li { color: #232739; margin-bottom: 12px; }
.prose ul { padding-left: 20px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.faq-group { padding: 0 var(--gutter); margin-bottom: 48px; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 2fr); gap: 32px; }
.faq-group h2 { font-size: 26px; letter-spacing: -0.02em; }
.faq-group details { border-top: 1px solid var(--line); }
.faq-group details:last-child { border-bottom: 1px solid var(--line); }
.faq-group summary { cursor: pointer; padding: 16px 32px 16px 0; font-size: 17px; position: relative; list-style: none; min-height: 44px; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; font-weight: 300; transition: transform 0.25s var(--ease-out); }
.faq-group details[open] summary::after { transform: rotate(45deg); }
.faq-group .answer { padding: 0 0 18px; color: #232739; max-width: 70ch; }
.faq-group .answer p { margin-bottom: 10px; }
.faq-group .answer a { text-decoration: underline; text-underline-offset: 3px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--ink); padding: 8px 8px 8px 0; }
.data-table td { border-bottom: 1px solid var(--line); padding: 12px 8px 12px 0; vertical-align: top; }
.data-table a { text-decoration: underline; text-underline-offset: 3px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 0 var(--gutter) 88px; align-items: start; }
.contact-list { display: grid; gap: 18px; font-size: 16px; }
.contact-list dt { font-size: 12px; color: var(--muted); }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; }
.contact-list dd a { overflow-wrap: anywhere; }
.hours { font-size: 14px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 4px 24px 4px 0; }

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

.ex-stage[data-view="3d"] .h2d, .ex-stage[data-view="2d"] .h3d { display: none; }

.ex-stage[data-view="3d"].is-pointing { cursor: pointer; }
.detail .explorer { padding: 0; }
.seg button .label, .seg a .label { margin-left: 8px; font-variant-numeric: tabular-nums; }
.seg [aria-pressed="true"] .label { color: rgba(255, 255, 255, 0.75); }

/* ── Header mark, home chapters ─────────────────────────────────────── */
.site-header .brand { font-size: 40px; }
.side-menu-top { font-size: 40px; min-height: 44px; margin-top: -11px; }

/* Explorer filters: three labelled chip groups in one row; sort sits with the results. */
.ex-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 16px 0; border-top: 1px solid var(--line); }
.ex-filters + .ex-bar { border-top-style: dashed; }
.ex-filters .ex-group { gap: 12px; }
.ex-filters .ex-group > .label { margin: 0; min-width: 0; }
.ex-filters-head { order: 9; margin-left: auto; display: flex; align-items: center; }
.ex-filters-head > span { display: none; }
.ex-chipset, .ex-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-chipset button, .ex-sort button {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition-property: background-color, color, border-color, transform; transition-duration: 0.15s; transition-timing-function: ease-out;
}
.ex-chipset button:hover, .ex-sort button:hover { border-color: var(--ink); }
.ex-chipset button:active, .ex-sort button:active { transform: scale(0.97); }
.ex-chipset button[aria-pressed="true"], .ex-sort button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.ex-sort button { min-height: 36px; padding: 0 11px; font-size: 12px; }

/* Results: compact apartment cards, hover tied to the building highlight. */
.ex-side-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.ex-results { list-style: none; margin: 0; padding: 10px 2px 2px 0; display: grid; gap: 8px; align-content: start; overflow: auto; max-height: min(58vw, 620px); }
.ex-results li { position: relative; }
/* No plan image: the apartment number leads; a 360° tour button sits in its own
   column at the right edge (kept on every card so rents line up). */
.ex-res {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 11px 62px 11px 16px; border: 1px solid var(--line); background: var(--paper); text-align: left;
  transition-property: border-color, background-color, box-shadow; transition-duration: 0.15s; transition-timing-function: ease-out;
}
.ex-res-main, .ex-res-side { display: grid; gap: 1px; min-width: 0; }
.ex-res-n { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ex-res-meta, .ex-res-floor { font-size: 12px; color: var(--muted); line-height: 1.35; text-wrap: pretty; }
.ex-res-side { text-align: right; }
.ex-res-rent { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ex-res-date { font-size: 12px; color: var(--accent-text); }
.ex-results li.is-hover .ex-res, .ex-res:hover { border-color: var(--ink); background: var(--mist); }
.ex-results li.is-selected .ex-res { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.ex-list-empty { padding: 20px 4px; font-size: 14px; color: var(--muted); }

/* 360° tour button: plan cards (top left), result cards, gallery picker. */
.tour-360 {
  position: absolute; left: 10px; top: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(11, 16, 40, 0.12), 0 2px 8px rgba(11, 16, 40, 0.12);
  transition-property: background-color, color, transform; transition-duration: 0.15s; transition-timing-function: ease-out;
}
.tour-360:hover { background: var(--ink); color: #fff; }
.tour-360:active { transform: scale(0.94); }
.i360 { width: 32px; height: 32px; display: block; }
.tour-360.ex-res-tour { left: auto; right: 11px; top: calc(50% - 19px); width: 38px; height: 38px; }
.tour-360.ex-res-tour::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; }
.tour-360.ex-res-tour .i360 { width: 28px; height: 28px; }
.ex-results li.is-hover .tour-360.ex-res-tour:not(:hover) { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 22%, transparent), 0 2px 8px color-mix(in srgb, var(--ink) 12%, transparent); }

/* Layouts: a compact grid, four across on desktop, two on phones. */
.layouts-head { padding: 0 var(--gutter); margin-bottom: 24px; grid-template-columns: minmax(0, 1fr); }
.plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 20px; }
.plan-grid-inset { margin: 0; }
.plan-tile-link { display: block; }
.plan-tile-image { aspect-ratio: 4 / 3; padding: 16px; }
.plan-tile-info { padding-top: 12px; flex-wrap: wrap; gap: 4px 12px; }
.plan-tile-info h3 { font-size: 24px; letter-spacing: -0.03em; }
.plan-tile-info span { font-size: 12px; color: var(--muted); }
.plan-tile-meta { gap: 2px 14px; font-size: 12px; margin-top: 4px; }
.plan-tile-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 1280px) { .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Plan page: live availability beside the render. */
.plan-avail { margin-bottom: 8px; }
.plan-avail h2 { font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-bottom: 8px; }
.plan-avail-none { font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; }
.plan-avail-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); font-variant-numeric: tabular-nums; }
.plan-avail-list a {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) auto 64px; gap: 12px; align-items: baseline;
  padding: 12px 6px; border-bottom: 1px solid var(--line); min-height: 48px; transition: background-color 0.15s ease-out;
}
.plan-avail-list a:hover { background: var(--mist); }
.pa-n { font-size: 17px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pa-f, .pa-date { font-size: 13px; color: var(--muted); }
.pa-rent { font-size: 17px; font-weight: 500; text-align: right; }
.pa-date { text-align: right; }
.plan-avail-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Fees and deposits: a full-width row that reads as something to open. */
.fees-block { margin-top: 24px; max-width: none; border: 1px solid var(--ink); color: var(--muted); }
.fees-block summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 0 18px; font-size: 15px; color: var(--ink); transition: background-color 0.15s ease-out;
}
.fees-block summary::-webkit-details-marker { display: none; }
.fees-block summary:hover { background: var(--mist); }
.fees-block summary i { position: relative; width: 14px; height: 14px; flex: none; }
.fees-block summary i::before, .fees-block summary i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.5px; background: currentColor; transition: transform 0.25s var(--ease-out); }
.fees-block summary i::after { transform: rotate(90deg); }
.fees-block[open] summary i::after { transform: rotate(0deg); }
.fees-block[open] summary { border-bottom: 1px solid var(--line); }
.fees-block p { padding: 14px 18px 18px; font-size: 13px; text-wrap: pretty; }

/* Gallery: virtual tours first, then a dense masonry of photographs. */
.vt { padding: 0 var(--gutter) 56px; }
.vt-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 18px; }
.vt-head h2 { font-size: clamp(30px, 3.2vw, 46px); }
.vt-head p { font-size: 14px; color: var(--muted); max-width: 52ch; }
.vt-spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.vt-space { position: relative; display: block; width: 100%; overflow: hidden; background: var(--mist); }
.vt-space img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.vt-space:hover img { transform: scale(1.03); }
.vt-space-name { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 14px 5px 7px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.2; transition: background-color 0.15s, color 0.15s; }
.vt-space:hover .vt-space-name { background: var(--ink); color: #fff; }
.vt-space-name .i360 { width: 32px; height: 32px; }
.vt-sub { font-size: 18px; font-weight: 500; letter-spacing: 0; margin: 24px 0 10px; }
.vt-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: 10px; }
.vt-plan {
  width: 100%; display: grid; grid-template-columns: 68px minmax(0, 1fr); column-gap: 12px; align-items: center; text-align: left;
  padding: 8px 12px 8px 8px; border: 1px solid var(--line); min-height: 68px;
  transition-property: border-color, background-color; transition-duration: 0.15s; transition-timing-function: ease-out;
}
.vt-plan:hover { border-color: var(--ink); background: var(--mist); }
.vt-plan img { grid-row: 1 / span 2; width: 68px; aspect-ratio: 4 / 3; object-fit: contain; background: var(--mist); mix-blend-mode: multiply; padding: 2px; }
.vt-plan-name { font-size: 19px; font-weight: 500; line-height: 1.2; }
.vt-plan-meta { font-size: 14px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.gallery-filter { margin-bottom: 18px; }
.gallery-seq { display: block; columns: 5 180px; column-gap: 8px; padding: 0 var(--gutter) 88px; }
.gallery-seq figure { break-inside: avoid; margin: 0 0 8px; }
.gallery-seq img { aspect-ratio: auto; }

/* Contact: an interactive map of the building. */
.contact-map-band { padding: 0 var(--gutter) 88px; }
.contact-map { position: relative; aspect-ratio: 21 / 8; min-height: 360px; background: #10173a; overflow: hidden; }
.contact-map-canvas { position: absolute; inset: 0; }
.contact-map-status { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #bdbec4; pointer-events: none; }
.contact-map-status[hidden] { display: none; }
.contact-map-marker { width: 74px; height: 40px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35); position: relative; }
.contact-map-marker::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: #fff; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.contact-map-marker svg { width: 52px; height: auto; }
.contact-map-foot { margin-top: 12px; font-size: 14px; }
.contact-map .maplibregl-ctrl-group { border-radius: 0; }
.contact-map .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Move in by: a native date input dressed as one of the chips. */
.ex-date { align-items: center; }
.ex-date input[type="date"] {
  min-height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--muted);
  font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 150px;
  transition-property: border-color, color, background-color; transition-duration: 0.15s; transition-timing-function: ease-out;
}
.ex-date input[type="date"]:hover { border-color: var(--ink); }
.ex-date input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.55; padding: 4px; margin-left: 4px; transition: opacity 0.15s; }
.ex-date input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }
.ex-date.has-value input[type="date"] { border-color: var(--ink); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Floor ladder on the map: top floor at the top, like the building itself.
   "All" (3D only) floats above the building’s floors. */
.ex-ladder { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 8px; max-height: calc(100% - 110px); }
.ex-rungs { display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; background: var(--paper); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent); }
.ex-rung {
  position: relative; flex: none; width: 58px; height: 44px; display: grid; place-items: center; background: var(--paper); color: var(--ink);
  font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1;
  transition-property: background-color, color; transition-duration: 0.15s; transition-timing-function: ease-out;
}
.ex-rungs .ex-rung + .ex-rung { border-top: 1px solid var(--line); }
.ex-rung.is-all { font-size: 13px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 2px 8px color-mix(in srgb, var(--ink) 8%, transparent); }
.ex-rung .n { text-align: center; }
.ex-rung.is-empty { color: var(--muted); }
.ex-rung:hover { background: var(--mist); }
.ex-rung[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.ex-rung:focus-visible { outline-offset: -3px; outline-color: var(--accent); z-index: 1; }
.ex-rung[aria-pressed="true"]:focus-visible { outline-color: var(--paper); }
.ex-stage[data-view="2d"] .ex-rung.is-all { display: none; }
.ex-empty { left: 76px; }
/* Keep Clear all in its filter row so it cannot cover multi-building view tabs. */
@media (min-width: 761px) {
  .ex-toolbar { position: relative; }
  .ex-filters { position: relative; }
  .ex-filters-head { position: static; min-width: 58px; min-height: 44px; margin-left: auto; }
}

/* ── Book a tour card (assets/js/book-tour.js) ── */
.book-dialog { border: 0; padding: 0; margin: auto; width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); background: #fff; color: var(--ink); box-shadow: 0 40px 90px -30px rgba(7, 11, 32, 0.6); overflow: auto; overscroll-behavior: contain; }
.book-dialog::backdrop { background: rgba(7, 11, 32, 0.62); backdrop-filter: blur(3px); }
.book-dialog[open] { animation: bt-in 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes bt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.bt-card { padding: 34px 38px 32px; }
.book-inline { max-width: 680px; }
/* The page heading already names the inline card; the title stays for the dialog's label. */
.book-inline .bt-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.bt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.bt-title { margin: 0; font-size: clamp(30px, 3.2vw, 42px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; }
.bt-close { flex: none; width: 44px; height: 44px; margin: -8px -10px 0 0; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.bt-close:hover { background: var(--ink); color: #fff; }
.bt-context { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.bt-form { margin-top: 26px; display: grid; gap: 26px; }
.bt-form[hidden], .bt-done[hidden] { display: none; }
.bt-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.bt-step[hidden] { display: none; }
.bt-label { display: block; padding: 0; margin: 0 0 12px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.bt-label .hint { margin-left: 8px; letter-spacing: 0.04em; text-transform: none; }
.bt-loading { margin: 0; font-size: 14px; color: var(--muted); }
.bt-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.bt-days button { flex: 0 0 64px; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; padding: 10px 0 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.bt-days small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.bt-days b { font-size: 22px; font-weight: 400; line-height: 1.1; }
.bt-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bt-times button { min-height: 44px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; transition: border-color 0.15s, background-color 0.15s, color 0.15s; }
.bt-days button:hover, .bt-times button:hover { border-color: var(--ink); }
.bt-days button[aria-checked="true"], .bt-times button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.bt-days button[aria-checked="true"] small { color: #bdbec4; }
.bt-days button:focus-visible, .bt-times button:focus-visible, .bt-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bt-form [hidden] { display: none; }
.bt-questions { display: contents; }
.bt-yn-field > span:first-child { font-size: 13px; }
.bt-yn { display: flex; gap: 22px; padding: 10px 0 6px; border-bottom: 1px solid transparent; }
.bt-yn label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.bt-yn input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }
.bt-form .consent { margin: -6px 0 0; }
.bt-submit { justify-self: start; min-width: 200px; }
.bt-done { margin-top: 22px; }
.bt-done:focus { outline: none; }
.bt-done .bt-done-when { margin: 0 0 14px; font-size: clamp(26px, 3vw, 36px); font-weight: 300; line-height: 1.15; letter-spacing: -0.01em; }
.bt-done p { font-size: 15px; line-height: 1.6; }
.bt-where { color: var(--muted); font-size: 13px !important; }
html.has-dialog { overflow: hidden; }
@media (max-width: 760px) {
  .book-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; }
  .bt-card { padding: 22px 22px 28px; }
  .bt-form .form-grid { grid-template-columns: 1fr; }
  .bt-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .book-dialog[open] { animation: none; } }

/* Explorer-only interaction and token styles. */
.ex-overlay .xray, .ex-overlay .xray-top { pointer-events: none; }
.ex-overlay .hit { fill: transparent; stroke: transparent; }
.ex-overlay .hit.is-hover { fill: color-mix(in srgb, var(--ink) 6%, transparent); stroke: var(--ink); stroke-width: 2.2; }
.ex-overlay .hit.is-selected { fill: color-mix(in srgb, var(--ink) 12%, transparent); stroke: var(--ink); stroke-width: 2.5; }
.ex-status[hidden] { display: none; }
.ex-group select { font: inherit; font-size: 13px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); min-height: 44px; max-width: 100%; padding: 0 12px; }
.ex-results .i360 text { font-family: var(--font); }

.explorer .tour-360 { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent), 0 2px 8px color-mix(in srgb, var(--ink) 12%, transparent); }
.explorer .tour-360:hover { background: var(--ink); color: var(--paper); }

.ex-rung .n { font-size: inherit; line-height: 1.1; overflow-wrap: anywhere; }
