/* =============================================================================
   Kevin Vaz Realty — styles
   Palette: "Stone & Slate Blue" (palette E) — cool stone grounds · charcoal-blue
   ink · misty slate accent. Applied 2026-07-14.
   Type:    Cormorant Garamond (display) + Inter (UI/body)

   TO REVERT to the original espresso/champagne palette: the pre-swap stylesheet
   is saved in full at css/styles-espresso-original.css — copy it back over this
   file (or ask Claude to "revert the colors"). The old :root tokens were:
     --ivory #f5efe6 · --ivory-2 #ece3d5 · --paper #fbf7f0 · --ink #2a1e16
     --ink-2 #4b3b2e · --muted #6a5f4d · --line #e5dccc · --brass #c8a869
     --brass-mid #a5854a · --brass-d #83631f · --sage #46372a
     --logo-on-dark #d8bb7e · --logo-on-light #b8925a
   (plus the hero gradient/veil + nav overlay colors further down, all tagged
   with "PALETTE-E" comments so they're findable.)
   ========================================================================== */

:root {
  /* Stone grounds · slate accent — variable NAMES kept from the old palette
     (--ivory, --brass…) so only values changed; nothing else references new
     names. */
  --ivory:   #f3f4f2;   /* cool stone page */
  --ivory-2: #e9ebe8;   /* deeper stone */
  --paper:   #f8f9f7;   /* clean off-white */
  --ink:     #252b30;   /* charcoal-blue */
  --ink-2:   #48525a;   /* slate text */
  --muted:   #5d6873;   /* cool grey, meets WCAG AA (4.5:1) on light */
  --line:    #e0e3e2;   /* hairline stone */
  --brass:   #93b4c9;   /* misty slate — decorative + text on DARK backgrounds */
  --brass-mid: #52788f; /* slate for LARGE text on light (passes 3:1) */
  --brass-d: #3f6379;   /* deep slate for small text/links on light (passes 4.5:1) */
  --sage:    #262d33;   /* cool boardroom panel (was walnut) */
  --white:   #ffffff;

  /* logo — pale slate on dark grounds, deeper steel on light ones */
  --logo-on-dark:  #a9c4d6;
  --logo-on-light: #587c93;

  --shadow-sm: 0 2px 10px rgba(20, 24, 28, .06);
  --shadow-md: 0 18px 50px -22px rgba(20, 24, 28, .35);
  --shadow-lg: 0 40px 90px -40px rgba(20, 24, 28, .45);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Libre Franklin", system-ui, -apple-system, sans-serif;

  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* --------------------------------------------------------------- layout --- */
.section { padding: clamp(4.5rem, 9vw, 8.5rem) clamp(1.25rem, 5vw, 3rem); }
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: .35rem 0 0;
  color: var(--ink);
}
.section__title--center { text-align: center; max-width: 20ch; margin-inline: auto; }
.eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-d); /* AA-safe gold on light backgrounds */
  margin: 0;
}
/* eyebrows that sit on DARK panels can use the bright gold */
.experience .eyebrow, .hero__eyebrow { color: var(--brass); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.9rem;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .4s var(--ease), background .35s var(--ease),
              color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}
.btn--solid { background: var(--ink); color: var(--ivory); }
.btn--solid:hover { background: var(--brass); transform: translateY(-3px); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); transform: translateY(-3px); }
.btn--full { width: 100%; }

/* =============================================================== NAV ====== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .5s var(--ease), box-shadow .5s var(--ease),
              padding .5s var(--ease);
  padding: .5rem 0;
}
.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: .9rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  display: flex; flex-direction: row; align-items: center; gap: .9rem;
  line-height: 1; margin-right: auto;
  color: var(--logo-on-light); transition: color .4s var(--ease);
}
.nav__brand-divider { width: 1px; height: 34px; background: currentColor; opacity: .4; }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav__brand-name {
  font-family: var(--sans); font-size: 1.12rem; font-weight: 700;
  letter-spacing: .005em; color: var(--ink); transition: color .4s var(--ease);
}

/* KV house logo (navy + gold, transparent PNG). Rendered as a real image —
   not the old currentColor mask — so the two-tone mark keeps its colors.
   On dark grounds (hero-top nav, footer) the navy would disappear, so those
   contexts show logo-kv-light.png (navy remapped to pale ice, gold kept).

   The nav swaps variants as you scroll past the hero. background-image can't
   animate, so the light variant lives on an ::after layer stacked over the
   color one and CROSSFADES via opacity — same .4s ease as the nav text. */
.brand-logo {
  display: block;
  position: relative;
  background: url("../assets/logo-kv.png") left center / contain no-repeat;
}
.brand-logo::after {
  content: "";
  position: absolute; inset: 0;
  background: url("../assets/logo-kv-light.png") left center / contain no-repeat;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.nav.is-top .brand-logo::after { opacity: 1; }
.footer .brand-logo::after { opacity: 1; } /* footer is always dark — stays ice */
.brand-logo--nav { width: 90px; height: 60px; }
.brand-logo--footer { width: 90px; height: 60px; margin-bottom: .5rem; }
.nav__brand-sub {
  font-size: .54rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--brass-d); margin-top: .34rem; font-weight: 600; /* AA on light nav */
}
.nav.is-top .nav__brand-sub { color: var(--brass); } /* bright over the dark hero */
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 500; position: relative; padding: .3rem 0; color: var(--ink-2);
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--brass); transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-size: .88rem; font-weight: 600; letter-spacing: .02em;
  padding: .35rem 0; border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease); white-space: nowrap;
  font-variant-numeric: lining-nums;
}
.nav__cta:hover { color: var(--brass-d); border-bottom-color: var(--brass-d); }

/* scrolled state */
.nav.is-scrolled {
  background: rgba(243,244,242,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

/* transparent-over-hero state (before scroll) */
.nav.is-top .nav__links a { color: var(--ivory); }
.nav.is-top .nav__brand { color: var(--logo-on-dark); }
.nav.is-top .nav__brand-name { color: var(--ivory); }
.nav.is-top .nav__cta { color: var(--ivory); }
.nav.is-top .nav__burger span { background: var(--ivory); }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: 0; padding: 6px; margin-left: auto;
}
.nav__burger span {
  width: 26px; height: 2px; background: var(--ink); transition: .35s var(--ease);
}

/* =============================================================== HERO ===== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 6rem clamp(1.25rem, 5vw, 3rem) 4rem;
  color: var(--ivory); overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -4;
  background:
    radial-gradient(120% 90% at 78% 15%, #333a40 0%, #22282e 45%, #14181c 100%); /* PALETTE-E (was #3d2c1f/#2a1d14/#1a110b) */
}

/* featured-listing photo behind the headline (set by js; falls back to gradient) */
.hero__photo { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity 1.4s var(--ease);
  /* subtle drift; kept small because the source photo is 1024px and bigger
     scaling visibly softens it on wide screens */
  animation: heroZoom 38s ease-in-out infinite alternate;
  filter: saturate(1.06) contrast(1.04);
  backface-visibility: hidden;
}
.hero__photo img.is-loaded { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.035); } }

/* cool charcoal veil so the headline stays readable over any photo.
   PALETTE-E (was warm espresso rgba(26,17,11,…)) */
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to right,
      rgba(20,24,28,.8) 0%, rgba(20,24,28,.64) 42%,
      rgba(20,24,28,.36) 75%, rgba(20,24,28,.22) 100%),
    linear-gradient(to top, rgba(20,24,28,.7) 0%, transparent 32%);
}

