/* ==========================================================================
   Larkline Estates · Prototype v5
   Built on the LWPR CSS framework (Rino de Boer)
   Order: variables, base tags, framework classes, project classes.

   Title scale: mobile ratio 1.2, desktop ratio 1.333, base 16px,
   clamped between a 360px and a 1120px viewport.
   title-1 48px > 90px · title-2 40 > 67 · title-3 33 > 51
   title-4 28 > 38 · title-5 23 > 28 · title-6 19 > 21
   ========================================================================== */

:root {
  /* Colours: one hue, taken from the Larkline orange (#E06E1C) */
  --primary-brand-1: #E06E1C;      /* logo orange: logo line, icons, accents on dark */
  --primary-brand-2: #A94B0B;      /* deeper orange: button fills, subtitles and links on light (5.4:1 on light-1) */
  --primary-light-1: #FBF8F4;      /* warm paper: page background */
  --primary-light-2: #F3EDE6;      /* alternating sections */
  --primary-light-3: #E4D9CC;      /* borders, dividers, detail text on dark */
  --primary-dark-1: #28231F;       /* headings, dark sections (logo charcoal) */
  --primary-dark-2: #4B433C;       /* body text */
  --primary-dark-3: #6E635A;       /* captions, meta (5.5:1 on light-1) */
  --primary-transparent-1: #E06E1C1F;

  /* Sizes: 4pt scale */
  --size-0: 0rem;
  --size-4: 0.25rem;
  --size-8: 0.5rem;
  --size-12: 0.75rem;
  --size-16: 1rem;
  --size-20: 1.25rem;
  --size-24: 1.5rem;
  --size-32: clamp(1.75rem, 1.662rem + 0.376vw, 2rem);
  --size-40: clamp(2.125rem, 1.993rem + 0.563vw, 2.5rem);
  --size-48: clamp(2.5rem, 2.324rem + 0.751vw, 3rem);
  --size-64: clamp(3.25rem, 2.986rem + 1.127vw, 4rem);
  --size-80: clamp(3.875rem, 3.479rem + 1.69vw, 5rem);
  --size-96: clamp(4.5rem, 3.972rem + 2.254vw, 6rem);
  --size-128: clamp(5.8rem, 5.025rem + 3.305vw, 8rem);
  --size-160: clamp(7rem, 5.944rem + 4.507vw, 10rem);

  /* Font sizes */
  --title-subtitle: 0.875rem;
  --body-size-l: 1.125rem;
  --body-size-m: 1rem;
  --body-size-s: 0.875rem;
  --title-size-1: clamp(3rem, 1.7566rem + 5.5263vw, 5.625rem);
  --title-size-2: clamp(2.5rem, 1.7007rem + 3.5526vw, 4.1875rem);
  --title-size-3: clamp(2.0625rem, 1.5296rem + 2.3684vw, 3.1875rem);
  --title-size-4: clamp(1.75rem, 1.4539rem + 1.3158vw, 2.375rem);
  --title-size-5: clamp(1.4375rem, 1.2895rem + 0.6579vw, 1.75rem);
  --title-size-6: clamp(1.1875rem, 1.1283rem + 0.2632vw, 1.3125rem);

  /* Fonts */
  --heading-font: "Newsreader", Georgia, "Times New Roman", serif;
  --body-font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-weight: 400;
  --body-weight: 400;
  --strong-weight: 600;

  /* Radius: calm and architectural, not bubbly */
  --button-radius: 0.25rem;
  --radius-s: 0.25rem;
  --radius-m: 0.5rem;
  --radius-l: 1rem;

  /* Project variables */
  --line: 1px;                       /* hairlines */
  --outline: 2px;                    /* focus outlines, progress bar */
  --focus-ring: 3px;
  --blur: 12px;                      /* frosted header and badges */
  --stack-scale: 0.06;               /* covered panels shrink to 0.94 */
  --stack-shade: 0.55;               /* and darken to 55% */
  --footer-shift: 3.75rem;           /* footer content rises about 60px as it is uncovered */
  --horizon-height: clamp(5rem, 2.156rem + 12.63vw, 11rem);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --gable-trim: 6.25rem;             /* valuation photo: 100px narrower */
  --gable-extra: 10rem;              /* and 160px taller */
  --pattern-tile: 160px 120px;       /* house-outline background pattern */
  --pattern-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Cg fill='none' stroke='black' stroke-width='1'%3E%3Cpolyline points='40 96 40 66 25 48 10 66 10 96'/%3E%3Cpolyline points='80 96 80 50 62 28 44 50 44 96'/%3E%3Cpolyline points='113 96 113 72 99 55 85 72 85 96'/%3E%3C/g%3E%3C/svg%3E");  /* inline so it also works when opened from disk */
  --icon-s: 1.125rem;
  --icon-m: 1.5rem;
  --icon-l: 4rem;
  --icon-step: 6rem;
  --avatar-s: 2rem;
  --avatar-m: 4.5rem;
  --width-text: 38rem;
  --width-narrow: 30rem;
  --header-height: 4.5rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed-fast: 0.2s;
  --speed-slow: 0.9s;
  --shadow-color-s: color-mix(in srgb, var(--primary-dark-1) 8%, transparent);
  --shadow-color-m: color-mix(in srgb, var(--primary-dark-1) 12%, transparent);
  --shadow-color-l: color-mix(in srgb, var(--primary-dark-1) 20%, transparent);
  --overlay-dark: color-mix(in srgb, var(--primary-dark-1) 72%, transparent);
  --scrim: linear-gradient(180deg, color-mix(in srgb, var(--primary-dark-1) 35%, transparent) 0%, transparent 30%, color-mix(in srgb, var(--primary-dark-1) 30%, transparent) 55%, color-mix(in srgb, var(--primary-dark-1) 88%, transparent) 100%);
  --scrim-left: linear-gradient(90deg, color-mix(in srgb, var(--primary-dark-1) 72%, transparent) 0%, color-mix(in srgb, var(--primary-dark-1) 30%, transparent) 50%, transparent 75%);
  --scrim-mobile: linear-gradient(180deg, color-mix(in srgb, var(--primary-dark-1) 45%, transparent) 0%, color-mix(in srgb, var(--primary-dark-1) 55%, transparent) 45%, color-mix(in srgb, var(--primary-dark-1) 90%, transparent) 100%);
  --glass-dark: color-mix(in srgb, var(--primary-dark-1) 62%, transparent);
  --glass-line: color-mix(in srgb, var(--primary-light-1) 16%, transparent);
  --scrim-side: linear-gradient(90deg, color-mix(in srgb, var(--primary-dark-1) 90%, transparent) 0%, color-mix(in srgb, var(--primary-dark-1) 70%, transparent) 45%, color-mix(in srgb, var(--primary-dark-1) 10%, transparent) 100%);
  --circle: 2.75rem;
  --pill-height: 4rem;
  --pill-top: var(--size-16);
  --gutter-l: max(5%, calc((100% - 77.5rem) / 2));
  --radius-street: 1rem;
  --hero-heading-weight: 500;
  --hero-title-weight: 400;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-glass: color-mix(in srgb, var(--primary-light-1) 88%, transparent);

  /* v5: neighbourhood map */
  --map-land: var(--primary-light-2);
  --map-water: var(--primary-light-1);
  --map-water-edge: var(--primary-light-3);
  --map-park: color-mix(in srgb, var(--primary-light-3) 65%, var(--primary-light-2));
  --map-road: color-mix(in srgb, var(--primary-light-3) 80%, var(--primary-light-2));
  --map-hood: color-mix(in srgb, var(--primary-brand-1) 9%, transparent);
  --map-hood-hover: color-mix(in srgb, var(--primary-brand-1) 18%, transparent);
  --map-hood-active: color-mix(in srgb, var(--primary-brand-1) 26%, transparent);
  --map-river-width: 15;            /* map units: the river scales when you zoom */
  --map-canal-width: 2;             /* screen pixels */
  --map-road-width: 1.5;            /* screen pixels */
  --map-hood-stroke: 1.5;           /* screen pixels */
  --map-dash: 4 4;
  --map-height: calc(100svh - var(--pill-top) - var(--pill-height) - var(--size-32));
  --pin-dot: 0.875rem;
  --dock-width: 23rem;
  --thumb: 5.5rem;
  --toc-width: 15rem;
  --width-article: 42rem;
}

/* ==========================================================================
   Base tag styles
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--body-size-m);
  font-weight: var(--body-weight);
  line-height: 160%;
  color: var(--primary-dark-2);
  background-color: var(--primary-light-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  color: inherit;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--title-size-1); line-height: 110%; }
h2 { font-size: var(--title-size-2); line-height: 115%; }
h3 { font-size: var(--title-size-3); line-height: 120%; }
h4 { font-size: var(--title-size-4); line-height: 125%; }
h5 { font-size: var(--title-size-5); line-height: 130%; }
h6 { font-size: var(--title-size-6); line-height: 130%; }

p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: var(--outline) solid var(--primary-brand-1); outline-offset: var(--focus-ring); }

/* ==========================================================================
   Framework classes: typography size
   ========================================================================== */

.title-1 { font-size: var(--title-size-1); font-weight: var(--heading-weight); line-height: 110%; }
.title-2 { font-size: var(--title-size-2); font-weight: var(--heading-weight); line-height: 115%; }
.title-3 { font-size: var(--title-size-3); font-weight: var(--heading-weight); line-height: 120%; }
.title-4 { font-size: var(--title-size-4); font-weight: var(--heading-weight); line-height: 125%; }
.title-5 { font-size: var(--title-size-5); font-weight: var(--heading-weight); line-height: 130%; }
.title-6 { font-size: var(--title-size-6); font-weight: var(--heading-weight); line-height: 130%; }
.body-l { font-size: var(--body-size-l); font-weight: var(--body-weight); line-height: 160%; }
.body-m { font-size: var(--body-size-m); font-weight: var(--body-weight); line-height: 160%; }
.body-s { font-size: var(--body-size-s); font-weight: var(--body-weight); line-height: 160%; }

