/* ==========================================================================
   Larkline Estates · Prototype v1
   Built on the LWPR CSS framework: variables, base tags, framework classes,
   then project classes. Every colour, size and radius comes from a variable.
   Title scale: 1.2 on mobile, 1.3 on desktop, seven steps (v3 adds a display size).
   ========================================================================== */

:root {
  /* Colours: brand orange sampled from the Larkline logo (#e06e1c) */
  --primary-brand-1: #e06e1c;
  --primary-brand-2: #a84a0b;
  --primary-light-1: #fbf8f4;
  --primary-light-2: #f3ede4;
  --primary-light-3: #e1d8cb;
  --primary-dark-1: #211d1a;
  --primary-dark-2: #403a34;
  --primary-dark-3: #6a6259;
  --primary-transparent-1: #e06e1c1f;

  /* Project colours (outside the core eight) */
  --primary-transparent-2: #e06e1c40;
  --accent-sage: #dde0cb;
  --status-error: #b3261e;

  /* Sizes: 4pt scale, names are the desktop pixel value */
  --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;
  /* Ratios 1.2 (mobile) and 1.3 (desktop), scaled between 360px and 1120px */
  --title-size-1: clamp(3.5625rem, 2.2895rem + 5.6579vw, 6.25rem); /* 57px to 100px, display */
  --title-size-2: clamp(3.0000rem, 2.1414rem + 3.8158vw, 4.8125rem); /* 48px to 77px */
  --title-size-3: clamp(2.5000rem, 1.9375rem + 2.5000vw, 3.6875rem); /* 40px to 59px */
  --title-size-4: clamp(2.0625rem, 1.6776rem + 1.7105vw, 2.8750rem); /* 33px to 46px */
  --title-size-5: clamp(1.7500rem, 1.5428rem + 0.9211vw, 2.1875rem); /* 28px to 35px */
  --title-size-6: clamp(1.4375rem, 1.3191rem + 0.5263vw, 1.6875rem); /* 23px to 27px */
  --title-size-7: clamp(1.1875rem, 1.1283rem + 0.2632vw, 1.3125rem); /* 19px to 21px */

  /* Fonts */
  --heading-font: "Newsreader", Georgia, serif;
  --body-font: "DM Sans", system-ui, sans-serif;
  --heading-weight: 500;
  --body-weight: 400;
  --button-weight: 600;

  /* Radius (v3): soft frames and pill buttons, after the inspiration boards */
  --button-radius: 9999px;
  --radius-s: 0.25rem;
  --radius-m: 1rem;
  --radius-l: 1.75rem;

  /* Shadows tinted with primary-dark-1 */
  --shadow-s: 0 2px 8px #211d1a14;
  --shadow-m: 0 8px 24px #211d1a1f;
  --shadow-l: 0 16px 48px #211d1a33;

  /* Project dimensions */
  --header-h: 4.75rem;
  --logo-h: 2.5rem;
  --hero-min: min(88vh, 52rem);
  --field-h: 3.25rem;
  --map-label-size: 15px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base tags ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
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: var(--primary-light-1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  text-wrap: balance;
}
h1 { font-size: var(--title-size-2); line-height: 110%; }
h2 { font-size: var(--title-size-3); line-height: 115%; }
h3 { font-size: var(--title-size-4); line-height: 120%; }
h4 { font-size: var(--title-size-5); line-height: 125%; }
h5 { font-size: var(--title-size-6); line-height: 130%; }
h6 { font-size: var(--title-size-7); line-height: 130%; }
p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 0.125rem solid var(--primary-brand-2); outline-offset: 0.1875rem; }

/* ---------- Typography: size ---------- */
.title-1 { font-size: var(--title-size-1); font-weight: var(--heading-weight); line-height: 100%; }
.title-2 { font-size: var(--title-size-2); font-weight: var(--heading-weight); line-height: 110%; }
.title-3 { font-size: var(--title-size-3); font-weight: var(--heading-weight); line-height: 115%; }
.title-4 { font-size: var(--title-size-4); font-weight: var(--heading-weight); line-height: 120%; }
.title-5 { font-size: var(--title-size-5); font-weight: var(--heading-weight); line-height: 125%; }
.title-6 { font-size: var(--title-size-6); font-weight: var(--heading-weight); line-height: 130%; }
.title-7 { font-size: var(--title-size-7); 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-size: var(--title-subtitle);
  font-weight: 700;
  line-height: 140%;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 1px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.use-heading-font { font-family: var(--heading-font); }
.use-body-font { font-family: var(--body-font); }

/* ---------- Typography: 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); }

/* ---------- 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); }

/* ---------- Buttons ----------
   Orange fill carries dark text: white on #e06e1c would not reach AA contrast. */
.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);
  padding: var(--size-16) var(--size-32);
  font-size: var(--body-size-m);
  font-weight: var(--button-weight);
  line-height: 1;
  text-decoration: none;
  border-width: 1px;
  border-style: solid;
  border-radius: var(--button-radius);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}
