/* Hallmark · shape: Split Studio (the agent's line beside the home just listed) · genre: editorial · theme: Atelier (deal 3/3, seed local-real-estate-agent-2290·67c03f59·2026-11-22·r0) · redesign: full
 * hero: Stage (/), Banner (/property.html) · nav: edge-aligned, the wordmark and a call link · footer: a colophon block, the wordmark and the house line over three short lists · imagery: photographs (the template's demo photos, Unsplash) hung as matted prints with wall labels, and drawn sample floor plans · signature: every home hung as a matted print with its wall label (price, address, rooms), the newest one in the hero · atelier: still air (grain, no WebGL)
 * axes: light/roman-serif/cool · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V5 · weakest: E, a template many agents will fill with their own photos; the mat and the wall label carry the look whatever the photo is */
/* Hallmark · dismissed 19 · "All rights reserved" is the owner's copyright line, kept as found */
/* Hallmark · dismissed F4 · the viewer's arrows and thumbnails are controls inside a full-screen dialog, not page buttons */
/* Hallmark · dismissed 76 · the Unsplash photos are the template's own demo content, documented in README.txt for buyers to replace */
/* Hallmark · dismissed 46a · the ribbon figures, credentials and reviews are the template's marked demo content (HTML comments say so), carried over as found for buyers to replace */
@import url("./tokens.css");
@import url("./base.css");

/* =========================================================
   HAVEN, real estate agent website template.
   Colours and fonts are in css/tokens.css (one place):
   --color-paper (background), --color-ink (text and buttons),
   --color-accent (slate: links and focus), --font-display (Sentient), --font-body (Hanken Grotesk).
   ========================================================= */
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.18 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  --header-h: 76px;
  --photo-treat: sepia(0.28) saturate(0.89) contrast(0.94);
}

body { color: var(--color-ink-2); line-height: 1.6; }
.sprite { position: absolute; width: 0; height: 0; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
h1, h2 { font-weight: var(--display-weight); color: var(--color-ink); letter-spacing: var(--tracking-display); line-height: 1.04; }
h3 { font-weight: var(--serif-small); color: var(--color-ink); letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.section { padding-block: var(--section-gap); }
.section + .section { padding-top: var(--section-gap-s); }
.lead { color: var(--color-ink-2); }
.note { font-size: var(--text-sm); color: var(--color-muted); max-width: 60ch; }
a { color: inherit; text-decoration-color: var(--color-accent); }
a:hover { color: var(--color-accent); }

/* ---------- The air: a still grain over the limewash ---------- */
.air { position: relative; isolation: isolate; background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-paper-2) 100%); }
.air::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); background-size: 180px; opacity: 0.16; mix-blend-mode: multiply; pointer-events: none; }

/* ---------- Card stock: cotton with fibre, lit from the top left ---------- */
.stock { position: relative; border-radius: 2px; background: var(--fibre) 0 0 / 220px, linear-gradient(160deg, var(--card-lit), var(--color-card) 55%, var(--card-shade)); box-shadow: var(--shadow-card), inset 1px 1px 0 var(--lit); }
.stock::before { content: ""; position: absolute; inset: 0.875rem; border: var(--rule-hair) solid var(--color-card-edge); pointer-events: none; }

/* ---------- The print: a photograph on a cotton mat ---------- */
.mat { position: relative; padding: var(--space-sm); background: var(--fibre) 0 0 / 220px, var(--color-card); box-shadow: var(--shadow-card), inset 0 0 0 1px var(--color-card-edge); }
.mat img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-treat); box-shadow: 0 0 0 1px var(--color-card-edge), inset 0 0 0 1px var(--lit); }

