/* ============================================================
   MATT REYES — PORCH & KEY REALTY (Realtor demo v2)
   Warm / bright / approachable — Austin metro starter homes.
   Type: Bricolage Grotesque (display) · Nunito Sans (body)
         · Caveat (handwritten accents)
   ============================================================
   TOC:
   01 fonts & tokens        07 buttons / links / chips
   02 base & utilities      08 home sections
   03 preloader/transition  09 cards (listing/hood/sold)
   04 nav & demobar         10 pages: listings/detail/sold/hoods
   05 menu                  11 valuation wizard
   06 hero                  12 forms & contact
                            13 Abby chat widget
                            14 footer / lightbox / misc
   ============================================================ */

/* ---------- 01 · fonts ---------- */
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../assets/fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../assets/fonts/caveat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* palette — warm cream / spruce ink / trust teal / marigold */
  --cream: #FBF6ED;
  --cream-2: #F4EBDB;
  --white: #FFFFFF;
  --ink: #21322B;
  --ink-soft: #53635B;
  --teal: #17665A;
  --teal-deep: #0E4A41;
  --teal-tint: #E2EFEA;
  --marigold: #E9A23B;
  --marigold-deep: #A8690E;
  --line: #E7DCC8;
  --line-input: #8A7F63; /* form-field boundaries need >=3:1 on white (WCAG 1.4.11) */
  --footer: #1C2B25;
  --danger: #C2410C;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --container: 74rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-1: 0 6px 24px -12px rgba(33, 50, 43, 0.16);
  --shadow-2: 0 24px 60px -24px rgba(33, 50, 43, 0.24);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* z scale */
  --z-nav: 100;
  --z-menu: 200;
  --z-chat: 300;
  --z-curtain: 400;
  --z-lightbox: 500;
}

/* ---------- 02 · base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* height:auto is load-bearing — width/height attrs otherwise keep their
   absolute height when max-width shrinks the image (332×1152 stretch bug) */
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.95rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.35rem; }
p { max-width: 62ch; }
em { font-style: normal; color: var(--teal); }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band { background: var(--cream-2); }
.band--teal { background: var(--teal-tint); }
.tac { text-align: center; }
.muted { color: var(--ink-soft); }
.hand { font-family: var(--font-hand); font-weight: 600; font-size: 1.5rem; color: var(--marigold-deep); letter-spacing: 0; line-height: 1.2; }
.tabular { font-variant-numeric: tabular-nums; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 1000;
  background: var(--ink); color: var(--cream);
  padding: 0.6rem 1.1rem; border-radius: 8px; font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
/* dark surfaces need a light ring (teal composites near-invisible there) */
.footer :focus-visible, .porch-cta :focus-visible, .val-cta :focus-visible,
.demobar :focus-visible, .lightbox :focus-visible, .abby__head :focus-visible { outline-color: var(--marigold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1.1rem;
}
.label::before { content: ""; width: 1.6rem; height: 2px; border-radius: 2px; background: var(--marigold); }
.label--bare::before { display: none; }

.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.25rem 2.5rem; margin-bottom: clamp(2.2rem, 5vw, 3.5rem);
}

/* squiggle accent under key words */
.squig { position: relative; white-space: nowrap; }
.squig svg {
  position: absolute; left: -2%; right: -2%; bottom: -0.18em; width: 104%; height: 0.34em;
  overflow: visible;
}
.squig svg path {
  fill: none; stroke: var(--marigold); stroke-width: 7; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* media wrappers */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--cream-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); }
.reveal-line { overflow: hidden; }
.split-line { will-change: transform; }