.sub-title {
  font-family: var(--body-font);
  font-size: var(--title-subtitle);
  font-weight: 700;
  line-height: 140%;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.text-link { font-weight: var(--strong-weight); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: var(--line); transition: color var(--speed-fast) var(--ease); }
.use-heading-font { font-family: var(--heading-font); }
.use-body-font { font-family: var(--body-font); }

/* ==========================================================================
   Framework classes: colour roles
   ========================================================================== */

.heading-on-light { color: var(--primary-dark-1); }
.heading-on-dark { color: var(--primary-light-1); }
.body-on-light { color: var(--primary-dark-2); }
.body-on-dark { color: var(--primary-light-2); }
.detail-on-light { color: var(--primary-dark-3); }
.detail-on-dark { color: var(--primary-light-3); }
.subtitle-on-light { color: var(--primary-brand-2); }
.subtitle-on-dark { color: var(--primary-brand-1); }
.link-on-light { color: var(--primary-brand-2); }
.link-on-light:hover { color: var(--primary-dark-1); }
.link-on-dark { color: var(--primary-brand-1); }
.link-on-dark:hover { color: var(--primary-light-1); }

/* ==========================================================================
   Framework classes: backgrounds
   ========================================================================== */

.bg-light-1 { background-color: var(--primary-light-1); }
.bg-light-2 { background-color: var(--primary-light-2); }
.bg-light-3 { background-color: var(--primary-light-3); }
.bg-dark-1 { background-color: var(--primary-dark-1); }
.bg-dark-2 { background-color: var(--primary-dark-2); }
.bg-dark-3 { background-color: var(--primary-dark-3); }
.bg-brand-1 { background-color: var(--primary-brand-1); }
.bg-brand-2 { background-color: var(--primary-brand-2); }

/* ==========================================================================
   Framework classes: buttons
   The logo orange (brand-1) is too light for white button text (3.1:1),
   so the solid button uses the deeper brand-2 fill and darkens on hover.
   ========================================================================== */

.btn-solid, .btn-outline, .btn-solid-on-dark, .btn-outline-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--size-8);
  font-family: var(--body-font);
  font-size: var(--body-size-m);
  font-weight: var(--strong-weight);
  line-height: 1;
  padding: var(--size-16) var(--size-24);
  border-width: var(--line);
  border-style: solid;
  border-radius: var(--button-radius);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease);
}
.btn-solid { color: var(--primary-light-1); background-color: var(--primary-brand-2); border-color: var(--primary-brand-2); }
.btn-solid:hover { background-color: var(--primary-dark-1); border-color: var(--primary-dark-1); }
.btn-outline { color: var(--primary-brand-2); background-color: transparent; border-color: var(--primary-brand-1); }
.btn-outline:hover { color: var(--primary-light-1); background-color: var(--primary-brand-2); border-color: var(--primary-brand-2); }
.btn-solid-on-dark { color: var(--primary-dark-1); background-color: var(--primary-light-1); border-color: var(--primary-light-1); }
.btn-solid-on-dark:hover { background-color: var(--primary-light-3); border-color: var(--primary-light-3); }
.btn-outline-on-dark { color: var(--primary-light-1); background-color: transparent; border-color: var(--primary-light-1); }
.btn-outline-on-dark:hover { color: var(--primary-dark-1); background-color: var(--primary-light-1); }
.btn-solid:active, .btn-outline:active, .btn-solid-on-dark:active, .btn-outline-on-dark:active { transform: translateY(1px); }

/* ==========================================================================
   Framework classes: layout
   ========================================================================== */

.boxed-s { padding-left: max(5%, calc((100% - 47.5rem) / 2)); padding-right: max(5%, calc((100% - 47.5rem) / 2)); }
.boxed-m { padding-left: max(5%, calc((100% - 70rem) / 2)); padding-right: max(5%, calc((100% - 70rem) / 2)); }
.boxed-l { padding-left: max(5%, calc((100% - 77.5rem) / 2)); padding-right: max(5%, calc((100% - 77.5rem) / 2)); }
.boxed-full { padding-left: 5%; padding-right: 5%; }

.rounded-zero { border-radius: var(--size-0); }
.rounded-s { border-radius: var(--radius-s); }
.rounded-m { border-radius: var(--radius-m); }
.rounded-l { border-radius: var(--radius-l); }
.rounded-full { border-radius: 9999px; }

.shadow-s { box-shadow: 0 2px 8px var(--shadow-color-s); }
.shadow-m { box-shadow: 0 8px 24px var(--shadow-color-m); }
.shadow-l { box-shadow: 0 16px 48px var(--shadow-color-l); }

.divider { border-top: var(--line) solid var(--primary-light-3); margin-top: var(--size-40); margin-bottom: var(--size-40); }
.hidden { display: none; }

/* ==========================================================================
   Framework classes: spacing
   ========================================================================== */

.pad-0 { padding: var(--size-0); }
.pad-4 { padding: var(--size-4); }
.pad-8 { padding: var(--size-8); }
.pad-12 { padding: var(--size-12); }
.pad-16 { padding: var(--size-16); }
.pad-20 { padding: var(--size-20); }
.pad-24 { padding: var(--size-24); }
.pad-32 { padding: var(--size-32); }
.pad-40 { padding: var(--size-40); }
.pad-48 { padding: var(--size-48); }
.pad-64 { padding: var(--size-64); }
.pad-80 { padding: var(--size-80); }
.pad-96 { padding: var(--size-96); }
.pad-128 { padding: var(--size-128); }
.pad-160 { padding: var(--size-160); }
.pad-tb-0 { padding-top: var(--size-0); padding-bottom: var(--size-0); }
.pad-tb-4 { padding-top: var(--size-4); padding-bottom: var(--size-4); }
.pad-tb-8 { padding-top: var(--size-8); padding-bottom: var(--size-8); }
.pad-tb-12 { padding-top: var(--size-12); padding-bottom: var(--size-12); }
.pad-tb-16 { padding-top: var(--size-16); padding-bottom: var(--size-16); }
.pad-tb-20 { padding-top: var(--size-20); padding-bottom: var(--size-20); }
.pad-tb-24 { padding-top: var(--size-24); padding-bottom: var(--size-24); }
.pad-tb-32 { padding-top: var(--size-32); padding-bottom: var(--size-32); }
.pad-tb-40 { padding-top: var(--size-40); padding-bottom: var(--size-40); }
.pad-tb-48 { padding-top: var(--size-48); padding-bottom: var(--size-48); }
.pad-tb-64 { padding-top: var(--size-64); padding-bottom: var(--size-64); }
.pad-tb-80 { padding-top: var(--size-80); padding-bottom: var(--size-80); }
.pad-tb-96 { padding-top: var(--size-96); padding-bottom: var(--size-96); }
.pad-tb-128 { padding-top: var(--size-128); padding-bottom: var(--size-128); }
.pad-tb-160 { padding-top: var(--size-160); padding-bottom: var(--size-160); }
.pad-lr-0 { padding-left: var(--size-0); padding-right: var(--size-0); }
.pad-lr-4 { padding-left: var(--size-4); padding-right: var(--size-4); }
.pad-lr-8 { padding-left: var(--size-8); padding-right: var(--size-8); }
.pad-lr-12 { padding-left: var(--size-12); padding-right: var(--size-12); }
.pad-lr-16 { padding-left: var(--size-16); padding-right: var(--size-16); }
.pad-lr-20 { padding-left: var(--size-20); padding-right: var(--size-20); }
.pad-lr-24 { padding-left: var(--size-24); padding-right: var(--size-24); }
.pad-lr-32 { padding-left: var(--size-32); padding-right: var(--size-32); }
.pad-lr-40 { padding-left: var(--size-40); padding-right: var(--size-40); }
.pad-lr-48 { padding-left: var(--size-48); padding-right: var(--size-48); }
.pad-lr-64 { padding-left: var(--size-64); padding-right: var(--size-64); }
.pad-lr-80 { padding-left: var(--size-80); padding-right: var(--size-80); }
.pad-lr-96 { padding-left: var(--size-96); padding-right: var(--size-96); }
.pad-lr-128 { padding-left: var(--size-128); padding-right: var(--size-128); }
.pad-lr-160 { padding-left: var(--size-160); padding-right: var(--size-160); }

/* Gap */


/* ==========================================================================
   Framework classes: flex, gap, alignment
   ========================================================================== */

