/* Church + Henley. The layout system follows the reference site; tokens follow
 * docs/rebuild/design-brief.md "Tokens". */

@font-face {
  font-family: Satoshi;
  src: url("/assets/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Church + Henley tokens: docs/rebuild/design-brief.md "Tokens". */
  --paper: #FFFFFF;
  --mist: #F3F5F4;
  --panel: #E3E8E8;
  --ink: #385155;
  --ink-2: #2C4144;
  --muted: #5A6B6D;
  --accent: #9A5426;
  --brass: #B76835;
  --line: #E3E8E8;
  --line-dark: #526A6E;
  --ink-soft: #C3CDCE;
  --sage: #7E876A;
  --notice: #F7EEE6;
  --deep: #1E2D30;
  --error: #A23B2A;
  --error-bg: #F8EBE8;
  --gutter: clamp(22px, 4.8vw, 88px);
  --opening-gutter: clamp(22px, 2.25vw, 44px);
  --opening-font: Arial, Helvetica, sans-serif;
  --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: Satoshi, Arial, sans-serif;
  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-weight: 400; letter-spacing: -0.04em; 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: Satoshi, sans-serif; font-variant-emoji: text; display: inline-block; }
.num { font-variant-numeric: tabular-nums; }

/* ── Wordmark: the real 51|51 boxed mark, redrawn, beside tracked lettering ── */
.wordmark { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--opening-font); white-space: nowrap; line-height: 1; }
.wordmark svg { width: 2.05em; 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(--opening-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; }
/* The homepage keeps the smaller mark: the opening identity docks into it. */
.home-header .brand { font-size: 22px; }
.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 opening and the identity docks into it. */
.home-header { position: fixed; inset: 0 0 auto; background: transparent; pointer-events: none; }
.home-header > * { pointer-events: auto; }
.home-header .brand { visibility: hidden; }
body.is-departed .home-header { background: var(--ink); color: #fff; }
body.is-departed .home-header .brand { visibility: visible; }
body.is-departed .home-header .btn-tour { background: #fff; color: var(--ink); }
body.nav-light .home-header { color: #fff; }

/* ── Drawer (reference side menu: stepped panel, exact timing) ──────────── */
.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(--opening-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); }
.side-menu nav a > .arrow-glyph { margin-left: auto; font-size: 20px; opacity: 0; transition: opacity 0.2s; }
.side-menu nav a:hover > .arrow-glyph, .side-menu nav a:focus-visible > .arrow-glyph { opacity: 1; }
.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: Satoshi, Arial, sans-serif; }
.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); }
.inline-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.inline-link:hover { color: var(--accent); }
.label { font-size: 12px; color: var(--muted); letter-spacing: 0.01em; }