/* small credit for the featured home, bottom-right of the hero */
.hero__featured {
  position: absolute; right: clamp(1.25rem, 5vw, 3rem); bottom: 1.6rem; margin: 0;
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: rgba(245,239,230,.6);
}
.hero__bg::after {
  /* wide, soft gold glow that drifts gently across the hero */
  content: ""; position: absolute;
  inset: -35% -15%;
  background: linear-gradient(100deg,
    transparent 43%,
    rgba(200,168,105,.15) 50%,
    rgba(245,239,230,.07) 54%,
    transparent 62%);
  filter: blur(12px);
  transform: skewX(-9deg);
  animation: sweep 15s ease-in-out infinite alternate;
}
@keyframes sweep {
  from { transform: translateX(-34%) skewX(-9deg); opacity: .6; }
  to   { transform: translateX(34%)  skewX(-9deg); opacity: 1; }
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { max-width: var(--wrap); margin: 0 auto; width: 100%; }
.hero__eyebrow {
  font-size: .74rem; letter-spacing: .34em; text-transform: uppercase;
  color: var(--brass); font-weight: 600; margin: 0 0 1.4rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.9rem, 8vw, 6.4rem); line-height: .98;
  letter-spacing: -0.015em; margin: 0; max-width: 16ch;
}
.hero__title span { display: block; }
.hero__title-accent { color: var(--brass); font-style: italic; font-weight: 400; }
.hero__lede {
  max-width: 46ch; margin: 1.8rem 0 0; font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: rgba(243,244,242,.82); font-weight: 300; line-height: 1.7;
}
.hero__actions { display: flex; gap: 1rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero .btn--ghost { border-color: rgba(243,244,242,.5); color: var(--ivory); }
.hero .btn--ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 1px; height: 56px; overflow: hidden;
}
.hero__scroll-line {
  display: block; width: 1px; height: 100%; background: rgba(243,244,242,.4);
  animation: scrolldown 2.2s var(--ease) infinite;
}
@keyframes scrolldown {
  0% { transform: translateY(-100%); } 100% { transform: translateY(100%); }
}

/* =============================================================== ABOUT ==== */
/* About + "Why Kevin" are ONE continuous dark panel. The .story-band wrapper
   owns the background, aurora, film grain, spotlight, and the closing gold
   hairline; the two sections inside are transparent, so there is no seam.
   Gold — the KV logo color — appears only on the personal thread here. */
.story-band {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--sage); color: var(--ivory);
  /* a whisper of the gold thread closes the story band before the light page resumes */
  border-bottom: 1px solid rgba(200, 168, 105, .16);
}
/* ambient aurora — slow-drifting slate glows behind the whole band */
.story-band::before {
  content: ''; position: absolute; z-index: 0; inset: -12% -10%;
  background:
    radial-gradient(30% 26% at 24% 18%, rgba(147,180,201,.14), transparent 70%),
    radial-gradient(34% 30% at 80% 78%, rgba(82,120,143,.18), transparent 72%),
    radial-gradient(26% 22% at 74% 40%, rgba(147,180,201,.10), transparent 70%);
  filter: blur(8px); animation: xpAurora 26s ease-in-out infinite alternate;
  pointer-events: none;
}
/* a warm glow low in the band adds depth without any texture */
.story-band::after {
  content: ''; position: absolute; z-index: 0; inset: 0; pointer-events: none;
  background: radial-gradient(50% 26% at 50% 104%, rgba(200, 168, 105, .06), transparent 74%);
}
.about {
  position: relative;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem); /* the bridge carries the gap */
}
.about__grid {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5.5rem); align-items: center;
}
/* light-on-dark inversions for the story copy + stats */
.about .eyebrow { color: var(--brass); }
.about__body .section__title { color: var(--ivory); }
.about .stat__num { color: var(--ivory); }
.about .stat__label { color: rgba(243, 244, 242, .62); }

/* entry mark: the same plumb line, lowered from the seam where the light page
   gives way to the story band — the thread's first appearance */
.story-drop {
  position: absolute; top: 0; left: calc(50% - 3.5px); width: 7px;
  display: flex; flex-direction: column; align-items: center; z-index: 1;
}
.story-drop.reveal { transform: none; } /* keep it anchored to the seam */
.story-drop__line {
  width: 1px; height: clamp(40px, 6vh, 60px);
  background: linear-gradient(180deg, rgba(200, 168, 105, .55), rgba(200, 168, 105, .25));
  transform: scaleY(0); transform-origin: top;
  transition: transform .9s var(--ease) .15s;
}
.story-drop__gem {
  width: 7px; height: 7px; margin-top: 9px;
  border: 1px solid rgba(200, 168, 105, .85);
  transform: rotate(45deg) scale(0);
  transition: transform .5s var(--ease) .85s;
}
.story-drop.is-in .story-drop__line { transform: scaleY(1); }
.story-drop.is-in .story-drop__gem { transform: rotate(45deg) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .story-drop__line { transform: scaleY(1); transition: none; }
  .story-drop__gem { transform: rotate(45deg) scale(1); transition: none; }
}

/* the gold plumb line stitching About into "Why Kevin": top line draws down,
   the diamond sets, the bottom line carries on into the next headline */
.story-bridge {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
}
.story-bridge__line {
  width: 1px; height: clamp(40px, 6vh, 64px);
  background: linear-gradient(180deg, transparent, rgba(200, 168, 105, .7));
  transform: scaleY(0); transform-origin: top;
  transition: transform .8s var(--ease) .1s;
}
.story-bridge__line--bottom {
  background: linear-gradient(180deg, rgba(200, 168, 105, .7), transparent);
  transition-delay: .95s;
}
.story-bridge__gem {
  width: 7px; height: 7px; margin: 9px 0;
  border: 1px solid rgba(200, 168, 105, .85);
  transform: rotate(45deg) scale(0);
  transition: transform .5s var(--ease) .7s;
}
.story-bridge.is-in .story-bridge__line { transform: scaleY(1); }
.story-bridge.is-in .story-bridge__gem { transform: rotate(45deg) scale(1); }
/* pull "Why Kevin" up to meet the line so the hand-off feels continuous */
.experience.section { padding-top: clamp(2.2rem, 4vw, 3.5rem); }

/* both story eyebrows carry the plumb line's small gold diamond — the same
   mark, three places, one thread */
.about .eyebrow::before, .experience__head .eyebrow::before {
  content: ''; display: inline-block; width: 5px; height: 5px;
  margin-right: .65rem; vertical-align: 2px;
  border: 1px solid rgba(200, 168, 105, .8); transform: rotate(45deg);
}

/* tiles rise into place one after another, then hand over to the live
   tilt/spotlight behavior (animation uses backwards fill so it never
   pins the transform afterwards) */
.xp.reveal { opacity: 1; transform: none; } /* container stays put; tiles move */
.xp .tile { opacity: 0; }
.xp.is-in .tile { opacity: 1; animation: tileRise .7s var(--ease) backwards; }
.xp.is-in .tile:nth-child(2) { animation-delay: .14s; }
.xp.is-in .tile:nth-child(3) { animation-delay: .28s; }
.xp.is-in .tile:nth-child(4) { animation-delay: .46s; }
@keyframes tileRise {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
}
@media (prefers-reduced-motion: reduce) {
  .xp.is-in .tile { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .story-bridge__line, .story-bridge__gem,
  .about__photo::before { transition: none; }
  .story-bridge__line { transform: scaleY(1); }
  .story-bridge__gem { transform: rotate(45deg) scale(1); }
}
.about__photo { position: relative; }
/* fine gold hairline that slides out from behind the portrait when it
   reveals — the same "personal gold" as the plumb line below */
.about__photo::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border: 1px solid rgba(200, 168, 105, .45); border-radius: 3px;
  opacity: 0; transition: transform 1s var(--ease) .35s, opacity 1s var(--ease) .35s;
}
.about__photo.is-in::before { opacity: 1; transform: translate(-14px, -14px); }
.about__photo-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden;
  background: linear-gradient(135deg, var(--ivory-2), #dde1de); /* PALETTE-E (was #e6dfd0) */
  box-shadow: var(--shadow-lg);
}
.about__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.about__photo-frame img.is-missing { display: none; }
.about__photo-fallback {
  position: absolute; inset: 0; display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: .4rem; text-align: center;
  color: var(--muted); font-size: .85rem; letter-spacing: .04em;
}
.about__photo-frame img.is-missing + .about__photo-fallback { display: flex; }
.about__photo-fallback span { font-family: var(--serif); font-size: 1.3rem; color: var(--ink-2); }
.about__photo-fallback small { font-size: .72rem; letter-spacing: .06em; }
.about__badge {
  position: absolute; bottom: -1.4rem; right: -1rem;
  background: #333c43; color: var(--ivory); padding: 1rem 1.4rem;
  border: 1px solid rgba(147, 180, 201, .22); /* crisp on the dark panel */
  border-radius: 3px; box-shadow: var(--shadow-md); line-height: 1.25;
  font-size: .82rem; letter-spacing: .04em;
}
.about__badge strong {
  display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600;
  color: var(--brass); letter-spacing: .02em;
}
.about__body .section__title { max-width: 18ch; }
.about__prose { margin-top: 1.6rem; }
.about__prose p { color: rgba(243, 244, 242, .82); margin: 0 0 1.15rem; max-width: 56ch; }
.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin-top: 2.4rem; padding-top: 2.2rem; border-top: 1px solid rgba(147, 180, 201, .18);
}
.stat__num {
  display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600; color: var(--ink); line-height: 1;
}
.stat__num sup { font-size: .5em; color: var(--brass-d); }
.stat__unit { font-size: .45em; color: var(--brass-d); margin-left: 2px; vertical-align: super; }
.stat__label {
  display: block; margin-top: .55rem; font-size: .78rem; color: var(--muted);
  letter-spacing: .02em; line-height: 1.4;
}