/* ---------- 03 · preloader & page transition ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 600; background: var(--cream);
  display: grid; place-items: center;
}
.preloader__inner { display: grid; place-items: center; gap: 1rem; }
.preloader__mark { width: 72px; height: 72px; }
.preloader__word { font-family: var(--font-hand); font-weight: 600; font-size: 1.6rem; color: var(--teal); }
.transition {
  position: fixed; inset: 0; z-index: var(--z-curtain); background: var(--teal);
  transform: translateY(103%); pointer-events: none;
  display: grid; place-items: center;
}
.transition__mark { width: 64px; height: 64px; opacity: 0; }

/* ---------- 04 · nav & demobar ---------- */
.demobar { background: var(--ink); color: rgba(251, 246, 237, 0.85); font-size: 0.8125rem; }
.demobar__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 0.45rem; }
.demobar b { color: #fff; font-weight: 700; }
.demobar a { font-weight: 700; color: var(--marigold); white-space: nowrap; }
.demobar a:hover { text-decoration: underline; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: transform 0.45s var(--ease-out);
}
.nav__bar {
  background: rgba(251, 246, 237, 0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav.is-scrolled .nav__bar { border-bottom-color: var(--line); background: rgba(251, 246, 237, 0.94); }
.nav.is-hidden { transform: translateY(-115%); }
/* while the fullscreen menu is open the nav (and its burger-close) must paint above it */
body.menu-open .nav { z-index: calc(var(--z-menu) + 1); }
/* and the chat UI must not bury the menu */
body.menu-open .abby-launch, body.menu-open .abby-teaser, body.menu-open .abby { display: none; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 4.6rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 2.55rem; height: 2.55rem; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.06rem; letter-spacing: -0.01em; }
.brand__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal); }

.nav__links { display: flex; gap: clamp(1rem, 2.2vw, 1.9rem); }
.nav__link { font-weight: 700; font-size: 0.95rem; position: relative; padding-block: 0.4rem; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px;
  border-radius: 2px; background: var(--marigold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--teal); }

.nav__right { display: flex; align-items: center; gap: 1.1rem; }
.nav__phone { font-weight: 800; font-size: 0.95rem; color: var(--teal); white-space: nowrap; }
.nav__phone:hover { color: var(--teal-deep); }
.nav__cta { display: none; }

.burger {
  display: none; width: 2.9rem; height: 2.9rem; border-radius: 12px;
  background: var(--teal); position: relative; flex: none;
}
.burger i {
  position: absolute; left: 0.8rem; right: 0.8rem; height: 2.5px; border-radius: 2px;
  background: #fff; transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.burger i:nth-child(1) { top: calc(50% - 5px); }
.burger i:nth-child(2) { top: calc(50% + 3px); }
.burger.is-open i:nth-child(1) { top: 50%; transform: rotate(45deg); }
.burger.is-open i:nth-child(2) { top: 50%; transform: rotate(-45deg); }

/* ---------- 05 · full-screen menu (mobile) ---------- */
.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--cream);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-top: 7rem; padding-bottom: 2rem;
}
.menu.is-active { visibility: visible; }
.menu__list { list-style: none; display: grid; gap: 0.35rem; }
.menu__item { overflow: hidden; }
.menu__link {
  display: inline-flex; align-items: baseline; gap: 0.9rem;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 8vw, 3.2rem);
}
.menu__link sup { font-family: var(--font-body); font-size: 0.85rem; font-weight: 700; color: var(--marigold-deep); }
.menu__link:hover { color: var(--teal); }
.menu__foot { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.menu__foot-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; font-weight: 700; }
.menu__foot-inner a:hover { color: var(--teal); }

/* ---------- 06 · hero ---------- */
.hero { padding-top: clamp(9.5rem, 16vw, 12.5rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); position: relative; overflow: clip; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__copy h1 { margin-bottom: 1.4rem; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__blurb { font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.2rem; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1.4rem; font-size: 0.92rem; font-weight: 700; color: var(--ink-soft); }
.hero__trust .stars { color: var(--marigold); letter-spacing: 0.08em; display: inline-flex; gap: 2px; }
.hero__trust .stars svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }

.hero__media { position: relative; }
.hero__media .media { aspect-ratio: 4 / 4.6; }
.float-chip {
  position: absolute; display: flex; align-items: center; gap: 0.6rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-1); padding: 0.55rem 1rem; font-size: 0.86rem; font-weight: 800;
  white-space: nowrap;
}
.float-chip svg { width: 1.15rem; height: 1.15rem; flex: none; }
.float-chip--1 { top: 9%; left: -7%; }
.float-chip--2 { bottom: 16%; right: -6%; }
.float-chip--3 { bottom: -1.2rem; left: 12%; }
.float-chip span b { color: var(--teal); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 1rem; overflow: hidden; background: var(--white); }
.marquee__track { display: flex; align-items: center; gap: 2.6rem; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: 0.02em; color: var(--ink-soft); white-space: nowrap;
}
.marquee__track svg { width: 0.85rem; height: 0.85rem; color: var(--marigold); flex: none; }