/* ---------- Buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 400 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.btn:hover { background: var(--color-ink); color: var(--color-paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.55; border-color: var(--color-rule); color: var(--color-muted); background: transparent; }
.btn-primary { border-color: var(--color-ink); }
.link { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.link:hover { color: var(--color-accent); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: var(--z-raised); border-bottom: var(--rule-hair) solid var(--color-rule); background: var(--color-paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: var(--header-h); }
.header-inner > * { flex-shrink: 0; white-space: nowrap; }
.logo { display: inline-flex; align-items: baseline; gap: var(--space-xs); font: var(--serif-small) var(--text-xl)/1 var(--font-display); color: var(--color-ink); text-decoration: none; }
.logo b { width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); align-self: center; }
.logo:hover { color: var(--color-ink); }
.site-nav { display: flex; align-items: center; }
.menu-button { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: inherit; cursor: pointer; anchor-name: --menu-button; }
.menu-button:hover { background: var(--color-ink); color: var(--color-paper); }
.menu-button:active { transform: translateY(1px); }
.site-menu { list-style: none; margin: 0; padding: var(--space-xs); background: var(--color-card); border-radius: 2px; box-shadow: var(--shadow-card); position: fixed; inset: auto; inset-block-start: 4.5rem; inset-block-start: anchor(--menu-button bottom); inset-inline-end: var(--space-md); inline-size: min(84dvw, 20rem); max-block-size: calc(100dvh - 6rem); margin-block-start: var(--space-xs); overflow: auto; }
.site-menu a { display: flex; align-items: center; white-space: nowrap; min-height: 48px; padding: 0 var(--space-sm); color: var(--color-ink); text-decoration: none; }
.site-menu a:hover, .site-menu a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.site-menu .nav-call { margin-top: var(--space-xs); border: var(--rule-hair) solid var(--color-ink); border-radius: var(--radius-pill); justify-content: center; }
.site-menu .nav-call:hover { background: var(--color-ink); color: var(--color-paper); text-decoration: none; }
.is-wide .menu-button { display: none; }
.is-wide .site-menu { position: static; display: flex; align-items: center; gap: var(--space-2xs); inline-size: auto; max-inline-size: none; max-block-size: none; overflow: visible; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.is-wide .site-menu .nav-call { margin: 0 0 0 var(--space-sm); min-height: 44px; padding: 0 var(--space-md); }
.is-measuring .site-menu { visibility: hidden; }

/* ---------- Hero: the agent's line, and the newest home as a print ---------- */
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; min-height: calc(100svh - var(--header-h)); padding-block: var(--space-2xl); }
.hero-text { display: grid; gap: var(--space-lg); justify-items: start; }
.hero-text h1 { font-size: var(--text-display); line-height: 1.02; max-width: 12ch; }
.hero-text .lead { max-width: 40ch; }
.hero-call { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.3em; }
.hero-call:hover { color: var(--color-accent); }
.search-card { width: 100%; padding: var(--space-lg); display: grid; gap: var(--space-xs); }
.search-card h2 { font-size: var(--text-xl); font-weight: var(--serif-small); letter-spacing: 0; }
.search-card .hint { font-size: var(--text-sm); color: var(--color-muted); }
.search { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs) var(--space-md); margin-top: var(--space-xs); }
.search label { display: grid; gap: var(--space-3xs); font-size: var(--text-sm); color: var(--color-muted); }
.search .btn { grid-column: 1 / -1; justify-self: start; margin-top: var(--space-xs); }
.hero-print { margin: 0; display: grid; gap: var(--space-md); }
.hero-print .mat { aspect-ratio: 4 / 3; padding: var(--space-lg); }
.hero-print figcaption { display: flex; justify-content: flex-end; }
.featured-tag { display: grid; grid-template-columns: auto auto; gap: var(--space-3xs) var(--space-md); align-items: baseline; text-decoration: none; color: var(--color-ink); }
.featured-tag small { grid-column: 1 / -1; font-size: var(--text-sm); color: var(--color-pencil); }
.featured-tag strong { font: var(--display-weight) var(--text-2xl)/1 var(--font-display); letter-spacing: var(--tracking-display); }
.featured-tag span { color: var(--color-muted); }
.featured-tag:hover span { color: var(--color-accent); text-decoration: underline; text-underline-offset: 0.3em; }