.btn-solid:active, .btn-outline:active, .btn-solid-on-dark:active, .btn-outline-on-dark:active { transform: translateY(1px); }
.btn-solid { color: var(--primary-dark-1); background-color: var(--primary-brand-1); border-color: var(--primary-brand-1); }
.btn-solid:hover { color: var(--primary-light-1); background-color: var(--primary-brand-2); border-color: var(--primary-brand-2); }
.btn-outline { color: var(--primary-dark-1); background-color: transparent; border-color: var(--primary-dark-1); }
.btn-outline:hover { color: var(--primary-dark-1); background-color: var(--primary-brand-1); border-color: var(--primary-brand-1); }
.btn-solid-on-dark { color: var(--primary-dark-1); background-color: var(--primary-brand-1); border-color: var(--primary-brand-1); }
.btn-solid-on-dark:hover { color: var(--primary-dark-1); background-color: var(--primary-light-1); border-color: var(--primary-light-1); }
.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); border-color: var(--primary-light-1); }

/* ---------- 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: var(--shadow-s); }
.shadow-m { box-shadow: var(--shadow-m); }
.shadow-l { box-shadow: var(--shadow-l); }

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

.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; }
.text-start { text-align: left; }
.text-center { text-align: center; }
.text-end { text-align: right; }

/* ---------- Components ---------- */
.card {
  background-color: var(--primary-light-1);
  border-width: 1px;
  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: 600;
  letter-spacing: 0.03em;
  padding: var(--size-4) var(--size-12);
  border-radius: 9999px;
  line-height: 1.5;
}
.badge-1 { background-color: var(--primary-transparent-1); color: var(--primary-brand-2); }   /* For sale */
.badge-2 { background-color: var(--primary-light-3); color: var(--primary-dark-1); }           /* Under contract */
.badge-3 { background-color: var(--primary-dark-1); color: var(--primary-light-1); }           /* Sold */

/* ---------- Spacing and gap (generated from the size scale) ---------- */
.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-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); }

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

.skip-link { position: absolute; left: var(--size-16); top: -10rem; z-index: 100; padding: var(--size-12) var(--size-16); background: var(--primary-dark-1); color: var(--primary-light-1); border-radius: var(--radius-s); }
.skip-link:focus { top: var(--size-16); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--primary-light-1) 92%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--primary-light-3);
}
.header-inner { min-height: var(--header-h); }
.logo-link { display: block; line-height: 0; }
.logo-img { height: var(--logo-h); width: auto; }
.nav { display: flex; align-items: center; gap: var(--size-32); }
.nav-link {
  position: relative;
  font-size: var(--body-size-s);
  font-weight: 600;
  color: var(--primary-dark-1);
  text-decoration: none;
  padding: var(--size-8) 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: var(--size-4);
  height: 1px;
  background: var(--primary-brand-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--primary-light-3);
  border-radius: var(--button-radius);
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 1.25rem; height: 2px;
  background: var(--primary-dark-1);
  transition: transform 0.3s var(--ease-out), background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -0.375rem; }
.nav-toggle-bars::after { top: 0.375rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(0.375rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-0.375rem) rotate(-45deg); }

/* ---------- Photo band (hero and closing call to action) ---------- */
.photo-band { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; }
.photo-band-tall { min-height: var(--hero-min); }
.photo-band-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.photo-band-hero .photo-band-media { animation: settle 2.6s var(--ease-out) both; }
.photo-band::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--primary-dark-1) 72%, transparent) 0%, color-mix(in srgb, var(--primary-dark-1) 35%, transparent) 55%, transparent 80%),
    linear-gradient(to top, color-mix(in srgb, var(--primary-dark-1) 90%, transparent) 0%, color-mix(in srgb, var(--primary-dark-1) 55%, transparent) 50%, color-mix(in srgb, var(--primary-dark-1) 20%, transparent) 100%);
}
.hero-copy { max-width: 46rem; }
.hero-copy-sub { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--size-16) var(--size-32); }
.arrow-link { display: inline-flex; align-items: center; gap: var(--size-8); text-decoration: none; font-weight: 600; }
.arrow-link .arrow { display: inline-block; transition: transform 0.3s var(--ease-out); }
.arrow-link:hover .arrow { transform: translateX(var(--size-4)); }
.band-center { max-width: 40rem; margin-left: auto; margin-right: auto; }

/* ---------- Proof strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Generic helpers ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
.fieldset-reset { min-width: 0; margin: 0; padding: 0; border: 0; }
.legend { padding: 0; margin-bottom: var(--size-16); }
.self-start { align-self: flex-start; }
.measure-s { max-width: 24rem; }
.measure-m { max-width: 36rem; }
.contents { display: contents; }
.prop-price-block { text-align: right; }

/* ---------- Section heading block ---------- */
.section-head { max-width: 44rem; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; }

/* ---------- Map selector ---------- */
.chips { display: flex; flex-wrap: wrap; }
.chip {
  padding: var(--size-8) var(--size-16);
  font-size: var(--body-size-s);
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary-dark-2);
  background-color: transparent;
  border: 1px solid var(--primary-light-3);
  border-radius: 9999px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip:hover { border-color: var(--primary-dark-1); }
.chip[aria-pressed="true"] { color: var(--primary-light-1); background-color: var(--primary-dark-1); border-color: var(--primary-dark-1); }

