/* Frontage main stylesheet. Every color, font, space and duration comes from tokens.css.
   1 Base  2 Buttons & links  3 Header & action bar  4 Hero & search sheet  5 Sections, page heads, bands  6 Cards, rail, grid
   7 The block (3D)  8 Mortgage  9 Steps, numbers, rules, quotes, posts, people, plans, mosaic  10 Filters, results, compare
   11 Listing, gallery, lightbox  12 Visit & forms  13 Neighborhoods, profile, article, 404, map  14 Footer
   15 Motion (reveal, mask, parallax, draw)  16 Breakpoints  17 Print */

/* 1. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; overflow-x: clip; }
body { margin: 0; font: 400 var(--text-base)/1.6 var(--font-body); color: var(--ink); background: var(--paper); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.022em; margin: 0 0 0.5em; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
h1 { font-size: var(--text-display); letter-spacing: -0.03em; }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-md); line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--dur-micro) var(--ease-out); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 2 * clamp(1.1rem, 4vw, 2.5rem)); margin-inline: auto; }
.narrow { width: min(46rem, 100% - 2 * clamp(1.1rem, 4vw, 2.5rem)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0.5rem; z-index: var(--z-modal); background: var(--paper); color: var(--ink); padding: 0.6rem 1rem; }
.skip:focus { left: 0.5rem; }
.sr-only, .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lead { font-size: var(--text-md); line-height: 1.45; color: var(--ink-2); max-width: 40em; }
/* the label: a short rule, then the words. The frontage line is the signature of the whole template. */
.label { display: flex; align-items: center; gap: 0.7rem; font: 500 var(--text-sm)/1.3 var(--font-body); color: var(--brand-deep); margin: 0 0 1em; }
.label::before { content: ""; flex: none; width: 1.5rem; height: 2px; background: currentColor; }
.section--dark .label, .hero .label, .band .label, .lost .label, .visit .label { color: var(--chalk); }
.meta { font-size: var(--text-sm); color: var(--muted); }
.section--dark .meta, .visit .meta { color: var(--on-dark-2); }
small { font-size: var(--text-sm); font-weight: 400; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-xl) 0; }
ul, ol { padding-left: 1.2em; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.75rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; font-size: var(--text-sm); color: var(--ink-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
address { font-style: normal; }
dialog { color: inherit; }

/* 2. Buttons & links: square, like everything else on the sheet ------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.9rem; padding: 0.6rem 1.35rem; border: 1px solid transparent; font: 600 1rem/1.1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn--brand { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn--brand:hover { background: var(--brand-hi); border-color: var(--brand-hi); color: var(--on-brand); box-shadow: var(--shadow); }
.btn--dark { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.btn--dark:hover { background: var(--dark-3); border-color: var(--dark-3); color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--wash); color: var(--ink); }
.btn--light { background: transparent; color: var(--on-dark); border-color: var(--on-dark-2); }
.btn--light:hover { background: var(--on-dark); color: var(--dark); }
.btn--lg { min-height: 3.3rem; padding: 0.8rem 1.8rem; font-size: 1.05rem; }
.btn--sm { min-height: 2.3rem; padding: 0.35rem 0.9rem; font-size: 0.92rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
/* the arrow link: a hairline that extends on hover (the frontage line again) */
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.link-arrow::after { content: ""; width: 1.4em; height: 2px; background: var(--brand); transition: width var(--dur-short) var(--ease-out); }
.link-arrow:hover::after { width: 2.4em; }
.link-arrow--light { color: var(--on-dark); }
.link-arrow--light::after { background: var(--chalk); }
.link-arrow--sm { font-size: var(--text-sm); }
.link-arrow--btn { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }

/* 3. Header: the title block of a drawing sheet. Hairline above and below, the active page carries a survey mark. --- */
.site-header { position: sticky; top: 0; z-index: var(--z-sticky); background: var(--paper); border-bottom: 1px solid var(--rule); transition: box-shadow var(--dur-long) var(--ease-out); }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-long) var(--ease-out); }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header.is-scrolled::before { transform: scaleX(1); }
.site-header__row { display: flex; align-items: center; gap: 1.4rem; min-height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 2rem; height: auto; flex: none; }
.brand__lot { fill: none; stroke: currentColor; stroke-width: 1.5; }
.brand__front { fill: var(--brand); }
.brand__door { fill: currentColor; }
.brand__name { font: 600 1.4rem/1 var(--font-display); letter-spacing: -0.02em; }
.brand--light { color: var(--on-dark); }
.nav { margin-left: auto; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.1rem; }
.nav__list a { position: relative; display: block; padding: 0.5rem 0.7rem; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.98rem; transition: color var(--dur-micro) var(--ease-out); }
.nav__list a::before { content: ""; position: absolute; left: 0.7rem; bottom: 0.15rem; width: 0.4rem; height: 0.4rem; background: var(--brand); transform: scale(0); transition: transform var(--dur-short) var(--ease-out); }
.nav__list a:hover { color: var(--ink); }
.nav__list a[aria-current="page"] { color: var(--ink); }
.nav__list a[aria-current="page"]::before { transform: scale(1); }
.nav__toggle { display: none; }
.site-header__open { margin: 0; font-size: var(--text-sm); color: var(--muted); white-space: nowrap; }
.site-header__phone { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.site-header__phone-icon { width: 1.05rem; height: 1.05rem; fill: var(--brand); }
.site-header__cta { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--brand); padding-bottom: 0.1rem; transition: border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.site-header__cta:hover { color: var(--brand-deep); border-color: var(--ink); }
.open-now { color: var(--ok); }
.open-now.is-closed { color: var(--muted); }
.action-bar { display: none; }

/* 4. Hero: the frontage at golden hour with a drawing grid over it; the search sheet docks on the bottom edge ----- */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(40rem, 94svh, 56rem); background: var(--dark); color: var(--on-dark); overflow: clip; }
.hero__figure { position: absolute; inset: -6% 0; margin: 0; z-index: -2; transform: translateY(var(--py, 0)); }
.hero__photo { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.is-ready .hero__photo { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-side), var(--grad-veil); }
.hero__grid { position: absolute; inset: -10% 0; z-index: -1; background-image: var(--grid); background-size: 4rem 4rem; mask-image: linear-gradient(180deg, transparent 0%, black 30%, black 75%, transparent 100%); transform: translateY(var(--py, 0)); pointer-events: none; }
.hero__copy { position: relative; padding: 9rem 0 3rem; }
.hero__copy > * { max-width: 46rem; }
.hero h1 { color: var(--on-dark); margin-bottom: 0.4em; }
.hero__lead { font-size: var(--text-md); line-height: 1.45; color: var(--on-dark-2); max-width: 34em; margin-bottom: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin: 0 0 2.5rem; padding: 0; }
.hero__facts div { display: flex; flex-direction: column-reverse; }
.hero__facts dt { font-size: var(--text-sm); color: var(--on-dark-2); }
.hero__facts dd { margin: 0; font: 600 var(--text-xl)/1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero__actions { margin-bottom: 3rem; }
/* the sheet: one line per field, hairlines between, the frontage line on top; it hangs over the next section */
.sheet { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto auto; align-items: end; gap: 0 1.25rem; background: var(--paper); color: var(--ink); border-top: 3px solid var(--brand); padding: 1.1rem 1.4rem 1.2rem; box-shadow: var(--shadow-up); margin-bottom: -3.25rem; }
.sheet__field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.sheet__field > span { font-size: var(--text-sm); color: var(--muted); }
.sheet__field select { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 0.4rem 1.4rem 0.4rem 0; font: 600 1rem/1.2 var(--font-body); color: var(--ink); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 0.5rem top 0.95rem, right 0.15rem top 0.95rem; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; cursor: pointer; }
.sheet__status { display: flex; gap: 1rem; padding-bottom: 0.45rem; white-space: nowrap; }
.sheet__status label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; font-size: 0.98rem; cursor: pointer; }
.sheet__status input { accent-color: var(--brand); width: 1rem; height: 1rem; margin: 0; }
.sheet__go { min-height: 3rem; }
.hero + .section { padding-top: calc(var(--space-3xl) + 3.25rem); }
.hero--launch .hero__copy { max-width: 52rem; padding-bottom: 5rem; }
.hero--launch h1 { font-size: clamp(3.4rem, 8vw + 1rem, 8.5rem); letter-spacing: -0.04em; }

