/* Property site, one stylesheet for every page of every property.
   A property chooses its palette (`design.palette` in its content file, printed as an inline
   <style> by build.py): --field, --ink, --light, --accent, --accent-text and --accent-on-field.
   Everything else here is derived from those, so no rule names a property's color. */

/* The display serif draws a 1 like a lowercase l ("Al Aspen", "l-bedroom apartments") and has no
   alternate for it. So every serif heading takes its digits from Inter: this face holds only 0-9
   (a 3 KB subset, display-figures-OFL.txt), and sits ahead of the serif in --display. */
@font-face {
  font-family: "Display Figures";
  src: url(display-figures.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+30-39;
  size-adjust: 92%;
}

:root {
  --tint: color-mix(in srgb, var(--field) 9%, var(--light));
  --chip: color-mix(in srgb, var(--field) 13%, var(--light));
  --line: color-mix(in srgb, var(--field) 22%, var(--light));
  --muted: color-mix(in srgb, var(--ink) 76%, var(--light));
  --faint: color-mix(in srgb, var(--ink) 48%, var(--light));
  --accent-soft: color-mix(in srgb, var(--accent) 20%, var(--light));
  --paper: #ffffff;
  --alert: #a3392b;

  --display: "Display Figures", "Instrument Serif", Georgia, serif;
  --text: Inter, "Helvetica Neue", Arial, sans-serif;
  --hand: Caveat, cursive;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;
  --step-5: 3.052rem;
  --step-6: clamp(2.6rem, 6vw, 4.6rem);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 14px;
    --radius-btn: 999px;
  --radius-chip: 999px;
  --radius-panel: 18px;   /* anything that holds lines of text: a pill only suits one line */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--light); color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--text);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.preview-banner { margin: 0; max-width: none; padding: 8px var(--gutter); background: var(--accent-soft); color: var(--ink); font-size: var(--step--1); text-align: center; }
.preview-banner a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-6); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
p { margin: 0 0 1em; max-width: 66ch; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section.tint { background: var(--tint); }
.section.dark { background: var(--field); color: var(--light); }
.section.dark a { color: #fff; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 var(--step-0)/1 var(--text); padding: 14px 24px; border-radius: var(--radius-btn);
  border: 1.5px solid var(--field); background: var(--field); color: var(--light); text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--light); }
.btn.ghost { background: transparent; color: var(--accent-text); }
.btn.ghost:hover { background: var(--tint); color: var(--ink); }
.btn.small { padding: 9px 16px; font-size: var(--step--1); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; line-height: 1.2; } }

.ledger-card { background: #fff; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.18); padding: 22px 24px 10px; }
.ledger-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Each row takes four of the list's row tracks (name, size, price, status), so the price and the
   status line up across rows in a line even when one row's text wraps further than its neighbour's. */
.ledger-row { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; text-decoration: none; color: var(--ink); padding: 14px 14px 16px; border-left: 1px solid var(--tint); }
.ledger-row > .status { justify-self: start; align-self: start; }
.ledger-row:first-child { border-left: 0; padding-left: 0; }
.ledger-row:hover .plan-name { text-decoration: underline; }
.plan-name { font-family: var(--display); font-size: var(--step-2); font-weight: 400; }
.plan-meta { color: var(--muted); font-size: var(--step--1); }
.plan-price { font-weight: 700; margin-top: 6px; }
@media (max-width: 720px) { .ledger-row { border-left: 0; border-top: 1px solid var(--tint); padding-left: 0; } .ledger-rows { grid-template-columns: 1fr 1fr; } }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--step--1); font-weight: 500; margin-top: 6px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.status.available::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.status.waitlist { color: var(--muted); }
.status.waitlist::before { background: transparent; border: 1.5px solid var(--faint); }
.status.unknown { color: var(--muted); }
.status.unknown::before { background: transparent; border: 1.5px dashed var(--faint); }