/* ============================================================ LISTINGS ==== */
/* gentle top-down wash so the section doesn't sit flat after the hero's fade */
.listings { background: linear-gradient(180deg, var(--paper) 0%, var(--ivory) 34%); }
.listings__head { max-width: var(--wrap); margin: 0 auto; text-align: center; }
.listings__head #listings-title { color: var(--brass-mid); } /* gold header, AA-safe (3:1 large) */
/* the sub-line is Kevin speaking ("ask me about any of them") — serif voice */
.listings__sub {
  font-family: var(--serif); font-style: italic; font-size: 1.12rem;
  color: var(--ink-2); margin: 1rem auto 0; max-width: 46ch;
}
.listings__tabs {
  max-width: var(--wrap); margin: 2.6rem auto 0; display: flex; gap: .5rem;
  justify-content: center; flex-wrap: wrap;
}
.tab {
  padding: .7rem 1.5rem; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 3px;
  transition: all .35s var(--ease);
}
.tab:hover { color: var(--ink); border-color: var(--ink); }
.tab.is-active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.tab__count { opacity: .55; margin-left: .4rem; font-variant-numeric: tabular-nums; }

/* listings carousel: arrows either side of a horizontally sliding row */
.listings__carousel {
  max-width: calc(var(--wrap) + 130px); margin: 3rem auto 0;
  display: flex; align-items: center; gap: .9rem;
}
.listings__viewport {
  flex: 1; min-width: 0; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 12px 4px 24px; margin: -12px -4px -8px; /* room for card hover shadow */
}
.listings__viewport::-webkit-scrollbar { display: none; }
.listings__grid {
  display: flex; gap: 1.6rem; min-height: 200px;
}
.listings__grid > .card {
  flex: 0 0 calc((100% - 3.2rem) / 3); /* 3 cards per view on desktop */
  scroll-snap-align: start;
}
/* Single Family tab: 2 rows × 3 columns per view (6 homes per scroll), so the
   cards stay large (3-up width) and the carousel pages horizontally. */
.listings__grid--six {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3.2rem) / 3);
}
.listings__grid--six > .card {
  flex: none;
}
.listings__nav {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 3px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
  font-size: 1.6rem; line-height: 1; display: flex; align-items: center;
  justify-content: center; padding-bottom: 4px;
  transition: background .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), opacity .3s var(--ease);
}
.listings__nav:hover:not(:disabled) { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.listings__nav:disabled { opacity: .3; cursor: default; }
.listings__loading, .listings__empty {
  width: 100%; text-align: center; color: var(--muted);
  padding: 3rem 0; font-style: italic;
}
@media (max-width: 900px) {
  .listings__grid > .card { flex-basis: calc((100% - 1.6rem) / 2); } /* 2-up */
  .listings__grid--six { grid-auto-columns: calc((100% - 1.6rem) / 2); } /* SF: 2 rows × 2 cols */
}
@media (max-width: 620px) {
  .listings__grid > .card { flex-basis: 100%; } /* 1-up, swipeable */
  .listings__grid--six { grid-template-rows: 1fr; grid-auto-columns: 100%; } /* 1-up single row */
  .listings__carousel { gap: .5rem; }
  .listings__nav { width: 40px; height: 40px; }
}

/* card */
.card {
  background: var(--white); border-radius: 4px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ivory-2); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease); background: var(--ivory-2);
  filter: saturate(1.04) contrast(1.02);
}
.card:hover .card__media img { transform: scale(1.06); }
/* soft base scrim so the price chip sits in shadow, not pasted on grass */
.card__media::after {
  content: ''; position: absolute; inset: 55% 0 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(20, 24, 28, .28));
}
.card__price {
  position: absolute; left: 0; bottom: 0; z-index: 1; background: var(--ink);
  color: var(--ivory); font-family: var(--serif); font-size: 1.4rem;
  font-weight: 600; padding: .45rem 1rem; letter-spacing: .01em;
  border-radius: 0 3px 0 0;
}
.card__tag {
  position: absolute; top: .8rem; right: .8rem; background: rgba(251,249,244,.92);
  color: var(--brass-d); font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; padding: .35rem .7rem; border-radius: 3px;
  backdrop-filter: blur(4px);
}
.card__body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.card__addr { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.card__city { color: var(--muted); font-size: .82rem; margin-top: .25rem; letter-spacing: .03em; }
.card__facts {
  display: flex; gap: 1.1rem; margin: 1.05rem 0 1.2rem; padding-top: 1.05rem;
  border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2);
}
.card__fact { display: flex; align-items: baseline; gap: .3rem; }
.card__fact b { font-weight: 600; font-size: .92rem; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.card__dist { font-size: .72rem; color: var(--muted); letter-spacing: .03em; }
.card__link {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--brass-d); display: inline-flex; align-items: center; gap: .4rem;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.card__link:hover { gap: .7rem; color: var(--ink); }

.listings__meta {
  max-width: var(--wrap); margin: 2.4rem auto 0; text-align: center;
  font-size: .74rem; color: var(--muted); letter-spacing: .03em;
}

/* ============================================================ EXPERIENCE == */
/* transparent: the .story-band wrapper carries the background and atmosphere */
.experience { position: relative; color: var(--ivory); }
.experience .eyebrow { color: var(--brass); }
.experience .section__title { color: var(--ivory); }
.experience__head { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; text-align: center; }
.experience__head .eyebrow { text-align: center; }

@keyframes xpAurora {
  from { transform: translate3d(-3%, -2%, 0) scale(1); }
  to   { transform: translate3d(4%, 3%, 0) scale(1.12); }
}

/* band-wide cursor spotlight: the same soft light that follows the pointer
   inside each tile, carried across the whole story band (position is set by
   js/main.js) */
.experience__spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(560px 560px at var(--sx, 50%) var(--sy, 50%),
              rgba(147, 180, 201, .09), transparent 62%);
  transition: opacity .6s var(--ease);
}
.story-band:hover .experience__spot { opacity: 1; }