/* 5. Sections, page heads, bands, interludes --------------------------------- */
.section { padding: var(--space-3xl) 0; }
.section--tight { padding: var(--space-2xl) 0; }
.section--wash { background: var(--wash); }
.section--dark { background: var(--grad-dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3, .section--dark a { color: var(--on-dark); }
.section__head { margin-bottom: var(--space-xl); max-width: 50rem; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; max-width: none; }
.section__head--row h2 { margin-bottom: 0.2em; }
.section__head--row > .link-arrow, .section__head--row > .meta { flex: none; margin: 0 0 0.6rem; }
.section__head--row > .meta { max-width: 22rem; text-align: right; }
.page-head { position: relative; isolation: isolate; padding: 3.5rem 0 3rem; background: var(--dark); color: var(--on-dark); overflow: clip; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grid); background-size: 4rem 4rem; mask-image: linear-gradient(90deg, transparent 0%, black 40%, black 70%, transparent 100%); }
.page-head h1 { color: var(--on-dark); max-width: 22ch; }
.page-head .lead { color: var(--on-dark-2); }
.page-head .lead a { color: var(--on-dark); }
.page-head .meta { color: var(--on-dark-2); }
.page-head .meta a { color: var(--on-dark); }
.page-head--tight { padding: 2.5rem 0 2.5rem; }
.page-head--photo { min-height: clamp(28rem, 62svh, 40rem); display: flex; align-items: flex-end; padding-bottom: 3.5rem; }
.page-head__figure { position: absolute; inset: -6% 0; margin: 0; z-index: -2; transform: translateY(var(--py, 0)); }
.page-head__figure img { width: 100%; height: 100%; object-fit: cover; }
.page-head--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-veil), var(--grad-side); }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: var(--text-sm); color: var(--on-dark-2); margin-bottom: 1.6rem; }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: var(--on-dark); }
.crumbs [aria-current] { color: var(--on-dark); }
.band { background: var(--brand); color: var(--on-brand); padding: var(--space-2xl) 0; }
.band .label { color: var(--on-brand); }
.band h2 { color: var(--on-brand); margin: 0; max-width: 24ch; }
.band__grid { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem 4rem; }
.band .btn--brand { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.band .btn--brand:hover { background: var(--dark-3); border-color: var(--dark-3); }
.band .link-arrow--light { color: var(--on-brand); }
.band .link-arrow--light::after { background: var(--on-brand); }
.interlude { position: relative; margin: 0; height: clamp(22rem, 56vh, 36rem); overflow: clip; background: var(--dark); color: var(--on-dark); }
.interlude img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; transform: translateY(var(--py, 0)); }
.interlude::after { content: ""; position: absolute; inset: 0; background: var(--grad-veil); }
.interlude figcaption { position: absolute; left: 0; right: 0; bottom: 1.6rem; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; font-size: var(--text-sm); color: var(--on-dark-2); }
.interlude figcaption span:first-child { color: var(--on-dark); font-weight: 600; }