.map-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: stretch; }
.map-wrap { position: relative; background: var(--primary-light-2); border-radius: var(--radius-l); overflow: hidden; }
.map-layout > .map-wrap { position: sticky; top: calc(var(--header-h) + var(--size-16)); align-self: start; }
.map-hint {
  position: absolute; left: var(--size-16); top: var(--size-16);
  display: flex; align-items: center; gap: var(--size-8);
  padding: var(--size-8) var(--size-12);
  font-size: var(--body-size-s); font-weight: 600;
  color: var(--primary-dark-1);
  background: color-mix(in srgb, var(--primary-light-1) 90%, transparent);
  border-radius: 9999px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.map-hint::before { content: ""; width: var(--size-8); height: var(--size-8); border-radius: 50%; background: var(--primary-brand-1); animation: pulse 2s ease-out infinite; }
.map-wrap.has-selection .map-hint { opacity: 0; }

.map-panel { display: flex; flex-direction: column; min-height: 0; }
.panel-enter { animation: panelIn 0.5s var(--ease-out) both; }
.area-list { display: flex; flex-direction: column; }
.area-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--size-16);
  width: 100%;
  padding: var(--size-12) var(--size-16);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--primary-light-3);
  transition: background-color 0.25s ease, padding 0.3s var(--ease-out);
}
.area-row:hover, .area-row.is-hover { background-color: var(--primary-light-2); padding-left: var(--size-24); }
.area-row-name { font-family: var(--heading-font); font-size: var(--title-size-7); font-weight: var(--heading-weight); line-height: 1.3; color: var(--primary-dark-1); }
.area-row-meta { font-size: var(--body-size-s); color: var(--primary-dark-3); }
.status-dot { width: var(--size-8); height: var(--size-8); border-radius: 50%; }
.status-dot.dot-sale { background: var(--primary-brand-1); }
.status-dot.dot-contract { background: var(--primary-dark-3); }
.status-dot.dot-sold { background: var(--primary-dark-1); }
.back-link { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--size-8); padding: 0; background: none; border: 0; font-size: var(--body-size-s); font-weight: 600; color: var(--primary-dark-3); }
.back-link:hover { color: var(--primary-dark-1); }
.area-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-m); }
.agent-mini { display: flex; align-items: center; gap: var(--size-12); }
.monogram {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.75rem; height: 2.75rem;
  font-family: var(--heading-font); font-size: var(--body-size-m); font-weight: var(--heading-weight);
  color: var(--primary-dark-1);
  background: var(--primary-transparent-2);
  border-radius: 50%;
}

/* ---------- Home cards ---------- */
.home-card { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease, border-color 0.3s ease; }
.home-card:hover { transform: translateY(calc(var(--size-4) * -1)); box-shadow: var(--shadow-m); border-color: var(--primary-brand-1); }
.home-card-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.home-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.home-card:hover .home-card-media img { transform: scale(1.05); }
.home-card-badge { position: absolute; left: var(--size-12); top: var(--size-12); }
.home-card.is-sold .home-card-media img { filter: grayscale(0.7); }
.price { font-family: var(--heading-font); font-weight: var(--heading-weight); color: var(--primary-dark-1); }
.meta-row { display: flex; flex-wrap: wrap; gap: var(--size-4) var(--size-16); font-size: var(--body-size-s); color: var(--primary-dark-3); }

/* ---------- Valuation form ---------- */
.checks li { position: relative; padding-left: var(--size-32); }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 1.1rem; height: 0.6rem;
  border-left: 2px solid var(--primary-brand-1);
  border-bottom: 2px solid var(--primary-brand-1);
  transform: rotate(-45deg) scale(0.9);
  transform-origin: center;
}
.form-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--size-8); }
.step-bar { height: var(--size-4); background: var(--primary-light-3); border-radius: 9999px; position: relative; overflow: hidden; }
.step-bar::after { content: ""; position: absolute; inset: 0; background: var(--primary-brand-1); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.step-bar.is-done::after { transform: scaleX(1); }
.form-step { animation: panelIn 0.45s var(--ease-out) both; }
.form-step[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: var(--size-8); }
.field-label { font-size: var(--body-size-s); font-weight: 600; color: var(--primary-dark-1); }
.field-input {
  width: 100%;
  height: var(--field-h);
  padding: 0 var(--size-16);
  color: var(--primary-dark-1);
  background-color: var(--primary-light-1);
  border: 1px solid var(--primary-dark-3);
  border-radius: var(--radius-s);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea.field-input { height: auto; padding: var(--size-12) var(--size-16); resize: vertical; }
.field-input:hover { border-color: var(--primary-dark-1); }
.field-input:focus { outline: none; border-color: var(--primary-brand-1); box-shadow: 0 0 0 3px var(--primary-transparent-2); }
.field.has-error .field-input { border-color: var(--status-error); }
.field-error { display: none; font-size: var(--body-size-s); color: var(--status-error); }
.field.has-error .field-error { display: block; }
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.agent-note { display: flex; align-items: center; gap: var(--size-12); padding: var(--size-12) var(--size-16); background: var(--primary-light-2); border-radius: var(--radius-s); min-height: 4rem; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--size-16); }
.btn-text { padding: 0; background: none; border: 0; font-weight: 600; color: var(--primary-dark-3); text-decoration: underline; text-underline-offset: 0.25em; }
.btn-text:hover { color: var(--primary-dark-1); }
button[disabled] { opacity: 0.6; cursor: progress; }
.form-done { animation: panelIn 0.6s var(--ease-out) both; }
.done-mark { display: inline-flex; align-items: center; justify-content: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--primary-brand-1); }
.done-mark::after { content: ""; width: 1.4rem; height: 0.75rem; margin-top: -0.2rem; border-left: 3px solid var(--primary-dark-1); border-bottom: 3px solid var(--primary-dark-1); transform: rotate(-45deg); }