/* ---------- stats ---------- */
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; text-align: center;
}
.stat__num {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.02em; color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.stat__num .suffix { color: var(--marigold-deep); }
.stat__label { font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }

/* ---------- 07 · buttons / links / chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: var(--teal); color: #fff; font-weight: 800; font-size: 1rem;
  padding: 0.95rem 1.75rem; border-radius: 999px; border: 2px solid var(--teal);
  transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer; text-align: center;
}
.btn:hover { background: var(--teal-deep); border-color: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(0); }
.btn__arrow { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(33, 50, 43, 0.28); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn--gold { background: var(--marigold); border-color: var(--marigold); color: var(--ink); }
.btn--gold:hover { background: #d68f28; border-color: #d68f28; }
.btn--lg { padding: 1.1rem 2.1rem; font-size: 1.06rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.link-line {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; color: var(--teal);
}
.link-line svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease-out); }
.link-line:hover svg { transform: translateX(4px); }
.link-line:hover { color: var(--teal-deep); }

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border: 1.5px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 0.55rem 1.15rem; font-weight: 700; font-size: 0.92rem; cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal); }
.chip.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- 08 · home sections ---------- */
/* featured pinned rail */
.featured { background: var(--white); border-block: 1px solid var(--line); }
.featured__pin { padding-block: clamp(4rem, 9vw, 7.5rem); }
.featured__viewport { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; margin-top: 0.5rem; }
.featured__viewport::-webkit-scrollbar { display: none; }
.featured__track { display: flex; gap: 1.5rem; width: max-content; padding-inline: var(--pad); }
.featured__progress { height: 3px; background: var(--line); border-radius: 3px; margin: 2.2rem var(--pad) 0; overflow: hidden; }
.featured__progress i { display: block; height: 100%; width: 100%; background: var(--marigold); transform: scaleX(0); transform-origin: left; }

/* steps */
.steps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.75rem; position: relative;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.step__num {
  font-family: var(--font-hand); font-size: 2.1rem; font-weight: 600; color: var(--marigold-deep);
  display: block; margin-bottom: 0.6rem;
}
.step__icon { width: 3rem; height: 3rem; border-radius: 14px; background: var(--teal-tint); display: grid; place-items: center; margin-bottom: 1.2rem; }
.step__icon svg { width: 1.5rem; height: 1.5rem; color: var(--teal); }
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* Abby showcase */
.abby-show__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.abby-show__copy h2 { margin-bottom: 1.2rem; }
.abby-show__copy > p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.abby-points { list-style: none; display: grid; gap: 0.9rem; margin-bottom: 2rem; }
.abby-points li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 600; }
.abby-points svg { width: 1.35rem; height: 1.35rem; color: var(--teal); flex: none; margin-top: 0.15rem; }
.abby-show__note { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem; font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.abby-show__note svg { width: 1rem; height: 1rem; color: var(--marigold-deep); }

/* phone mockup */
.phone {
  width: min(21rem, 88%); margin-inline: auto; background: var(--white);
  border: 7px solid var(--ink); border-radius: 42px; box-shadow: var(--shadow-2);
  overflow: hidden; position: relative;
}
.phone__head { background: var(--teal); color: #fff; padding: 1.9rem 1.1rem 0.85rem; display: flex; align-items: center; gap: 0.7rem; }
.phone__head::before { content: ""; position: absolute; top: 0.55rem; left: 50%; translate: -50% 0; width: 6.5rem; height: 1.35rem; background: var(--ink); border-radius: 999px; }
.phone__avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--marigold); display: grid; place-items: center; flex: none; }
.phone__avatar svg { width: 1.25rem; height: 1.25rem; color: var(--ink); }
.phone__id { line-height: 1.2; }
.phone__id b { display: block; font-size: 0.95rem; }
.phone__id span { font-size: 0.74rem; opacity: 0.85; display: inline-flex; align-items: center; gap: 0.35rem; }
.phone__id span::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #7BE3A0; }
.phone__feed { padding: 1rem 0.9rem 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; min-height: 21rem; }
.phone__time { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 0.2rem; }
.pmsg { max-width: 82%; padding: 0.6rem 0.85rem; border-radius: 16px; font-size: 0.85rem; line-height: 1.45; opacity: 0; transform: translateY(8px); }
.pmsg--abby { background: var(--cream-2); border-bottom-left-radius: 6px; align-self: flex-start; }
.pmsg--user { background: var(--teal); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.pmsg--card { background: var(--teal-tint); border: 1.5px solid var(--teal); align-self: flex-start; font-weight: 700; }
.pmsg--card small { display: block; font-weight: 600; color: var(--ink-soft); }
.pmsg.is-in { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.4s var(--ease-out); }

/* about teaser */
.about-teaser__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.about-teaser__media { aspect-ratio: 3 / 3.7; }
.about-teaser__body h2 { margin-bottom: 1.2rem; }
.about-teaser__body p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.about-teaser__sig { margin: 1.4rem 0 1.8rem; }

/* testimonials */
.testimonials { background: var(--white); border-block: 1px solid var(--line); }
.quote-mark { width: 3rem; height: 3rem; color: var(--marigold); margin-bottom: 1.5rem; }
.t-slider { position: relative; min-height: 13rem; }
.t-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.t-slide.is-active { position: relative; opacity: 1; visibility: visible; }
.t-slide blockquote {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.35; max-width: 46ch; margin-bottom: 1.5rem;
}
.t-slide cite { font-style: normal; font-weight: 800; }
.t-slide cite span { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.t-nav { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; }
.t-nav__btn {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.t-nav__btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.t-nav__btn svg { width: 1rem; height: 1rem; }
.t-nav__count { font-weight: 800; font-size: 0.9rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* valuation CTA band */
.val-cta { position: relative; overflow: clip; background: var(--teal); color: var(--cream); }
.val-cta::before {
  content: ""; position: absolute; inset: -40% -10%;
  background:
    radial-gradient(38rem 38rem at 85% 20%, rgba(233, 162, 59, 0.28), transparent 60%),
    radial-gradient(30rem 30rem at 10% 90%, rgba(226, 239, 234, 0.14), transparent 55%);
}
.val-cta .container { position: relative; }
.val-cta h2 { color: #fff; margin-bottom: 1rem; }
.val-cta p { color: rgba(251, 246, 237, 0.85); margin-inline: auto; margin-bottom: 2rem; }
.val-cta__note { font-size: 0.88rem; font-weight: 700; margin-top: 1.2rem; color: rgba(251, 246, 237, 0.88); }

/* ---------- 09 · cards ---------- */
.l-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.l-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.l-card__media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; border-radius: 0; }
.l-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.l-card:hover .l-card__media img { transform: scale(1.05); }
.l-card__badge {
  position: absolute; top: 0.9rem; left: 0.9rem; background: var(--white);
  border-radius: 999px; padding: 0.32rem 0.85rem; font-size: 0.78rem; font-weight: 800;
  color: var(--teal); box-shadow: var(--shadow-1);
}
.l-card__badge--gold { background: var(--marigold); color: var(--ink); }
.l-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.l-card__price { font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.l-card__name { font-size: 1.08rem; font-weight: 800; font-family: var(--font-body); letter-spacing: 0; }
.l-card__area { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.l-card__specs {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: auto; padding-top: 0.8rem;
  border-top: 1px solid var(--line); font-size: 0.88rem; font-weight: 700; color: var(--ink-soft);
}
.l-card__specs span { display: inline-flex; align-items: center; gap: 0.4rem; }
.l-card__specs svg { width: 1rem; height: 1rem; color: var(--teal); }
.f-card { width: clamp(19rem, 26vw, 24rem); flex: none; }

.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* neighborhood cards */
.hood {
  position: relative; border-radius: var(--radius); overflow: hidden; display: block;
  aspect-ratio: 16 / 10; background: var(--ink);
}
.hood img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.hood:hover img { transform: scale(1.05); }
.hood::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21, 32, 27, 0.72) 0%, rgba(21, 32, 27, 0.05) 55%);
}
.hood__body { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.1rem; z-index: 1; color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.hood__body h3 { color: #fff; font-size: 1.3rem; }
.hood__body span { font-size: 0.85rem; font-weight: 800; background: rgba(251, 246, 237, 0.92); color: var(--ink); border-radius: 999px; padding: 0.3rem 0.8rem; white-space: nowrap; }
.hoods__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* sold cards */
.sold-card { position: relative; }
.sold-card .l-card__badge { background: var(--ink); color: var(--cream); }
.sold-card__result { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.sold-card__result del { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; }
.sold-card__meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sold-pill {
  font-size: 0.78rem; font-weight: 800; border-radius: 999px; padding: 0.28rem 0.75rem;
  background: var(--teal-tint); color: var(--teal-deep);
}
.sold-pill--gold { background: rgba(233, 162, 59, 0.18); color: #8f5807; }

/* ---------- 10 · interior pages ---------- */
.page-hero { padding-top: clamp(9.5rem, 15vw, 12rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.page-hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 56ch; margin-top: 1.2rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.2rem; }

/* listing detail */
.detail-hero { padding-top: clamp(8.5rem, 14vw, 10.5rem); }
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.6rem; }
.detail-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
.detail-head .l-card__price { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.detail-status { display: inline-flex; margin-bottom: 0.9rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 1rem; aspect-ratio: 16 / 8.6; }
.gallery .media { cursor: zoom-in; height: 100%; }
.gallery .media:first-child { grid-row: span 3; }
.factbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-block: 2.5rem; }
.fact {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: 0.85rem;
}
.fact svg { width: 1.5rem; height: 1.5rem; color: var(--teal); flex: none; }
.fact b { display: block; font-size: 1.06rem; }
.fact span { font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.detail-body h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.detail-body p { color: var(--ink-soft); margin-bottom: 1rem; }
.feature-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.5rem; margin-top: 1.4rem; }
.feature-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; font-size: 0.97rem; }
.feature-list svg { width: 1.2rem; height: 1.2rem; color: var(--teal); flex: none; margin-top: 0.2rem; }
.tour-card {
  position: sticky; top: 7rem; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-1);
}
.tour-card h3 { margin-bottom: 0.4rem; }
.tour-card > p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.agent-mini { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.agent-mini img { width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; }
.agent-mini b { display: block; }
.agent-mini span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.detail-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; }

/* ---------- 11 · valuation wizard ---------- */
.wiz {
  max-width: 46rem; margin-inline: auto; background: var(--white);
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-2); padding: clamp(1.6rem, 4vw, 2.8rem); position: relative; overflow: hidden;
}
.wiz__progress { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; }
.wiz__dot {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 0.85rem; background: var(--cream-2); color: var(--ink-soft);
  border: 2px solid var(--line); transition: background-color 0.3s, color 0.3s, border-color 0.3s; flex: none;
}
.wiz__dot.is-current { background: var(--teal); border-color: var(--teal); color: #fff; }
.wiz__dot.is-done { background: var(--teal-tint); border-color: var(--teal); color: var(--teal); }
.wiz__dash { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; border-radius: 2px; }
.wiz__dash i { position: absolute; inset: 0; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.wiz__dash.is-done i { transform: scaleX(1); }
.wiz__step { display: none; }
.wiz__step.is-active { display: block; }
.wiz__step h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.wiz__step > p.help { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.6rem; }
.wiz__actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.wiz__back { font-weight: 800; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.4rem; }
.wiz__back svg { width: 1rem; height: 1rem; }
.wiz__back:hover { color: var(--ink); }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0.8rem; }
.opt {
  border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--white);
  padding: 1rem 0.9rem; text-align: center; font-weight: 700; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.2s;
}
.opt small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 0.8rem; margin-top: 0.2rem; }
.opt:hover { border-color: var(--teal); }
.opt.is-selected { border-color: var(--teal); background: var(--teal-tint); color: var(--teal-deep); }
.opt.is-selected small { color: var(--teal-deep); }

.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 800; font-size: 0.92rem; margin-bottom: 0.45rem; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--line-input); border-radius: var(--radius-sm);
  padding: 0.8rem 1rem; min-height: 3.1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(23, 102, 90, 0.14);
}
.field .hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.4rem; }
.field .error { display: none; font-size: 0.85rem; font-weight: 700; color: var(--danger); margin-top: 0.4rem; }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field.has-error .error { display: block; }