.flex-row { display: flex; flex-direction: row; }
.flex-column { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-align-start { align-items: flex-start; }
.flex-align-center { align-items: center; }
.flex-align-end { align-items: flex-end; }
.flex-align-stretch { align-items: stretch; }
.flex-justify-start { justify-content: flex-start; }
.flex-justify-center { justify-content: center; }
.flex-justify-end { justify-content: flex-end; }
.flex-justify-between { justify-content: space-between; }
.gap-0 { row-gap: var(--size-0); column-gap: var(--size-0); }
.gap-4 { row-gap: var(--size-4); column-gap: var(--size-4); }
.gap-8 { row-gap: var(--size-8); column-gap: var(--size-8); }
.gap-12 { row-gap: var(--size-12); column-gap: var(--size-12); }
.gap-16 { row-gap: var(--size-16); column-gap: var(--size-16); }
.gap-20 { row-gap: var(--size-20); column-gap: var(--size-20); }
.gap-24 { row-gap: var(--size-24); column-gap: var(--size-24); }
.gap-32 { row-gap: var(--size-32); column-gap: var(--size-32); }
.gap-40 { row-gap: var(--size-40); column-gap: var(--size-40); }

.text-start { text-align: start; }
.text-center { text-align: center; }
.text-end { text-align: end; }

/* ==========================================================================
   Framework classes: components
   ========================================================================== */

.card {
  background-color: var(--primary-light-1);
  border-width: var(--line);
  border-style: solid;
  border-color: var(--primary-light-3);
  border-radius: var(--radius-m);
}

.badge-1, .badge-2, .badge-3 {
  display: inline-block;
  font-size: var(--body-size-s);
  font-weight: var(--strong-weight);
  line-height: 160%;
  letter-spacing: 0.03em;
  padding: var(--size-4) var(--size-12);
  border-radius: 9999px;
  white-space: nowrap;
}
.badge-1 { background-color: var(--primary-transparent-1); color: var(--primary-brand-2); }      /* For sale, on light */
.badge-2 { background-color: var(--primary-light-1); color: var(--primary-dark-1); }             /* Status on photos */
.badge-3 { background-color: var(--primary-dark-1); color: var(--primary-light-1); }             /* Sold, under offer */

/* ==========================================================================
   PROJECT CLASSES
   ========================================================================== */

/* ---------- Utilities ---------- */

.skip-link { position: absolute; left: var(--size-16); top: calc(var(--size-48) * -2); z-index: 100; }
.skip-link:focus { top: var(--size-16); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon, .icon-m, .success-icon { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: var(--icon-s); height: var(--icon-s); }
.icon-m { width: var(--icon-m); height: var(--icon-m); }
.icon-fill { fill: currentColor; stroke: none; }
.measure { max-width: var(--width-text); }
.measure-narrow { max-width: var(--width-narrow); }
.no-underline { text-decoration: none; }
.arrow-link { display: inline-flex; align-items: center; gap: var(--size-8); text-decoration: none; font-weight: var(--strong-weight); }
.arrow-link .icon { transition: transform var(--speed-fast) var(--ease); }
.arrow-link:hover .icon, .btn-solid:hover .icon, .btn-outline:hover .icon { transform: translateX(var(--size-4)); }
.cover { width: 100%; height: 100%; object-fit: cover; }
.relative { position: relative; }
.grow { flex: 1; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background-color: var(--header-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: var(--line) solid transparent;
}
/* Header gains a hairline once the page scrolls (scroll-driven, no JS) */
@supports (animation-timeline: scroll()) {
  .site-header { animation: header-line linear both; animation-timeline: scroll(root); animation-range: 0 var(--size-80); }
  @keyframes header-line { to { border-bottom-color: var(--primary-light-3); box-shadow: 0 2px 8px var(--shadow-color-s); } }
}
.site-header__bar { min-height: var(--header-height); }
.logo { display: block; line-height: 0; }
.logo img { height: var(--size-40); width: auto; }
.site-nav__inner { display: flex; align-items: center; column-gap: var(--size-32); }
.nav-list { list-style: none; display: flex; column-gap: var(--size-32); }
.nav-list a { position: relative; text-decoration: none; font-weight: 500; color: var(--primary-dark-1); padding: var(--size-8) 0; }
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: var(--size-4); height: var(--line);
  background-color: var(--primary-brand-1); transform: scaleX(0); transform-origin: right; transition: transform var(--speed-fast) var(--ease);
}
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.header-phone { display: inline-flex; align-items: center; gap: var(--size-8); text-decoration: none; font-weight: var(--strong-weight); color: var(--primary-dark-1); white-space: nowrap; }
.menu-toggle, .menu-button { display: none; }

@media (min-width: 961px) and (max-width: 1080px) {
  .header-phone .phone-number { display: none; }
}
@media (max-width: 960px) {
  .logo img { height: var(--size-32); }
  .menu-button {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--size-8);
    padding: var(--size-12) var(--size-16); border: var(--line) solid var(--primary-light-3); border-radius: var(--button-radius);
    font-weight: var(--strong-weight); color: var(--primary-dark-1); cursor: pointer; background-color: var(--primary-light-1);
  }
  .menu-button .bars, .menu-button .bars::before, .menu-button .bars::after { display: block; width: var(--size-20); height: var(--line); background-color: currentColor; position: relative; transition: transform var(--speed-fast) var(--ease); }
  .menu-button .bars::before, .menu-button .bars::after { content: ""; position: absolute; left: 0; }
  .menu-button .bars::before { top: calc(var(--size-8) * -0.75); }
  .menu-button .bars::after { top: calc(var(--size-8) * 0.75); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background-color: var(--primary-light-1); border-bottom: var(--line) solid var(--primary-light-3);
    box-shadow: 0 16px 48px var(--shadow-color-m);
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path var(--speed-slow) var(--ease), visibility var(--speed-slow);
  }
  .site-nav__inner { flex-direction: column; align-items: stretch; row-gap: var(--size-24); padding: var(--size-24) 5% var(--size-32); }
  .nav-list { flex-direction: column; }
  .nav-list a { display: block; padding: var(--size-16) 0; border-bottom: var(--line) solid var(--primary-light-3); font-family: var(--heading-font); font-size: var(--title-size-5); }
  .nav-list a::after { display: none; }
  .menu-toggle:checked ~ .site-header__bar .site-nav { clip-path: inset(0 0 0 0); visibility: visible; }
  .menu-toggle:checked ~ .site-header__bar .bars { background-color: transparent; }
  .menu-toggle:checked ~ .site-header__bar .bars::before { transform: translateY(calc(var(--size-8) * 0.75)) rotate(45deg); }
  .menu-toggle:checked ~ .site-header__bar .bars::after { transform: translateY(calc(var(--size-8) * -0.75)) rotate(-45deg); }
  .menu-toggle:focus-visible ~ .site-header__bar .menu-button { outline: var(--outline) solid var(--primary-brand-1); outline-offset: var(--focus-ring); }
  .site-nav .btn-solid { align-self: flex-start; }
}

/* ---------- Hero ---------- */

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: end; }
.hero-title { max-width: 14ch; }
.hero-media { position: relative; margin-top: var(--size-64); }
.hero-media__frame { aspect-ratio: 21 / 9; overflow: hidden; }
.hero-media__frame img { animation: settle 2.4s var(--ease) both; }
.hero-caption {
  position: absolute; right: var(--size-40); bottom: calc(var(--size-48) * -1);
  width: min(24rem, 80%);
}
.fact-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact-strip > div { border-top: var(--line) solid var(--primary-light-3); }
.fact-strip strong { display: block; font-family: var(--heading-font); }

@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ---------- Floating pill header (from v3 Direction B) ---------- */
.pill-header { position: fixed; top: var(--pill-top); left: 0; right: 0; z-index: 60; padding: 0 var(--gutter-l); pointer-events: none; }
.pill { pointer-events: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: var(--size-24); min-height: var(--pill-height); padding: var(--size-8) var(--size-8) var(--size-8) var(--size-24); border-radius: 9999px; background-color: var(--glass-dark); border: var(--line) solid var(--glass-line); backdrop-filter: blur(var(--size-16)) saturate(1.2); -webkit-backdrop-filter: blur(var(--size-16)) saturate(1.2); transition: min-height var(--speed-fast) var(--ease), background-color var(--speed-fast) var(--ease); }
.pill-header--solid .pill, .is-scrolled .pill { background-color: color-mix(in srgb, var(--primary-dark-1) 86%, transparent); }
.pill .btn-solid { border-radius: 9999px; }
.pill .icon, .hero-street .arrow-circle .icon { stroke-width: 0.75; }
.pill-offset { padding-top: calc(var(--pill-top) + var(--pill-height) + var(--size-16)); }
.pill__logo img { height: var(--size-32); width: auto; }
.pill__logo .logo-wide { width: 12.5rem; height: auto; }
.pill__list, .overlay-menu ul { list-style: none; margin: 0; padding: 0; }
.pill__list { display: flex; gap: var(--size-32); }
.pill__list a { color: var(--primary-light-2); text-decoration: none; font-weight: 500; transition: color var(--speed-fast) var(--ease); }
.pill__list a:hover { color: var(--primary-brand-1); }
.pill__actions { justify-self: end; }
.pill__phone { display: grid; place-items: center; width: var(--circle); height: var(--circle); border-radius: 9999px; border: var(--line) solid currentColor; color: var(--primary-light-1); transition: border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease); }
.pill__phone:hover { border-color: var(--primary-brand-1); color: var(--primary-brand-1); }
.pill__menu, .overlay-menu { display: none; }
@media (max-width: 1100px) { .pill__list { gap: var(--size-20); } }
@media (max-width: 900px) {
  .pill { grid-template-columns: auto minmax(0, 1fr); min-height: 3.5rem; padding-left: var(--size-16); }
  .pill__nav, .pill__actions { display: none; }
  .pill__logo .logo-wide { width: 9.5rem; }
  .pill__menu { display: inline-flex; justify-self: end; align-items: center; gap: var(--size-8); padding: var(--size-12) var(--size-20); border-radius: 9999px; border: var(--line) solid var(--glass-line); background: none; color: var(--primary-light-1); font-weight: var(--strong-weight); font-family: var(--body-font); cursor: pointer; }
  .pill__menu .bars { width: var(--size-16); height: var(--size-8); border-top: var(--line) solid currentColor; border-bottom: var(--line) solid currentColor; }
  .overlay-menu:not([hidden]) { pointer-events: auto; position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: var(--size-40); padding: var(--size-96) 8%; animation: rise-in 0.4s var(--ease-out) both; }
  .overlay-menu a.title-3 { text-decoration: none; }
}