/* ---------- About ---------- */
.about-media { position: relative; }
.about-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; }
.about-quote { position: relative; max-width: 28rem; margin-top: calc(var(--size-48) * -1); margin-left: var(--size-16); margin-right: var(--size-16); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principle-num { font-family: var(--heading-font); font-size: var(--title-size-6); color: var(--primary-brand-2); line-height: 1; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.agent-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease; }
.agent-card:hover { transform: translateY(calc(var(--size-4) * -1)); box-shadow: var(--shadow-m); }
.agent-portrait { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; overflow: hidden; }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--size-4) var(--size-8); font-size: var(--body-size-s); color: var(--primary-dark-3); }
.contact-line { display: flex; flex-wrap: wrap; gap: var(--size-8) var(--size-16); }

/* ---------- Journal ---------- */
.journal-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; }
.post { display: flex; flex-direction: column; text-decoration: none; }
.post-feature { grid-row: 1 / span 2; }
.post-compact { flex-direction: row; align-items: center; }
.post-media { overflow: hidden; border-radius: var(--radius-m); aspect-ratio: 3 / 2; flex: none; }
.post-compact .post-media { width: 38%; aspect-ratio: 1 / 1; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.post:hover .post-media img { transform: scale(1.05); }
.post-title { background-image: linear-gradient(var(--primary-brand-1), var(--primary-brand-1)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size 0.5s var(--ease-out); }
.post:hover .post-title { background-size: 100% 1px; }

/* ---------- Footer ---------- */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.foot-link { text-decoration: none; color: var(--primary-dark-2); background-image: linear-gradient(var(--primary-brand-1), var(--primary-brand-1)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 1px; transition: background-size 0.4s var(--ease-out), color 0.2s ease; }
.foot-link:hover { color: var(--primary-dark-1); background-size: 100% 1px; }


/* ---------- Street map (Leaflet) ---------- */
.map-canvas { width: 100%; height: min(46rem, 82vh); background: var(--primary-light-2); font-family: var(--body-font); }
.map-canvas-mini { height: 18rem; }
.map-canvas .leaflet-control-attribution { font-size: 0.6875rem; background: color-mix(in srgb, var(--primary-light-1) 85%, transparent); }
.map-canvas .leaflet-control-zoom a { color: var(--primary-dark-1); }
.map-wrap .map-hint { z-index: 500; }
.map-switch {
  position: absolute; right: var(--size-16); top: var(--size-16); z-index: 500;
  display: flex; padding: var(--size-4);
  background: var(--primary-light-1); border-radius: 9999px; box-shadow: var(--shadow-m);
}
.map-switch-btn {
  padding: var(--size-8) var(--size-16);
  font-size: var(--body-size-s); font-weight: 600; line-height: 1.2;
  color: var(--primary-dark-2); background: transparent; border: 0; border-radius: 9999px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.map-switch-btn:hover { color: var(--primary-dark-1); }
.map-switch-btn[aria-pressed="true"] { color: var(--primary-light-1); background: var(--primary-dark-1); }
.map-legend {
  position: absolute; left: var(--size-16); bottom: var(--size-16); z-index: 500;
  display: flex; flex-wrap: wrap; gap: var(--size-4) var(--size-16);
  padding: var(--size-8) var(--size-12);
  font-size: var(--body-size-s); font-weight: 600; color: var(--primary-dark-1);
  background: color-mix(in srgb, var(--primary-light-1) 92%, transparent); border-radius: var(--radius-s); box-shadow: var(--shadow-s);
}
.map-legend li { display: flex; align-items: center; gap: var(--size-8); }
.legend-dot { width: var(--size-12); height: var(--size-12); border-radius: 50%; border: 1px solid var(--primary-dark-3); }

/* neighbourhood names on the map */
.nbh-label {
  padding: 0; background: transparent; border: 0; box-shadow: none;
  font-size: var(--body-size-s); font-weight: 700; color: var(--primary-dark-1); letter-spacing: 0.01em;
  text-shadow: 0 0 2px var(--primary-light-1), 0 0 4px var(--primary-light-1), 0 0 8px var(--primary-light-1);
  transition: opacity 0.3s ease;
}
.nbh-label::before { display: none; }
.map-canvas.is-close .nbh-label { opacity: 0; }

/* price tags at the cross streets */
.pin-wrap { background: none; border: 0; }
.price-pin {
  position: absolute; left: 0; top: 0;
  display: inline-block;
  padding: var(--size-4) var(--size-12);
  font-size: var(--body-size-s); font-weight: 700; line-height: 1.5; white-space: nowrap;
  border-radius: 9999px; box-shadow: var(--shadow-m);
  transform: translate(-50%, calc(-100% - 0.5rem));
  transition: transform 0.3s var(--ease-out), background-color 0.25s ease, color 0.25s ease, opacity 0.3s ease;
  cursor: pointer;
}
.price-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -0.3125rem; z-index: -1;
  width: 0.625rem; height: 0.625rem; background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
.pin-for-sale { color: var(--primary-light-1); background-color: var(--primary-dark-1); }
.pin-under-contract { color: var(--primary-dark-1); background-color: var(--primary-light-1); }
.pin-sold { color: var(--primary-dark-1); background-color: var(--primary-light-3); }
.price-pin:hover, .price-pin.is-hover, .leaflet-marker-icon:focus-visible .price-pin { color: var(--primary-dark-1); background-color: var(--primary-brand-1); transform: translate(-50%, calc(-100% - 0.75rem)) scale(1.08); }
.price-pin.is-active { color: var(--primary-dark-1); background-color: var(--primary-brand-1); transform: translate(-50%, calc(-100% - 0.75rem)) scale(1.12); animation: pinDrop 0.6s var(--ease-out); }
.price-pin.is-dim { opacity: 0.25; }
@keyframes pinDrop { 0% { transform: translate(-50%, calc(-100% - 2rem)) scale(1.12); } 60% { transform: translate(-50%, calc(-100% - 0.5rem)) scale(1.12); } 100% { transform: translate(-50%, calc(-100% - 0.75rem)) scale(1.12); } }

/* the card that opens on a price tag */
.home-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: var(--radius-m); box-shadow: var(--shadow-l); }
.home-popup .leaflet-popup-content { margin: 0; width: 16.25rem !important; }
.home-popup .leaflet-popup-close-button { z-index: 2; width: 1.75rem !important; height: 1.75rem !important; top: var(--size-8) !important; right: var(--size-8) !important; color: var(--primary-dark-1) !important; background: var(--primary-light-1); border-radius: 50%; line-height: 1.75rem !important; }
.map-popup { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.map-popup-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.map-popup-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.map-popup:hover .map-popup-media img { transform: scale(1.05); }
.map-popup-body { display: flex; flex-direction: column; gap: var(--size-4); padding: var(--size-16); }
.map-popup-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--size-8); margin-top: var(--size-4); }
.home-popup .meta-row { gap: var(--size-4) var(--size-12); }

/* ---------- Agent photos ---------- */
.avatar { width: 2.75rem; height: 2.75rem; flex: none; object-fit: cover; object-position: 50% 20%; border-radius: 50%; }
.avatar-lg { width: 4rem; height: 4rem; }
.agent-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.agent-card:hover .agent-portrait img { transform: scale(1.04); }

/* ---------- Text on photos ---------- */
.photo-label {
  align-self: flex-start;
  padding: var(--size-8) var(--size-12);
  color: var(--primary-light-1);
  background: color-mix(in srgb, var(--primary-dark-1) 62%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 9999px;
}
.home-card-badge.badge-1, .map-popup-media .badge-1 { background-color: var(--primary-light-1); color: var(--primary-brand-2); }

/* ==========================================================================
   PROPERTY TEMPLATE
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--size-8); font-size: var(--body-size-s); color: var(--primary-dark-3); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary-dark-1); text-decoration: underline; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--size-8); height: min(34rem, 62vh); }
.gallery-main { grid-row: 1 / span 2; position: relative; overflow: hidden; border-radius: var(--radius-m) 0 0 var(--radius-m); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 0.5s ease both; }
.gallery-thumb { position: relative; padding: 0; overflow: hidden; border: 0; background: var(--primary-light-3); }
.gallery-thumb:nth-of-type(2) { border-top-right-radius: var(--radius-m); }
.gallery-thumb:nth-of-type(4) { border-bottom-right-radius: var(--radius-m); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out), opacity 0.3s ease; }
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--primary-brand-1); }
.gallery-note { position: absolute; right: var(--size-12); bottom: var(--size-12); padding: var(--size-4) var(--size-12); font-size: var(--body-size-s); color: var(--primary-light-1); background: color-mix(in srgb, var(--primary-dark-1) 70%, transparent); border-radius: 9999px; }
.prop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 23rem; align-items: start; }
.prop-aside { position: sticky; top: calc(var(--header-h) + var(--size-24)); }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; gap: var(--size-4); }
.fact-value { font-family: var(--heading-font); font-size: var(--title-size-6); font-weight: var(--heading-weight); color: var(--primary-dark-1); line-height: 1.2; }
.fact-label { font-size: var(--body-size-s); color: var(--primary-dark-3); }
.btn-block { width: 100%; }
.agent-head { display: flex; align-items: center; gap: var(--size-16); }
.monogram-lg { width: 4rem; height: 4rem; font-size: var(--title-size-6); }
.neighbourhood-card { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: center; }
.sell-nearby { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.more-cta { display: flex; flex-direction: column; justify-content: center; }

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes settle { from { transform: scale(1.07); } to { transform: scale(1); } }
@keyframes panelIn { from { opacity: 0; transform: translateY(var(--size-16)); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(var(--size-24)); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--primary-transparent-2); } 100% { box-shadow: 0 0 0 0.75rem transparent; } }

@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 60rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none;
    flex-direction: column; align-items: stretch;
    gap: var(--size-4);
    padding: var(--size-16) 5% var(--size-24);
    background: var(--primary-light-1);
    border-bottom: 1px solid var(--primary-light-3);
    box-shadow: var(--shadow-m);
  }
  .nav.is-open { display: flex; animation: panelIn 0.3s var(--ease-out) both; }
  .nav-link { padding: var(--size-12) 0; font-size: var(--body-size-m); }
  .nav-link::after { display: none; }
  .nav .btn-solid { margin-top: var(--size-12); }

  .map-layout, .split { grid-template-columns: minmax(0, 1fr); }
  .map-layout > .map-wrap { position: relative; top: auto; }
  .map-canvas { height: 32rem; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prop-layout { grid-template-columns: minmax(0, 1fr); }
  .prop-price-block { text-align: left; }
  .prop-aside { position: static; order: -1; }
  .journal-grid { grid-template-columns: minmax(0, 1fr); }
  .post-feature { grid-row: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .neighbourhood-card { grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); }

  /* Exploring sections scroll sideways, next card peeks out, no scrollbar */
  .team-grid, .more-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-right: -5vw;
    padding-right: 5vw;
  }
  .team-grid::-webkit-scrollbar, .more-grid::-webkit-scrollbar { display: none; }
  .team-grid > *, .more-grid > * { flex: 0 0 min(76%, 20rem); scroll-snap-align: start; }
}

@media (max-width: 40rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto; height: auto; }
  .gallery-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; border-radius: var(--radius-m); }
  .gallery-thumb { aspect-ratio: 1 / 1; border-radius: var(--radius-s) !important; }
  .neighbourhood-card { grid-template-columns: minmax(0, 1fr); }
  .post-compact .post-media { width: 34%; }
  .about-photo { aspect-ratio: 4 / 3; }
  .map-canvas { height: 28rem; }
  .map-legend { right: var(--size-16); }
  .area-row { grid-template-columns: minmax(0, 1fr) auto; }
  .area-row .status-dot { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn-solid, .hero-actions .btn-solid-on-dark { flex: 1 1 auto; }
}