/* 6. Cards, the rail, grids, tags -------------------------------------------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { min-width: 0; display: flex; flex-direction: column; }
.card__photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wash); }
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card:hover .card__photo img { transform: scale(1.04); }
/* survey ticks: the corner marks of a lot on a plat, drawn on hover */
.card__photo::before, .card__photo::after { content: ""; position: absolute; width: 1.1rem; height: 1.1rem; border: 2px solid var(--on-dark); opacity: 0; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); pointer-events: none; }
.card__photo::before { left: 0.7rem; top: 0.7rem; border-right: 0; border-bottom: 0; transform: translate(-6px, -6px); }
.card__photo::after { right: 0.7rem; bottom: 0.7rem; border-left: 0; border-top: 0; transform: translate(6px, 6px); }
.card:hover .card__photo::before, .card:hover .card__photo::after { opacity: 1; transform: none; }
.tag { position: absolute; left: 0; bottom: 0; background: var(--paper); color: var(--ink); font: 600 var(--text-sm)/1 var(--font-body); padding: 0.45rem 0.7rem; }
.tag--rent { background: var(--dark); color: var(--on-dark); }
.tag--inline { position: static; display: inline-block; padding: 0.3rem 0.55rem; margin-right: 0.3rem; background: var(--chalk); color: var(--dark); }
.tag--sold { background: var(--sold); color: var(--on-dark); }
.card__body { display: flex; flex-direction: column; gap: 0.2rem; padding-top: 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; flex: 1; }
.card__place { font-size: var(--text-sm); color: var(--muted); margin: 0; }
.card h3 { font-size: 1.25rem; margin: 0.1rem 0 0.2rem; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-deep); }
.card__facts { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.card__price { margin: 0.5rem 0 0; font: 600 var(--text-md)/1.2 var(--font-display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.card__price small { font-family: var(--font-body); font-weight: 400; color: var(--muted); }
.card__actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 0.9rem; }
.compare-add { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.compare-add input { appearance: none; -webkit-appearance: none; width: 1.05rem; height: 1.05rem; margin: 0; border: 1.5px solid var(--ink-2); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.compare-add input::after { content: ""; width: 0.45rem; height: 0.45rem; background: var(--on-brand); transform: scale(0); transition: transform var(--dur-micro) var(--ease-out); }
.compare-add input:checked { background: var(--brand); border-color: var(--brand); }
.compare-add input:checked::after { transform: scale(1); }
.compare-add input:disabled { opacity: 0.4; cursor: not-allowed; }
.section--dark .compare-add, .visit .compare-add { color: var(--on-dark-2); }
.rail { position: relative; }
.rail__track { list-style: none; margin: 0; padding: 0 0 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3.2rem) / 3); gap: 1.6rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.rail__track > .card { scroll-snap-align: start; }
.rail__controls { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.5rem; }
.rail__btn { width: 2.8rem; height: 2.8rem; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); font-size: 1.1rem; cursor: pointer; transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out); }
.rail__btn:hover { border-color: var(--ink); background: var(--wash); }

/* 7. The block: a white model on the drawing table; the canvas is the 3D scene, the SVG the fallback and the LCP ---- */
.block { display: grid; grid-template-columns: 1.15fr 1fr; gap: 3rem 4rem; align-items: center; }
.block__stage { position: relative; aspect-ratio: 4 / 3; max-height: 34rem; perspective: 1200px; }
.block__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.block__stage.is-3d canvas { opacity: 1; }
.block__stage.is-3d .block-art { opacity: 0; pointer-events: none; }
.block-art { width: 100%; height: 100%; overflow: visible; transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transform-style: preserve-3d; }
.block-art path, .block-art circle { fill: none; stroke: var(--chalk); stroke-width: 1.2; stroke-linejoin: round; }
.block-art__table path { fill: var(--dark-2); stroke: var(--rule-dark); }
.block-art__streets path { stroke: var(--rule-dark); stroke-dasharray: 3 5; }
.block-art__lot path:first-child { fill: oklch(96% 0.006 85); stroke: var(--on-dark); }
.block-art__lot path:nth-child(2) { fill: oklch(82% 0.01 85); stroke: var(--on-dark); }
.block-art__pin { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(calc((1 - var(--rise, 0)) * 40px)) scaleY(var(--rise, 0)); opacity: var(--rise, 0); transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out); }
.block-art__pin circle { fill: var(--brand); stroke: var(--on-dark); stroke-width: 1.5; }
.block-art__pin path { stroke: var(--chalk); stroke-width: 1.5; }
.block-art__lot.is-lit path:first-child { fill: var(--chalk); }
.block-art__lot.is-lit .block-art__pin circle { fill: var(--on-dark); transform: scale(1.35); transform-box: fill-box; transform-origin: center; }
.block__hint { position: absolute; left: 0; bottom: -0.4rem; margin: 0; font-size: var(--text-sm); color: var(--on-dark-2); }
.block__copy p:not(.label) { color: var(--on-dark-2); }
.lots { list-style: none; margin: 1.6rem 0 2rem; padding: 0; border-top: 1px solid var(--rule-dark); }
.lot a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--rule-dark); color: var(--on-dark); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out); }
.lot a:hover, .lot.is-lit a { background: oklch(100% 0 0 / 0.05); }
.lot__dot { width: 0.6rem; height: 0.6rem; background: var(--rule-dark); transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.lot.is-lit .lot__dot { background: var(--chalk); transform: scale(1.4); }
.lot strong { display: block; font: 600 1.05rem/1.2 var(--font-display); }
.lot strong + span { display: block; font-size: var(--text-sm); color: var(--on-dark-2); }
.lot em { font-style: normal; font-size: var(--text-sm); color: var(--on-dark-2); text-align: right; white-space: nowrap; }

/* 8. Mortgage simulator ------------------------------------------------------ */
.mortgage { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem 5rem; align-items: start; }
.mortgage__copy p:not(.label) { color: var(--ink-2); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--paper); border-top: 3px solid var(--brand); padding: 1.8rem; box-shadow: var(--shadow); }
.calc__fields { display: flex; flex-direction: column; gap: 1.1rem; }
.calc__out { border-left: 1px solid var(--rule); padding-left: 2rem; }
.calc__monthly { display: flex; flex-direction: column; margin: 0 0 1.2rem; }
.calc__label { font-size: var(--text-sm); color: var(--muted); }
.calc__monthly strong { font: 600 var(--text-2xl)/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc__rows { margin: 0 0 1rem; padding: 0; }
.calc__rows div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-bottom: 1px solid var(--rule); font-size: var(--text-sm); }
.calc__rows dt { color: var(--ink-2); }
.calc__rows dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.calc__rows--totals { color: var(--muted); }
.calc__out .btn, .calc__out .link-arrow { margin-top: 0.6rem; }
.calc--side { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.4rem; box-shadow: none; border: 1px solid var(--rule); border-top: 3px solid var(--brand); }
.calc--side .calc__out { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1rem; }
.calc--side .calc__monthly strong { font-size: var(--text-xl); }
input[type="range"] { width: 100%; accent-color: var(--brand); margin: 0.4rem 0 0; }