/* fine film grain over the whole section for a premium, less-digital finish */
.experience__grain {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* modern bento grid ------------------------------------------------------ */
.xp {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(.9rem, 1.6vw, 1.25rem);
}
.tile--feature { grid-column: 1; grid-row: span 2; }
.tile--stats   { grid-column: 1 / -1; }

/* the tile shell: thin outer ring holds the animated gradient border */
.tile {
  position: relative; border-radius: 14px; padding: 1px; /* 1px = border thickness */
  background: rgba(243,244,242,.1);
  transition: transform .5s var(--ease), background .5s var(--ease);
  transform: perspective(900px) rotateX(var(--ry,0deg)) rotateY(var(--rx,0deg));
  transform-style: preserve-3d; will-change: transform;
}
/* pointer-tracking glow that lights the gradient border toward the cursor */
.tile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: radial-gradient(180px 180px at var(--mx,50%) var(--my,50%),
              rgba(147,180,201,.85), rgba(147,180,201,0) 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.tile:hover::before { opacity: 1; }

/* always-on slow sheen sweeping the feature tile's border ring */
.tile--feature::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--sheen, 0deg),
              transparent 0deg, transparent 300deg,
              rgba(147,180,201,.55) 340deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: xpSheen 9s linear infinite; pointer-events: none;
}
@property --sheen { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes xpSheen { to { --sheen: 360deg; } }

/* the frosted inner surface — a clean soft wash, no texture */
.tile__inner, .tile--stats {
  position: relative; height: 100%; border-radius: 13px; overflow: hidden;
  background:
    linear-gradient(165deg, rgba(243,244,242,.07), rgba(243,244,242,.015) 55%),
    var(--sage);
}
.tile__inner { display: flex; flex-direction: column; padding: clamp(1.5rem, 2.6vw, 2.4rem); }

/* soft spotlight wash that follows the cursor across the surface */
.tile__spot {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(340px 340px at var(--mx,50%) var(--my,50%),
              rgba(147,180,201,.14), transparent 60%);
  transition: opacity .45s var(--ease); z-index: 0;
}
.tile:hover .tile__spot, .tile--stats:hover .tile__spot { opacity: 1; }

.tile__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.tile__num {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; letter-spacing: .18em;
  color: rgba(200, 168, 105, .9); font-variant-numeric: lining-nums; /* story gold */
}
.tile__ico {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px;
  color: rgba(212, 185, 130, .9); background: rgba(200, 168, 105, .08);
  border: 1px solid rgba(200, 168, 105, .2);
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.tile__ico svg { width: 21px; height: 21px; }
.tile:hover .tile__ico { background: rgba(200,168,105,.15); transform: translateY(-2px); }

.tile__body { position: relative; z-index: 1; margin-top: auto; padding-top: clamp(2rem, 5vw, 3.5rem); }
.tile__kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  color: rgba(147,180,201,.85); margin: 0 0 .7rem;
}
/* a short gold rule before the kicker that grows on hover */
.tile__kicker::before {
  content: ''; width: 16px; height: 1px; background: rgba(200, 168, 105, .8);
  transition: width .45s var(--ease); transform-origin: left;
}
.tile:hover .tile__kicker::before { width: 30px; }
.tile__title {
  font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ivory);
  font-size: clamp(1.3rem, 1.5vw + 1rem, 1.7rem);
}
/* feature headline: a slow brass shimmer sweeps through the text */
.tile--feature .tile__title {
  font-size: clamp(1.7rem, 2.4vw + 1rem, 2.55rem); max-width: 15ch;
  background: linear-gradient(100deg,
    var(--ivory) 0%, var(--ivory) 38%, #cfe1ec 50%, var(--ivory) 62%, var(--ivory) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: xpShine 7s ease-in-out infinite;
}
@keyframes xpShine { 0%,100% { background-position: 130% 0; } 50% { background-position: -30% 0; } }
.tile__text {
  color: rgba(243,244,242,.7); font-weight: 300; font-size: .93rem; margin: .9rem 0 0; max-width: 46ch;
}

/* signature stat strip */
.tile--stats {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around;
  gap: 1.5rem clamp(1rem,3vw,2.5rem); padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.5rem, 3vw, 2.6rem);
  border: 1px solid rgba(243,244,242,.1);
}
.tile--stats .tile__spot { border-radius: 13px; }
.stat { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .3rem; min-width: 150px; }
.stat__num {
  display: inline-block; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 500; line-height: .95; color: var(--ivory); font-variant-numeric: lining-nums tabular-nums;
}
/* accent underline that draws in under each number when the strip appears */
.stat__num::after {
  content: ''; display: block; height: 2px; margin-top: .5rem; border-radius: 2px;
  background: linear-gradient(90deg, rgba(200, 168, 105, .75), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease) .1s;
}
.xp.is-in .stat__num::after { transform: scaleX(1); }
.stat__lbl { font-size: .82rem; font-weight: 300; color: rgba(243,244,242,.62); line-height: 1.35; max-width: 22ch; }
.stat__div { flex: 0 0 1px; align-self: stretch; background: rgba(243,244,242,.12); z-index: 1; }

/* staggered "assemble" entrance — runs when the bento scrolls into view.
   Targets inner content (not .tile) so the pointer 3D-tilt transform is free. */
.tile__inner, .tile--stats .stat {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.xp.is-in .tile__inner, .xp.is-in .tile--stats .stat { opacity: 1; transform: none; }
.xp .tile:nth-child(1) .tile__inner { transition-delay: .05s; }
.xp .tile:nth-child(2) .tile__inner { transition-delay: .16s; }
.xp .tile:nth-child(3) .tile__inner { transition-delay: .27s; }
.xp.is-in .tile--stats .stat:nth-child(2) { transition-delay: .40s; }
.xp.is-in .tile--stats .stat:nth-child(4) { transition-delay: .50s; }
.xp.is-in .tile--stats .stat:nth-child(6) { transition-delay: .60s; }

@media (max-width: 820px) {
  .xp { grid-template-columns: 1fr; }
  .tile--feature, .tile--stats { grid-column: 1; grid-row: auto; }
  .tile { transform: none !important; }
  .stat__div { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .experience::before,
  .tile--feature::after,
  .tile--feature .tile__title { animation: none; }
  /* skip the entrance motion — show content in its resting state */
  .tile__inner, .tile--stats .stat { opacity: 1; transform: none; transition: none; }
  .stat__num::after { transition: none; }
}

/* ============================================================ CONTACT ===== */
.contact { background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 30%); }
.contact__panel {
  max-width: var(--wrap); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: clamp(2rem, 5vw, 4rem); box-shadow: var(--shadow-lg);
}
.contact__text { color: var(--ink-2); margin: 1.2rem 0 2rem; max-width: 40ch; }
.contact__methods { display: flex; flex-direction: column; gap: 1rem; }
.contact__method {
  display: flex; flex-direction: column; padding: 1rem 1.2rem; border: 1px solid var(--line);
  border-radius: 4px; transition: all .35s var(--ease);
}
.contact__method:hover { border-color: var(--brass); transform: translateX(4px); }
.contact__method-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contact__method-value { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); margin-top: .2rem; }
.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.contact__form label { display: flex; flex-direction: column; gap: .4rem; }
.contact__form label span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact__form input, .contact__form textarea {
  font-family: inherit; font-size: .95rem; padding: .85rem 1rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
  resize: vertical;
}
.contact__form input:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--brass); background: var(--white);
}
/* the reassurance under the button is Kevin's voice — serif italic */
.contact__form-note {
  font-family: var(--serif); font-style: italic; font-size: .92rem;
  color: var(--ink-2); text-align: center; margin: 0;
}

/* ============================================================ FOOTER ====== */
.footer { background: var(--ink); color: rgba(243,244,242,.7); padding: 3.5rem clamp(1.25rem,5vw,3rem); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 1.6rem; }
.footer__brand { color: var(--logo-on-dark); }
.footer__name { display: block; font-family: var(--sans); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; color: var(--ivory); margin-top: .1rem; }
.footer__role { display: block; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin-top: .3rem; }
.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links a { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; transition: color .3s var(--ease); }
.footer__links a:hover { color: var(--brass); }
.footer__legal { font-size: .72rem; line-height: 1.7; max-width: 70ch; margin: 0; color: rgba(243,244,242,.55); }
.footer__eho { display: flex; align-items: center; gap: .55rem; margin-top: .6rem; }
.eho-mark {
  flex: 0 0 auto; width: 22px; height: 22px; background-color: rgba(243,244,242,.55);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2 1 11h3v11h16V11h3L12 2zm0 2.7 6 4.9V20H6v-10.4l6-4.9z"/><path d="M8.5 12.2h7v1.8h-7zM8.5 15.6h7v1.8h-7z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2 1 11h3v11h16V11h3L12 2zm0 2.7 6 4.9V20H6v-10.4l6-4.9z"/><path d="M8.5 12.2h7v1.8h-7zM8.5 15.6h7v1.8h-7z"/></svg>') center / contain no-repeat;
}