/* ---------- Hero: full-bleed street photo (from v3 Direction B) ---------- */
.arrow-circle { display: inline-grid; place-items: center; flex-shrink: 0; width: var(--circle); height: var(--circle); border-radius: 9999px; border: var(--line) solid currentColor; transition: background-color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease), transform var(--speed-fast) var(--ease); }
.arrow-link.link-on-light:has(.arrow-circle) { gap: var(--size-12); }
.arrow-link:has(.arrow-circle):hover .icon { transform: none; }
.link-on-light:hover .arrow-circle { background-color: var(--primary-brand-2); border-color: var(--primary-brand-2); color: var(--primary-light-1); transform: translateX(var(--size-4)); }
.hero-street .arrow-link, .proof .arrow-link { gap: var(--size-12); }
.hero-street .arrow-link:hover .icon, .proof .arrow-link:hover .icon { transform: none; }
.hero-street .arrow-link:hover .arrow-circle, .proof .arrow-link:hover .arrow-circle { background-color: var(--primary-brand-1); border-color: var(--primary-brand-1); color: var(--primary-dark-1); transform: translateX(var(--size-4)); }
.hero-street { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background-color: var(--primary-dark-1); }
.hero-street__media { position: absolute; inset: 0; }
.hero-street__media img { object-position: 30% 60%; animation: hero-drift 14s var(--ease-out) both; }
.hero-street__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim-left), var(--scrim); }
.hero-street__content { position: relative; width: 100%; padding-top: calc(var(--pill-top) + var(--pill-height) + var(--size-32)); padding-bottom: var(--size-80); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); align-items: end; column-gap: var(--size-40); row-gap: var(--size-24); }
.hero-street__content > .sub-title, .hero-street__title { grid-column: 1 / -1; }
.hero-street__title { letter-spacing: -0.025em; font-weight: var(--hero-title-weight); }
.hero-street__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-street__title .line > span { display: block; animation: hero-line-up 1.1s var(--ease-out) 0.25s both; }
.hero-street__title .line:nth-child(2) > span { animation-delay: 0.38s; }
.hero-street__cta { grid-column: 1; align-self: center; }
.hero-street__card { grid-column: 2; padding: var(--size-24); border-radius: var(--radius-street); background-color: var(--glass-dark); border: var(--line) solid var(--glass-line); backdrop-filter: blur(var(--size-16)); -webkit-backdrop-filter: blur(var(--size-16)); }
.hero-street__facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: var(--size-16) 0 0; padding: 0; list-style: none; border-radius: var(--radius-street); background-color: var(--primary-light-1); }
.hero-street__facts li { display: flex; flex-direction: column; gap: var(--size-4); padding: var(--size-20) var(--size-24); }
.hero-street__facts li + li { border-left: var(--line) solid var(--primary-light-3); }
.hero-street__facts strong { font-family: var(--heading-font); color: var(--primary-brand-1); }
.hero-street__facts span { color: var(--primary-dark-1); }
.hero-tag { justify-self: start; display: inline-flex; align-items: center; gap: var(--size-8); padding: var(--size-8) var(--size-16); border-radius: 9999px; color: var(--primary-light-1); background-color: var(--glass-dark); border: var(--line) solid var(--glass-line); backdrop-filter: blur(var(--size-12)); -webkit-backdrop-filter: blur(var(--size-12)); }
.hero-tag--plain { align-self: flex-start; }
.hero-tag--plain::before { display: none; }
.hero-tag::before { content: ""; width: var(--size-8); height: var(--size-8); border-radius: 9999px; background-color: var(--primary-brand-1); }
@media (min-width: 901px) and (max-height: 800px) {
  .hero-street__content { padding-top: calc(var(--pill-top) + var(--pill-height) + var(--size-16)); padding-bottom: var(--size-48); row-gap: var(--size-16); }
  .hero-street__card { padding: var(--size-16) var(--size-20); }
  .hero-street__facts { margin-top: 0; }
  .hero-street__facts li { padding: var(--size-12) var(--size-24); }
}
@media (max-width: 900px) {
  .hero-street__content { padding-top: calc(var(--size-96) + var(--size-24)); padding-bottom: var(--size-48); }
  .hero-street__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-street__facts li { padding: var(--size-16); }
  .hero-street__facts li:nth-child(3) { border-left: 0; }
  .hero-street__facts li:nth-child(n+3) { border-top: var(--line) solid var(--primary-light-3); }
}
@keyframes hero-drift { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes hero-line-up { from { transform: translateY(105%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-street__media img, .hero-street__title .line > span { animation: none; } }
@media (max-width: 900px) {
  .hero-street__media::after { background: var(--scrim-mobile); }
  .hero-street__content { grid-template-columns: minmax(0, 1fr); }
  .hero-street__cta, .hero-street__card { grid-column: 1; }
  .hero-street__card { max-width: 22rem; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media__frame { aspect-ratio: 4 / 3; }
  .hero-caption { position: relative; right: auto; bottom: auto; width: auto; margin: calc(var(--size-48) * -1) var(--size-16) 0; }
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Sticky overlap panels ----------
   Each .stack-panel pins with position: sticky while the next one slides over it.
   js/script.js writes --p (0 = untouched, 1 = fully covered) and sets a negative
   top on panels taller than the screen, so their content can be read first. */

.stack { position: relative; }
.stack-panel {
  --p: 0;
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background-color: var(--primary-dark-1);
}
.stack-panel__inner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  transform-origin: 50% 30%;
  scale: calc(1 - var(--stack-scale) * var(--p));
  border-radius: calc(var(--radius-l) * var(--p));
  overflow: clip;
}
.stack-text { translate: 0 calc(var(--size-64) * var(--p) * -1); }
.stack-panel__shade {
  position: absolute; inset: 0; z-index: 2;
  background-color: var(--primary-dark-1);
  opacity: calc(var(--stack-shade) * var(--p));
  pointer-events: none;
}
.stack-after { position: relative; }

/* Panel 1: v1 layout, rounded photo with the card overlapping it */
.story-media { aspect-ratio: 2.4 / 1; overflow: hidden; }
.story-card {
  position: relative;
  width: min(40rem, 100%);
  margin-top: calc(var(--size-160) * -1);
  margin-left: var(--size-64);
}
.signature { display: flex; align-items: center; gap: var(--size-16); }
.signature img { width: var(--avatar-m); height: var(--avatar-m); border-radius: 9999px; object-fit: cover; object-position: 30% 30%; }
@media (max-width: 900px) {
  .story-media { aspect-ratio: 4 / 3; }
  .story-media img { object-position: 60% 50%; }
  .story-card { width: auto; margin-top: calc(var(--size-64) * -1); margin-left: var(--size-12); margin-right: var(--size-12); }
}

/* ---------- Subtle house pattern on light sections ---------- */

.has-pattern { isolation: isolate; }

.has-pattern::after {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--primary-light-3);
  -webkit-mask: var(--pattern-image) repeat;
  mask: var(--pattern-image) repeat;
  -webkit-mask-size: var(--pattern-tile);
  mask-size: var(--pattern-tile);
  opacity: 0.55;
  pointer-events: none;
}
.fade-pattern::after {
  -webkit-mask-image: var(--pattern-image), linear-gradient(to bottom, transparent, var(--primary-dark-1) 40%, var(--primary-dark-1) 60%, transparent);
  mask-image: var(--pattern-image), linear-gradient(to bottom, transparent, var(--primary-dark-1) 40%, var(--primary-dark-1) 60%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-repeat: repeat, no-repeat;
  mask-repeat: repeat, no-repeat;
  -webkit-mask-size: var(--pattern-tile), 100% 100%;
  mask-size: var(--pattern-tile), 100% 100%;
}

/* ---------- Selling steps ---------- */

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; list-style: none; }
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--icon-step) - var(--line));
  height: var(--line); background-color: var(--primary-brand-1); z-index: 0;
  transform-origin: left center;
}
.js .steps::before { transform: scaleX(0); }
.js .steps.is-drawn::before { transform: none; transition: transform var(--draw-duration, 4s) var(--ease-draw); }
.step { position: relative; }
.step-icon { position: relative; z-index: 1; display: block; width: var(--icon-step); height: var(--icon-step); }
.step-icon > img { display: block; width: auto; height: 100%; }
.step-badge { --house-edge: 2.9rem; position: absolute; left: calc(var(--house-edge) - var(--size-8)); top: calc(var(--icon-step) - var(--size-48) + var(--size-8)); width: var(--size-48); height: var(--size-48); display: grid; place-items: center; border-radius: 9999px; background-color: var(--primary-light-1); color: var(--primary-brand-1); box-shadow: 0 2px 8px var(--shadow-color-s); }
.step-badge--2 { --house-edge: 3.1rem; }
.step-badge--3 { --house-edge: 2.8rem; }
.step-badge svg { width: var(--size-32); height: var(--size-32); fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.step-number { font-family: var(--heading-font); font-size: var(--title-size-6); color: var(--primary-brand-2); }
.step-badge { transition: translate var(--speed-fast) var(--ease-out); }
.step:hover .step-badge { translate: 0 calc(var(--size-12) * -1); }
@keyframes nudge { 50% { transform: translateY(calc(var(--size-4) * -1)); } }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { left: calc(var(--icon-step) / 2); right: auto; top: 0; bottom: 0; width: var(--line); height: auto; }
  .steps::before { transform-origin: center top; }
  .js .steps::before { transform: scaleY(0); }
  .js .steps.is-drawn::before { transform: none; }
  .step { display: grid; grid-template-columns: var(--icon-step) minmax(0, 1fr); column-gap: var(--size-20); }
  .step-icon { grid-row: span 3; }
}

/* ---------- Homes carousel (dark panel) ---------- */

.carousel { position: relative; }
.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(18rem, 26rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(5%, calc((100% - 77.5rem) / 2));
  padding-left: max(5%, calc((100% - 77.5rem) / 2));
  padding-right: max(5%, calc((100% - 77.5rem) / 2));
  padding-bottom: var(--size-8);
  scrollbar-width: none;
  list-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > li { scroll-snap-align: start; }
.carousel-btn {
  width: var(--size-48); height: var(--size-48);
  display: inline-grid; place-items: center;
  border-radius: 9999px;
  border: var(--line) solid var(--primary-light-3);
  background-color: transparent;
  color: var(--primary-light-1);
  cursor: pointer;
  transition: background-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease);
}
.carousel-btn:hover { background-color: var(--primary-brand-1); border-color: var(--primary-brand-1); color: var(--primary-dark-1); }