/* 9. Steps, numbers, rules, quotes, posts, people, plans, mosaic ------------------ */
.steps { list-style: none; margin: 0; padding: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule); }
.steps::after { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--brand); transform: scaleX(var(--draw, 0)); transform-origin: left; }
.step { position: relative; }
.step__mark { position: absolute; top: -2.2rem; left: 0; width: 0.7rem; height: 0.7rem; background: var(--paper); border: 2px solid var(--rule); transform: translateY(-50%); transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.step.is-reached .step__mark { background: var(--brand); border-color: var(--brand); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--ink-2); font-size: var(--text-sm); line-height: 1.55; }
.steps--vertical { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 2rem; }
.steps--vertical::before { left: 0.35rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: var(--rule-dark); }
.steps--vertical::after { left: 0.35rem; top: 0; width: 3px; height: 100%; transform: scaleY(var(--draw, 0)); transform-origin: top; }
.steps--vertical .step { padding: 0.8rem 0; }
.steps--vertical .step__mark { top: 1.3rem; left: -2rem; background: var(--dark); border-color: var(--rule-dark); }
.steps--vertical .step h3 { margin: 0; font-size: 1.05rem; color: var(--on-dark-2); }
.steps--vertical .step.is-done h3 { color: var(--on-dark); }
.steps--vertical .step.is-done .step__mark { background: var(--chalk); border-color: var(--chalk); }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; margin: 0; padding: 0; }
.numbers div { display: flex; flex-direction: column-reverse; border-top: 1px solid var(--rule-dark); padding-top: 1rem; }
.numbers dt { color: var(--on-dark-2); font-size: var(--text-sm); }
.numbers dd { margin: 0 0 0.2rem; font: 600 var(--text-2xl)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.6rem; counter-reset: rule; }
.rules li { border-top: 1px solid var(--rule); padding-top: 1rem; }
.rules h3 { font-size: 1.15rem; }
.rules p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.quote { border-left: 2px solid var(--chalk); padding-left: 1.4rem; }
.quote blockquote { margin: 0 0 0.8rem; }
.quote blockquote p { margin: 0; font: 500 var(--text-md)/1.4 var(--font-display); letter-spacing: -0.01em; }
.quote__by { margin: 0; font-size: var(--text-sm); color: var(--on-dark-2); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem 1.6rem; }
.posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.post a { display: block; color: inherit; text-decoration: none; }
.post img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; margin-bottom: 1rem; transition: transform 1.1s var(--ease-out); }
.post a:hover img { transform: scale(1.02); }
.post h3 { font-size: 1.25rem; margin: 0.3rem 0 0.4rem; }
.post a:hover h3 { color: var(--brand-deep); }
.post p:not(.meta) { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.post--featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 3rem; align-items: center; margin-bottom: var(--space-2xl); }
.post--featured .post__photo { display: block; }
.post--featured img { margin: 0; aspect-ratio: 4 / 3; }
.post--featured h2 { font-size: var(--text-xl); }
.post--featured h2 a { color: var(--ink); text-decoration: none; }
.post--featured h2 a:hover { color: var(--brand-deep); }
.posts--list { margin-top: var(--space-xl); }
.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem 1.6rem; }
.people--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.people--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 3rem; }
.person a { display: block; color: inherit; text-decoration: none; }
.person img { aspect-ratio: 7 / 9; object-fit: cover; width: 100%; margin-bottom: 1rem; filter: saturate(0.85); transition: filter var(--dur-long) var(--ease-out), transform 1.1s var(--ease-out); }
.person a:hover img { filter: saturate(1); transform: scale(1.02); }
.person h3 { font-size: 1.2rem; margin: 0 0 0.2rem; }
.person p { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.person--wide { display: grid; grid-template-columns: 11rem 1fr; gap: 1.6rem; align-items: start; }
.person--wide img { margin: 0; }
.person--wide h2 { font-size: var(--text-lg); margin-bottom: 0.2rem; }
.person--wide h2 a { color: var(--ink); text-decoration: none; }
.person--wide h2 a:hover { color: var(--brand-deep); }
.person--wide p:not(.meta) { font-size: var(--text-base); color: var(--ink-2); }
.person__nums { display: flex; gap: 2rem; margin: 0.8rem 0 0.9rem; padding: 0; }
.person__nums div { display: flex; flex-direction: column-reverse; }
.person__nums dt { font-size: var(--text-sm); color: var(--muted); }
.person__nums dd { margin: 0; font: 600 var(--text-lg)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.person__nums--big dd { font-size: var(--text-xl); color: var(--on-dark); }
.person__nums--big dt { color: var(--on-dark-2); }
.plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.6rem; }
.plan { border-top: 1px solid var(--rule); padding-top: 1.4rem; }
.plan__draw { width: 100%; max-width: 16rem; margin-bottom: 1.2rem; }
.plan__draw rect, .plan__draw path { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.plan__draw .plan__door { stroke: var(--brand); stroke-width: 3; }
.plan h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.plan p:not(.meta) { color: var(--ink-2); }
.plan__price { font-size: var(--text-sm); color: var(--muted); }
.plan__price strong { font: 600 var(--text-md)/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: 1fr; gap: 1.2rem; }
.mosaic li { overflow: hidden; min-height: 0; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.mosaic__wide { grid-row: span 2; }
.mosaic__wide img { aspect-ratio: auto; }
/* the development: copy and bar on the left, the phases as a vertical line on the right */
.progress { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem 5rem; align-items: start; }
.progress__copy p:not(.label) { color: var(--on-dark-2); }
.progress__bar { position: relative; height: 0.5rem; background: var(--rule-dark); margin-top: 1.6rem; overflow: hidden; }
.progress__bar span { position: absolute; inset: 0; background: var(--chalk); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.4s var(--ease-out); }

/* 10. Filters, results, the comparator ---------------------------------------- */
.filters { display: grid; grid-template-columns: auto repeat(7, minmax(0, 1fr)) auto; gap: 1rem 1.2rem; align-items: end; padding: 1.2rem 0 1.4rem; border-bottom: 1px solid var(--rule); margin-bottom: 1.6rem; }
.filters__status { display: flex; gap: 0.9rem; padding-bottom: 0.5rem; white-space: nowrap; }
.filters__status label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; font-size: var(--text-sm); cursor: pointer; }
.filters__status input { accent-color: var(--brand); margin: 0; }
.filters__field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.filters__field > span { font-size: var(--text-sm); color: var(--muted); }
.filters__field select, .filters__field input { width: 100%; min-width: 0; border: 0; border-bottom: 1px solid var(--rule); background: transparent; padding: 0.4rem 0; font: 600 0.98rem/1.2 var(--font-body); color: var(--ink); }
.filters__field select { appearance: none; -webkit-appearance: none; padding-right: 1.2rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: right 0.45rem top 0.9rem, right 0.1rem top 0.9rem; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; cursor: pointer; }
.filters__field input::placeholder { color: var(--muted); font-weight: 400; }
.filters__reset { background: none; border: 0; padding: 0.4rem 0; font: 600 var(--text-sm)/1.2 var(--font-body); color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: end; }
.results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.results__count { font: 600 var(--text-lg)/1.1 var(--font-display); margin: 0; }
.results__empty { padding: 2rem; border: 1px dashed var(--rule); color: var(--ink-2); }
.compare__scroll { overflow-x: auto; scrollbar-width: thin; }
.compare__table th:first-child { width: 11rem; }
.compare__table thead th { vertical-align: bottom; }
.compare__table img { width: 100%; max-width: 16rem; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 0.6rem; }
.compare__table thead a { color: var(--ink); text-decoration: none; font: 600 1.05rem/1.2 var(--font-display); }
.compare__table td.is-best { color: var(--brand-deep); font-weight: 600; }
.compare__table td.is-best::after { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; background: var(--brand); margin-left: 0.5rem; vertical-align: middle; }
.compare__remove { background: none; border: 0; padding: 0; font: 500 var(--text-sm)/1 var(--font-body); color: var(--muted); text-decoration: underline; cursor: pointer; margin-top: 0.4rem; }
.compare__empty { color: var(--ink-2); border: 1px dashed var(--rule); padding: 1.6rem; margin: 0; }
.compare__actions { display: flex; gap: 2rem; margin-top: 1.4rem; }
.compare-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); background: var(--dark); color: var(--on-dark); box-shadow: var(--shadow-up); transform: translateY(0); transition: transform var(--dur-long) var(--ease-out); }
.compare-bar__row { display: flex; align-items: center; gap: 1.4rem; min-height: 3.6rem; padding: 0.5rem 0; }
.compare-bar p { margin: 0; white-space: nowrap; font-size: var(--text-sm); color: var(--on-dark-2); }
.compare-bar strong { color: var(--on-dark); }
.compare-bar__picks { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.6rem; flex: 1; min-width: 0; overflow: hidden; }
.compare-bar__picks li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-sm); border: 1px solid var(--rule-dark); padding: 0.25rem 0.6rem; white-space: nowrap; }
.compare-bar__picks button { background: none; border: 0; color: var(--on-dark-2); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.1rem; }
.compare-bar__picks button:hover { color: var(--on-dark); }