a[href^="tel:"] { white-space: nowrap; }

/* Far out on small screens: price tags become dots, names hide, the hint makes room for the switch */
.map-canvas.is-far .price-pin { width: var(--size-16); height: var(--size-16); padding: 0; font-size: 0; border: 2px solid var(--primary-light-1); transform: translate(-50%, -50%); }
.map-canvas.is-far .price-pin::after { display: none; }
.map-canvas.is-far .price-pin.is-hover, .map-canvas.is-far .price-pin:hover { transform: translate(-50%, -50%) scale(1.3); }
.map-canvas.is-far .nbh-label { opacity: 0; }
@media (max-width: 40rem) { .map-wrap .map-hint, .map-legend { display: none; } }

/* ==========================================================================
   PROTOTYPE v2 ADDITIONS
   ========================================================================== */
.nav-phone { color: var(--primary-dark-2); }
.self-end { align-self: flex-end; }

/* hero: three reasons to trust, right under the action */
.hero-trust { display: flex; flex-wrap: wrap; gap: var(--size-8) var(--size-24); }
.hero-trust li { position: relative; padding-left: var(--size-24); }
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: 0.4em;
  width: 0.8rem; height: 0.45rem;
  border-left: 2px solid var(--primary-brand-1); border-bottom: 2px solid var(--primary-brand-1);
  transform: rotate(-45deg);
}