.property-card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.property-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-m); }
.property-card__media img { transition: transform var(--speed-slow) var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.05); }
.property-card__status { position: absolute; top: var(--size-16); left: var(--size-16); }
.property-card__agent {
  position: absolute; left: var(--size-16); bottom: var(--size-16);
  display: inline-flex; align-items: center; gap: var(--size-8);
  padding: var(--size-4) var(--size-12) var(--size-4) var(--size-4);
  border-radius: 9999px; background-color: var(--overlay-dark); color: var(--primary-light-1);
  font-size: var(--body-size-s); font-weight: var(--strong-weight);
  backdrop-filter: blur(var(--blur));
}
.property-card__agent img { width: var(--avatar-s); height: var(--avatar-s); border-radius: 9999px; object-fit: cover; }
.property-card__title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--size-12); }
.property-card__title .icon { transition: transform var(--speed-fast) var(--ease); color: var(--primary-brand-1); }
.property-card:hover .property-card__title .icon { transform: translateX(var(--size-4)); }
.spec-row { display: flex; flex-wrap: wrap; column-gap: var(--size-16); row-gap: var(--size-4); list-style: none; }
.spec-row li { display: inline-flex; align-items: center; gap: var(--size-8); }
@media (max-width: 600px) {
  .carousel-track { grid-auto-columns: 78%; }
}

/* Light variant of the property card (used on the property page) */
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.property-grid .property-card__media { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .property-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -5.5%; padding-right: 5%; }
  .property-grid::-webkit-scrollbar { display: none; }
  .property-grid > li { scroll-snap-align: start; }
}

/* ---------- Team: staggered agent cards with cut-out name plate ---------- */

.team-layout { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr); align-items: start; }
.team-intro { position: sticky; top: calc(var(--header-height) + var(--size-40)); }
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
.team-grid > li:nth-child(even) { transform: translateY(var(--size-96)); }
.team-grid { padding-bottom: var(--size-96); }
.agent-card { position: relative; display: block; text-decoration: none; }
.agent-card__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-m); }
.agent-card__media img { transition: transform var(--speed-slow) var(--ease), filter var(--speed-slow) var(--ease); filter: saturate(0.9); }
.agent-card:hover .agent-card__media img { transform: scale(1.04); filter: saturate(1); }
.agent-card__plate {
  position: relative;
  width: calc(100% - var(--size-48));
  margin-top: calc(var(--size-80) * -1);
  background-color: var(--primary-light-1);
  border-top-right-radius: var(--radius-m);
}
.agent-card__arrow {
  position: absolute; top: var(--size-20); right: calc(var(--size-24) * -1);
  width: var(--size-48); height: var(--size-48);
  display: grid; place-items: center;
  border-radius: 9999px;
  background-color: var(--primary-brand-1); color: var(--primary-light-1);
  transition: transform var(--speed-fast) var(--ease), background-color var(--speed-fast) var(--ease);
}
.agent-card:hover .agent-card__arrow { transform: translateX(var(--size-4)); background-color: var(--primary-dark-1); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--size-8); list-style: none; }
.tag { display: inline-block; font-size: var(--body-size-s); line-height: 160%; padding: var(--size-4) var(--size-12); border: var(--line) solid var(--primary-light-3); border-radius: 9999px; color: var(--primary-dark-2); }
.quick-contact { display: flex; flex-wrap: wrap; column-gap: var(--size-20); row-gap: var(--size-8); }
@media (max-width: 900px) {
  .team-layout { grid-template-columns: 1fr; }
  .team-intro { position: static; }
  .team-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: var(--size-8); margin-right: -5.5%; padding-right: 5%; }
  .team-grid::-webkit-scrollbar { display: none; }
  .team-grid > li { scroll-snap-align: start; }
  .team-grid > li:nth-child(even) { transform: none; }
}

/* ---------- Proof: quote over a full-bleed street (from v3 Direction B) ---------- */
.proof { --title-size-4: clamp(1.8125rem, 1.2204rem + 2.6316vw, 3.0625rem); --title-size-6: clamp(1.25rem, 1.1612rem + 0.3947vw, 1.4375rem); --heading-weight: var(--hero-heading-weight); position: relative; overflow: hidden; background-color: var(--primary-dark-1); }
.proof__media { position: absolute; inset: 0; }
.proof__media img { object-position: 70% 50%; }
.proof__media::after { content: ""; position: absolute; inset: 0; background: var(--scrim-side); }
.proof__content { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: var(--size-64); row-gap: var(--size-40); align-items: end; }
.proof__quote blockquote { margin: 0; letter-spacing: -0.025em; }
.sold-chips { display: flex; flex-direction: column; gap: var(--size-16); list-style: none; margin: 0; padding: 0; }
.sold-chip { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--size-16); align-items: center; padding: var(--size-12); border-radius: var(--radius-street); background-color: var(--glass-dark); border: var(--line) solid var(--glass-line); backdrop-filter: blur(var(--size-12)); -webkit-backdrop-filter: blur(var(--size-12)); }
.sold-chip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); }
@media (max-width: 900px) {
  .proof__content { grid-template-columns: minmax(0, 1fr); }
  .proof__media::after { background: linear-gradient(180deg, color-mix(in srgb, var(--primary-dark-1) 70%, transparent), color-mix(in srgb, var(--primary-dark-1) 92%, transparent)); }
}

/* ---------- Proof: quote + recently sold ---------- */

.proof-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; }
.quote-mark { width: var(--size-48); height: var(--size-48); color: var(--primary-brand-1); }
.sold-list { display: grid; list-style: none; }
.sold-item { display: grid; grid-template-columns: 7rem minmax(0, 1fr); align-items: center; text-decoration: none; }
.sold-item__media { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-s); }
.sold-item__media img { filter: grayscale(0.35); transition: filter var(--speed-slow) var(--ease); }
.sold-item:hover .sold-item__media img { filter: grayscale(0); }
@media (max-width: 900px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---------- Journal mosaic ---------- */

.journal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto 1fr; list-style: none; }
.journal-grid > li:first-child { grid-row: span 2; }
.journal-grid > li + li { border-top: var(--line) solid var(--primary-light-3); padding-top: var(--size-32); }
.journal-grid > li:nth-child(2) { border-top: 0; padding-top: var(--size-0); }
.article-card { display: grid; text-decoration: none; }
.article-card__media { overflow: hidden; border-radius: var(--radius-m); aspect-ratio: 3 / 2; }
.article-card__media img { transition: transform var(--speed-slow) var(--ease); }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card:hover .article-title { color: var(--primary-brand-2); }
.article-title { transition: color var(--speed-fast) var(--ease); }
.article-card--row { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; }
.article-card--row .article-card__media { aspect-ratio: 4 / 3; }
.journal-grid > li:first-child .article-card__media { aspect-ratio: 4 / 3; }
@media (max-width: 900px) {
  .journal-grid { grid-template-columns: 1fr; }
  .journal-grid > li:first-child { grid-row: auto; }
}
@media (max-width: 520px) {
  .article-card--row { grid-template-columns: 1fr; }
}

/* ---------- Valuation ---------- */

.valuation-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.valuation-visual { position: relative; container-type: inline-size; }
/* House-shaped photo: 100px narrower than the column and 160px taller than v1 (4:5),
   with the roof pitch kept and the extra height added at the bottom */
.gable {
  width: calc(100cqw - var(--gable-trim));
  height: calc(125cqw + var(--gable-extra));
  margin-left: auto;
  overflow: hidden;
  clip-path: polygon(0 calc((100cqw - var(--gable-trim)) * 0.325), 50% 0, 100% calc((100cqw - var(--gable-trim)) * 0.325), 100% 100%, 0 100%);
}
.gable img { object-position: 64% 50%; }
.check-list { list-style: none; display: grid; }
.check-list li { display: grid; grid-template-columns: var(--icon-m) minmax(0, 1fr); column-gap: var(--size-12); align-items: start; }
.check-list .icon-m { color: var(--primary-brand-1); }
@media (max-width: 900px) { .valuation-grid { grid-template-columns: 1fr; } .valuation-visual { display: none; } }

/* ---------- Forms ---------- */

.form-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
.form-progress li { border-top: var(--outline) solid var(--primary-light-3); padding-top: var(--size-8); font-size: var(--body-size-s); font-weight: var(--strong-weight); color: var(--primary-dark-3); transition: border-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease); }
.form-progress li.is-active { border-top-color: var(--primary-brand-1); color: var(--primary-dark-1); }
.form-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-step[hidden] { display: none; }
.form-step.is-entering { animation: step-in 0.45s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(var(--size-24)); } to { opacity: 1; transform: none; } }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: var(--size-8); }
.field label { font-size: var(--body-size-s); font-weight: var(--strong-weight); color: var(--primary-dark-1); }
.field .optional { font-weight: var(--body-weight); color: var(--primary-dark-3); }
.input {
  width: 100%;
  height: var(--size-48);
  min-height: 3rem;
  padding: 0 var(--size-16);
  font-size: var(--body-size-m);
  color: var(--primary-dark-1);
  background-color: var(--primary-light-1);
  border: var(--line) solid var(--primary-light-3);
  border-radius: var(--radius-s);
  box-shadow: 0 2px 8px var(--shadow-color-s);
  transition: border-color var(--speed-fast) var(--ease), box-shadow var(--speed-fast) var(--ease);
}
.input:hover { border-color: var(--primary-dark-3); }
.input:focus { outline: none; border-color: var(--primary-brand-1); box-shadow: 0 0 0 var(--focus-ring) var(--primary-transparent-1); }
.input[aria-invalid="true"] { border-color: var(--primary-brand-2); }
select.input { cursor: pointer; }
.field-error { font-size: var(--body-size-s); color: var(--primary-brand-2); font-weight: var(--strong-weight); }
.field-error:empty { display: none; }
.form-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--size-16); }
.btn-back { background: none; border: 0; padding: var(--size-8) 0; cursor: pointer; }
.form-success[hidden] { display: none; }
.success-icon { width: var(--size-48); height: var(--size-48); color: var(--primary-brand-1); stroke-width: 1.25; }
.form-success { animation: step-in 0.5s var(--ease) both; }
.reference { display: inline-block; font-family: var(--heading-font); font-size: var(--title-size-5); color: var(--primary-dark-1); padding: var(--size-8) var(--size-16); border: var(--line) dashed var(--primary-brand-1); border-radius: var(--radius-s); }
.is-sending { opacity: 0.6; pointer-events: none; }
@media (max-width: 520px) { .field-row:not(.field-row--keep) { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

/* Curtain footer: the page content (.site-wrap) lifts off a fixed footer.
   js/script.js sets the wrapper's margin-bottom to the footer height and --q
   (0 = covered, 1 = fully shown). Footers taller than the screen stay static. */
.site-wrap { position: relative; z-index: 1; background-color: var(--primary-light-1); }
.site-footer { position: relative; z-index: 0; }
.js .site-footer { position: fixed; left: 0; right: 0; bottom: 0; }
.js.footer-static .site-footer { position: relative; }
.footer-content {
  translate: 0 calc(var(--footer-shift) * (1 - var(--q, 1)));
  opacity: calc(0.3 + 0.7 * var(--q, 1));
}
.footer-static .footer-content { translate: none; opacity: 1; }

/* Joined Larkline logo line that sits on the edge where the page lifts off */
.horizon { line-height: 0; padding-bottom: calc(var(--size-64) + var(--size-8)); }   /* line sits about 70px above the footer edge */
.horizon__svg { display: block; width: 100%; height: var(--horizon-height); overflow: visible; }
.horizon__svg polyline {
  fill: none;
  stroke: var(--primary-brand-1);
  stroke-width: 1.5;
  stroke-linejoin: miter;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.horizon.is-drawn polyline { stroke-dashoffset: 0; transition: stroke-dashoffset 6.4s var(--ease-draw); }
html:not(.js) .horizon__svg polyline { stroke-dashoffset: 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); }
.footer-logo img { height: var(--size-40); width: auto; }
.footer-links { list-style: none; display: grid; gap: var(--size-8); }
.footer-links a { text-decoration: none; transition: color var(--speed-fast) var(--ease); }
.footer-links a:hover { color: var(--primary-brand-1); }
.address { font-style: normal; }
.legal-links { list-style: none; }
.legal-links a { text-decoration: none; }
.legal-links a:hover { color: var(--primary-brand-1); }
.footer-bottom { border-top: var(--line) solid color-mix(in srgb, var(--primary-light-3) 20%, transparent); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Property page ---------- */

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--size-8); list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--size-8); color: var(--primary-light-3); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-brand-2); }