/* 11. Listing page: head, gallery, lightbox, facts, agent card ------------------- */
.listing-head { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem 4rem; align-items: end; }
.listing-head h1 { font-size: var(--text-display-s); }
.listing-head__price { text-align: right; }
.listing-head__num { margin: 0; font: 600 var(--text-2xl)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--on-dark); }
.listing-head__num small { font: 400 var(--text-base)/1 var(--font-body); color: var(--on-dark-2); }
.listing-head__price .actions { justify-content: flex-end; margin-top: 1rem; }
.listing-head .compare-add { color: var(--on-dark-2); }
.listing-head .compare-add input { border-color: var(--on-dark-2); }
.gallery-wrap { background: var(--dark); padding-bottom: 1rem; }
.gallery { list-style: none; margin: 0; padding: 0 clamp(1.1rem, 4vw, 2.5rem) 0.8rem; display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--rule-dark) transparent; }
.gallery li { flex: none; width: min(64vw, 56rem); scroll-snap-align: center; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--dark-2); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__hint { font-size: var(--text-sm); color: var(--on-dark-2); margin: 0.2rem auto 0; padding-bottom: 0.4rem; }
.lightbox { border: 0; padding: 1rem; background: var(--dark); color: var(--on-dark); width: min(96vw, 90rem); max-width: none; height: 92svh; max-height: 92svh; }
.lightbox::backdrop { background: oklch(10% 0.02 255 / 0.9); }
.lightbox > img { width: 100%; height: calc(100% - 6rem); object-fit: contain; }
.lightbox form { display: flex; justify-content: flex-end; margin-bottom: 0.5rem; }
.lightbox__close, .lightbox > div button { border: 1px solid var(--rule-dark); background: transparent; color: var(--on-dark); min-height: 2.6rem; min-width: 2.8rem; padding: 0.4rem 0.9rem; font: 600 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.lightbox > div { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 0.6rem; font-variant-numeric: tabular-nums; }
.listing { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem 5rem; align-items: start; }
.facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2.5rem; padding: 0; border-top: 1px solid var(--rule); }
.facts div { padding-top: 1rem; display: flex; flex-direction: column-reverse; }
.facts dt { font-size: var(--text-sm); color: var(--muted); }
.facts dd { margin: 0; font: 600 var(--text-lg)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.facts dd small { font: 400 var(--text-sm)/1 var(--font-body); color: var(--muted); }
.prose h2 { font-size: var(--text-lg); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p { max-width: 68ch; }
.prose ul { padding-left: 1.1em; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: 0.4rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 0.6rem; height: 0.6rem; background: var(--brand); }
.costs { margin: 0; padding: 0; max-width: 34rem; }
.costs div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.costs dt { color: var(--ink-2); }
.costs dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.listing__side { display: flex; flex-direction: column; gap: 1.6rem; position: sticky; top: 5.5rem; }
.agent-card { display: grid; grid-template-columns: 6rem 1fr; gap: 0 1.2rem; border: 1px solid var(--rule); padding: 1.2rem; }
.agent-card img { grid-row: 1 / 6; aspect-ratio: 7 / 9; object-fit: cover; }
.agent-card .label { margin-bottom: 0.3rem; }
.agent-card h2 { font-size: var(--text-md); margin: 0; }
.agent-card p { margin: 0.3rem 0; font-size: var(--text-sm); }
.side-calc .label { margin-bottom: 0.6rem; }

/* 12. Visit booking and forms --------------------------------------------- */
.visit { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem 5rem; align-items: start; }
.visit__copy p:not(.label) { color: var(--on-dark-2); }
.visit__tag { border-left: 2px solid var(--chalk); padding: 0.8rem 1.2rem; margin-top: 2rem; }
.visit__tag p { margin: 0 0 0.2rem; color: var(--on-dark); }
.visit__tag-head strong { font: 600 var(--text-md)/1.2 var(--font-display); }
.visit__form { display: flex; flex-direction: column; gap: 2rem; }
.visit__step legend { font: 600 var(--text-md)/1.2 var(--font-display); margin-bottom: 1rem; color: var(--on-dark); }
.cal__days { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.4rem; scrollbar-width: thin; scrollbar-color: var(--rule-dark) transparent; }
.cal__day, .cal__time { position: relative; display: block; cursor: pointer; }
.cal__day input, .cal__time input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cal__day span { display: flex; flex-direction: column; align-items: center; min-width: 4rem; padding: 0.6rem 0.4rem; border: 1px solid var(--rule-dark); color: var(--on-dark-2); transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.cal__day small { font-size: var(--text-sm); }
.cal__day strong { font: 600 var(--text-lg)/1 var(--font-display); margin-top: 0.2rem; }
.cal__day input:checked + span { background: var(--chalk); border-color: var(--chalk); color: var(--dark); }
.cal__day input:focus-visible + span, .cal__time input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.cal__times { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cal__time span { display: block; padding: 0.5rem 0.8rem; border: 1px solid var(--rule-dark); font-size: var(--text-sm); font-weight: 500; color: var(--on-dark); font-variant-numeric: tabular-nums; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.cal__time input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.cal__empty { color: var(--on-dark-2); margin: 0; font-size: var(--text-sm); }
.visit__send { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.visit__done { display: none; border-top: 1px solid var(--rule-dark); padding-top: 1.5rem; }
.visit__done h3 { font-size: var(--text-xl); }
.visit.is-done .visit__done { display: block; }
.visit.is-done .visit__step, .visit.is-done .visit__send { display: none; }
.fields { display: grid; gap: 1.1rem 1.4rem; }
.fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.field > span:first-child, .field > legend { font-size: var(--text-sm); color: var(--muted); display: flex; align-items: center; gap: 0.4rem; }
.visit .field > span:first-child, .visit .field > legend { color: var(--on-dark-2); }
.field input:not([type="range"]):not([type="radio"]), .field select, .field textarea { width: 100%; min-width: 0; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); padding: 0.7rem 0.8rem; font: 400 1rem/1.3 var(--font-body); transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.field [aria-invalid="true"] { border-color: var(--error); }
.visit .field input, .visit .field select, .visit .field textarea { background: var(--dark-2); border-color: var(--rule-dark); color: var(--on-dark); }
.field--radios { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.field--radios legend { width: 100%; margin-bottom: 0.2rem; }
.field--radios label { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--text-sm); font-weight: 500; cursor: pointer; }
.field--radios input { accent-color: var(--brand); margin: 0; }
.field__err { display: block; min-height: 1.2em; font-size: var(--text-sm); color: var(--error); }
.visit .field__err { color: oklch(78% 0.14 27); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.7rem; align-items: start; font-size: var(--text-sm); color: var(--ink-2); margin-top: 1.2rem; }
.check input { margin: 0.25rem 0 0; accent-color: var(--brand); width: 1.05rem; height: 1.05rem; }
.check .field__err { grid-column: 2; }
.visit .check { color: var(--on-dark-2); }
.visit .check a { color: var(--on-dark); }
.form { display: flex; flex-direction: column; gap: 1.1rem; border-top: 3px solid var(--brand); padding-top: 1.6rem; }
.form__send { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.6rem; }
.form__status { margin: 0; font-weight: 500; color: var(--ok); }
.form__status.is-error { color: var(--error); }
.visit .form__status { color: var(--chalk); }
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem 5rem; align-items: start; }
.contact__copy p:not(.label) { color: var(--ink-2); }
.contact__copy address { font-size: var(--text-md); color: var(--ink); margin-bottom: 0.6rem; }
.hours { max-width: 24rem; margin: 1.2rem 0; }
.hours td { padding: 0.45rem 0; font-size: var(--text-sm); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { font-weight: 600; color: var(--brand-deep); }

/* 13. Neighborhoods, profile, article, 404, the map -------------------------------- */
.nb-table th, .nb-table td { padding: 0.9rem 0.8rem; }
.nb-table tbody th { font: 600 1.05rem/1.2 var(--font-display); color: var(--ink); }
.nb-table tbody th a { color: inherit; text-decoration: none; }
.nb-table tbody th a:hover { color: var(--brand-deep); }
.nb-table td.is-best { color: var(--brand-deep); font-weight: 600; }
.nbs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2xl); counter-reset: nb; }
.nb { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: center; }
.nb:nth-child(even) .nb__photo { order: 2; }
.nb__photo { margin: 0; }
.nb__photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.nb h3 { font-size: var(--text-xl); }
.nb__copy p:not(.label) { color: var(--ink-2); }
.nb__facts { display: flex; gap: 2rem; margin: 1.2rem 0 1.4rem; padding: 0; }
.nb__facts div { display: flex; flex-direction: column-reverse; }
.nb__facts dt { font-size: var(--text-sm); color: var(--muted); }
.nb__facts dd { margin: 0; font: 600 var(--text-md)/1.1 var(--font-display); }
.profile { display: grid; grid-template-columns: 18rem 1fr; gap: 2rem 4rem; align-items: end; }
.profile__photo { margin: 0; }
.profile__photo img { aspect-ratio: 7 / 9; object-fit: cover; width: 100%; }
.profile__copy h1 { font-size: var(--text-display-s); }
.profile__copy .actions { margin-top: 1.4rem; }
.profile__copy .link-arrow { color: var(--on-dark); }
.article__figure { margin: 0 auto 2.5rem; }
.article__figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.article__figure figcaption { margin-top: 0.6rem; }
.article__body { padding-bottom: var(--space-2xl); }
.article__body .lead { margin-bottom: 2rem; }
.article__body h2 { font-size: var(--text-md); margin: 1.8em 0 0.5em; }
.article__note { border-left: 2px solid var(--brand); padding: 0.8rem 1.4rem; margin: 2.5rem 0 0; background: var(--wash); }
.article__note p:last-child { margin: 0; }
.article__foot { border-top: 1px solid var(--rule); padding: 1.6rem 0 var(--space-2xl); }
.article__author { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.2rem; align-items: center; margin-top: 1.2rem; }
.article__author img { aspect-ratio: 1; object-fit: cover; }
.article__author p { margin: 0; }
.lost { min-height: 70svh; display: flex; align-items: center; }
.lost__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.lost h1 { color: var(--on-dark); }
.lost .lead { color: var(--on-dark-2); }
.lost__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.lost__links a { color: var(--on-dark); font-weight: 600; }
.lost__draw { width: 100%; max-width: 26rem; justify-self: end; }
.lost__draw path { fill: none; stroke: var(--on-dark-2); stroke-width: 1.5; }
.lost__draw .lost__dash { stroke-dasharray: 4 6; }
.lost__draw .lost__front { stroke: var(--brand); stroke-width: 4; }
.lost__draw text { fill: var(--on-dark-2); font: 500 14px var(--font-body); }
.map { position: relative; height: 32rem; background: var(--wash); border: 1px solid var(--rule); }
.map--short { height: 24rem; }
.map__canvas { position: absolute; inset: 0; z-index: 0; }
.map__fallback { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: var(--ink-2); font-size: var(--text-sm); }
.map.is-map .map__fallback { display: none; }
.map__pin { width: 100%; height: 100%; display: grid; place-items: center; }
.map__pin::before { content: ""; width: 0.9rem; height: 0.9rem; background: var(--brand); border: 2px solid var(--paper); box-shadow: 0 1px 4px oklch(0% 0 0 / 0.4); transition: transform var(--dur-micro) var(--ease-out); }
.map__pin--office::before { background: var(--dark); width: 1.1rem; height: 1.1rem; }
.map__pin--nb::before { display: none; }
.map__pin--nb span { background: var(--paper); border: 1px solid var(--rule); padding: 0.2rem 0.5rem; font: 600 var(--text-sm)/1 var(--font-body); color: var(--ink); white-space: nowrap; }
.map__pin.is-lit::before { transform: scale(1.5); background: var(--dark); }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { border-radius: 0; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 0.8rem 1rem; font: 400 var(--text-sm)/1.4 var(--font-body); }
.leaflet-popup-content b { font: 600 1rem/1.2 var(--font-display); }
.leaflet-popup-content a { color: var(--brand-deep); }

/* 14. Footer ------------------------------------------------------------------ */
.site-footer { background: var(--dark); color: var(--on-dark-2); padding: var(--space-3xl) 0 var(--space-lg); border-top: 3px solid var(--brand); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem 4rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--chalk); }
.site-footer__about { margin: 1.2rem 0 1rem; max-width: 34em; }
.site-footer__open { font-size: var(--text-sm); }
.site-footer__h { font: 600 var(--text-md)/1.2 var(--font-display); color: var(--on-dark); margin: 0 0 0.9rem; }
.site-footer__links, .site-footer__social { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer__social { display: flex; gap: 1.2rem; }
.site-footer__licence { font-size: var(--text-sm); margin-top: 1rem; }
.site-footer__base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--rule-dark); margin-top: var(--space-2xl); padding-top: var(--space-md); font-size: var(--text-sm); }
.site-footer__base p { margin: 0; }
.site-footer__legal { display: flex; gap: 1.4rem; }

/* 15. Motion: reveal (a tracing, bottom up), mask reveal on photos, parallax, the drawn line ------------ */
.js [data-reveal], .js [data-reveal-group] > * { opacity: 0; transform: translateY(1.2rem); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in, .js [data-reveal-group] > .is-in { opacity: 1; transform: none; }
.js .hero__copy > * { opacity: 0; transform: translateY(1rem); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); }
.js.is-ready .hero__copy > * { opacity: 1; transform: none; }
.js .hero__copy > :nth-child(2) { transition-delay: 90ms; }
.js .hero__copy > :nth-child(3) { transition-delay: 180ms; }
.js .hero__copy > :nth-child(4) { transition-delay: 270ms; }
.js .hero__copy > :nth-child(5) { transition-delay: 360ms; }
.js .sheet { opacity: 0; transform: translateY(1.5rem); transition: opacity var(--dur-long) var(--ease-out) 400ms, transform var(--dur-long) var(--ease-out) 400ms; }
.js.is-ready .sheet { opacity: 1; transform: none; }
/* photos reveal through a mask from the top (direction: architecture). The container keeps its box, so no layout shift. */
.js [data-mask] img { clip-path: inset(0 0 100% 0); transition: clip-path var(--dur-long) var(--ease-draw); }
.js [data-mask].is-in img, .js .is-in[data-mask] img { clip-path: inset(0 0 0 0); }
[data-parallax] { will-change: transform; }
.rail__track > .card { --i: 0; }

/* 16. Breakpoints: 1180 notebook, 820 tablet, 560 phone, 400 small phone ----------- */
@media (max-width: 84rem) {
  .site-header__open { display: none; }
}
@media (max-width: 72rem) {
  .site-header__row { gap: 1rem; }
  .sheet { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem 1.2rem; }
  .sheet__status { grid-column: 1 / 4; padding: 0.8rem 0 0; }
  .sheet__go { grid-column: 4 / 6; margin-top: 0.6rem; }
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .filters__status { grid-column: 1 / -1; }
  .filters__reset { grid-column: -2 / -1; }
  .people--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing, .visit, .contact, .mortgage { gap: 2.5rem 3rem; }
  .block { gap: 2.5rem; }
  .nav__list a { padding-inline: 0.5rem; font-size: 0.94rem; }
}
@media (max-width: 51.25rem) {
  html { scroll-padding-top: 4.8rem; }
  .site-header__row { gap: 0.8rem; min-height: 4rem; }
  .site-header__phone-num, .site-header__cta { display: none; }
  .site-header__phone { width: 2.6rem; height: 2.6rem; justify-content: center; border: 1px solid var(--rule); }
  .site-header__phone-icon { width: 1.15rem; height: 1.15rem; }
  .nav { position: static; margin-left: auto; }
  .nav__toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1px solid var(--rule); padding: 0.5rem 0.9rem; font: 600 0.95rem/1 var(--font-body); color: var(--ink); cursor: pointer; }
  .nav__bars { width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .nav__list { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 0.6rem 1.1rem 1rem; box-shadow: var(--shadow-up); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
  .nav.is-open .nav__list { opacity: 1; transform: none; pointer-events: auto; }
  .nav__list a { padding: 0.8rem 1rem; font-size: 1.1rem; }
  .nav__list a::before { left: 0; bottom: 1.2rem; }
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1px; background: var(--rule-dark); border-top: 1px solid var(--rule-dark); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: flex; align-items: center; justify-content: center; min-height: 3.2rem; background: var(--dark); color: var(--on-dark); font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap; }
  .action-bar__main { background: var(--brand); }
  .action-bar .action-bar__main { background: var(--brand); color: var(--on-brand); }
  body { padding-bottom: 3.3rem; }
  .compare-bar { bottom: 3.3rem; }
  .hero { min-height: 0; }
  .hero__copy { padding: 7rem 0 2rem; }
  .hero__facts { gap: 1rem 1.6rem; margin-bottom: 1.6rem; }
  .hero__facts dd { font-size: var(--text-lg); }
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 1rem 1.1rem 1.1rem; margin-bottom: -2.5rem; }
  .sheet__status { grid-column: 1 / 2; padding: 0.9rem 0 0; }
  .sheet__go { grid-column: 2 / 3; margin-top: 0.7rem; }
  .hero + .section { padding-top: calc(var(--space-2xl) + 2.5rem); }
  .section { padding: var(--space-2xl) 0; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .section__head--row > .meta { text-align: left; }
  .grid--3, .posts, .quotes, .plans, .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .mosaic__wide { grid-column: 1 / -1; grid-row: auto; }
  .mosaic__wide img { aspect-ratio: 3 / 2; }
  .rail__track { grid-auto-columns: calc((100% - 1.6rem) / 2); }
  .block, .mortgage, .listing, .visit, .contact, .nb, .band__grid, .post--featured, .profile, .lost__grid, .progress { grid-template-columns: minmax(0, 1fr); }
  .nb:nth-child(even) .nb__photo { order: 0; }
  .block__stage { max-height: 26rem; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__out { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.2rem; }
  .listing__side { position: static; }
  .listing-head { grid-template-columns: minmax(0, 1fr); }
  .listing-head__price { text-align: left; }
  .listing-head__price .actions { justify-content: flex-start; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery li { width: 86vw; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people--2 { grid-template-columns: minmax(0, 1fr); }
  .person--wide { grid-template-columns: 8rem 1fr; }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .profile { align-items: start; }
  .profile__photo { max-width: 16rem; }
  .lost__draw { justify-self: start; }
  .interlude figcaption { flex-direction: column; gap: 0.2rem; }
  .page-head--photo { min-height: 24rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero--launch h1 { font-size: clamp(3rem, 14vw, 5.5rem); }
}
@media (max-width: 35rem) {
  .grid--3, .posts, .quotes, .plans, .rules, .mosaic, .people--4, .posts--2, .steps { grid-template-columns: minmax(0, 1fr); }
  .mosaic__wide { grid-column: auto; }
  .rail__track { grid-auto-columns: 86%; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1.6rem; }
  .numbers dd { font-size: var(--text-xl); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields--2 { grid-template-columns: minmax(0, 1fr); }
  .person--wide { grid-template-columns: minmax(0, 1fr); }
  .person--wide img { max-width: 12rem; }
  .agent-card { grid-template-columns: 4.5rem 1fr; }
  .nb__facts, .person__nums { gap: 1.2rem; flex-wrap: wrap; }
  .hero__copy { padding-top: 6rem; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero__lead { font-size: 1.05rem; }
  .compare-bar__row { gap: 0.8rem; }
  .compare-bar p { display: none; }
  .btn--lg { padding-inline: 1.2rem; font-size: 1rem; }
  .actions { gap: 0.7rem 1rem; }
  .sheet__status label { font-size: 0.92rem; }
  .filters__status { flex-wrap: wrap; }
  .compare__actions { flex-direction: column; gap: 0.8rem; align-items: flex-start; }
}
@media (max-width: 25rem) {
  .brand__name { font-size: 1.2rem; }
  .btn { padding-inline: 1rem; }
  .btn--lg { padding-inline: 1rem; font-size: 0.98rem; }
  .sheet { padding: 0.9rem 0.9rem 1rem; gap: 0.5rem 0.9rem; }
  .sheet__status { gap: 0.7rem; }
  .sheet__go { padding-inline: 0.8rem; font-size: 0.95rem; }
  .action-bar a { font-size: 0.92rem; }
  .hero__facts { gap: 0.8rem 1.2rem; }
  .hero__facts dt { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal-group] > *, .js .hero__copy > *, .js .sheet { opacity: 1; transform: none; transition: none; }
  .js [data-mask] img { clip-path: none; transition: none; }
  [data-parallax] { transform: none; will-change: auto; }
  .hero__photo { transform: none; transition: none; }
  .block-art__pin { transform: none; opacity: 1; transition: none; }
  .steps::after { transform: none; }
  .site-header, .site-header::before { transition: none; }
  html { scroll-behavior: auto; }
}

/* 17. Print: a listing sheet or an article on white paper ------------------------ */
@media print {
  .site-header, .action-bar, .site-footer, .block__stage, .interlude, .band, .btn, .skip, .compare-bar, .map, .rail__controls, .lightbox, .gallery__hint, .sheet, .filters, .visit__send { display: none !important; }
  .js [data-reveal], .js [data-reveal-group] > *, .js .hero__copy > *, .js .sheet { opacity: 1; transform: none; }
  .js [data-mask] img { clip-path: none; }
  body { background: #fff; color: #000; padding: 0; }
  .hero, .section, .page-head, .section--dark, .section--wash, .gallery-wrap, .visit { padding: 1rem 0; background: none; color: #000; min-height: 0; }
  .hero__figure, .hero__grid, .page-head__figure, .hero::before, .page-head::before, .page-head--photo::after { display: none; }
  .hero h1, .page-head h1, .section--dark h2, .section--dark h3, .listing-head__num, .lost h1 { color: #000; }
  .calc, .agent-card, .visit__tag { box-shadow: none; border: 1px solid #000; }
  a { color: #000; text-decoration: none; }
  .gallery { flex-wrap: wrap; overflow: visible; }
  .gallery li { width: 48%; }
}