/* ---------- page heads */
.page-head { padding-block: clamp(40px, 6vw, 72px) 32px; }
.page-head h1 { font-size: var(--step-5); max-width: 18ch; }
.crumbs { font-size: var(--step--1); color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

/* ---------- facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 40px; }
@media (max-width: 960px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.facts.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .facts.three { grid-template-columns: 1fr; } }
.fact h3 { font-size: var(--step-1); margin-bottom: .25em; }
.fact p { color: var(--muted); margin: 0; }

/* ---------- split media blocks */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: 1fr 1.1fr; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 820px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.photo-pair { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.photo-pair img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.photo-pair .stack { display: grid; gap: 12px; }

/* ---------- floor plans */
.filters { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; padding: 14px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius-btn); padding: 3px; }
.seg button { border: 0; background: none; font: 500 var(--step--1) var(--text); padding: 8px 14px; border-radius: calc(var(--radius-btn) - 3px); cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters label.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; cursor: pointer; }
.filters select { font: 500 var(--step--1) var(--text); padding: 9px 12px; border-radius: var(--radius-btn); border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.result-count { margin-left: auto; color: var(--muted); font-size: var(--step--1); }

.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 28px; }
.plan { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; scroll-margin-top: 100px; }
.plan:target { outline: 3px solid var(--accent); }
.plan-img { background: var(--tint); aspect-ratio: 4/3; display: grid; place-items: center; cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.plan-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 14px; }
.plan-img .noimg { color: var(--muted); font-size: var(--step--1); padding: 20px; text-align: center; }
.plan-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan-body h3 { margin: 0; font-size: var(--step-2); }
.plan-specs { color: var(--muted); }
.plan-rent { font-size: var(--step-1); font-weight: 700; }
.plan-rent small { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.plan-notes { font-size: var(--step--1); color: var(--muted); margin: 4px 0 0; padding-left: 18px; }
.plan-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.empty { padding: 40px; text-align: center; background: var(--tint); border-radius: var(--radius); }

/* ---------- amenities */
.amen-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.amen-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
.amen-list.short { columns: 1; }
.amen-list li { padding: 9px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.amen-note { margin: 12px 0 0; }
.amen-note + .amen-note { margin-top: 2px; }
@media (max-width: 820px) { .amen-cols { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .amen-list { columns: 1; } }

/* ---------- gallery */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-chip); padding: 8px 14px; font: 500 var(--step--1) var(--text); cursor: pointer; color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.grid-gallery button { padding: 0; border: 0; background: var(--tint); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 3/2; }
.grid-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.grid-gallery button:hover img { transform: scale(1.03); }
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.video-frame iframe, .video-frame button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame button { cursor: pointer; padding: 0; background: none; }
.video-frame button img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-frame .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: #fff; color: var(--ink); border-radius: var(--radius-btn); padding: 14px 22px; font-weight: 700; }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(15,22,19,.92); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 56px 16px 20px; }
.lightbox img { max-height: 100%; max-width: min(1400px, 100%); object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: var(--light); padding-top: 12px; text-align: center; }
.lb-btn { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: var(--radius-btn); font-size: 22px; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; }
.lb-next { right: 14px; top: 50%; }

/* ---------- neighborhood */
.map { height: 460px; border-radius: var(--radius); overflow: hidden; background: var(--tint); }
.places { list-style: none; margin: 0; padding: 0; }
.places li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.places li:hover strong { text-decoration: underline; }
.places .mins { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent-text); white-space: nowrap; }
.places .why { display: block; color: var(--muted); font-size: var(--step--1); }
.place-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 820px) { .place-groups { grid-template-columns: 1fr; } }
/* Neighborhood groups flow down two balanced columns, each heading with clear space above it,
   instead of a grid whose rows stretch to the longest list and leave holes. */
.place-columns { columns: 2 340px; column-gap: 48px; margin-top: 32px; }
.place-columns > div { break-inside: avoid; margin-bottom: 40px; }
.place-columns h3 { margin-top: 0; }
/* One self-contained paragraph per anchor the content marks: "apartments near X". */
.passages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 48px; margin-top: 24px; }
.passage h3 { margin-bottom: .4em; }
.passage p { margin: 0; }