.prop-hero { position: relative; }
.prop-hero__frame { aspect-ratio: 16 / 8; overflow: hidden; }
.prop-hero__frame img { animation: settle 2.4s var(--ease) both; }
.details-box {
  position: absolute; right: var(--size-40); bottom: calc(var(--size-64) * -1);
  width: min(30rem, 46%);
  display: grid; grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.details-box__main { background-color: var(--primary-light-1); }
.details-box__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background-color: var(--primary-dark-1); color: var(--primary-light-1); list-style: none; }
.details-box__facts li { display: flex; flex-direction: column; align-items: center; gap: var(--size-4); text-align: center; border-left: var(--line) solid color-mix(in srgb, var(--primary-light-3) 18%, transparent); }
.details-box__facts li:first-child { border-left: 0; }
.details-box__facts .icon-m { color: var(--primary-brand-1); }
.price { font-family: var(--heading-font); }

.gallery-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(12rem, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; list-style: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip li { scroll-snap-align: start; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-s); position: relative; }
.gallery-strip img { transition: transform var(--speed-slow) var(--ease), opacity var(--speed-fast) var(--ease); }
.gallery-strip li:hover img { transform: scale(1.06); }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background-color: var(--overlay-dark); color: var(--primary-light-1); font-weight: var(--strong-weight); text-decoration: none; }

.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 22rem); align-items: start; }
.agent-aside { position: sticky; top: calc(var(--header-height) + var(--size-24)); }
.agent-aside__head { display: grid; grid-template-columns: var(--avatar-m) minmax(0, 1fr); align-items: center; column-gap: var(--size-16); }
.agent-aside__head img { width: var(--avatar-m); height: var(--avatar-m); border-radius: 9999px; object-fit: cover; }
.agent-aside .btn-solid, .agent-aside .btn-outline { width: 100%; }

.love-list { list-style: none; display: grid; counter-reset: love; }
.love-list li { display: grid; grid-template-columns: var(--size-40) minmax(0, 1fr); column-gap: var(--size-12); counter-increment: love; border-top: var(--line) solid var(--primary-light-3); }
.love-list li::before { content: counter(love, decimal-leading-zero); font-family: var(--heading-font); font-size: var(--title-size-6); color: var(--primary-brand-2); line-height: 160%; }

.spec-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--size-32); }
.spec-table > div { border-top: var(--line) solid var(--primary-light-3); }
.spec-table dt { font-size: var(--body-size-s); color: var(--primary-dark-3); }
.spec-table dd { color: var(--primary-dark-1); font-weight: var(--strong-weight); }

.helper-box { display: grid; grid-template-columns: var(--icon-l) minmax(0, 1fr); column-gap: var(--size-20); align-items: start; }
.helper-box > svg { width: var(--icon-l); height: var(--icon-l); color: var(--primary-brand-1); fill: none; stroke: currentColor; stroke-width: 1.25; }

.floorplan { color: var(--primary-dark-2); }
.floorplan svg { width: 100%; height: auto; }
.floorplan .wall { fill: none; stroke: currentColor; stroke-width: 3; }
.floorplan .inner { fill: none; stroke: currentColor; stroke-width: 1.5; }
.floorplan .door { fill: none; stroke: var(--primary-brand-1); stroke-width: 1.25; }
.floorplan .window { stroke: var(--primary-light-1); stroke-width: 3; }
.floorplan text { font-family: var(--body-font); font-size: var(--body-size-s); fill: var(--primary-dark-2); }
.floorplan .room-name { font-weight: 700; font-size: var(--title-subtitle); letter-spacing: 0.1em; text-transform: uppercase; fill: var(--primary-dark-1); }

.local-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; }
.local-card__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-m); }
.local-card:nth-child(2) { margin-top: var(--size-64); }
.local-card__media img { transition: transform var(--speed-slow) var(--ease); }
.local-card:hover .local-card__media img { transform: scale(1.05); }
.walk-time { display: inline-flex; align-items: center; gap: var(--size-8); }

.seller-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }

.mobile-contact { display: none; }

@media (max-width: 960px) {
  .prop-layout { grid-template-columns: 1fr; }
  .agent-aside { position: static; }
  .details-box { position: relative; right: auto; bottom: auto; width: auto; margin: calc(var(--size-64) * -1) var(--size-16) 0; }
  .prop-hero__frame { aspect-ratio: 4 / 3; }
  .local-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -5.5%; padding-right: 5%; }
  .local-grid::-webkit-scrollbar { display: none; }
  .local-card { scroll-snap-align: start; }
  .local-card:nth-child(2) { margin-top: var(--size-0); }
  .seller-band { grid-template-columns: 1fr; justify-items: start; }
  .mobile-contact {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--size-8);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: var(--size-12) 5%;
    background-color: var(--header-glass);
    backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
    border-top: var(--line) solid var(--primary-light-3);
    animation: rise 0.6s var(--ease) 0.6s both;
  }
  .has-mobile-contact .footer-dark { padding-bottom: var(--size-80); }
}
@media (max-width: 600px) {
  .details-box__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details-box__facts li:nth-child(3) { border-left: 0; }
  .details-box__facts li:nth-child(n+3) { border-top: var(--line) solid color-mix(in srgb, var(--primary-light-3) 18%, transparent); }
  .spec-table { grid-template-columns: 1fr; }
  .helper-box { grid-template-columns: 1fr; row-gap: var(--size-12); }
}
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Reveal on scroll (CSS only, where supported) ---------- */

@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(var(--size-32)); } to { opacity: 1; transform: none; } }
  .reveal-img img { animation: reveal-img linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  @keyframes reveal-img { from { transform: scale(1.12); } to { transform: scale(1); } }
}

/* Page load: hero copy rises in gently */
.rise-in { animation: rise-in 1s var(--ease) both; }
.rise-in-2 { animation: rise-in 1s var(--ease) 0.15s both; }
.rise-in-3 { animation: rise-in 1s var(--ease) 0.3s both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(var(--size-24)); } to { opacity: 1; transform: none; } }

/* Same entrance as the hero caption, started when the box scrolls into view */
.js .rise-on-view:not(.is-visible) { opacity: 0; }
.rise-on-view.is-visible { animation: rise-in 1s var(--ease) 0.15s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js .rise-on-view:not(.is-visible) { opacity: 1; }
  .stack-panel__inner { scale: none; border-radius: 0; }      /* keep the pinning, drop the movement */
  .stack-text { translate: none; }
  .footer-content { translate: none; opacity: 1; }              /* no footer parallax */
  .horizon__svg polyline { stroke-dashoffset: 0; }
  .js .steps::before { transform: none; transition: none; }
}


/* ==========================================================================
   v5: Homes for sale, neighbourhood map, agent page, journal post
   ========================================================================== */

/* Current page in the pill menu */
.pill__list a[aria-current="page"] { color: var(--primary-brand-1); }