/* ---------- Figures (demo): three numbers across, parted by hairlines ---------- */
.ribbon { border-block: var(--rule-hair) solid var(--color-rule); }
.ribbon ul { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ribbon li { display: grid; gap: var(--space-2xs); padding: var(--space-xl) var(--space-lg); border-left: var(--rule-hair) solid var(--color-rule); }
.ribbon li:first-child { border-left: 0; padding-left: 0; }
.ribbon strong { font: var(--display-weight) var(--text-display-s)/1 var(--font-display); color: var(--color-ink); letter-spacing: var(--tracking-statement); }
.ribbon span { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Section heads ---------- */
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-md) var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.section-head p { color: var(--color-muted); max-width: 48ch; }
.section-head .filters { grid-column: 1 / -1; }

/* ---------- Listings: prints with wall labels ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding-top: var(--space-md); border-top: var(--rule-head) solid var(--color-ink); }
.filter { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); background: transparent; color: var(--color-ink-2); font: inherit; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.filter:hover { border-color: var(--color-ink); color: var(--color-ink); }
.filter:active { transform: translateY(1px); }
.filter[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xl) var(--gap-columns); }
.card { position: relative; display: grid; gap: var(--space-md); color: var(--color-ink-2); text-decoration: none; }
.card .photo { aspect-ratio: 4 / 3; transition: transform var(--dur-short) var(--ease-out); }
.card:hover .photo { transform: translateY(-2px); }
.card:hover { color: var(--color-ink-2); }
.card:focus-visible { outline-offset: var(--space-xs); }
.card .status { order: 2; font-size: var(--text-sm); color: var(--color-pencil); }
.card .photo { order: 1; }
.card .card-body { order: 3; display: grid; gap: var(--space-2xs); padding-top: var(--space-sm); border-top: var(--rule-head) solid var(--color-ink); }
.card .price { font: var(--display-weight) var(--text-2xl)/1.1 var(--font-display); color: var(--color-ink); letter-spacing: var(--tracking-display); }
.card .price small { font: 400 var(--text-sm) var(--font-body); color: var(--color-muted); letter-spacing: 0; }
.card .addr { display: grid; }
.card .addr span:first-child { color: var(--color-ink); }
.card .addr span:last-child { font-size: var(--text-sm); color: var(--color-muted); }
.card .specs { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.card .specs b { font-weight: 400; color: var(--color-ink); margin-right: var(--space-3xs); }
.card:hover .addr span:first-child { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }
.card[data-status] .photo img { filter: var(--photo-treat) grayscale(0.5); }
.card[hidden] { display: none; }
.cards-empty { grid-column: 1 / -1; color: var(--color-muted); }
.listings-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.listings-more p { font: var(--display-weight) var(--text-xl)/1.3 var(--font-display); color: var(--color-ink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.portrait { margin: 0; display: grid; gap: var(--space-sm); }
.portrait .mat { aspect-ratio: 4 / 5; padding: var(--space-lg); }
.portrait figcaption { font-size: var(--text-sm); color: var(--color-pencil); }
.about-copy { display: grid; gap: var(--space-lg); }
.about-copy h2 { font-size: var(--text-section); }
.about-copy p { max-width: 58ch; }
.dropcap::first-letter { float: left; font: var(--serif-small) 3.3em/0.8 var(--font-display); padding: 0.1em 0.1em 0 0; color: var(--color-accent); }
.creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); border-top: var(--rule-head) solid var(--color-ink); }
.creds li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); }

/* ---------- Services: a ruled table ---------- */
.services-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.services-grid .section-head { grid-template-columns: minmax(0, 1fr); margin-bottom: 0; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-head) solid var(--color-ink); }
.service-list li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--space-lg); align-items: baseline; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.service-list h3 { font-size: var(--text-xl); }

/* ---------- Reviews: one statement, two beside it ---------- */
.quote { margin: 0; }
.quote blockquote { margin: 0; }
.quote-lead blockquote { font: var(--statement-weight) var(--text-display-s)/1.15 var(--font-display); letter-spacing: var(--tracking-statement); color: var(--color-ink); max-width: 30ch; overflow-wrap: break-word; }
.quote figcaption { margin-top: var(--space-md); font-size: var(--text-sm); color: var(--color-muted); }
.quote figcaption strong { font-weight: 400; color: var(--color-ink); }
.quote-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-head) solid var(--color-ink); }
.quote-pair blockquote { font: var(--serif-small) var(--text-xl)/1.4 var(--font-display); color: var(--color-ink); max-width: 40ch; }