/* results */
.results-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.result-card { overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease; }
.result-card:hover { transform: translateY(calc(var(--size-4) * -1)); box-shadow: var(--shadow-m); }
.result-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--size-8); margin: 0; padding: var(--size-12) 0; border-top: 1px solid var(--primary-light-3); border-bottom: 1px solid var(--primary-light-3); }
.result-figures dt { font-size: var(--body-size-s); color: var(--primary-dark-3); }
.result-figures dd { margin: 0; font-family: var(--heading-font); font-size: var(--title-size-7); color: var(--primary-dark-1); }

/* how we sell */
.section-divider { border-top: 1px solid var(--primary-light-3); }
.process { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: start; }
.steps { position: relative; }
.step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--size-20); padding-bottom: var(--size-32); }
.step:not(:last-child)::before { content: ""; position: absolute; left: 1.25rem; top: 2.75rem; bottom: var(--size-4); width: 1px; background: var(--primary-light-3); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  font-family: var(--heading-font); font-size: var(--body-size-l); color: var(--primary-dark-1);
  background: var(--primary-transparent-2);
}
.step-num-s { width: 2rem; height: 2rem; font-size: var(--body-size-m); }
.showcase { position: sticky; top: calc(var(--header-h) + var(--size-24)); }
.showcase-photo { position: relative; margin: 0; }
.showcase-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.showcase-photo .photo-label { position: absolute; left: var(--size-16); bottom: var(--size-16); text-transform: none; letter-spacing: 0; font-weight: 600; }
.showcase-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.callout { background-color: var(--primary-transparent-1); border-color: var(--primary-transparent-2); }
.floorplan { width: 100%; height: auto; }
.fp-wall { fill: none; stroke: var(--primary-dark-1); stroke-width: 2; }
.fp-label { font-family: var(--body-font); font-size: 10px; fill: var(--primary-dark-3); text-anchor: middle; }