/* ============================================================ MODAL ======= */
body.no-scroll { overflow: hidden; }
.modal {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.modal.is-open { display: flex; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(20, 17, 14, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade .4s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal__dialog {
  position: relative; z-index: 1; width: min(940px, 100%);
  max-height: 90vh; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--paper); border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow-lg); animation: pop .5s var(--ease);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(24px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.modal__close {
  position: absolute; top: .8rem; right: .8rem; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; border: 0; line-height: 1;
  font-size: 1.5rem; color: var(--ink); background: rgba(251,249,244,.9);
  box-shadow: var(--shadow-sm); transition: all .3s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--ivory); transform: rotate(90deg); }
.modal__media {
  position: relative; background: #14181c; /* dark gallery panel — PALETTE-E (was #17100b) */
  display: flex; flex-direction: column; justify-content: center;
  min-height: 0; min-width: 0;
}
/* fixed 3:2 photo frame so the image shows at a sensible size (not a zoomed
   crop, and not tiny in a huge box) */
.modal__stage { position: relative; flex: none; aspect-ratio: 3 / 2; min-width: 0; overflow: hidden; }
/* contain so the WHOLE listing photo is visible; the 3:2 frame keeps bars tiny */
.modal__stage img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: pointer; }
.modal__price {
  position: absolute; left: 0; bottom: 0; z-index: 2; background: var(--ink); color: var(--ivory);
  font-family: var(--serif); font-size: 1.7rem; font-weight: 600; padding: .5rem 1.2rem;
}
.modal__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2; background: rgba(251,249,244,.92);
  color: var(--brass-d); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; padding: .38rem .8rem; border-radius: 3px;
}
.modal__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(20,24,28,.5); color: #fff; font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease);
}
.modal__nav:hover { background: var(--ink); }
.modal__nav--prev { left: .7rem; }
.modal__nav--next { right: .7rem; }
.modal__counter {
  position: absolute; bottom: .7rem; right: .7rem; z-index: 2;
  background: rgba(20,24,28,.6); color: var(--ivory); font-size: .72rem;
  letter-spacing: .05em; padding: .28rem .6rem; border-radius: 3px;
}
.modal__thumbs {
  display: flex; gap: .5rem; padding: .6rem; overflow-x: auto;
  background: transparent; scrollbar-width: thin;
}
.modal__thumb {
  flex: 0 0 auto; width: 66px; height: 50px; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 3px; overflow: hidden;
  background: none; opacity: .55; transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.modal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__thumb:hover { opacity: 1; }
.modal__thumb.is-active { opacity: 1; border-color: var(--brass); }
.modal__body {
  padding: clamp(1.5rem, 3vw, 2.4rem); overflow-y: auto; display: flex; flex-direction: column;
  min-width: 0;
}
.modal__addr { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; line-height: 1.15; margin: 0; color: var(--ink); }
.modal__city { color: var(--muted); font-size: .84rem; margin-top: .4rem; letter-spacing: .02em; }
.modal__facts {
  display: flex; gap: 1.4rem; margin: 1.1rem 0; padding: 1rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .9rem; color: var(--ink-2);
}
.modal__fact b { font-weight: 600; font-size: 1.05rem; }
.modal__desc { color: var(--ink-2); font-size: 1rem; line-height: 1.75; }
.modal__desc p { margin: 0 0 .9rem; }
.modal__nudge { color: var(--muted); font-size: .9rem; }
.modal__nudge a { color: var(--brass-d); font-weight: 600; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.modal__nudge a:hover { border-color: var(--brass-d); }
.modal__foot {
  margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center;
  gap: 1.2rem; flex-wrap: wrap;
}
.modal__foot .btn { padding: .8rem 1.5rem; }
.modal__source {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 600; color: var(--muted); transition: color .3s var(--ease);
}
.modal__source:hover { color: var(--brass-d); }

@media (max-width: 760px) {
  .modal__dialog { grid-template-columns: 1fr; max-height: 92vh; }
  .modal__media { max-height: 50vh; }
  .modal__stage { min-height: 200px; }
  .modal__thumb { width: 58px; height: 44px; }
}

/* ========================================================= CONCIERGE ====== */
.cg { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 150; }
.cg__fab {
  width: 58px; height: 58px; border-radius: 50%; border: 1px solid rgba(200,168,105,.45);
  background: var(--ink); color: var(--brass); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.cg__fab:hover { transform: translateY(-3px); background: var(--brass); color: var(--ink); }
.cg.is-open .cg__fab { display: none; }

.cg__panel[hidden] { display: none; } /* keep 'hidden' working despite display:flex */
.cg__panel {
  position: absolute; right: 0; bottom: 0;
  width: min(370px, calc(100vw - 2.4rem));
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column;
  animation: cgPop .45s var(--ease);
}
@keyframes cgPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.cg__head {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ink); color: var(--ivory); padding: .95rem 1.1rem;
}
.cg__title { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.cg__sub { display: block; font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-top: .2rem; }
.cg__close {
  background: none; border: 0; color: var(--ivory); font-size: 1.5rem; line-height: 1;
  padding: .2rem .4rem; cursor: pointer; transition: color .3s var(--ease);
}
.cg__close:hover { color: var(--brass); }

.cg__log {
  height: min(340px, 45vh); overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .6rem; scrollbar-width: thin;
}
.cg__msg { max-width: 88%; padding: .65rem .85rem; border-radius: 10px; font-size: .86rem; line-height: 1.55; }
.cg__msg--bot { background: var(--ivory-2); color: var(--ink-2); border-bottom-left-radius: 3px; align-self: flex-start; }
.cg__msg--user { background: var(--ink); color: var(--ivory); border-bottom-right-radius: 3px; align-self: flex-end; }
.cg__msg a { color: var(--brass-d); font-weight: 600; }

.cg__rec { margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.cg__rec strong { font-family: var(--serif); font-size: 1rem; color: var(--ink); display: block; }
.cg__rec-meta { display: block; font-size: .68rem; letter-spacing: .06em; color: var(--brass-d); margin: .1rem 0 .25rem; text-transform: uppercase; }
.cg__cta { display: block; margin-top: .7rem; font-weight: 500; color: var(--ink); }

.cg__dots { display: inline-flex; gap: 4px; padding: .2rem 0; }
.cg__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: cgBlink 1.2s infinite; }
.cg__dots i:nth-child(2) { animation-delay: .18s; }
.cg__dots i:nth-child(3) { animation-delay: .36s; }
@keyframes cgBlink { 0%, 70%, 100% { opacity: .25; } 35% { opacity: 1; } }

.cg__chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .4rem; }
.cg__chip {
  font-size: .72rem; padding: .42rem .75rem; border-radius: 3px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  cursor: pointer; transition: all .3s var(--ease);
}
.cg__chip:hover { border-color: var(--brass); color: var(--brass-d); }

.cg__form { display: flex; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid var(--line); background: var(--white); }
.cg__form input {
  flex: 1; border: 1px solid var(--line); border-radius: 6px; padding: .6rem .75rem;
  font-family: inherit; font-size: .86rem; color: var(--ink); background: var(--paper);
}
.cg__form input:focus { outline: none; border-color: var(--brass); background: var(--white); }
.cg__form button {
  width: 42px; border: 0; border-radius: 6px; background: var(--ink); color: var(--ivory);
  font-size: 1.1rem; cursor: pointer; transition: background .3s var(--ease);
}
.cg__form button:hover { background: var(--brass); }
.cg__note { margin: 0; padding: .5rem 1rem .8rem; font-size: .64rem; color: var(--muted); background: var(--white); }

@media (max-width: 560px) {
  .cg { right: .9rem; bottom: .9rem; }
  .cg__panel { width: calc(100vw - 1.8rem); }
  .cg__log { height: min(300px, 42vh); }
}

/* ============================================================ REVEAL ====== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================ VALUATION === */
.valuation { background: var(--ivory); }
.valuation__panel {
  max-width: var(--wrap); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
/* Buyers panel mirrors the Sellers layout (form on the left, pitch on the
   right) so the two adjacent sections don't read as identical blocks. */
.valuation__panel--reverse { grid-template-columns: 1fr 1fr; }
.valuation__panel--reverse .valuation__intro { order: 2; }
.valuation__panel--reverse .vform { order: 1; }

/* quick mortgage-estimate widget under the Buyers pitch copy */
.mcalc {
  margin-top: 1.6rem; padding: 1.3rem 1.4rem; background: var(--white);
  border: 1px solid var(--line); border-radius: 6px;
}
.mcalc__title { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 .9rem; }
.mcalc__row { display: grid; grid-template-columns: 1.3fr .8fr .8fr .8fr; gap: .7rem; }
.mcalc__breakdown {
  list-style: none; margin: 1.1rem 0 0; padding: .9rem 0 0;
  border-top: 1px solid var(--line);
}
.mcalc__breakdown li {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: .85rem; color: var(--ink-2); padding: .3rem 0;
}
.mcalc__breakdown li span em { font-style: normal; color: var(--muted); font-size: .78rem; }
.mcalc__breakdown li b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.mcalc__result {
  margin: .5rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem;
}
.mcalc__result strong { color: var(--brass-d); font-size: 1.5rem; font-weight: 700; }
.mcalc__note { font-family: var(--sans); font-size: .7rem; color: var(--muted); font-weight: 400; flex-basis: 100%; }
.valuation__intro { align-self: center; }
.valuation__intro .section__title { max-width: 15ch; margin-bottom: 1.2rem; }
.valuation__text { color: var(--ink-2); max-width: 46ch; margin: 0 0 1.8rem; }
.valuation__points { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 1.1rem; }
.valuation__points li {
  position: relative; padding-left: 1.7rem; color: var(--ink-2);
  font-size: .95rem; font-weight: 300; line-height: 1.5;
}
.valuation__points li::before {
  content: ""; position: absolute; left: 0; top: .18em;
  width: 1.05rem; height: 1.05rem; border-radius: 50%;
  background: var(--brass); opacity: .18;
}
.valuation__points li::after {
  content: ""; position: absolute; left: .34rem; top: .46em;
  width: .34rem; height: .16rem; border-left: 2px solid var(--brass-d);
  border-bottom: 2px solid var(--brass-d); transform: rotate(-45deg);
}
.valuation__points strong { color: var(--ink); font-weight: 600; }
.valuation__assure {
  display: flex; align-items: center; gap: .55rem;
  font-size: .8rem; color: var(--muted); margin: 0;
}
.valuation__assure-mark {
  width: 1rem; height: 1rem; flex: none; border-radius: 3px;
  background: var(--brass); opacity: .5;
  -webkit-mask: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.5 8.5-8 11-4.5-2.5-8-6-8-11V5z' fill='black'/%3E%3C/svg%3E");
          mask: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.5 8.5-8 11-4.5-2.5-8-6-8-11V5z' fill='black'/%3E%3C/svg%3E");
}

/* the multi-step form card */
.vform {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 6px; padding: clamp(1.6rem, 3.5vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.vform__head { margin-bottom: 1.6rem; }
.vform__bar {
  display: block; height: 4px; border-radius: 4px; background: var(--ivory-2);
  overflow: hidden;
}
.vform__bar i {
  display: block; height: 100%; width: 33.33%; border-radius: 4px;
  background: linear-gradient(90deg, var(--brass-mid), var(--brass));
  transition: width .45s var(--ease);
}
.vform__stepmeta {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin: .7rem 0 0;
}
.vform__stepnum { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.vform__stepnum b { color: var(--brass-d); }
.vform__steptitle { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
/* buyers' step-1 title only ("Start My Search") — cursive blue accent */
#bform-title { font-style: italic; font-weight: 700; color: var(--brass-d); }

.vform__step { display: none; flex-direction: column; gap: 1rem; animation: vfStep .45s var(--ease); }
.vform__step.is-active { display: flex; }
@keyframes vfStep { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.vform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vform__row:has(.vfield--sm:nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }

.vfield { display: flex; flex-direction: column; gap: .4rem; }
.vfield span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.vfield span em { text-transform: none; letter-spacing: 0; font-style: italic; font-weight: 400; opacity: .8; }
.vfield input, .vfield select, .vfield textarea {
  font-family: inherit; font-size: .95rem; padding: .85rem 1rem; color: var(--ink); width: 100%;
  background: var(--paper); border: 1px solid var(--line); border-radius: 3px;
  transition: border-color .3s var(--ease), background .3s var(--ease); resize: vertical;
}
.vfield select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236a5f4d' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: .7rem; padding-right: 2.4rem;
}
.vfield input:focus, .vfield select:focus, .vfield textarea:focus {
  outline: none; border-color: var(--brass); background: var(--white);
}
.vfield.is-invalid input, .vfield.is-invalid select {
  border-color: #b4472f; background: #fdf5f2;
}

/* author [hidden] override: .btn/.vform__step carry display rules that
   outrank the UA [hidden]{display:none}, so hidden nav buttons would still
   show without this */
.vform [hidden] { display: none !important; }
.vform__nav { display: flex; gap: .8rem; margin-top: 1.7rem; }
.vform__nav .btn { flex: 1; padding: .95rem 1.5rem; }
.vform__nav .btn--ghost { flex: 0 0 auto; min-width: 6.5rem; }
.vform__note { font-size: .72rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }

.vform__done { text-align: center; padding: 1.5rem .5rem .5rem; animation: cgPop .5s var(--ease); }
.vform__done-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%; margin-bottom: 1rem;
  background: var(--brass); color: var(--white); font-size: 1.5rem; font-weight: 700;
}
.vform__done h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin: 0 0 .6rem; }
.vform__done p { color: var(--ink-2); font-size: .95rem; max-width: 38ch; margin: 0 auto; }

/* Netlify Forms honeypot: present in the DOM (so spam bots fill it and get
   filtered) but pulled off-screen — not `display:none`, which some bots skip. */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

/* form failure message (shown by js/main.js only if a submit POST fails) */
.vform__error,
.contact__form-error {
  text-align: center; font-size: .85rem; color: #b3261e; margin: 1rem 0 0; line-height: 1.5;
}
.vform__error a, .contact__form-error a { color: inherit; text-decoration: underline; }

/* contact-form success state — mirrors the .vform__done treatment */
.contact__done { text-align: center; padding: 1.5rem .5rem .5rem; animation: cgPop .5s var(--ease); }
.contact__done-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%; margin-bottom: 1rem;
  background: var(--brass); color: var(--white); font-size: 1.5rem; font-weight: 700;
}
.contact__done h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); margin: 0 0 .6rem; }
.contact__done p { color: var(--ink-2); font-size: .95rem; max-width: 38ch; margin: 0 auto; }

/* ===================================================== PAGE HERO / CTA ==== */
/* Compact banner at the top of the standalone Buyers/Sellers pages. Light,
   so the (transparent, dark-text) nav reads over it without needing the
   homepage hero's is-top handling. */
.page-hero {
  padding: 9rem clamp(1.25rem, 5vw, 3rem) 3.5rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--ivory-2) 100%);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.page-hero__inner { max-width: 780px; margin: 0 auto; }
.page-hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 5.5vw, 4rem); line-height: 1.05;
  letter-spacing: -0.01em; color: var(--ink); margin: .5rem 0 0;
}
.page-hero__lede { color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; max-width: 56ch; margin: 1.2rem auto 0; }