/* ---------- forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 500; }
.field .hint { font-size: var(--step--1); color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=date], select, textarea {
  font: 400 var(--step-0) var(--text); color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: var(--radius); background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--field); outline: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.form-error { color: var(--alert); font-weight: 500; }
.form-note { font-size: var(--step--1); color: var(--muted); }
.confirm { background: var(--tint); border-left: 4px solid var(--field); padding: 22px 24px; border-radius: var(--radius); }
.confirm h3 { margin-bottom: .3em; }

/* tour page: the chat first, then the one question */
.tour-chat h2 { font-size: var(--step-3); margin: 32px 0 16px; }
.tour-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .tour-grid { grid-template-columns: 1fr; } }
.tour-aside { background: var(--tint); padding: 26px; border-radius: var(--radius); position: sticky; top: 100px; }
.tour-aside img { border-radius: var(--radius); margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }

/* ---------- FAQ */
.faq-group { margin-bottom: 44px; scroll-margin-top: 100px; }
.faq-group h2 { font-size: var(--step-3); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 16px 30px 16px 0; font-weight: 500; font-size: var(--step-1); list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--field); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 0 18px; color: var(--muted); }
.fact-list { margin: 8px 0; padding-left: 20px; }
.fact-list li { margin: 4px 0; }
.fee-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; }
.fee-table th, .fee-table td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table th { font-weight: 500; color: var(--muted); font-size: var(--step--1); }
.fee-table td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- resident hub */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
.tile:hover { border-color: var(--field); }
.tile strong { font-family: var(--display); font-size: var(--step-3); font-weight: 400; line-height: 1.05; }
.tile span { color: var(--muted); }

/* ---------- CTA band + footer */
.cta-band { background: var(--tint); color: var(--ink); }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 48px; }
.cta-band h2 { margin: 0; font-size: var(--step-3); max-width: 24ch; }