/* ---------- Valuation band ---------- */
.band { background: var(--color-paper-2); padding-block: var(--section-gap-s); }
.cta-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg) var(--gap-columns); }
.cta-inner h2 { font-size: var(--text-section); max-width: 22ch; }
.cta-inner p { margin-top: var(--space-md); color: var(--color-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.contact-copy { display: grid; gap: var(--space-lg); }
.contact-copy h2 { font-size: var(--text-section); }
.info-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-head) solid var(--color-ink); }
.info-list li { display: flex; align-items: center; gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.info-list .ic { color: var(--color-muted); display: grid; place-items: center; }
.info-list a, .info-list div { display: grid; text-decoration: none; color: var(--color-ink); }
.info-list a:hover strong { text-decoration: underline; text-decoration-color: var(--color-accent); text-underline-offset: 0.25em; }
.info-list small { font-size: var(--text-sm); color: var(--color-muted); }
.info-list strong { font-weight: 400; }

/* ---------- Forms on card stock: a label over a ruled line ---------- */
.form-grid { display: grid; gap: var(--space-md); padding: var(--space-xl); }
.form-grid h2 { font-size: var(--text-2xl); font-weight: var(--serif-small); letter-spacing: 0; text-shadow: 0 1px 0 var(--lit); }
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.field { display: grid; gap: var(--space-3xs); }
.field label { font-size: var(--text-sm); color: var(--color-muted); }
.field input, .field select, .field textarea, .search input, .search select { width: 100%; min-height: 48px; padding: 0 var(--space-2xs); border: 0; border-bottom: var(--rule-hair) solid var(--color-ink); border-radius: 0; background: transparent; color: var(--color-ink); font: inherit; font-size: var(--text-md); }
.field textarea { min-height: 112px; padding-block: var(--space-xs); resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover, .search input:hover, .search select:hover { background: var(--lit); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .search input:focus-visible, .search select:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.field input:disabled, .field select:disabled { cursor: not-allowed; opacity: 0.55; border-bottom-color: var(--color-rule); }
.form-grid > *, .search-card > * { position: relative; }
.form-grid .btn { justify-self: start; margin-top: var(--space-xs); }

/* ---------- Footer: a colophon ---------- */
.site-footer { border-top: var(--rule-head) solid var(--color-ink); padding-block: var(--space-2xl) var(--space-xl); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)) ; gap: var(--gap-columns); }
.foot-mast { display: grid; gap: var(--space-md); align-content: start; }
.foot-mast .logo { font-size: var(--text-2xl); }
.foot-mast p { max-width: 45ch; color: var(--color-muted); }
.foot-head { font: 400 var(--text-sm) var(--font-body); color: var(--color-pencil); letter-spacing: 0; margin-bottom: var(--space-xs); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--color-accent); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-lg); margin-top: var(--space-2xl); padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- Property page ---------- */
.property { padding-bottom: var(--section-gap); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding-block: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.crumbs a { color: var(--color-muted); }
.prop-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-lg) var(--gap-columns); align-items: end; padding-bottom: var(--space-xl); margin-bottom: var(--space-xl); border-bottom: var(--rule-head) solid var(--color-ink); }
.prop-head h1 { font-size: var(--text-display-s); max-width: 20ch; }
.prop-head .where { margin-top: var(--space-sm); color: var(--color-muted); }
.prop-price { display: grid; gap: var(--space-3xs); text-align: right; }
.prop-price small { font-size: var(--text-sm); color: var(--color-pencil); }
.prop-price strong { font: var(--display-weight) var(--text-display-s)/1 var(--font-display); color: var(--color-ink); letter-spacing: var(--tracking-display); }