/* Buyers hero — dark, photo-led, matching the homepage hero's language:
   twilight architecture under a heavy charcoal veil, ivory serif, one bright
   slate accent. */
.page-hero--buyers, .page-hero--sellers {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  min-height: min(76vh, 780px);
  padding: 7rem clamp(1.25rem, 5vw, 3rem) 4rem;
  background: #14181c; border-bottom: 0;
}
/* keys-over-living-room photo: keep the hand + keys (upper-centre) in frame.
   A slight blur softens the busy interior so the headline reads more easily;
   scale up a hair so the blur doesn't reveal soft edges at the frame border. */
.page-hero--sellers .page-hero__bg img {
  object-position: center 38%;
  filter: blur(3px); transform: scale(1.04);
}
/* the living room reads bright, so lean the veil a touch darker for legibility */
.page-hero--sellers .page-hero__bg::after {
  background:
    radial-gradient(130% 110% at 50% 12%, transparent 34%, rgba(20, 24, 28, .5) 100%),
    linear-gradient(180deg, rgba(20, 24, 28, .74) 0%, rgba(26, 31, 36, .4) 50%, rgba(20, 24, 28, .66) 100%);
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img {
  /* nudged up from full-bottom so his raised hand/keys stay in frame, while
     still keeping the SOLD sign and lawn — most of the crop still comes off
     the (plentiful) sky above */
  width: 100%; height: 100%; object-fit: cover; object-position: center 88%;
}
/* the photo is already graded dark; the veil just settles the top for the
   headline and eases the bottom edge into the next section — kept light in
   the middle so the family and SOLD sign read through it */
.page-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(130% 110% at 50% 15%, transparent 40%, rgba(20, 24, 28, .42) 100%),
    linear-gradient(180deg, rgba(20, 24, 28, .68) 0%, rgba(26, 31, 36, .24) 52%, rgba(20, 24, 28, .58) 100%);
}
.page-hero--buyers .page-hero__inner,
.page-hero--sellers .page-hero__inner { position: relative; z-index: 1; }
.page-hero__kicker {
  display: flex; align-items: center; justify-content: center; gap: 1.1rem;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  font-weight: 600; color: var(--brass); margin: 0 0 1.6rem;
}
.page-hero__rule { width: 3.4rem; height: 1px; background: var(--brass); opacity: .5; }
.page-hero__title--xl {
  font-size: clamp(3rem, 7.5vw, 5.4rem); line-height: 1.04;
  letter-spacing: -0.015em; font-weight: 500; color: var(--ivory);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.page-hero__one {
  position: relative; display: inline-block;
  font-style: italic; font-weight: 600; color: var(--brass);
  padding: 0 .04em;
}
.page-hero__period { color: var(--ivory); }
.page-hero__swash {
  position: absolute; left: 2%; right: 2%; bottom: -0.08em;
  width: 96%; height: .16em; color: var(--brass); overflow: visible; opacity: .85;
}
.page-hero__swash path {
  stroke-dasharray: 230; stroke-dashoffset: 230;
  animation: swashDraw 1s var(--ease) .85s forwards;
}
@keyframes swashDraw { to { stroke-dashoffset: 0; } }
.page-hero--buyers .page-hero__lede,
.page-hero--sellers .page-hero__lede {
  margin-top: 1.6rem; color: rgba(243, 244, 242, .85);
  text-shadow: 0 1px 18px rgba(0, 0, 0, .4);
}
@media (prefers-reduced-motion: reduce) {
  .page-hero__swash path { animation: none; stroke-dashoffset: 0; }
}

/* current-page marker in the nav */
.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after { width: 100%; }
.nav.is-top .nav__links a.is-current { color: var(--ivory); }

/* homepage teaser cards that replace the full Buyers/Sellers sections */
.pathways { background: var(--ivory); }
.pathways__grid {
  max-width: var(--wrap); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem);
}
.pathway {
  --pad: clamp(1.8rem, 3.5vw, 2.8rem);
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  padding: var(--pad); overflow: hidden; box-shadow: var(--shadow-md);
  text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.pathway:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
/* each door opens with a glimpse of the destination */
.pathway__media {
  display: block; align-self: stretch;
  margin: calc(var(--pad) * -1) calc(var(--pad) * -1) 1.6rem;
  aspect-ratio: 16 / 7; overflow: hidden; background: var(--ivory-2);
}
.pathway__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(1.03);
  transform: scale(1.01); transition: transform 1.1s var(--ease);
}
.pathway:hover .pathway__media img { transform: scale(1.06); }
.pathway .eyebrow { margin-bottom: .2rem; }
.pathway__title { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--ink); margin: .3rem 0 .6rem; }
.pathway__text { color: var(--ink-2); font-size: .98rem; line-height: 1.55; margin: 0 0 1.6rem; }
.pathway__cta {
  margin-top: auto; color: var(--brass-d); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5rem;
}
.pathway__cta::after { content: "\2192"; transition: transform .3s var(--ease); }
.pathway:hover .pathway__cta::after { transform: translateX(5px); }