.range-row { display: flex; align-items: center; gap: 1.2rem; }
.range-row input[type="range"] { flex: 1; accent-color: var(--teal); min-height: 2rem; }
.range-out {
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--teal);
  min-width: 6.5rem; text-align: right; font-variant-numeric: tabular-nums;
}

.wiz-result { text-align: center; display: none; }
.wiz-result.is-active { display: block; }
.wiz-result__range {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(2rem, 5.5vw, 3.1rem); color: var(--teal); margin-block: 1rem 0.4rem;
  font-variant-numeric: tabular-nums;
}
.wiz-result__sub { color: var(--ink-soft); font-weight: 600; margin-inline: auto; }
.wiz-result__meter { height: 10px; border-radius: 999px; background: var(--cream-2); margin: 2rem auto; max-width: 26rem; overflow: hidden; position: relative; }
.wiz-result__meter i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--marigold)); transform: scaleX(0); transform-origin: left; }
.wiz-result__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 1.6rem; }
.wiz-result__note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 1.4rem; }

/* ---------- 12 · forms & contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.6rem, 4vw, 2.5rem); box-shadow: var(--shadow-1); position: relative;
}
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form__success {
  display: none; text-align: center; padding: 2.5rem 1rem;
}
.form-card.is-done form, .tour-card.is-done form { display: none; }
.form-card.is-done .form__success, .tour-card.is-done .form__success { display: block; }
.form__success svg { width: 3.4rem; height: 3.4rem; color: var(--teal); margin-inline: auto; margin-bottom: 1rem; }
.form__success h2, .form__success h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.form__success p { color: var(--ink-soft); margin-inline: auto; }

.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.25rem; }
.info-card h2, .info-card h3 { font-size: 1.1rem; margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.info-card h2 svg, .info-card h3 svg { width: 1.25rem; height: 1.25rem; color: var(--teal); }
.info-card ul { list-style: none; display: grid; gap: 0.5rem; font-weight: 600; color: var(--ink-soft); }
.info-card a:hover { color: var(--teal); }
.info-card .strong { color: var(--ink); font-weight: 800; }

/* ---------- 13 · Abby chat widget ---------- */
.abby-launch {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: var(--z-chat);
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--teal); color: #fff; border-radius: 999px;
  padding: 0.65rem 1.3rem 0.65rem 0.65rem; box-shadow: var(--shadow-2);
  font-weight: 800; transition: transform 0.25s var(--ease-out), background-color 0.25s;
}
.abby-launch:hover { transform: translateY(-3px); background: var(--teal-deep); }
.abby-launch__avatar {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--marigold);
  display: grid; place-items: center; position: relative; flex: none;
}
.abby-launch__avatar svg { width: 1.5rem; height: 1.5rem; color: var(--ink); }
.abby-launch__avatar::after {
  content: ""; position: absolute; right: -1px; bottom: -1px; width: 0.75rem; height: 0.75rem;
  border-radius: 50%; background: #34C878; border: 2.5px solid var(--teal);
}
.abby-launch__pulse { position: absolute; inset: 0; border-radius: 999px; box-shadow: 0 0 0 0 rgba(23, 102, 90, 0.45); animation: abbyPulse 2.6s infinite; pointer-events: none; }
@keyframes abbyPulse { 0% { box-shadow: 0 0 0 0 rgba(23, 102, 90, 0.4); } 70% { box-shadow: 0 0 0 16px rgba(23, 102, 90, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 102, 90, 0); } }
body.chat-open .abby-launch { display: none; }