/* ---------- Filters ---------- */
.filter-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: var(--size-48); min-height: 3rem; margin: 0; padding: var(--size-4); border: var(--line) solid var(--primary-light-3); border-radius: var(--radius-s); background-color: var(--primary-light-1); box-shadow: 0 2px 8px var(--shadow-color-s); }
.seg legend { padding: 0; }
.seg label { position: relative; display: grid; place-items: center; padding: 0 var(--size-8); border-radius: var(--radius-s); font-size: var(--body-size-s); font-weight: var(--strong-weight); color: var(--primary-dark-2); white-space: nowrap; cursor: pointer; transition: background-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { background-color: var(--primary-dark-1); color: var(--primary-light-1); }
.seg label:has(input:focus-visible) { outline: var(--outline) solid var(--primary-brand-1); outline-offset: var(--line); }
.field-label { font-size: var(--body-size-s); font-weight: var(--strong-weight); color: var(--primary-dark-1); }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-top: var(--line) solid var(--primary-light-3); }
.text-button { background: none; border: 0; padding: var(--size-4) 0; font: inherit; font-weight: var(--strong-weight); color: var(--primary-brand-2); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.text-button:hover { color: var(--primary-dark-1); }
.view-toggle { display: none; }

/* ---------- List and map side by side ---------- */
.listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.listing-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); list-style: none; align-content: start; }
.listing-list .property-card__media { aspect-ratio: 4 / 3; }
.listing-list > li[hidden] { display: none; }
.listing-list > li { transition: opacity var(--speed-fast) var(--ease); }
.listing-list > li.is-hover .property-card__title span { color: var(--primary-brand-2); }
.listing-map { position: sticky; top: calc(var(--pill-top) + var(--pill-height) + var(--size-16)); height: var(--map-height); }
.empty-state { grid-column: 1 / -1; }
@media (min-width: 1280px) { .listing-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
@media (max-width: 1100px) {
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listing-layout { grid-template-columns: minmax(0, 1fr); }
  .view-toggle { display: inline-grid; grid-auto-flow: column; padding: var(--size-4); border: var(--line) solid var(--primary-light-3); border-radius: 9999px; background-color: var(--primary-light-1); }
  .view-toggle button { display: inline-flex; align-items: center; gap: var(--size-8); padding: var(--size-8) var(--size-16); border: 0; border-radius: 9999px; background: none; font: inherit; font-size: var(--body-size-s); font-weight: var(--strong-weight); color: var(--primary-dark-2); cursor: pointer; }
  .view-toggle button[aria-pressed="true"] { background-color: var(--primary-dark-1); color: var(--primary-light-1); }
  .listing-layout:not([data-show="map"]) .listing-map { display: none; }
  .listing-layout[data-show="map"] .listing-list { display: none; }
  .listing-map { position: relative; top: auto; height: auto; }
  .listing-map .map { height: 72svh; }
}

.map-chips { display: none; }
@media (max-width: 900px) {
  .map-chips { display: flex; gap: var(--size-8); overflow-x: auto; scrollbar-width: none; margin-right: -5.5%; padding: var(--size-4) 5% var(--size-4) var(--size-4); }
  .map-chips::-webkit-scrollbar { display: none; }
  .map-chip { position: static; transform: none; flex-shrink: 0; }
}
@media (max-width: 520px) { .filter-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .filter-bar > .field--wide { grid-column: 1 / -1; } }

/* ---------- Neighbourhood map ---------- */
.map { position: relative; height: 100%; overflow: hidden; border-radius: var(--radius-l); background-color: var(--map-land); border: var(--line) solid var(--primary-light-3); isolation: isolate; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-water { fill: none; stroke: var(--map-water); stroke-width: var(--map-river-width); stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 var(--line) var(--map-water-edge)); }
.map-canal { fill: none; stroke: var(--map-water); stroke-width: var(--map-canal-width); vector-effect: non-scaling-stroke; }
.map-road { fill: none; stroke: var(--map-road); stroke-width: var(--map-road-width); vector-effect: non-scaling-stroke; stroke-linecap: round; }
.map-park { fill: var(--map-park); }
.map-hood { fill: var(--map-hood); stroke: var(--primary-brand-1); stroke-width: var(--map-hood-stroke); stroke-dasharray: var(--map-dash); vector-effect: non-scaling-stroke; cursor: pointer; transition: fill var(--speed-fast) var(--ease); }
.map-hood.is-hover { fill: var(--map-hood-hover); }
.map-hood.is-active { fill: var(--map-hood-active); stroke: var(--primary-brand-2); stroke-dasharray: none; }
.map-hood.is-muted { fill: none; stroke: var(--primary-light-3); cursor: default; }
.map__layer { position: absolute; inset: 0; pointer-events: none; }
.map__layer > * { position: absolute; left: 0; top: 0; pointer-events: auto; }
.map__place { pointer-events: none; transform: translate(-50%, -50%); color: var(--primary-dark-3); white-space: nowrap; letter-spacing: 0.02em; }
.map__label { display: inline-flex; align-items: center; gap: var(--size-8); transform: translate(-50%, 0); padding: var(--size-4) var(--size-12); border: var(--line) solid var(--primary-light-3); border-radius: 9999px; background-color: var(--primary-light-1); color: var(--primary-dark-1); font-family: var(--body-font); font-weight: var(--strong-weight); white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px var(--shadow-color-s); transition: background-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease); }
.map__label--above { transform: translate(-50%, -100%); }
.map__label--right { transform: translate(0, -50%); }
.map__label.is-hover, .map__label:hover { border-color: var(--primary-brand-1); }
.map__label.is-active { background-color: var(--primary-dark-1); border-color: var(--primary-dark-1); color: var(--primary-light-1); }
.map__count { display: inline-grid; place-items: center; min-width: var(--size-20); height: var(--size-20); padding: 0 var(--size-4); border-radius: 9999px; background-color: var(--primary-brand-2); color: var(--primary-light-1); line-height: 1; }
.map__count[hidden] { display: none; }
.map__pin { display: grid; place-items: center; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.map__pin[hidden] { display: none; }
.map__pin-dot { width: var(--pin-dot); height: var(--pin-dot); border-radius: 9999px; background-color: var(--primary-brand-2); border: var(--outline) solid var(--primary-light-1); box-shadow: 0 2px 8px var(--shadow-color-m); transition: transform var(--speed-fast) var(--ease); }
.map__pin--offer .map__pin-dot { background-color: var(--primary-dark-1); }
.map__pin-price { display: none; padding: var(--size-4) var(--size-12); border-radius: 9999px; background-color: var(--primary-dark-1); color: var(--primary-light-1); font-size: var(--body-size-s); font-weight: var(--strong-weight); line-height: 160%; white-space: nowrap; box-shadow: 0 8px 24px var(--shadow-color-m); transition: background-color var(--speed-fast) var(--ease); }
.map__pin--offer .map__pin-price { background-color: var(--primary-light-1); color: var(--primary-dark-1); border: var(--line) solid var(--primary-light-3); }
.map.is-close .map__pin-dot, .map__pin.is-hover .map__pin-dot, .map__pin:hover .map__pin-dot, .map__pin:focus-visible .map__pin-dot, .map__pin.is-active .map__pin-dot { display: none; }
.map.is-close .map__pin-price, .map__pin.is-hover .map__pin-price, .map__pin:hover .map__pin-price, .map__pin:focus-visible .map__pin-price, .map__pin.is-active .map__pin-price { display: block; }
.map__pin.is-hover, .map__pin:hover, .map__pin.is-active { z-index: 3; }
.map__pin.is-hover .map__pin-price, .map__pin:hover .map__pin-price, .map__pin.is-active .map__pin-price { background-color: var(--primary-brand-2); color: var(--primary-light-1); border-color: var(--primary-brand-2); }
.map.is-tiny .map__label, .map.is-tiny .map__place { display: none; }
.map:not(.is-close) .map__place { display: none; }
.map__hint { position: absolute; left: var(--size-16); top: var(--size-16); z-index: 4; padding: var(--size-4) var(--size-12); border-radius: 9999px; background-color: var(--primary-light-1); color: var(--primary-dark-2); box-shadow: 0 2px 8px var(--shadow-color-s); pointer-events: none; }
.map:not(.is-tiny) .map__hint { display: none; }
.map__reset { position: absolute; top: var(--size-16); right: var(--size-16); z-index: 4; display: inline-flex; align-items: center; gap: var(--size-8); padding: var(--size-8) var(--size-16); border: var(--line) solid var(--primary-light-3); border-radius: 9999px; background-color: var(--primary-light-1); color: var(--primary-dark-1); font: inherit; font-size: var(--body-size-s); font-weight: var(--strong-weight); cursor: pointer; box-shadow: 0 2px 8px var(--shadow-color-s); }
.map__reset:hover { border-color: var(--primary-brand-1); }
.map__reset[hidden] { display: none; }
.map__dock { position: absolute; left: var(--size-16); bottom: var(--size-16); z-index: 5; width: min(var(--dock-width), calc(100% - var(--size-32))); padding: var(--size-20); padding-right: var(--size-48); border-radius: var(--radius-m); background-color: var(--primary-light-1); box-shadow: 0 16px 48px var(--shadow-color-l); animation: rise-in 0.35s var(--ease-out) both; }
.map__dock[hidden] { display: none; }
.map__close { position: absolute; top: var(--size-12); right: var(--size-12); width: var(--size-32); height: var(--size-32); display: grid; place-items: center; padding: 0; border: 0; border-radius: 9999px; background-color: var(--primary-light-2); color: var(--primary-dark-1); cursor: pointer; }
.map__close:hover { background-color: var(--primary-light-3); }
.map__agent { display: flex; align-items: center; gap: var(--size-12); padding-top: var(--size-12); border-top: var(--line) solid var(--primary-light-3); }
.map__agent img { width: var(--avatar-s); height: var(--avatar-s); border-radius: 9999px; object-fit: cover; }
.map__listing { display: grid; grid-template-columns: var(--thumb) minmax(0, 1fr); gap: var(--size-16); align-items: center; text-decoration: none; }
.map__listing img { width: var(--thumb); aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); background-color: var(--primary-light-2); }
.map__listing:hover .title-6 { color: var(--primary-brand-2); }
.map-legend { display: flex; flex-wrap: wrap; column-gap: var(--size-20); row-gap: var(--size-8); list-style: none; }
.map-legend li { display: inline-flex; align-items: center; gap: var(--size-8); }
.map-legend .swatch { width: var(--size-12); height: var(--size-12); border-radius: 9999px; background-color: var(--primary-brand-2); border: var(--outline) solid var(--primary-light-1); box-shadow: 0 0 0 var(--line) var(--primary-light-3); }
.map-legend .swatch--offer { background-color: var(--primary-dark-1); }
.map-legend .swatch--area { border-radius: var(--radius-s); background-color: var(--map-hood-hover); border: var(--line) dashed var(--primary-brand-1); box-shadow: none; }