/* reviews */
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--size-8); align-self: flex-end; }
.rating-stars { color: var(--primary-brand-1); letter-spacing: 0.1em; }
.reviews { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: var(--size-24); padding: var(--size-32); border: 1px solid color-mix(in srgb, var(--primary-light-1) 18%, transparent); border-radius: var(--radius-m); }
.review blockquote { margin: 0; }
.review-lg { background: color-mix(in srgb, var(--primary-light-1) 6%, transparent); }
.review-who { display: flex; align-items: center; gap: var(--size-12); color: var(--primary-light-3); }

/* valuation */
.form-steps-2 { grid-template-columns: repeat(2, 1fr); }
.next-steps li { display: flex; align-items: flex-start; gap: var(--size-12); }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--size-8); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span {
  display: flex; align-items: center; justify-content: center; height: var(--field-h);
  font-weight: 600; color: var(--primary-dark-2);
  border: 1px solid var(--primary-dark-3); border-radius: var(--radius-s); cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.segmented input:checked + span { color: var(--primary-light-1); background: var(--primary-dark-1); border-color: var(--primary-dark-1); }
.segmented input:focus-visible + span { outline: 0.125rem solid var(--primary-brand-2); outline-offset: 0.125rem; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.faq-item { border-bottom: 1px solid var(--primary-light-3); }
.faq-item summary { display: flex; justify-content: space-between; gap: var(--size-16); padding: var(--size-20) 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--body-font); color: var(--primary-brand-2); transition: transform 0.3s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: var(--size-20); max-width: 40rem; animation: fadeIn 0.4s ease both; }

/* property: costs and ownership */
.cost-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cost { display: flex; flex-direction: column; gap: var(--size-4); }
.ownership-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* sticky contact bar on phones */
.mobile-bar { display: none; }
@media (max-width: 60rem) {
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    display: grid; grid-template-columns: 1fr 2fr; gap: var(--size-8);
    padding: var(--size-12) 5%;
    background: color-mix(in srgb, var(--primary-light-1) 94%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--primary-light-3);
  }
  body { padding-bottom: 4.5rem; }
  .nav-phone { display: none; }
  .results-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: -5vw; padding-right: 5vw; }
  .results-grid::-webkit-scrollbar { display: none; }
  .results-grid > * { flex: 0 0 min(76%, 20rem); scroll-snap-align: start; }
  .process, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .showcase { position: static; }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .cost-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .showcase-row, .ownership-split { grid-template-columns: minmax(0, 1fr); }
  .review { padding: var(--size-24); }
}

a.chip { text-decoration: none; display: inline-block; }

/* ==========================================================================
   PROTOTYPE v3: VISUAL LANGUAGE
   Framed hero, display type, glass cards, pill buttons with an arrow icon,
   photo cards with pills, editorial numbered list, scroll-inked statement.
   ========================================================================== */

/* pill buttons carry a round arrow, which turns on hover */
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.75rem; height: 1.75rem; margin: calc(var(--size-8) * -1) calc(var(--size-20) * -1) calc(var(--size-8) * -1) 0;
  font-size: var(--body-size-s); line-height: 1;
  color: var(--primary-light-1); background: var(--primary-dark-1); border-radius: 50%;
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, color 0.25s ease;
}
a:hover > .btn-icon, button:hover > .btn-icon { transform: rotate(-45deg); }
.btn-solid:hover > .btn-icon { color: var(--primary-dark-1); background: var(--primary-light-1); }
.btn-outline:hover > .btn-icon { color: var(--primary-brand-1); }

/* frames: the hero and the dark bands sit inset with soft corners */
.frame { margin: var(--size-12); border-radius: var(--radius-l); overflow: hidden; }
@media (max-width: 40rem) { .frame { margin: var(--size-8); border-radius: var(--radius-m); } }

/* header: links grouped in a soft pill on desktop */
@media (min-width: 60.0625rem) {
  .nav { gap: var(--size-4); padding: var(--size-4); background: var(--primary-light-2); border-radius: 9999px; }
  .nav-link { padding: var(--size-8) var(--size-16); border-radius: 9999px; transition: background-color 0.25s ease; }
  .nav-link::after { display: none; }
  .nav-link:hover, .nav-link[aria-current="page"] { background: var(--primary-light-1); }
  .nav .btn-solid { padding: var(--size-12) var(--size-24); }
}

/* hero */
.hero-v3 {
  min-height: min(calc(100vh - var(--header-h) - var(--size-24)), 60rem);
  grid-template-rows: 1fr auto auto;
  align-items: stretch;
  row-gap: var(--size-32);
  padding-top: var(--size-64);
  padding-bottom: var(--size-24);
}
.hero-v3-top { align-self: end; }
.hero-display { max-width: 13ch; letter-spacing: -0.02em; }
.hero-v3-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; }
.hero-v3-copy { max-width: 36rem; }
.glass-card {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; gap: var(--size-16);
  padding: var(--size-12);
  text-decoration: none;
  background: color-mix(in srgb, var(--primary-light-1) 14%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--primary-light-1) 28%, transparent);
  border-radius: var(--radius-m);
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease;
}
.glass-card:hover { transform: translateY(calc(var(--size-4) * -1)); background: color-mix(in srgb, var(--primary-light-1) 22%, transparent); }
.glass-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-s); }
.glass-kicker { align-self: flex-start; padding: var(--size-4) var(--size-8); font-size: var(--body-size-s); font-weight: 700; color: var(--primary-dark-1); background: var(--primary-brand-1); border-radius: 9999px; line-height: 1.2; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--size-24); margin: 0; padding-top: var(--size-24); border-top: 1px solid color-mix(in srgb, var(--primary-light-1) 25%, transparent); }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: var(--size-4); }
.hero-stats dd { margin: 0; }