.abby-teaser {
  position: fixed; right: 1.6rem; bottom: 5.6rem; z-index: var(--z-chat);
  background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px;
  box-shadow: var(--shadow-2); padding: 0.8rem 1.1rem; font-size: 0.92rem; font-weight: 700;
  max-width: 15rem; opacity: 0; transform: translateY(8px); pointer-events: none;
  visibility: hidden; /* keep the hidden teaser out of the tab order */
  transition: opacity 0.4s, transform 0.4s var(--ease-out), visibility 0.4s;
}
.abby-teaser.is-visible { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; visibility: visible; }

.abby {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: var(--z-chat);
  width: min(24rem, calc(100vw - 2rem)); max-height: min(34rem, calc(100dvh - 6.5rem));
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(14px) scale(0.97); transform-origin: bottom right;
  visibility: hidden; transition: opacity 0.3s, transform 0.3s var(--ease-out), visibility 0.3s;
}
.abby.is-open { opacity: 1; transform: none; visibility: visible; }
.abby__head { background: var(--teal); color: #fff; padding: 1rem 1.1rem; display: flex; align-items: center; gap: 0.8rem; flex: none; }
.abby__head .abby-launch__avatar { width: 2.4rem; height: 2.4rem; }
.abby__head .abby-launch__avatar::after { border-color: var(--teal); }
.abby__id { line-height: 1.25; flex: 1; min-width: 0; }
.abby__id b { display: block; font-size: 1rem; }
.abby__id span { font-size: 0.78rem; opacity: 0.9; }
.abby__close { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; transition: background-color 0.2s; }
.abby__close:hover { background: rgba(255, 255, 255, 0.16); }
.abby__close svg { width: 1.1rem; height: 1.1rem; }
.abby__hours { background: var(--teal-tint); color: var(--teal-deep); font-size: 0.8rem; font-weight: 700; padding: 0.45rem 1.1rem; display: flex; align-items: center; gap: 0.5rem; flex: none; }
.abby__hours svg { width: 0.95rem; height: 0.95rem; flex: none; }
.abby__feed { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 0.7rem 0.95rem; border-radius: 16px; font-size: 0.94rem; line-height: 1.5; }
.msg--abby { background: var(--cream-2); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg--user { background: var(--teal); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg--card {
  background: var(--teal-tint); border: 1.5px solid var(--teal); align-self: stretch; max-width: 100%;
  border-radius: var(--radius-sm); font-weight: 700;
}
.msg--card small { display: block; font-weight: 600; color: var(--ink-soft); margin-top: 0.2rem; }
.msg--card a { color: var(--teal-deep); text-decoration: underline; }
.msg-typing { display: inline-flex; gap: 0.3rem; padding: 0.85rem 1rem; background: var(--cream-2); border-radius: 16px; border-bottom-left-radius: 6px; align-self: flex-start; }
.msg-typing i { width: 0.42rem; height: 0.42rem; border-radius: 50%; background: var(--ink-soft); animation: typing 1.1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: 0.15s; }
.msg-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }
.abby__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.1rem 0.9rem; flex: none; }
.abby__chips .chip { font-size: 0.88rem; padding: 0.5rem 1rem; }
.abby__inputrow { display: flex; gap: 0.6rem; padding: 0.9rem 1.1rem; border-top: 1px solid var(--line); flex: none; }
.abby__inputrow input {
  flex: 1; font: inherit; font-size: 0.95rem; border: 2px solid var(--line-input); border-radius: 999px;
  padding: 0.6rem 1.1rem; min-height: 2.9rem; color: var(--ink);
}
.abby__inputrow input:focus { outline: none; border-color: var(--teal); }
.abby__inputrow input:disabled { background: var(--cream); cursor: not-allowed; }
.abby__send {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; background: var(--teal); color: #fff;
  display: grid; place-items: center; flex: none; transition: background-color 0.2s, transform 0.2s;
}
.abby__send:hover { background: var(--teal-deep); transform: scale(1.05); }
.abby__send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.abby__send svg { width: 1.2rem; height: 1.2rem; }
.abby__brand { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); padding: 0 1rem 0.7rem; flex: none; }
.abby__brand b { color: var(--teal); }