.site-footer { background: var(--field); color: color-mix(in srgb, var(--light) 84%, transparent); position: relative; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: 64px 36px; }
.site-footer h3 { font: 500 .75rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--light); opacity: .75; margin-bottom: 12px; }
.site-footer a { color: var(--light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--light); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-logo { height: 80px; width: auto; margin-bottom: 14px; }
/* A one-color logo with no light version of its own, turned white for the dark footer. */
.footer-logo.on-dark { filter: brightness(0) invert(1); height: auto; max-width: 220px; max-height: 80px; object-fit: contain; object-position: left center; }
.legal { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px 28px; font-size: var(--step--1); display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.legal-badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.eho { display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }


/* ---------- chat */
.chat:focus { outline: none; }
/* The one chat window: a sheet that rises from where the Ask bar sits, and looks like the closer's
   panel. Every way in (the bar, the header's Ask, the closer's box and questions) opens this. */
.chat { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; width: min(640px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column; background: var(--paper); border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden; animation: chat-rise .2s ease-out; }
@keyframes chat-rise { from { transform: translate(-50%, 16px); } }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 12px 24px; color: var(--ink); }
.chat-head h2 { font: 400 var(--step-3)/1.1 var(--display); margin: 0; }
.chat-close { background: none; border: 0; color: inherit; font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: var(--radius-chip); cursor: pointer; }
.chat-close:hover { background: var(--tint); }
.chat-log { flex: 1; overflow-y: auto; padding: 8px 24px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { margin: 0; max-width: 85%; padding: 10px 14px; border-radius: var(--radius-panel); font-size: var(--step-0); line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.msg.assistant { align-self: flex-start; background: var(--chip); color: var(--ink); border-bottom-left-radius: 2px; }
.msg.user { align-self: flex-end; background: var(--field); color: var(--light); border-bottom-right-radius: 2px; }
.msg.note { align-self: center; max-width: 100%; padding: 2px 8px; font-size: var(--step--1); color: var(--muted); text-align: center; }
.msg.reacted { position: relative; margin-bottom: 12px; }
.msg-reaction { position: absolute; left: -8px; bottom: -14px; background: #fff; border-radius: 999px; padding: 1px 6px; font-size: 15px; line-height: 1.4; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: chat-dot 1.2s infinite ease-in-out; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 24px 12px; }
.chat-quick button { background: var(--chip); border: 1px solid transparent; border-radius: 999px; padding: 9px 14px; font: 400 .875rem/1.3 var(--text); color: var(--ink); cursor: pointer; }
.chat-quick button:hover { border-color: var(--field); }
.chat-handoff { align-self: stretch; display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 14px; margin-top: 4px; }
.chat-handoff p { margin: 0; }
.chat-handoff input[type=text], .chat-handoff input[type=tel] { padding: 10px 12px; font-size: var(--step-0); }
.chat-handoff .form-error:empty { display: none; }
.chat-handoff .btn { justify-self: start; }
.chat-consent { align-self: stretch; display: grid; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-panel); padding: 14px; margin-top: 4px; font-size: var(--step--1); color: var(--muted); }
.chat-consent p { margin: 0; }
.chat-consent .chat-consent-number { font: 500 var(--step-0) var(--text); color: var(--ink); }
.chat-consent .form-error:empty { display: none; }
.chat-consent .btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chat-compose { margin: 8px 24px 6px; }
.chat-foot { margin: 0; padding: 2px 24px 14px; font-size: var(--step--1); text-align: right; }
@media (max-width: 720px) {
  .chat { left: 0; bottom: 0; transform: none; width: 100vw; height: 100dvh; border-radius: 0; animation: none; }
  .chat-open { overflow: hidden; }
  .chat-log, .chat-quick { padding-inline: 16px; }
  .chat-compose { margin-inline: 16px; }
}
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: var(--step--1); color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; }
.no-chat :is(.chat, .ask-bar, [data-open-chat], [data-chat-only]) { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.photo-pair.two { grid-template-columns: 1fr 1fr; }


.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* dev inbox */
.inbox table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.inbox th, .inbox td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { display: inline-block; padding: 2px 10px; border-radius: var(--radius-chip); background: var(--tint); font-weight: 500; }

/* radio chips (contact preference) */
.seg label.chip { border: 0; padding: 8px 14px; border-radius: calc(var(--radius-btn) - 3px); }
.seg label.chip:has(input:checked) { background: var(--ink); color: #fff; }
.seg label.chip:has(input:focus-visible) { outline: 3px solid var(--accent); }

/* ---------- floor plan extras */
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan-top .status { margin: 0; }
.plan-img.photo img { object-fit: cover; mix-blend-mode: normal; padding: 0; }
.finishes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.finish { font-size: 13px; padding: 3px 10px; border-radius: var(--radius-chip); background: var(--tint); color: var(--muted); cursor: help; }
.plan-when { margin: 4px 0 0; font-weight: 500; }
.plan-furn { margin: 6px 0 0; font-size: var(--step--1); padding: 8px 12px; background: var(--accent-soft); border-radius: var(--radius); }
.plan-media { margin: 6px 0 0; font-size: var(--step--1); color: var(--muted); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.special-note { background: var(--accent-soft); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; max-width: none; }
/* "Availability updated <date>" under a list of plans. */
.updated { margin: 12px 0 0; }
.photo-pair .ph { padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-pair .ph img { aspect-ratio: 4/3; }

/* calculator */
.calc-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-lines { display: grid; gap: 2px; }
.calc-line { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.calc-line b { font-variant-numeric: tabular-nums; }
.calc-line small { grid-column: 2 / 4; margin-top: -4px; color: var(--muted); font-size: var(--step--1, .85rem); }
.calc-line input:disabled + span { color: var(--muted); }
.calc-total { background: #fff; border-radius: var(--radius); padding: 26px; position: sticky; top: 100px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.calc-big { font-family: var(--display); font-size: var(--step-5); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-total td:last-child { text-align: right; }

/* dialogs */
.modal { border: 0; padding: 0; background: transparent; max-width: 100vw; width: 100%; }
.modal::backdrop { background: rgba(15,22,19,.7); }
.modal-card { background: #fff; max-width: 560px; margin: 6vh auto; border-radius: 10px; padding: 28px; position: relative; }
.modal-card.wide { max-width: 1000px; padding: 44px 12px 12px; background: var(--ink); }
.modal-card h2 { font-size: var(--step-3); padding-right: 40px; }
.modal-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: var(--radius-btn); border: 0; background: var(--tint); color: var(--ink); font-size: 20px; cursor: pointer; }

a[href^="tel:"] { white-space: nowrap; }
.section.dark .places li { border-color: rgba(255,255,255,.14); }
.section.dark .places .why { color: color-mix(in srgb, var(--light) 76%, transparent); }
.section.dark .places .mins { color: var(--light); }
[hidden] { display: none !important; }
input[type=checkbox], input[type=radio] { accent-color: var(--field); width: 18px; height: 18px; }
.plan-img { aspect-ratio: auto; height: 270px; }
.plan-img img { height: 100%; }
.plan-img { overflow: hidden; }
.plan-img img { max-height: 100%; }

/* ---------- floorplan pages */
.plan-top h3 a { color: inherit; text-decoration: none; }
.plan-top h3 a:hover { text-decoration: underline; }
.plan-detail { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: 24px; }
@media (max-width: 900px) { .plan-detail { grid-template-columns: 1fr; } }
.plan-drawing { display: block; width: 100%; padding: 20px; border: 0; border-radius: var(--radius); background: var(--tint); cursor: zoom-in; }
.plan-drawing img { width: 100%; max-height: 560px; object-fit: contain; mix-blend-mode: multiply; }
.plan-drawing.photo { padding: 0; }
.plan-drawing.photo img { mix-blend-mode: normal; object-fit: cover; aspect-ratio: 4/3; }
.plan-panel { position: sticky; top: 100px; display: grid; gap: 10px; }
.plan-panel .status { margin: 0; }
.plan-rent.big { font-size: var(--step-3); font-family: var(--display); font-weight: 400; }
.plan-panel p { margin: 0; }
.ledger-card.flat { box-shadow: none; border: 1px solid var(--line); }

/* ---------- apply */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 64px; display: grid; gap: 16px; }
.step { counter-increment: step; position: relative; padding: 22px 22px 22px 72px; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--field); color: var(--light); display: grid; place-items: center; font: 400 var(--step-2) var(--display); }
.step h3 { margin-bottom: .3em; }

/* ---------- commute */
.commute { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 16px; align-items: end; margin-bottom: 16px; }
.commute .field { margin: 0; }
.commute-result { grid-column: 1 / -1; margin: 0; min-height: 1.5em; }
@media (max-width: 720px) { .commute { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

/* ---------- preview: which style this is, and the others to choose from */
.style-picker { display: flex; align-items: center; justify-content: center; gap: 8px; height: var(--above); padding: 0 var(--gutter); overflow-x: auto; background: var(--ink); color: var(--light); font-size: var(--step--1); }
.style-picker span { margin-right: 6px; opacity: .8; }
.style-picker a { color: var(--light); text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--light) 40%, transparent); white-space: nowrap; }
.style-picker a[aria-current] { background: var(--light); color: var(--ink); border-color: var(--light); }
@media (max-width: 480px) { .style-picker span { display: none; } .style-picker { justify-content: flex-start; } }

/* ---------- header: logo, Residents, Ask, Book a tour, and nothing else, at every width */
:root { --header-h: 72px; --above: 44px; }
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--light) 94%, transparent); backdrop-filter: blur(8px); transition: background .25s, color .25s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.brand { min-width: 0; flex: 0 1 auto; }
/* A wide wordmark shrinks to the space the header leaves it, never past the page edge. */
.brand img { height: 42px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.brand img.ink { filter: brightness(0); }
.header-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.pill { display: inline-flex; align-items: center; font: 500 .875rem/1 var(--text); color: inherit; text-decoration: none; padding: 11px 16px; border-radius: 999px; white-space: nowrap; background: none; border: 1px solid transparent; cursor: pointer; }
.pill.ghost { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.pill.solid { background: var(--field); color: var(--light); }
.pill:hover { color: inherit; opacity: .85; }
.pill.solid:hover { color: var(--light); }
/* Over a dark opening the header sits on the photo, until the page scrolls (site.js). */
.site-header.over-dark { margin-bottom: calc(-1 * var(--header-h)); }
.site-header.on-dark { background: transparent; backdrop-filter: none; color: #fff; }
.site-header.on-dark .brand img { filter: brightness(0) invert(1); }
.site-header.on-dark .pill.ghost { border-color: rgba(255,255,255,.55); }
.site-header.on-dark .pill.solid { background: var(--light); color: var(--ink); }
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .brand img { height: 32px; }
  .pill { padding: 10px 13px; font-size: .8125rem; }
  .pill.ghost:not(.keep) { display: none; }
}
@media (max-width: 374px) { .pill { padding: 9px 10px; font-size: .75rem; } .brand img { height: 26px; } }

/* ---------- the reel's copy devices: a serif line, an italic accent, one aside, a price plate */
.reel-title { margin: 0; font: 400 1em/1 var(--display); letter-spacing: -.01em; }
.reel-title span { display: block; text-wrap: balance; }
.reel-title .acc { font-style: italic; }
.aside { margin: 12px 0 0; max-width: none; font: 500 clamp(28px, 3vw, 42px)/1.1 var(--hand); transform: rotate(-2deg); }
.plate { display: inline-block; margin: 20px 0 0; max-width: 100%; background: var(--light); color: var(--ink); font: 700 clamp(15px, 1.4vw, 19px)/1.3 var(--text); padding: 10px 18px; border-radius: 6px; }

/* ---------- the three openings */
/* The first screen is one screen: whatever sits above it comes out of its height, so the words at its
   foot stay clear of the Ask bar. `site.js` measures --opening-top; these are for before it runs. */
.open-cine { position: relative; height: 100vh; height: calc(100svh - var(--opening-top, 0px)); min-height: 400px; overflow: hidden; color: #fff; }
body:has(.style-picker) { --opening-top: var(--above); }
body:has(.preview-banner) { --opening-top: 64px; }
body:has(.preview-banner):has(.style-picker) { --opening-top: calc(var(--above) + 64px); }
.open-cine > img, .chapter > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.open-cine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,0) 35%, rgba(0,0,0,.08) 55%, rgba(0,0,0,.62)); }
.open-cine .cap { position: absolute; z-index: 2; left: 50%; bottom: 110px; transform: translateX(-50%); text-align: center; width: min(92%, 900px); }
.open-cine .reel-title { font-size: clamp(46px, 7.4vw, 108px); }
.open-type .reel-title { font-size: clamp(46px, 6.2vw, 92px); }
.open-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; max-width: 1240px; margin: 0 auto; padding: 56px var(--gutter) 60px; min-height: calc(88vh - var(--header-h)); }
.open-split .reel-title { font-size: clamp(54px, 8vw, 124px); }
.open-split .acc { color: var(--accent); }
.open-split .aside { color: var(--field); }
.open-split .plate { background: var(--field); color: var(--light); }
.open-split .card { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5/4; }
.open-split .card img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; left: 18px; bottom: 18px; margin: 0; background: var(--light); color: var(--ink); border-radius: 999px; padding: 10px 18px; font: 500 .9375rem/1.2 var(--text); }
.open-type { background: var(--field); color: var(--light); padding: calc(var(--header-h) + 68px) var(--gutter) 0; }
.open-type .in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr .8fr; gap: 48px; align-items: end; }
.open-type .in:has(.ticket[hidden]) { grid-template-columns: 1fr; }
.open-type .acc { color: var(--accent-on-field); }
/* Left-aligned here, so the aside turns about its left end: about its centre, that end dips into the plate. */
.open-type .aside { transform-origin: left bottom; }
.open-type .plate { margin-top: 28px; }
.ticket { margin: 0; max-width: none; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; padding: 20px 22px; font: 400 1.0625rem/1.5 var(--text); }
.ticket small { display: block; font: 500 .75rem/1.2 var(--text); letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
.open-type .strip { max-width: 1240px; margin: 56px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: translateY(40px); }
.open-type .strip img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 12px; }
.after-type { height: 40px; }
@media (max-width: 760px) {
  .open-cine .cap { bottom: 88px; }
  .open-split { grid-template-columns: 1fr; padding: 24px var(--gutter) 30px; gap: 26px; min-height: 0; }
  .open-type { padding-top: calc(var(--header-h) + 36px); }
  .open-type .in { grid-template-columns: 1fr; gap: 26px; }
  .open-type .strip { gap: 8px; margin-top: 30px; }
}

/* ---------- full-screen photo chapters */
.chapter { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; }
.chapter::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62)); }
.chapter .cap { position: absolute; z-index: 2; left: 8%; bottom: 12%; max-width: min(84%, 820px); }
.chapter .reel-title { font-size: clamp(40px, 5.6vw, 84px); text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.more { display: block; width: fit-content; margin-top: 18px; color: #fff; font: 500 .875rem/1.4 var(--text); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 2px; }
.more:hover { color: #fff; border-color: #fff; }
@media (max-width: 760px) { .chapter .cap { left: 20px; right: 20px; bottom: 96px; max-width: none; } }

/* ---------- the chat closer */
.closer { padding: 100px var(--gutter) 80px; display: flex; flex-direction: column; align-items: center; text-align: center; scroll-margin-top: var(--header-h); }
.closer .reel-title .ser { font-size: clamp(46px, 5vw, 76px); }
.closer .reel-title .acc { font-size: clamp(24px, 2.6vw, 36px); margin-top: 6px; color: var(--accent); }
.ask-panel { width: min(760px, 100%); margin-top: 38px; background: var(--paper); border-radius: 26px; padding: 32px 34px 24px; text-align: left; }
.greet { display: flex; align-items: center; gap: 8px; margin: 0; max-width: none; color: var(--muted); font-size: .875rem; }
.greet i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ask-panel h3 { font: 400 clamp(30px, 3.6vw, 46px)/1.05 var(--display); margin: 16px 0 20px; }
.ask-input { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px 8px 18px; }
.ask-input input[type=text] { flex: 1; min-width: 0; border: 0; padding: 6px 0; background: none; outline: none; }
.ask-input:focus-within { outline: 3px solid var(--accent-text); outline-offset: 1px; }
.ask-input button[disabled] { opacity: .55; cursor: not-allowed; }
.ask-input button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 11px; background: var(--field); color: var(--light); font-size: 1.125rem; cursor: pointer; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ask-chips button, .ask-chips a { background: var(--chip); border: 1px solid transparent; color: var(--ink); padding: 9px 14px; border-radius: 999px; font: 400 .875rem/1.3 var(--text); text-decoration: none; cursor: pointer; text-align: left; }
.ask-chips a { background: transparent; border-color: var(--line); }
.ask-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 30px; margin: 22px 0 0; max-width: none; padding-top: 16px; border-top: 1px solid var(--line); font-size: .875rem; }
.ask-facts .from { font-weight: 500; }
.closer > .btn { margin-top: 28px; }
@media (max-width: 760px) { .closer { padding-block: 64px 48px; } .ask-panel { padding: 24px 18px 18px; border-radius: 22px; } .ask-facts { flex-direction: column; align-items: center; } }

/* ---------- the at-a-glance paragraph: every number on the page, in plain text */
.glance { width: min(100% - 2 * var(--gutter), 860px); margin: 0 auto; padding-bottom: 40px; color: var(--muted); font-size: .8125rem; line-height: 1.6; text-align: center; }
.glance p { max-width: none; margin: 0 0 6px; }
.glance a { color: inherit; }
.glance .special-note { background: none; padding: 0; margin: 0 0 6px; }

/* ---------- the floating Ask bar */
.ask-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 10px; width: min(540px, calc(100% - 32px)); padding: 7px 7px 7px 20px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--light) 96%, transparent); color: var(--ink); box-shadow: 0 16px 40px rgba(0,0,0,.22); cursor: pointer; transition: opacity .25s, transform .25s; text-align: left; }
.ask-bar.gone { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
.ask-bar span { flex: 1; min-width: 0; font: 400 .9375rem/1.2 var(--text); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-bar b { background: var(--field); color: var(--light); padding: 10px 16px; border-radius: 999px; font: 500 .875rem/1 var(--text); }
.chat-open .ask-bar { display: none; }
/* The page behind is out of reach while the sheet is open, and looks it. */
.chat-open::after { content: ""; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.28); }
@media (max-width: 760px) { body:has(.ask-bar) { padding-bottom: 72px; } }

/* ---------- footer columns, residents */
.footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer-logo { height: 64px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.res-head { padding-block: clamp(32px, 5vw, 56px) clamp(48px, 6vw, 80px); }
.res-head h1 { font-size: clamp(44px, 5vw, 68px); margin: 0 0 30px; }
.tile.hot { background: var(--field); border-color: var(--field); color: var(--light); }
.tile.hot span { color: inherit; opacity: .85; }
.tile, .tile[href] { border-radius: 20px; min-height: 128px; white-space: normal; scroll-margin-top: calc(var(--header-h) + 16px); }