/* statement */
.statement { display: grid; grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr); align-items: start; }
.statement-text { color: var(--primary-dark-1); max-width: 30ch; }
@supports (animation-timeline: view()) {
  .statement-text {
    background: linear-gradient(180deg, var(--primary-dark-1) 45%, var(--primary-light-3) 55%) 0 100% / 100% 220% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: inkIn linear both; animation-timeline: view(); animation-range: entry 15% cover 50%;
  }
}
@keyframes inkIn { to { background-position: 0 0; } }
.avatar-stack { display: flex; }
.avatar-stack img { width: 3rem; height: 3rem; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 2px solid var(--primary-light-1); }
.avatar-stack img + img { margin-left: calc(var(--size-12) * -1); }

/* pills on photos */
.photo-card-pills { position: absolute; left: var(--size-16); right: var(--size-16); top: var(--size-16); display: flex; flex-wrap: wrap; gap: var(--size-8); }
.pill { padding: var(--size-4) var(--size-12); font-size: var(--body-size-s); font-weight: 600; line-height: 1.4; color: var(--primary-dark-1); background: color-mix(in srgb, var(--primary-light-1) 88%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 9999px; }
.pill-solid { color: var(--primary-light-1); background: var(--primary-dark-1); }

/* results: photo cards */
.photo-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 30rem; border-radius: var(--radius-l); }
.photo-card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.photo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--primary-dark-1) 92%, transparent) 0%, color-mix(in srgb, var(--primary-dark-1) 55%, transparent) 45%, transparent 75%); }
.photo-card:hover > img { transform: scale(1.05); }
.photo-card-body { padding: var(--size-24); }
.photo-card-story { opacity: 0.85; }

/* how we sell: intro with collage, then an editorial numbered list */
.sell-intro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: end; }
.collage { position: relative; margin: 0; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: var(--size-16); }
.collage > div { position: relative; overflow: hidden; border-radius: var(--radius-l); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.collage > div:hover img { transform: scale(1.05); }
.collage-a { grid-row: 1 / span 2; aspect-ratio: 4 / 5; }
.collage-b { display: flex; flex-direction: column; justify-content: space-between; gap: var(--size-12); padding: var(--size-16); }
.collage-c { aspect-ratio: 4 / 3; }
.collage-label { position: absolute; left: var(--size-12); bottom: var(--size-12); padding: var(--size-4) var(--size-12); font-size: var(--body-size-s); font-weight: 600; color: var(--primary-dark-1); background: var(--primary-light-1); border-radius: 9999px; }
.collage-b .collage-label { position: static; align-self: flex-start; background: var(--primary-light-2); }
.step-rows { border-top: 1px solid var(--primary-dark-1); }
.step-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 22rem); align-items: baseline; gap: var(--size-24); padding: var(--size-24) 0; border-bottom: 1px solid var(--primary-light-3); transition: padding-left 0.4s var(--ease-out), background-color 0.3s ease; }
.step-row:hover { padding-left: var(--size-12); background: var(--primary-light-2); }
.step-row-num { font-size: var(--body-size-s); font-weight: 700; color: var(--primary-brand-2); letter-spacing: 0.08em; }

/* team: name on the portrait */
.team-card { display: flex; flex-direction: column; gap: var(--size-12); }
.team-photo { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-l); display: flex; align-items: flex-end; }
.team-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 0.8s var(--ease-out); }
.team-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, color-mix(in srgb, var(--primary-dark-1) 85%, transparent) 0%, transparent 50%); }
.team-card:hover .team-photo > img { transform: scale(1.04); }
.team-name { padding: var(--size-20); }
.team-contact { display: grid; grid-template-columns: 1fr 1fr; }
.team-contact a { padding-left: var(--size-12); padding-right: var(--size-12); }

/* v3 responsive */
@media (max-width: 60rem) {
  .hero-v3 { min-height: 0; padding-top: var(--size-64); }
  .hero-v3-bottom, .statement, .sell-intro { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-row { grid-template-columns: 3rem minmax(0, 1fr); }
  .step-row p { grid-column: 2; }
  .photo-card { min-height: 26rem; }
}
@media (max-width: 40rem) {
  .glass-card { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .collage { grid-template-columns: 1fr 1fr; }
  .collage-a { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

@media (max-width: 40rem) { .hero-display { max-width: none; } }

/* mid widths: keep the header on one line */
.nav-link, .nav .btn-solid { white-space: nowrap; }
@media (max-width: 75rem) { .nav-phone { display: none; } }

/* facts and costs never squeeze into each other at mid widths */
.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 75rem) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cost-grid { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.fact-value, .cost .fact-value { overflow-wrap: anywhere; }