/* ---------- 14 · footer / lightbox / misc ---------- */
.footer { background: var(--footer); color: rgba(251, 246, 237, 0.82); position: relative; overflow: clip; }
.footer .container { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; margin-bottom: 3rem; position: relative; z-index: 1; }
.footer__brand p { font-size: 0.95rem; margin-top: 1rem; max-width: 30ch; }
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: var(--marigold); }
.footer__col h3 { color: #fff; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; display: grid; gap: 0.55rem; font-size: 0.95rem; font-weight: 600; }
.footer__col a:hover { color: var(--marigold); }
.footer__watermark {
  position: absolute; right: -1rem; bottom: -2.2rem; font-family: var(--font-display);
  font-weight: 800; font-size: clamp(6rem, 16vw, 13rem); letter-spacing: -0.04em;
  color: rgba(251, 246, 237, 0.05); pointer-events: none; user-select: none; white-space: nowrap;
}
.footer__bottom {
  border-top: 1px solid rgba(251, 246, 237, 0.14); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem;
  font-size: 0.85rem; position: relative; z-index: 1;
}
.footer__credit b { color: var(--marigold); }
.footer__credit:hover b { text-decoration: underline; }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-lightbox); background: rgba(21, 32, 27, 0.94);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 70rem); max-height: 84vh; object-fit: contain; border-radius: 12px; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  background: rgba(251, 246, 237, 0.12); color: #fff; display: grid; place-items: center;
  transition: background-color 0.2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(251, 246, 237, 0.28); }