/* dark contact CTA band at the foot of the standalone pages */
.pagecta { background: var(--sage); color: var(--ivory); text-align: center; }
.pagecta__inner { max-width: 640px; margin: 0 auto; }
.pagecta .section__title { color: var(--ivory); }
.pagecta__text { color: rgba(243,244,242,.75); max-width: 48ch; margin: 1rem auto 2rem; }
.pagecta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.pagecta .btn--ghost { border-color: rgba(243,244,242,.5); color: var(--ivory); }
.pagecta .btn--ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

/* ============================================================ RESPONSIVE == */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
    gap: 0; background: rgba(243,244,242,.97); backdrop-filter: blur(14px);
    padding: 1rem clamp(1.25rem,5vw,3rem) 1.5rem; box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--ink); }
  .nav.is-top.is-open .nav__brand { color: var(--logo-on-light); }
  .nav.is-top.is-open .nav__brand-name { color: var(--ink); }
  .nav.is-top.is-open .nav__burger span { background: var(--ink); }
  /* open mobile menu sits on a light panel — fade back to the full-color logo */
  .nav.is-top.is-open .brand-logo::after { opacity: 0; }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo-frame { max-width: 420px; margin: 0 auto; }
  .about__badge { right: 1rem; }
  .experience__grid { grid-template-columns: 1fr; }
  .contact__panel { grid-template-columns: 1fr; }
  .valuation__panel { grid-template-columns: 1fr; }
  .valuation__panel--reverse .valuation__intro { order: 1; }
  .valuation__panel--reverse .vform { order: 2; }
  .mcalc__row { grid-template-columns: 1fr 1fr; }
  .pathways__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .about__stats { grid-template-columns: 1fr; gap: 1.2rem; text-align: left; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .vform__row, .vform__row:has(.vfield--sm:nth-child(3)) { grid-template-columns: 1fr 1fr; }
  .vform__stepmeta { flex-direction: column; gap: .2rem; }
}

/* ============================================================ MOTION-SAFE = */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================ A11Y ======== */
/* Visible keyboard focus on every interactive element (WCAG 2.4.7). Placed
   last so it overrides earlier `:focus { outline: none }` rules. */
:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--brass-d);
  outline-offset: 2px;
  border-radius: 3px;
}
/* form fields sit on light panels — use an ink ring for clear visibility */
.contact__form :focus-visible,
.vform :focus-visible,
.cg__form :focus-visible { outline-color: var(--ink); outline-offset: 1px; }
/* over the dark hero, a light ring reads better */
.hero :focus-visible, .nav.is-top :focus-visible,
.story-band :focus-visible, .footer :focus-visible { outline-color: var(--ivory); }

/* Skip-to-content link: hidden until focused by keyboard */
.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 300;
  background: var(--ink); color: var(--ivory);
  padding: .7rem 1.2rem; border-radius: 4px; font-size: .85rem;
  font-weight: 600; letter-spacing: .04em; transition: top .25s var(--ease);
}
.skip-link:focus { top: 1rem; outline: 3px solid var(--brass); }

main:focus { outline: none; } /* programmatic focus target, no visible ring */

/* how-it-works (buyers page) ---------------------------------------------- */
.howit {
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  /* less top padding than the base .section — the dark hero right above it
     already has its own bottom padding, so full section spacing double-stacks */
  padding-top: clamp(2.75rem, 5vw, 4rem);
}

/* centered page-style header, full width above the two-column layout */
.howit__header {
  max-width: 620px; margin: 0 auto clamp(3rem, 6vw, 4.5rem); text-align: center;
}
.howit__title {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1.12; margin: 0 0 1.2rem;
}
.howit__title em { font-style: italic; font-weight: 700; color: var(--brass-d); }
.howit__sub {
  color: var(--muted); font-size: 1.05rem; margin: 0 auto 2.1rem;
  max-width: 40ch;
}

.howit__inner {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(340px, 1fr) 1fr; gap: 4rem;
  align-items: stretch; /* both columns share the same row height */
}
/* Both columns are flex columns with justify-content:space-between so
   whichever side is naturally shorter has ITS gap stretch to reach the
   bottom too — align-items:stretch alone only stretches the invisible
   container box, not the visible cards inside it. */
.howit__intro {
  max-width: 480px; display: flex; flex-direction: column;
  justify-content: space-between; gap: 1.6rem;
}
/* stretched to match the intro column's height, then the steps distribute
   evenly across it so both columns end at the same line. */