.gallery { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); height: clamp(320px, 42vw, 600px); }
.gallery .photo { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 2px; background: var(--color-paper-2); cursor: zoom-in; overflow: hidden; box-shadow: var(--shadow-card); }
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-treat); }
.gallery .photo:hover { box-shadow: var(--shadow-card), 0 0 0 1px var(--color-ink); }
.gallery .photo:active { transform: translateY(1px); }
.gallery .photo:first-child { grid-row: span 2; }
.gallery .photo:only-child { grid-column: 1 / -1; }
.gallery .photo:nth-child(2):last-child { grid-column: span 2; grid-row: span 2; }
.gallery .photo:nth-child(2):nth-last-child(2), .gallery .photo:nth-child(3):last-child { grid-column: span 2; }
.gallery .photo:nth-child(4):last-child { grid-column: span 2; }
.gallery .status { position: absolute; left: var(--space-sm); top: var(--space-sm); z-index: var(--z-base); padding: var(--space-3xs) var(--space-xs); background: var(--color-card); color: var(--color-ink); font-size: var(--text-sm); border-radius: var(--radius-pill); }
.gallery .more { position: absolute; right: var(--space-sm); bottom: var(--space-sm); padding: var(--space-xs) var(--space-sm); background: var(--color-card); color: var(--color-ink); font-size: var(--text-sm); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); }

.plans-block { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: var(--gap-columns); align-items: end; padding-block: var(--space-3xl) var(--space-xl); }
.plans-block > h2 { grid-column: 1 / -1; font-size: var(--text-section); margin-bottom: var(--space-xl); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
.plans:has(> .plan-sheet + .plan-sheet) { grid-column: 1 / -1; }
.plans:has(> .plan-sheet:only-child) { grid-template-columns: minmax(0, 1fr); }
.plan-sheet { margin: 0; display: grid; gap: var(--space-sm); }
.plan-open { display: block; width: 100%; padding: var(--space-lg); border: 0; border-radius: 2px; background: var(--fibre) 0 0 / 220px, var(--color-card); box-shadow: var(--shadow-card); cursor: zoom-in; }
.plan-open img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.plan-open:hover { box-shadow: var(--shadow-card), 0 0 0 1px var(--color-ink); }
.plan-open:active { transform: translateY(1px); }
.plan-sheet figcaption { color: var(--color-ink); }
.plans-block .note { margin-top: var(--space-md); }
.plans:has(> .plan-sheet:only-child) + .note { margin: 0; }

.prop-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: start; padding-top: var(--space-2xl); border-top: var(--rule-head) solid var(--color-ink); }
.prop-copy h2 { font-size: var(--text-2xl); margin: var(--space-2xl) 0 var(--space-md); }
.prop-copy [data-field="description"] { display: grid; gap: var(--space-md); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts > div { display: grid; gap: var(--space-2xs); padding: 0 var(--space-md); border-left: var(--rule-hair) solid var(--color-rule); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts strong { font: var(--display-weight) var(--text-display-s)/1 var(--font-display); color: var(--color-ink); letter-spacing: var(--tracking-display); }
.facts span { font-size: var(--text-sm); color: var(--color-muted); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-lg); border-top: var(--rule-head) solid var(--color-ink); }
.features li { padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.map { display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-lg); background: var(--color-paper-2); }
.map p { display: grid; }
.map strong { font-weight: 400; color: var(--color-ink); }
.map span { color: var(--color-muted); }
.side { display: grid; gap: var(--space-xl); }
.agent { position: relative; display: flex; align-items: center; gap: var(--space-md); }
.agent-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--color-card-edge); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-treat); }
.agent > div:last-child { display: grid; }
.agent strong { font: var(--serif-small) var(--text-lg) var(--font-display); color: var(--color-ink); }
.agent a { font-size: var(--text-sm); color: var(--color-muted); text-decoration: none; }
.agent a:hover { color: var(--color-accent); text-decoration: underline; }
.calc { display: grid; gap: var(--space-md); padding: var(--space-xl); }
.calc h2 { font-size: var(--text-2xl); font-weight: var(--serif-small); letter-spacing: 0; }
.calc-out { position: relative; display: grid; gap: var(--space-2xs); padding-top: var(--space-md); border-top: var(--rule-head) solid var(--color-ink); }
.calc-out span { font-size: var(--text-sm); color: var(--color-muted); }
.calc-out strong { font: var(--display-weight) var(--text-display-s)/1 var(--font-display); color: var(--color-ink); letter-spacing: var(--tracking-display); }
.calc .note { position: relative; }