.lightbox__close { top: 1.4rem; right: 1.4rem; }
.lightbox__close svg, .lightbox__nav svg { width: 1.2rem; height: 1.2rem; }
.lightbox__nav--prev { left: 1.4rem; top: 50%; translate: 0 -50%; }
.lightbox__nav--next { right: 1.4rem; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; color: rgba(251, 246, 237, 0.8); font-weight: 700; font-variant-numeric: tabular-nums; }

/* neighborhoods guide rows */
.area-row {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(2.2rem, 5vw, 3.5rem);
}
.area-row + .area-row { border-top: 1px solid var(--line); }
.area-row:nth-child(even) .area-row__media { order: 2; }
.area-row__media { aspect-ratio: 16 / 10; }
.area-row__body h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 0.8rem; }
.area-row__body > p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.area-row__kicker { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-hand); font-size: 1.35rem; color: var(--marigold-deep); margin-bottom: 0.5rem; }
.area-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-bottom: 1.4rem; }
.area-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 1rem; }
.area-stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--teal); font-variant-numeric: tabular-nums; }
.area-stat span { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 900px) {
  .area-row { grid-template-columns: 1fr; }
  .area-row:nth-child(even) .area-row__media { order: 0; }
}

/* marquee motion */
@keyframes marqueeScroll { to { transform: translateX(-50%); } }
.marquee__track { animation: marqueeScroll 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* porch-light closer (video CTA above footer) */
.porch-cta { position: relative; overflow: clip; color: var(--cream); }
.porch-cta__bg { position: absolute; inset: 0; }
.porch-cta__bg video, .porch-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.porch-cta__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(21, 32, 27, 0.82) 0%, rgba(21, 32, 27, 0.35) 60%, rgba(21, 32, 27, 0.25) 100%);
}
.porch-cta .container { position: relative; z-index: 1; padding-block: clamp(5rem, 12vw, 9rem); text-align: center; }
.porch-cta h2 { color: #fff; margin-bottom: 1rem; }
.porch-cta p { color: rgba(251, 246, 237, 0.88); margin-inline: auto; margin-bottom: 2rem; }
.porch-cta .hand { color: var(--marigold); font-size: 1.7rem; display: block; margin-bottom: 0.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__phone { display: none; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 30rem; }
  .float-chip--1 { left: 0; }
  .float-chip--2 { right: 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: 1fr; }
  .abby-show__grid, .about-teaser__grid { grid-template-columns: 1fr; }
  .about-teaser__media { max-width: 24rem; }
  .listings-grid, .hoods__grid { grid-template-columns: repeat(2, 1fr); }
  .factbar { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .tour-card { position: static; }
  .gallery { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery .media { aspect-ratio: 4 / 3; }
  .gallery .media:first-child { grid-column: span 2; grid-row: auto; }
  .gallery .media:nth-child(4) { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .listings-grid, .hoods__grid { grid-template-columns: 1fr; }
  .stats__grid { gap: 0.8rem; }
  .stat { padding: 1.2rem 0.8rem; }
  .feature-list { grid-template-columns: 1fr; }
  .form-card .row { grid-template-columns: 1fr; }
  .factbar { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .f-card { width: 82vw; }
  .abby { right: 0.75rem; bottom: 0.75rem; }
  .abby-launch { right: 1rem; bottom: 1rem; padding: 0.6rem; }
  .abby-launch__label { display: none; }
  .footer__watermark { font-size: 5.5rem; }
}

/* reduced motion: kill decorative animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .abby-launch__pulse { animation: none; }
  .pmsg { opacity: 1; transform: none; }
}