/* ---------- Agent page ---------- */
.agent-hero .prop-hero__frame { aspect-ratio: 16 / 7; }
.agent-box__head { display: grid; grid-template-columns: var(--avatar-m) minmax(0, 1fr); align-items: center; column-gap: var(--size-16); }
.agent-box__head img { width: var(--avatar-m); height: var(--avatar-m); border-radius: 9999px; object-fit: cover; }
.agent-box__actions { display: flex; flex-wrap: wrap; gap: var(--size-12); }
.agent-hero-spacer { height: var(--size-64); }
.patch-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: stretch; }
.patch-map { min-height: 34rem; }
.patch-list { display: grid; list-style: none; align-content: start; }
.patch-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--size-16); row-gap: var(--size-8); align-items: start; padding: var(--size-24) 0; border-top: var(--line) solid var(--primary-light-3); cursor: pointer; }
.patch-item:last-child { border-bottom: var(--line) solid var(--primary-light-3); }
.patch-item:hover .title-4, .patch-item:focus-within .title-4 { color: var(--primary-brand-2); }
.patch-item .tag { align-self: center; }
.patch-item > p, .patch-item > a { grid-column: 1 / -1; }
.quote-band { display: grid; grid-template-columns: var(--size-64) minmax(0, 1fr); column-gap: var(--size-24); align-items: start; }
@media (max-width: 960px) {
  .agent-hero .prop-hero__frame { aspect-ratio: 4 / 3; }
  .agent-hero-spacer { display: none; }
  .patch-layout { grid-template-columns: minmax(0, 1fr); }
  .patch-map { min-height: 26rem; }
}
@media (max-width: 600px) { .quote-band { grid-template-columns: minmax(0, 1fr); row-gap: var(--size-12); } }

/* ---------- Journal post ---------- */
.article-head { max-width: var(--width-article); }
.author-row { display: flex; align-items: center; gap: var(--size-12); }
.author-row img { width: var(--size-48); height: var(--size-48); border-radius: 9999px; object-fit: cover; }
.article-hero { aspect-ratio: 21 / 9; overflow: hidden; }
.article-layout { display: grid; grid-template-columns: var(--toc-width) minmax(0, var(--width-article)); column-gap: var(--size-64); justify-content: center; align-items: start; }
.toc { position: sticky; top: calc(var(--pill-top) + var(--pill-height) + var(--size-24)); }
.toc ol { list-style: none; display: grid; border-left: var(--line) solid var(--primary-light-3); }
.toc a { display: block; padding: var(--size-8) 0 var(--size-8) var(--size-16); margin-left: calc(var(--line) * -1); border-left: var(--outline) solid transparent; text-decoration: none; color: var(--primary-dark-3); transition: color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease); }
.toc a:hover { color: var(--primary-dark-1); }
.toc a[aria-current="true"] { color: var(--primary-dark-1); border-left-color: var(--primary-brand-1); }
.toc summary { list-style: none; cursor: pointer; }
.toc summary::-webkit-details-marker { display: none; }
.prose { display: flex; flex-direction: column; gap: var(--size-20); }
.prose h2 { font-size: var(--title-size-4); line-height: 125%; color: var(--primary-dark-1); margin-top: var(--size-32); scroll-margin-top: calc(var(--pill-top) + var(--pill-height) + var(--size-24)); }
.prose h3 { font-size: var(--title-size-6); line-height: 130%; color: var(--primary-dark-1); }
.prose p, .prose li { font-size: var(--body-size-l); line-height: 170%; color: var(--primary-dark-2); }
.prose ul { padding-left: var(--size-20); display: grid; gap: var(--size-8); }
.prose strong { color: var(--primary-dark-1); font-weight: var(--strong-weight); }
.prose a:not([class]) { color: var(--primary-brand-2); font-weight: var(--strong-weight); }
.compare { width: 100%; border-collapse: collapse; font-size: var(--body-size-s); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: var(--size-12) var(--size-16) var(--size-12) 0; border-bottom: var(--line) solid var(--primary-light-3); }
.compare thead th { font-family: var(--heading-font); font-weight: var(--heading-weight); font-size: var(--title-size-6); color: var(--primary-dark-1); border-bottom-color: var(--primary-dark-1); }
.compare tbody th { color: var(--primary-dark-3); font-weight: var(--strong-weight); width: 28%; }
.compare td { color: var(--primary-dark-2); }
.table-scroll { overflow-x: auto; }
.check-list { list-style: none; padding: 0; display: grid; gap: var(--size-12); }
.prose .check-list { padding-left: 0; }
.check-list li { display: grid; grid-template-columns: var(--icon-m) minmax(0, 1fr); column-gap: var(--size-12); align-items: start; }
.check-list .icon-m { color: var(--primary-brand-1); margin-top: var(--size-4); }
.note-box { border-top: var(--outline) solid var(--primary-brand-1); }
.ask-box { display: grid; grid-template-columns: var(--avatar-m) minmax(0, 1fr); column-gap: var(--size-20); align-items: start; }
.ask-box img { width: var(--avatar-m); height: var(--avatar-m); border-radius: 9999px; object-fit: cover; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); row-gap: var(--size-32); }
  .toc { position: static; }
  .article-hero { aspect-ratio: 4 / 3; }
}
@media (max-width: 700px) { .related-grid { grid-template-columns: minmax(0, 1fr); } .ask-box { grid-template-columns: minmax(0, 1fr); row-gap: var(--size-12); } }
.fieldset-reset { border: 0; margin: 0; padding: 0; min-width: 0; }
.text-reset { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.quote-band blockquote { margin: 0; }
@media (min-width: 1101px) {
  .listing-layout { min-height: var(--map-height); }
  .listing-map > .map { flex: 1 1 auto; height: auto; min-height: 0; }
}
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: var(--size-12); }
.toc__chevron { display: none; transition: transform var(--speed-fast) var(--ease); }
.agent-box__actions > a { flex: 1 1 auto; }
@media (max-width: 960px) {
  .article-layout > div[aria-hidden="true"] { display: none; }
  .toc details { border: var(--line) solid var(--primary-light-3); border-radius: var(--radius-m); padding: 0 var(--size-16); background-color: var(--primary-light-1); }
  .toc__chevron { display: block; transform: rotate(90deg); color: var(--primary-brand-2); }
  .toc details[open] .toc__chevron { transform: rotate(-90deg); }
  .toc ol { margin-bottom: var(--size-12); }
}
@media (max-width: 600px) { .compare { min-width: 34rem; } }

/* ---------- Journal archive ---------- */
.journal-feature { position: relative; padding-bottom: var(--size-64); }
.journal-feature[hidden] { display: none; }
.journal-feature__media { display: block; aspect-ratio: 16 / 7; overflow: hidden; }
.journal-feature__media img { transition: transform var(--speed-slow) var(--ease); }
.journal-feature:hover .journal-feature__media img { transform: scale(1.03); }
.journal-feature__card { position: absolute; right: var(--size-40); bottom: 0; width: min(34rem, 50%); }
.journal-feature__link { color: inherit; transition: color var(--speed-fast) var(--ease); }
.journal-feature__link:hover { color: var(--primary-brand-2); }
.journal-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.topic-pills { display: flex; flex-wrap: wrap; gap: var(--size-8); }
.topic-pills label { position: relative; display: inline-flex; align-items: center; min-height: var(--size-48); padding: 0 var(--size-20); border: var(--line) solid var(--primary-light-3); border-radius: 9999px; background-color: var(--primary-light-1); font-size: var(--body-size-s); font-weight: var(--strong-weight); color: var(--primary-dark-2); cursor: pointer; transition: background-color var(--speed-fast) var(--ease), color var(--speed-fast) var(--ease), border-color var(--speed-fast) var(--ease); }
.topic-pills label:hover { border-color: var(--primary-brand-1); }
.topic-pills input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.topic-pills label:has(input:checked) { background-color: var(--primary-dark-1); border-color: var(--primary-dark-1); color: var(--primary-light-1); }
.topic-pills label:has(input:focus-visible) { outline: var(--outline) solid var(--primary-brand-1); outline-offset: var(--line); }
.journal-search { position: relative; width: min(22rem, 100%); }
.journal-search .icon { position: absolute; left: var(--size-16); top: 50%; translate: 0 -50%; color: var(--primary-dark-3); pointer-events: none; }
.journal-search .input { padding-left: var(--size-48); }
.journal-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--size-32); row-gap: var(--size-64); list-style: none; }
.journal-list > li[hidden] { display: none; }
.journal-card { text-decoration: none; height: 100%; }
.journal-card__media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-m); background-color: var(--primary-light-2); }
.journal-card__media img { transition: transform var(--speed-slow) var(--ease); }
.journal-card:hover .journal-card__media img { transform: scale(1.05); }
.journal-card__title { transition: color var(--speed-fast) var(--ease); }
.journal-card:hover .journal-card__title { color: var(--primary-brand-2); }
.journal-list > li:nth-child(3n + 2) { margin-top: var(--size-48); }
.byline { display: inline-flex; align-items: center; gap: var(--size-8); }
.byline img { width: var(--avatar-s); height: var(--avatar-s); border-radius: 9999px; object-fit: cover; background-color: var(--primary-light-2); }
.ask-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; }
.ask-agent__head { display: grid; grid-template-columns: var(--size-48) minmax(0, 1fr); column-gap: var(--size-12); align-items: center; }
.ask-agent__head img { width: var(--size-48); height: var(--size-48); border-radius: 9999px; object-fit: cover; }
@media (max-width: 1100px) {
  .journal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journal-list > li:nth-child(3n + 2) { margin-top: var(--size-0); }
  .journal-list > li:nth-child(even) { margin-top: var(--size-48); }
  .ask-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .journal-feature { padding-bottom: var(--size-0); }
  .journal-feature__media { aspect-ratio: 4 / 3; }
  .journal-feature__card { position: relative; right: auto; width: auto; margin: calc(var(--size-64) * -1) var(--size-16) 0; }
}
@media (max-width: 640px) {
  .journal-list { grid-template-columns: minmax(0, 1fr); row-gap: var(--size-48); }
  .journal-list > li:nth-child(even) { margin-top: var(--size-0); }
  .ask-grid { grid-template-columns: minmax(0, 1fr); }
  .journal-search { width: 100%; }
  .topic-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -5.5%; padding-right: 5%; }
  .topic-pills::-webkit-scrollbar { display: none; }
  .topic-pills label { flex-shrink: 0; }
}