.howit__steps {
  /* height must stay auto (not 100%) so align-items:stretch on the grid parent
     is what stretches this to match the intro column — a % height here
     overrides stretch and the two columns silently stop lining up. */
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: .35rem;
}
.howit__step {
  position: relative; padding: 1.4rem 0 1.5rem 1.75rem;
  border-left: 1px solid var(--line);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.howit__step::before { /* animated accent over the hairline border */
  content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 0;
  background: var(--brass-mid); transition: height .45s var(--ease);
}
.howit__num {
  display: block; font-size: .8rem; font-weight: 600; color: var(--brass-d);
  font-variant-numeric: tabular-nums; margin-bottom: .55rem;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.howit__step h3 {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: 1.45rem; margin-bottom: .4rem;
  transition: transform .35s var(--ease);
}
.howit__step p { color: var(--muted); font-size: .98rem; line-height: 1.55; max-width: 52ch; margin: 0; }
.howit__step:hover { border-left-color: transparent; background: linear-gradient(90deg, rgba(82,120,143,0.05), transparent 65%); }
.howit__step:hover::before { height: 100%; }
.howit__step:hover .howit__num { color: var(--brass-mid); transform: translateX(3px); }
.howit__step:hover h3 { transform: translateX(3px); }
@media (max-width: 900px) {
  .howit__inner { grid-template-columns: 1fr; gap: 2.6rem; align-items: start; }
  .howit__intro { max-width: none; }
  .howit__steps { height: auto; gap: 0; }
  .howit__step + .howit__step { margin-top: .35rem; }
}

/* ------------------------------------------------ hero build scrub ------- */
/* The hero doubles as a scroll track: .hero__sticky pins for one viewport
   while the build time-lapse scrubs on the canvas behind the headline (see
   js/build-scrub.js). Track height sets the scrub pace: taller = slower. */
.hero--scrub {
  display: block; padding: 0; min-height: 0;
  height: 280vh; overflow: visible; isolation: auto;
}
.hero--scrub .hero__sticky {
  position: sticky; top: 0;
  min-height: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center;
  padding: 6rem clamp(1.25rem, 5vw, 3rem) 4rem;
  overflow: hidden; isolation: isolate;
}
.hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
/* Debanding dither. The dark hero/veil CSS gradients step visibly in 8-bit;
   a faint SEAMLESS noise (stitchTiles = no tile seams) over the hero perturbs
   luminance just enough to dissolve the contour bands. Kept very low-opacity
   so it never reads as texture on the lit areas of the video. */
.hero--scrub .hero__grain {
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
}
/* Exit transition: --scrub-exit goes 0 → 1 over the tail of the scrub
   (js/build-scrub.js). The video dissolves into the page ground from the
   bottom up while the headline lifts away, so the hand-off into Featured
   Properties lands on an already-light frame. */
.hero__fade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(243,244,242,0) 62%, rgba(243,244,242,.28) 84%, var(--ivory) 100%);
  opacity: var(--scrub-exit, 0);
}
.hero--scrub .hero__content {
  opacity: calc(1 - var(--scrub-exit, 0));
  transform: translateY(calc(var(--scrub-exit, 0) * -34px));
}
.hero--scrub .hero__scroll { opacity: calc(1 - var(--scrub-exit, 0)); }
@media (prefers-reduced-motion: reduce) {
  .hero--scrub { height: auto; }
  .hero--scrub .hero__sticky { position: relative; }
}

/* ============================================ SELLING-PROCESS TIMELINE ===== */
/* Dark, self-contained section (doesn't rely on the .story-band wrapper the
   homepage uses). A continuous vertical rail runs through numbered nodes;
   each step animates on hover — the node fills + lifts, the copy slides in. */
.sprocess {
  position: relative; overflow: hidden; color: var(--ink);
  background: none;
}
.sprocess .eyebrow { color: var(--brass-d); }
.sprocess .section__title { color: var(--ink); }
/* accent, styled like the hero heading's blue accent: italic serif, brand
   slate-blue — using the mid slate so it stays legible on the light panel */
.sprocess__accent { color: var(--brass-mid); font-style: italic; font-weight: 600; }
.sprocess__head { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; }
.sprocess__grain { display: none; } /* grain overlay reads as dirt on a light panel */

.steptl {
  --node: 3rem;
  position: relative; z-index: 1; list-style: none; padding: 0;
  max-width: 640px; margin: clamp(2.4rem, 5vw, 3.6rem) auto 0;
}
/* the continuous rail, from the first node's centre to the last node's centre */
.steptl::before {
  content: ''; position: absolute; z-index: 0;
  top: calc(var(--node) / 2); bottom: calc(var(--node) / 2);
  left: calc(var(--node) / 2); width: 2px; transform: translateX(-1px);
  background: linear-gradient(180deg, rgba(63,99,121,.38), rgba(63,99,121,.08));
}
.steptl__step {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: var(--node) 1fr; align-items: start;
  gap: clamp(1.1rem, 3vw, 1.9rem);
  padding-bottom: clamp(1.7rem, 3.6vw, 2.6rem);
}
.steptl__step:last-child { padding-bottom: 0; }

/* the numbered node — opaque, so it masks the rail behind it; this is the
   element that reads as an animated "button" on hover */
.steptl__num {
  grid-row: 1; width: var(--node); height: var(--node); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1;
  color: var(--brass-d); background: var(--white);
  border: 1px solid rgba(63,99,121,.35);
  transition: transform .45s var(--ease), background .45s var(--ease),
              color .45s var(--ease), border-color .45s var(--ease),
              box-shadow .45s var(--ease);
}
.steptl__body { transition: transform .45s var(--ease); }
.steptl__title {
  font-family: var(--serif); font-weight: 600; color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.1; margin: .1rem 0 .55rem;
  transition: color .4s var(--ease);
}
.steptl__text {
  color: var(--ink-2); line-height: 1.62; max-width: 46ch; margin: 0;
}

/* hover / keyboard-focus animation */
.steptl__step:hover .steptl__num,
.steptl__step:focus-within .steptl__num {
  transform: scale(1.12) translateY(-2px);
  background: var(--brass); color: var(--ink); border-color: var(--brass);
  box-shadow: 0 12px 28px -10px rgba(147,180,201,.6);
}
.steptl__step:hover .steptl__body,
.steptl__step:focus-within .steptl__body { transform: translateX(6px); }
.steptl__step:hover .steptl__title,
.steptl__step:focus-within .steptl__title { color: var(--brass-d); }

@media (max-width: 520px) {
  .steptl { --node: 2.6rem; }
  .steptl__num { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .steptl__num, .steptl__body, .steptl__title { transition: none; }
  .steptl__step:hover .steptl__num,
  .steptl__step:focus-within .steptl__num { transform: none; }
  .steptl__step:hover .steptl__body,
  .steptl__step:focus-within .steptl__body { transform: none; }
}

/* =========================== SELLERS: VALUATION + PROCESS SIDE BY SIDE ===== */
/* On wide screens the valuation (pitch + form) and the selling-process
   timeline sit as two columns of one row; they stack back on smaller screens.
   The wrapping .sellers-duo takes over the outer section padding so the two
   sections read as columns rather than stacked full-bleed blocks. */
.sellers-duo {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 5vw, 3rem);
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(1.25rem, 2.6vw, 2.25rem); align-items: stretch;
}
/* the two sections become plain columns inside the grid */
.sellers-duo > .section { padding: 0; }
.sellers-duo > .valuation { background: none; }
/* left column: pitch stacks above the form */
.sellers-duo .valuation__panel {
  grid-template-columns: 1fr; max-width: none; height: 100%;
  gap: clamp(1.5rem, 3vw, 2.1rem); align-content: start;
}
/* right column: the dark timeline as a self-contained rounded panel that
   fills the row height (order matters — this re-adds padding after the
   `> .section { padding: 0 }` reset above) */
.sellers-duo .sprocess {
  height: 100%; border-radius: 14px; overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.4rem);
}
.sellers-duo .steptl { margin-top: clamp(1.8rem, 4vw, 2.6rem); }

@media (max-width: 900px) {
  .sellers-duo {
    grid-template-columns: 1fr;
    gap: clamp(2.4rem, 6vw, 3.4rem);
  }
}