/* ---------- Photo and floor plan viewer ---------- */
.viewer { width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-ink); color: var(--color-paper); }
.viewer::backdrop { background: var(--color-ink); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-sm) var(--space-md); }
.viewer-title { font: var(--serif-small) var(--text-lg) var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-count { white-space: nowrap; color: var(--color-paper-3); }
.viewer-close { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-paper); border-radius: var(--radius-pill); background: none; color: var(--color-paper); font: inherit; cursor: pointer; }
.viewer-close:hover { background: var(--color-paper); color: var(--color-ink); }
.viewer-close:active { transform: translateY(1px); }
.viewer :focus-visible { outline-color: var(--color-paper); }
.viewer-stage { position: relative; min-height: 0; }
.viewer-track { list-style: none; margin: 0; padding: 0; display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer-track::-webkit-scrollbar { display: none; }
.viewer-track li { flex: 0 0 100%; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); scroll-snap-align: center; padding: var(--space-md); }
.viewer-track img { width: 100%; height: 100%; object-fit: contain; }
.viewer-floor-plans .viewer-track img { background: var(--color-card); padding: var(--space-md); }
.viewer-nav { position: absolute; inset: 50% var(--space-md) auto; display: flex; justify-content: space-between; pointer-events: none; z-index: var(--z-raised); }
.viewer-nav button { pointer-events: auto; width: 52px; height: 52px; display: grid; place-items: center; border: var(--rule-hair) solid var(--color-paper); border-radius: 50%; background: var(--color-ink); color: var(--color-paper); cursor: pointer; transform: translateY(-50%); }
.viewer-nav button:hover { background: var(--color-paper); color: var(--color-ink); }
.viewer-nav button:disabled { cursor: not-allowed; opacity: 0.35; background: var(--color-ink-2); color: var(--color-paper-3); }
.viewer-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.viewer-thumbs { display: flex; gap: var(--space-xs); overflow-x: auto; padding: var(--space-sm) var(--space-md); }
.viewer-thumbs button { flex: none; width: 72px; height: 52px; padding: 0; border: var(--rule-hair) solid transparent; border-radius: 2px; background: var(--color-ink-2); cursor: pointer; overflow: hidden; }
.viewer-thumbs button[aria-current="true"] { border-color: var(--color-paper); }
.viewer-thumbs button:hover { border-color: var(--color-paper-3); }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  .hero-text, .hero-print { animation: settle var(--dur-long) var(--ease-out) both; }
  .hero-print { animation-delay: 80ms; }
  @keyframes settle { from { opacity: 0.001; transform: translateY(8px); } }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 60rem) {
  .hero-grid, .about-grid, .services-grid, .contact-grid, .prop-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-grid { min-height: 0; }
  .hero-print { order: -1; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-pair { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-mast { grid-column: 1 / -1; }
  .prop-head { grid-template-columns: minmax(0, 1fr); }
  .prop-price { text-align: left; }
  .plans-block, .plans, .plans:has(> .plan-sheet:only-child) { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 28rem; }
}
@media (max-width: 40rem) {
  .grid-3, .search, .row-2, .creds, .features, .service-list li { grid-template-columns: minmax(0, 1fr); }
  .ribbon ul { grid-template-columns: minmax(0, 1fr); }
  .ribbon li { border-left: 0; border-top: var(--rule-hair) solid var(--color-rule); padding-inline: 0; }
  .ribbon li:first-child { border-top: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-lg); }
  .facts > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 240px 120px; height: auto; }
  .gallery .photo:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery .photo:nth-child(n + 4) { display: none; }
  .form-grid, .search-card, .calc { padding: var(--space-lg); }
  .hero-print .mat, .portrait .mat { padding: var(--space-sm); }
}