/* ── Home opening (reference clubhouse arrival, adapted) ─────────────────── */
.arrival {
  --arrival: 0; --identity-scale: 1; --identity-x: var(--opening-gutter); --identity-y: 20svh;
  --panel-y: 20svh; --step-height: calc(4.24vw + 16px);
  /* One pixel of the hero photo (1462 x 1000, object-fit: cover) on this screen. */
  --photo-px: max(calc(100vw / 1462), calc(100svh / 1000));
  position: relative; height: 300svh; background: #fff;
}
.arrival-stage { height: 100svh; position: sticky; top: 0; overflow: hidden; isolation: isolate; background: var(--panel); }
.arrival-image {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: 50% 100%;
  transform: scale(calc(1 + var(--arrival) * 0.14)); transform-origin: 50% 100%; will-change: transform;
}
.arrival-white-panel { position: absolute; inset: 0 0 auto; height: 100%; background: #fff; transform: translate3d(0, calc(var(--panel-y) - 100%), 0); will-change: transform; }
.arrival-white-step { position: absolute; top: 0; left: 0; width: 50.5%; height: var(--step-height); background: #fff; transform: translate3d(0, calc(var(--panel-y) - 1px), 0); }
.arrival-identity {
  position: fixed; top: 0; left: 0; z-index: 30;
  transform: translate3d(var(--identity-x), var(--identity-y), 0) scale(var(--identity-scale));
  transform-origin: top left; will-change: transform;
  color: color-mix(in srgb, var(--ink) calc((1 - var(--nav-light, 0)) * 100%), white);
  font-size: 7vw; /* the 51|51 mark alone carries the opening */
}
.arrival-identity p { margin: 0; line-height: 1; }
.arrival-scroll { position: absolute; left: calc(50.5% - 36px); top: calc(var(--panel-y) + var(--step-height) - 29px); opacity: calc(1 - var(--arrival) * 2); }
.arrival-scroll::after { content: ""; position: absolute; inset: -16px; }
.arrival-scroll b { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transition: transform 0.25s; }
.arrival-scroll b svg { width: 8px; height: 8px; }
.arrival-scroll:hover b { transform: translateY(3px); }
.arrival[data-settled="true"] .arrival-scroll { visibility: hidden; }
/* Hero line, on the asphalt: held to the photo's own street band (photo y 742 to 830, above
   the lane stripe and crosswalk), so it stays there at any screen shape. No overlay, no
   shadow. Fades out as the opening scrolls on. */
.arrival-claim {
  position: absolute; right: var(--opening-gutter); bottom: calc(var(--photo-px) * 172); margin: 0; white-space: nowrap; text-align: right;
  font-family: Satoshi, Arial, sans-serif; font-weight: 300; font-size: clamp(40px, 5.2vw, 92px); line-height: 0.98; letter-spacing: -0.02em;
  color: #fff;
  opacity: clamp(0, calc(1 - var(--arrival) * 3), 1); pointer-events: none;
}
.arrival-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: #fff9; transform-origin: left; transform: scaleX(var(--arrival)); }

.following-layer { position: relative; z-index: 6; margin-top: -65svh; background: var(--ink); color: #fff; }
.next-chapter { position: relative; padding: 72px var(--opening-gutter) 72px; }
.next-chapter-tab { position: absolute; left: 0; top: -95px; height: 96px; width: 52%; background: var(--ink); }
.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: space-between; align-items: end; gap: 24px; margin-top: 52px; flex-wrap: wrap; }
.next-chapter-bottom p { font-size: 14px; color: var(--ink-soft); max-width: 42ch; }
.next-chapter-bottom a { border-bottom: 1px solid #ffffff9a; padding: 14px 0; display: inline-flex; gap: 40px; align-items: center; font-size: 14px; }
.next-chapter-bottom a .arrow-glyph { font-size: 22px; transition: transform 0.3s var(--ease-out); }
.next-chapter-bottom a:hover .arrow-glyph { transform: translate(4px, 4px); }

/* Boot cover (reference hero-boot) */
.hero-boot { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #fff; transition: opacity 0.55s ease 0.15s; }
.hero-boot[data-state="leaving"] { opacity: 0; pointer-events: none; }
.hero-boot-mark { font-size: clamp(30px, 6vw, 56px); color: var(--ink); will-change: transform; }
.hero-boot[data-state="loading"] .hero-boot-mark { animation: boot-beat 1.6s ease-in-out infinite; }
.hero-boot[data-state="leaving"] .hero-boot-mark { transition: transform 0.8s var(--ease-both); }
@keyframes boot-beat { 0%, 100% { transform: scale(1); opacity: 0.82; } 50% { transform: scale(1.045); opacity: 1; } }

/* ── 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 .label { margin-bottom: 22px; display: block; }
.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 figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; }
.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 (reference "waitlist band", adapted to booking a visit). */
.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 .arrow-glyph { font-weight: 300; margin-left: 0.15em; transition: transform 0.4s var(--ease-out); }
.tour-band h2 a:hover .arrow-glyph { transform: translate(8px, -8px); }
.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 (reference 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 (reference floor cards, 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-results { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); margin: 22px var(--gutter); }
.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-image .arrow-glyph { position: absolute; right: 20px; top: 16px; font-size: 24px; }
.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); }
.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); }
.explorer-summary { font-size: 15px; color: var(--muted); }
.explorer-summary strong { color: var(--ink); font-weight: 500; }
.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: #fff; }
.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: var(--mist); 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-overlay .xray { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.ex-overlay .xray-top { fill: rgba(154,84,38, 0.22); 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: rgba(44, 65, 68, 0.55); stroke-width: 2.5; }
.ex-pin { cursor: pointer; }
.ex-pin circle { fill: var(--accent); stroke: #fff; stroke-width: 2; transition: r 0.16s; }
.ex-pin text { fill: #fff; font: 600 10px Satoshi, Arial, sans-serif; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ex-pin.is-hover circle, .ex-pin:focus-visible circle { fill: var(--ink-2); }
.ex-pin.is-hover circle:last-of-type, .ex-pin:focus-visible circle:last-of-type { r: 17; }
.ex-pin.is-selected circle { fill: var(--ink); }
.ex-pin.is-selected circle:last-of-type { r: 17; stroke: #fff; stroke-width: 2.5; }
.ex-pin.is-selected text { fill: #fff; }
.ex-pin:focus-visible { outline: none; }
.ex-pin.is-filtered circle { fill: #fff; stroke: var(--accent); stroke-dasharray: 3 2; }
.ex-pin.is-filtered text { fill: var(--accent); }

/* 2D plan view */
.ex-plan .unit { stroke: #8A9799; stroke-width: 1.2; vector-effect: non-scaling-stroke; transition: fill 0.16s, stroke 0.16s; pointer-events: fill; -webkit-tap-highlight-color: transparent; } /* the shape, not its outline: a listed outline must not take a tap from the unlisted neighbor */
.ex-plan .unit.is-off { fill: url(#ex-hatch); }
.ex-plan .unit.is-avail { fill: #F1E2D5; stroke: var(--accent); stroke-width: 1.6; cursor: pointer; }
.ex-plan .unit.is-filtered { fill: #fff; 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: #fff; }
.ex-plan .unit:focus-visible { outline: none; stroke: var(--ink); stroke-width: 3; }
.ex-plan .unit-no { font: 500 13px Satoshi, Arial, sans-serif; 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 13px Satoshi, Arial, sans-serif; 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: #fff; 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: #fff; 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: #F3F5F4cc; padding: 2px 6px; }
.ex-floor-label { position: absolute; left: 14px; top: 14px; z-index: 2; font-size: 13px; background: #fff; padding: 6px 10px; border: 1px solid var(--line); pointer-events: none; }
.ex-tip {
  position: absolute; z-index: 5; pointer-events: none; background: #fff; 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 #1E2D3033; 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: #fff; 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-status.is-saved { color: var(--accent); }
.ex-note { font-size: 12px; color: var(--muted); margin-top: 6px; max-width: 90ch; }
.ex-count { font-size: 13px; color: var(--muted); padding: 0 0 10px; }
.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: #fff; color: var(--ink); z-index: 6;
  box-shadow: 0 12px 44px #1E2D3033; 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: rgba(44,65,68, 0.4); }
.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; }
.detail-media figcaption { font-size: 12px; color: var(--muted); padding: 0 16px 14px; }
.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: var(--notice); 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); }
.gallery-seq figcaption { font-size: 13px; color: var(--muted); padding-top: 10px; }

/* Lightbox and tour dialogs */
.lightbox, .tour-dialog { border: 0; padding: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; background: #1E2D30; color: #fff; }
.lightbox::backdrop, .tour-dialog::backdrop { background: #1E2D30; }
.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: var(--ink-soft); }
.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: var(--ink-soft); }
.tour-loading[hidden] { display: none; }

/* ── Forms (reference 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: var(--error); }
.field-error { font-size: 12px; color: var(--error); }
.form-status { margin-top: 18px; font-size: 14px; padding: 14px 16px; background: var(--mist); }
.form-status[hidden] { display: none; }
.form-status.is-error { background: var(--error-bg); }
.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: var(--ink-2); 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: var(--ink-2); 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; }
.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; }
  .hero-boot[data-state="loading"] .hero-boot-mark { animation: none; }
}

.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; }
@media (max-width: 760px) {
  .arrival-white-step { width: 82%; }
  .arrival-scroll { left: calc(82% - 36px); }
  .arrival-identity { font-size: 10vw; }
}
.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 ─────────────────────────────────────── */
/* Larger mark on every page but home (home's opening identity docks into its header). */
.site-header:not(.home-header) .brand { font-size: 40px; }
.side-menu-top { font-size: 40px; min-height: 44px; margin-top: -11px; }
.following-layer + .chapter { position: relative; z-index: 6; background: #fff; padding-top: 96px; }
.next-chapter-bottom { justify-content: flex-end; }
.next-chapter-bottom a:hover .arrow-glyph { transform: translate(4px, -4px); }

/* 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: #fff; 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: #fff; }
.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-side-head .ex-count { padding: 0; font-variant-numeric: tabular-nums; }
.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: #fff; 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); }
.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(44, 65, 68, 0.12), 0 2px 8px rgba(44, 65, 68, 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 rgba(44, 65, 68, 0.22), 0 2px 8px rgba(44, 65, 68, 0.12); }

/* 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-meta .avail.is-none { color: var(--muted); }
.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, .plan-avail-stamp { 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; }

/* 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: var(--ink-2); 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: var(--ink-soft); pointer-events: none; }
.contact-map-status[hidden] { display: none; }
.contact-map-marker { width: 44px; height: 44px; 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: #fff; 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 five floors; each rung carries a count. */
.ex-ladder { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 3; display: flex; flex-direction: column; gap: 8px; }
.ex-rungs { display: flex; flex-direction: column; background: #fff; box-shadow: 0 0 0 1px rgba(44, 65, 68, 0.12), 0 2px 8px rgba(44, 65, 68, 0.08); }
.ex-rung {
  position: relative; width: 48px; height: 44px; display: grid; place-items: center; background: #fff; 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 rgba(44, 65, 68, 0.12), 0 2px 8px rgba(44, 65, 68, 0.08); }
.ex-rung.is-all .n { transform: translate(-9px, 7px); }
.ex-rung .n { transform: translateX(-3px); }
.ex-rung .count {
  position: absolute; right: 4px; top: 4px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px;
  display: grid; place-items: center; font-size: 10px; font-weight: 500; background: var(--mist); color: var(--ink);
}
.ex-rung.is-empty { color: var(--muted); }
.ex-rung.is-empty .count { background: transparent; color: var(--muted); }
.ex-rung:hover { background: var(--mist); }
.ex-rung[aria-pressed="true"] { background: var(--ink); color: #fff; }
.ex-rung[aria-pressed="true"] .count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.ex-rung:focus-visible { outline-offset: -3px; outline-color: var(--accent); z-index: 1; }
.ex-rung[aria-pressed="true"]:focus-visible { outline-color: #fff; }
.ex-empty { left: 76px; }
/* Desktop: "Clear all" sits at the right of the view row below, so turning a
   filter on never adds a line and moves the map. */
@media (min-width: 761px) {
  .ex-toolbar { position: relative; }
  .ex-filters { position: relative; }
  .ex-filters-head { position: absolute; right: 0; top: calc(100% + 14px); height: 44px; margin: 0; }
}

/* ── 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(30, 45, 48, 0.6); overflow: auto; overscroll-behavior: contain; }
.book-dialog::backdrop { background: rgba(30, 45, 48, 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; }
.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: var(--ink-soft); }
.bt-days button:focus-visible, .bt-times button:focus-visible, .bt-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bt-evicted > 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; } }

/* ── Church + Henley additions ─────────────────────────────────────────── */
.wordmark img { height: 1em; width: auto; display: block; max-width: none; }
.site-header .brand .wordmark, .site-footer .brand .wordmark, .side-menu-top .wordmark { font-size: 24px; }
.arrival-identity .wordmark img { filter: brightness(calc(1 - var(--nav-light, 0))) invert(var(--nav-light, 0)); }
.arrival-identity { font-size: 5.6vw; }
.hero-boot-mark img { width: clamp(84px, 12vw, 126px); height: auto; }
.arrival-availability { position: absolute; left: 0; top: calc(var(--panel-y) + var(--step-height) - 1px); z-index: 2; margin: 0; padding: 4px 22px 14px var(--opening-gutter); background: #fff; font-size: clamp(15px, 1.25vw, 18px); opacity: clamp(0, calc(1 - var(--arrival) * 6), 1); font-variant-numeric: tabular-nums; }
.arrival-availability a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.arrival-availability a:hover { color: var(--accent); }
.arrival[data-settled="true"] .arrival-availability { visibility: hidden; }
body.is-departed .home-header .brand img { filter: brightness(0) invert(1); }
.lattice { position: absolute; inset: 0 0 0 auto; width: min(38vw, 560px); background: var(--line-dark); -webkit-mask: url("/assets/brand/lattice-mask.png") right center / 260px auto repeat, linear-gradient(to right, transparent, #000 55%); -webkit-mask-composite: source-in; mask: url("/assets/brand/lattice-mask.png") right center / 260px auto repeat, linear-gradient(to right, transparent, #000 55%); mask-composite: intersect; opacity: 0.55; pointer-events: none; }
.next-chapter h1, .next-chapter-bottom { position: relative; }
.chapter-still figure { background: var(--mist); }
.near-list { list-style: none; margin: 14px 0 6px; padding: 0; width: 100%; border-top: 1px solid var(--line); }
.near-list li { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.h1-location { font-size: clamp(38px, 5.8vw, 83.5px); line-height: 1; letter-spacing: -0.045em; }

/* Offer strip */
.offer-strip { position: fixed; inset: 0 0 auto; height: var(--offer-h); z-index: 45; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 var(--opening-gutter); background: var(--notice); border-bottom: 1px solid var(--brass); font-size: 13px; line-height: 1.25; color: var(--ink); }
.offer-strip p { flex: 1; min-width: 0; }
.offer-close { width: 40px; height: 40px; flex: none; font-size: 20px; line-height: 1; }
body { --offer-h: 0px; }
body.has-offer { --offer-h: 36px; }
body.has-offer .site-header { top: var(--offer-h); }
body.has-offer main { scroll-margin-top: 90px; }

/* Explorer: 8 floors, pins, elevation bands */
.ex-stage { background: var(--mist); }
.ex-compass[hidden] { display: none; }
.ex-pin .pin-hit { fill: transparent; stroke: none; }
.ex-stage[data-view="2d"][data-floor="all"] .ex-compass { display: none; }
.ex-overlay .pin-stem { stroke: var(--accent); stroke-width: 1; pointer-events: none; }
.ex-overlay .pin-foot { fill: var(--accent); stroke: #fff; stroke-width: 1; pointer-events: none; }
.ex-pin.is-dot circle:last-of-type { r: 5; }
.ex-pin.is-dot.is-hover circle:last-of-type, .ex-pin.is-dot:focus-visible circle:last-of-type { r: 8; }
.ex-pin.is-dot.is-selected circle:last-of-type { r: 8; }
.ex-pin .pin-badge { fill: #fff; stroke: var(--accent); stroke-width: 1; r: 7; }
.ex-pin.is-hover circle.pin-badge, .ex-pin:focus-visible circle.pin-badge { fill: #fff; r: 7; }
.ex-pin text.pin-badge-n { fill: var(--accent); font-size: 9px; font-weight: 700; }
.ex-pin:focus-visible > circle:not(.pin-hit):not(.pin-foot):not(.pin-badge) { stroke: var(--ink); stroke-width: 3; }
.ex-overlay .hit.is-off { fill: transparent; stroke: none; }
.ex-overlay .hit.is-avail, .ex-overlay .hit.is-filtered { fill: transparent; stroke: none; cursor: pointer; }
.ex-plan .street-label { font: 500 24px Satoshi, Arial, sans-serif; fill: var(--muted); }
.ex-plan .unit.is-off { stroke: #8A9799; stroke-width: 0.8; }
.ex-plan .unit.is-avail { fill: #F1E2D5; stroke: var(--accent); }
.ex-plan .unit.is-selected { fill: var(--ink); }
.ex-plan .unit-no { font-size: 11px; }
.ex-plan .unit-no.is-selected { fill: #fff; }
.ex-plan .amenity-shape { fill: #DCE3DF; stroke: #fff; }
.ex-plan .amenity-shape.is-on { fill: #D8C2AE; stroke: var(--accent); stroke-width: 1.5; }
.ex-plan .amenity-label { font-size: 11px; fill: var(--ink-2); }
.ex-plan .amenity-label.is-on { font-weight: 700; }
.ex-plan .band { fill: rgba(227, 232, 232, 0.3); stroke: #fff; stroke-width: 1; cursor: pointer; transition: fill 0.15s; }
.ex-plan .band.has-units { fill: rgba(241, 226, 213, 0.45); }
.ex-plan .band:hover { fill: rgba(241, 226, 213, 0.8); }
.ex-controls.is-elevation button[data-zoom], .ex-controls.is-elevation button[data-view-reset], .ex-controls.is-elevation .sep { display: none; }
.ex-rung { height: 38px; }
.ex-more { width: 100%; margin-top: 12px; }
.ex-more[hidden] { display: none; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chips:empty { display: none; }
.ex-chips button { min-height: 36px; padding: 0 12px; font-size: 12px; background: var(--mist); display: inline-flex; gap: 8px; align-items: center; }
.uc-base { padding: 2px 18px 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.uc-rent { font-size: 30px; letter-spacing: -0.02em; }
.uc-back { padding: 0 18px; font-size: 13px; }
.uc-offer { margin: 0 18px 10px; font-size: 13px; }
.uc-planfig { margin: 0 18px; background: var(--mist); }
.uc-planfig button { display: block; width: 100%; }
.uc-planfig img { width: 100%; mix-blend-mode: multiply; }
.uc-planfig figcaption { font-size: 11px; color: var(--muted); padding: 4px 6px 6px; }
.uc-plan-list { list-style: none; margin: 12px 18px; padding: 0; border-top: 1px solid var(--line); }
.uc-plan-list button { width: 100%; min-height: 44px; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; }
.uc-plan-list button:hover { color: var(--accent); }
.uc-plan-list .r { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Layouts */
.plan-group[hidden] { display: none; }
.plan-group-h { margin: 34px var(--gutter) 14px; font-size: 24px; letter-spacing: -0.03em; }
.tile-building { display: inline-block; margin-top: 8px; font-size: 13px; padding: 6px 0; }
.outline-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.outline-tile { background: var(--mist); padding: 10px; }
.outline-tile svg { width: 100%; height: 130px; display: block; }
.outline-tile figcaption { font-size: 11px; line-height: 1.35; color: var(--muted); margin-top: 6px; }
.plan-avail-lead { font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 6px 0; }
.plan-units-section[hidden] { display: none; }
.plan-units-wrap { margin: 0 var(--gutter); }
.fees-wrap { margin: 0 var(--gutter); }
.fee-table { margin-bottom: 12px; }
.fee-note { font-size: 12px; color: var(--muted); }
.fee-foot { margin-left: 0; }
.footer-badges { display: flex; gap: 10px; }
.footer-badges img { width: 72px; height: 72px; object-fit: contain; }
.footer-credit { margin-top: 18px; }

/* Amenities by floor */
.amenity-floors { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding: 72px var(--gutter) 24px; }
.amenity-ladder { position: sticky; top: 90px; align-self: start; }
.amenity-ladder ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.amenity-ladder li a { display: grid; grid-template-columns: 28px 1fr; gap: 6px; padding: 10px 0; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.35; }
.amenity-ladder li a:hover { color: var(--accent); }
.amenity-ladder .n { font-size: 18px; line-height: 1.1; color: var(--ink); }
.amenity-jump { display: none; }
.amenity-floor { scroll-margin-top: 90px; margin-bottom: 72px; }
.amenity-floor > h2 { font-size: 54px; margin-bottom: 24px; }
.amenity-item { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 40px; scroll-margin-top: 90px; }
.amenity-item.flip figure { order: 2; }
.amenity-item.no-photo { grid-template-columns: minmax(0, 1fr); }
.amenity-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.amenity-item h3 { font-size: 24px; letter-spacing: -0.03em; margin-bottom: 10px; }
.amenity-item p { font-size: 15px; color: var(--muted); margin-bottom: 8px; max-width: 58ch; }
.two-col { columns: 2; column-gap: 40px; margin: 0 var(--gutter); }
.finish-group { margin: 0 var(--gutter) 32px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; }
.finish-group h2 { font-size: 24px; letter-spacing: -0.03em; }
.finish-group dl > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; padding: 8px 0; font-size: 15px; }
.finish-group dt { color: var(--muted); }
.gallery-seq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-seq figure[hidden] { display: none; }
.gallery-seq img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.gallery-seq figcaption { font-size: 13px; color: var(--muted); padding: 6px 0 10px; }
.seg-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--line); font-size: 13px; }
.seg-link:hover { border-color: var(--ink); }
.prose-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; margin-bottom: 18px; }
.prose-toc a { text-decoration: underline; text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.info-prose { padding-bottom: 40px; }
.place-mi { font-size: 12px; white-space: nowrap; text-align: right; }
.contact-map-marker img, .location-map-marker.is-home img { width: 30px; height: 30px; display: block; }

/* Tour picker */
.tour-picker h2, .contact-call h2 { font-size: 28px; margin-bottom: 12px; }
.tour-status { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.tour-days, .tour-times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tour-days button, .tour-times button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; transition: background-color 0.15s, border-color 0.15s, color 0.15s; }
.tour-days button:hover, .tour-times button:hover { border-color: var(--ink); }
.tour-days button[aria-pressed="true"], .tour-times button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.tour-choice { font-size: 15px; margin-bottom: 4px; }

/* ── Round 2 ─────────────────────────────────────────────────────────── */
/* Filter chips sit beside Clear all, never under it. */
@media (min-width: 761px) {
  .ex-toolbar .ex-bar { justify-content: flex-start; padding-right: 76px; }
  .ex-toolbar .ex-chips { margin-left: auto; justify-content: flex-end; }
}
/* Nothing to filter or sort when this page has no apartments listed at all. */
.explorer.is-none .ex-side-head, .explorer.is-none .ex-filters, .explorer.is-none .ex-filter-toggle, .explorer.is-none .ex-toolbar .ex-chips { display: none; }
.explorer-summary:empty { display: none; }
.ex-stage.has-empty .ex-hint { display: none; }
.ex-empty a { white-space: nowrap; }
/* Turning needs the 3D building; the 2D plate only zooms. */
.ex-stage[data-view="2d"] [data-rotate], .ex-stage[data-view="2d"] .ex-controls .sep { display: none; }
/* Focus: the date field gets the copper ring. A pin shows focus by its own stroke, and
   the card heading takes focus only so the next Tab starts in the card. */
.ex-date input[type="date"]:focus, .ex-date input[type="date"]:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.ex-overlay [tabindex]:focus { outline: none; }
.unit-card h3[tabindex="-1"]:focus { outline: none; }
/* Elevation picker: a hovered band reads against the listed-floor tint. */
.ex-plan .band.has-units { fill: rgba(241, 226, 213, 0.28); }
.ex-plan .band:hover { fill: rgba(154, 84, 38, 0.5); stroke: #fff; stroke-width: 3; }
/* The pool, highlighted like every other amenity. */
.ex-plan .pool-deck.is-on { fill: #D8C2AE; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ex-plan .amenity-label.is-on { paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3px; font-size: 13px; }
/* Fee tables: cells line up with the disclosure header's inset. */
.fee-table th:first-child, .fee-table td:first-child { padding-left: 18px; }
.fee-table th:last-child, .fee-table td:last-child { padding-right: 18px; }
.fee-table tbody tr:last-child td { border-bottom: 0; }

/* Search pages: the wireframe's photo with text at the reading measure beside it. */
.info-chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; align-items: start; padding: 0 var(--gutter); margin-bottom: 72px; }
.info-chapter figure { grid-column: 1 / span 6; margin: 0; }
.info-chapter figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.info-text { grid-column: 7 / span 6; max-width: 68ch; }
.info-chapter.flip figure { grid-column: 7 / span 6; grid-row: 1; }
.info-chapter.flip .info-text { grid-column: 1 / span 6; grid-row: 1; }
.info-text h2 { font-size: clamp(28px, 2.6vw, 38px); margin-bottom: 16px; }
.info-text p { color: var(--ink-2); margin-bottom: 14px; }
.info-text .text-link { display: inline-block; margin-top: 4px; }
.section .fees-wrap { margin-left: 0; margin-right: 0; }
.info-foot { padding: 0 var(--gutter); margin: -24px 0 72px; font-size: 13px; color: var(--muted); }
.info-foot .text-link { margin-top: 10px; }
.info-foot p { margin-bottom: 4px; }

/* Stacked rows name their own values */
.td-label { display: none; }
.section .plan-units-wrap { margin-left: 0; margin-right: 0; }

/* What-you-pay: the same columns in every group */
@media (min-width: 761px) {
  .fee-table { table-layout: fixed; }
  .fee-table th:nth-child(2), .fee-table td:nth-child(2) { width: 22%; }
  .fee-table th:nth-child(3), .fee-table td:nth-child(3) { width: 16%; }
}

/* /info/: every photo says what it shows; a section about a place with no true photo has none */
.info-chapter figcaption, .info-lead figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); text-wrap: pretty; }
.info-lead { padding: 0 var(--gutter); margin-bottom: 72px; }
.info-lead figure { margin: 0; }
.info-lead img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.info-chapter.no-photo { border-top: 1px solid var(--line); padding-top: 24px; margin-left: var(--gutter); margin-right: var(--gutter); padding-left: 0; padding-right: 0; }
.no-photo .info-text { grid-column: 1 / -1; max-width: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; }
.no-photo .info-text h2 { grid-column: 1 / span 6; grid-row: 1 / span 6; margin-bottom: 0; text-wrap: balance; }
.no-photo .info-text > :not(h2) { grid-column: 7 / span 6; max-width: 68ch; justify-self: start; }
