/* =========================================================
   NYC + NJ Real Estate — shared styles
   Colors and fonts live in :root so you can re-brand in one place.
   ========================================================= */

:root {
  --ink: #2c3746;      /* Goodkin slate navy (estimated from the printed card) */
  --ink-soft: #46505e;
  --cream: #f6f2eb;
  --paper: #fbf9f5;
  --stone: #7b766d;
  --line: rgba(44, 55, 70, 0.14);
  --brass: #b08d57;
  --brass-dark: #8f6f3f;
  --city: #d3e2ef;     /* cool steel for city accents */
  --garden: #8fa07a;   /* soft sage for NJ accents */

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(3rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
p { margin: 0 0 1em; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.1rem;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 40em; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn--solid:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn--light { color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* "good" is a play on Goodkin, so it is always italic. It keeps the surrounding font;
   the extra slant makes the italic visible even in spaced capitals.
   Usage: <em class="good">good</em> */
.good {
  display: inline-block;
  font-style: italic;
  transform: skewX(-14deg);
}
/* In the serif headings the italic is already clear, so no extra slant */
h1 .good, h2 .good, h3 .good { display: inline; transform: none; }

/* ---------------- Header ---------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 22px 0;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(251, 249, 245, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* Goodkin Home Group logo: mirrored GG monogram + wordmark */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1; }
.brand__mark {
  display: inline-flex; align-items: flex-start;
  font-family: var(--serif); font-weight: 600; font-size: 2.6rem; line-height: 0.8;
}
.brand__mark span:first-child { transform: scaleX(-1); margin-right: -0.26em; }
.brand__words { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; letter-spacing: 0.24em; text-transform: uppercase; margin-right: -0.24em; }
.brand__tag { font-family: var(--sans); font-weight: 500; font-size: 0.56rem; letter-spacing: 0.34em; text-transform: uppercase; opacity: 0.85; margin-right: -0.34em; }
.site-footer .brand__mark { font-size: 3.2rem; }
.site-footer .brand__name { font-size: 1.35rem; }
.powered { margin: 1rem 0 0; font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(246,242,235,0.6); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 0.7em 1.3em; font-size: 0.72rem; }
.site-header.is-scrolled .nav .btn { color: var(--ink); border-color: var(--ink); }
.site-header.is-scrolled .nav .btn:hover { background: var(--ink); color: var(--cream); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; color: inherit; cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; content: "";
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 28px;
    background: var(--ink); color: var(--cream);
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav a { font-size: 1rem; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--cream); background: transparent; box-shadow: none; }
}

/* ---------------- Media helpers ---------------- */
.media-bg { position: absolute; inset: 0; overflow: hidden; }
.media-bg video,
.media-bg img { width: 100%; height: 100%; object-fit: cover; }
.media-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,16,0.45) 0%, rgba(10,12,16,0.15) 40%, rgba(10,12,16,0.65) 100%);
}

/* Slow "Ken Burns" drift on still photos */
.kenburns { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns {
  from { transform: scale(1.02) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

/* Image that zooms on hover */
.zoom { overflow: hidden; }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.zoom:hover img { transform: scale(1.06); }

/* =========================================================
   HOME — split "choose your side" hero
   ========================================================= */
.hero { background: var(--cream); --choose-h: clamp(190px, 26vh, 240px); }

/* ---- Video area ---- */
.split {
  position: relative;
  display: flex;
  height: calc(100svh - var(--choose-h));
  min-height: 440px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.split__side {
  position: relative;
  flex: 1 1 50%;
  display: block;
  overflow: hidden;
}
/* Both videos share one soft, slightly muted look so they read as one picture */
.split__side .media-bg video,
.split__side .media-bg img {
  filter: saturate(0.8) brightness(0.9);
  transition: transform 1.6s var(--ease), filter 1s var(--ease);
}
.split__side .media-bg::after {
  background: linear-gradient(180deg, rgba(10,12,16,0.45) 0%, rgba(10,12,16,0.5) 50%, rgba(10,12,16,0.4) 100%);
}

/* Hovering a side of the video, or its choice below, brings that side forward */
@media (hover: hover) {
  .hero:has(.split__side--city:hover, .choose__opt--city:hover) .split__side--nj video,
  .hero:has(.split__side--nj:hover, .choose__opt--nj:hover) .split__side--city video { filter: saturate(0.3) brightness(0.6); }
  .hero:has(.split__side--city:hover, .choose__opt--city:hover) .split__side--city video,
  .hero:has(.split__side--nj:hover, .choose__opt--nj:hover) .split__side--nj video { filter: saturate(0.95) brightness(1); transform: scale(1.03); }
}

.split__divider {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 20%, rgba(255,255,255,0.3));
}

/* Headline over the video */
.split__prompt {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: min(94%, 1240px);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}
/* One line: the size scales with the screen width so it always fits */
.split__prompt h1 { font-size: min(5.2rem, calc((100vw - 40px) / 11.6)); white-space: nowrap; margin-bottom: 0; }
.split__prompt h1 em { font-style: italic; }

/* The tagline: its own elegant voice, set off by a small line */
.split__sub {
  margin: 0;
  /* Josefin Sans in spaced capitals, to echo "HOME GROUP" in the logo */
  font-family: "Josefin Sans", var(--sans);
  font-weight: 400;
  font-size: clamp(0.8rem, 1.2vw, 1.05rem);
  line-height: 1.8;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-right: -0.3em;
  color: #fff;
}
.split__sub::before {
  content: "";
  display: block;
  width: 56px; height: 1px;
  margin: clamp(18px, 3vh, 30px) auto clamp(16px, 2.6vh, 26px);
  background: rgba(255,255,255,0.6);
}

/* ---- Plain band with the question and the choices ---- */
.choose {
  height: var(--choose-h);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2.4vh, 24px);
  padding: 0 var(--gutter);
  color: var(--ink);
  background: var(--cream);
}
.choose__ask {
  margin: 0;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--brass-dark);
}
.choose__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: 820px;
}
.choose__opt {
  display: flex; justify-content: center; align-items: baseline; gap: 0.45em;
  padding: 10px 12px;
  font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.1;
  text-decoration: none; color: var(--ink);
  transition: color 0.4s var(--ease);
}
.choose__opt + .choose__opt { border-left: 1px solid var(--line); }
.choose__opt .arrow { font-family: var(--sans); font-size: 0.5em; transition: transform 0.4s var(--ease); }
.choose__opt:hover { color: var(--brass-dark); }
.choose__opt:hover .arrow { transform: translateX(6px); }

@media (max-width: 860px) {
  .hero { --choose-h: 200px; }
  .split { min-height: 420px; }
  .split__prompt { top: 56%; }
}

/* Marquee of neighborhoods */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 60s linear infinite; padding-left: 48px; }
.marquee__track span { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); font-style: italic; opacity: 0.85; }
.marquee__track span::after { content: "✦"; font-style: normal; font-size: 0.6em; margin-left: 48px; color: var(--brass); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--cream { background: var(--cream); }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .lede { color: rgba(246,242,235,0.75); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin: 0 auto; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 5vw, 64px); }
.service { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.service p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; grid-template-rows: 300px 300px; gap: 14px; }
.mosaic > * { border-radius: 4px; }
.mosaic .m1 { grid-row: span 2; }
.mosaic .m3 { grid-row: span 2; }
.mosaic figure { margin: 0; position: relative; }
.mosaic figcaption {
  position: absolute; left: 16px; bottom: 14px; color: #fff;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,0.6);
}
@media (max-width: 860px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .mosaic .m1 { grid-row: span 1; grid-column: span 2; }
  .mosaic .m3 { grid-row: span 1; }
}

/* About */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, #d9d1c3, #b9ab94);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  color: rgba(21,23,27,0.55); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.about__photo .placeholder strong { display: block; font-family: var(--serif); font-size: 5rem; letter-spacing: 0; font-weight: 500; color: rgba(21,23,27,0.35); }
.about__frame { position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--brass); border-radius: 4px; z-index: -1; }
.about__photo-wrap { position: relative; z-index: 0; }
.about__stats { display: flex; gap: clamp(24px, 5vw, 56px); margin: 2.2rem 0; padding: 1.6rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__stats div strong { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.about__stats div span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.signature { font-family: var(--serif); font-style: italic; font-size: 2rem; color: var(--brass-dark); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about__photo-wrap { max-width: 440px; margin-right: 18px; } }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 110px); }
.contact__details { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact__details li { padding: 1rem 0; border-top: 1px solid rgba(246,242,235,0.15); }
.contact__details span { display: block; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.contact__details a { text-decoration: none; font-size: 1.1rem; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.form .full { grid-column: 1 / -1; }
.field > label, .field legend { display: block; padding: 0; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(246,242,235,0.7); margin-bottom: 0.5rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--cream);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246,242,235,0.3);
  padding: 0.6rem 0;
  border-radius: 0;
  transition: border-color 0.3s;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--brass); }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-group label { margin: 0; position: relative; }
.choice-group input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-group span {
  display: inline-block; padding: 0.55em 1.1em; border: 1px solid rgba(246,242,235,0.3); border-radius: 999px;
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: none; color: var(--cream); cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.choice-group input:checked + span { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.choice-group input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.form .btn { justify-self: start; color: var(--ink); background: var(--cream); border-color: var(--cream); }
.form .btn:hover { background: var(--brass); border-color: var(--brass); }
.form-error { margin: 0; font-size: 0.9rem; color: #f0b4a8; }
.form-error[hidden] { display: none; }
.form-success { display: none; font-family: var(--serif); font-size: 1.8rem; color: var(--cream); }
.form.is-sent { display: none; }
.form.is-sent + .form-success { display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

/* =========================================================
   AREA PAGES (City / New Jersey)
   ========================================================= */
.page-hero {
  position: relative;
  height: 92vh; height: 92svh;
  min-height: 560px;
  display: flex; align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.page-hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 110px); }
.page-hero h1 { max-width: 12ch; }
.page-hero h1 em { color: var(--brass); }
.page-hero .lede { color: rgba(255,255,255,0.88); }
.page-hero .kicker { color: #fff; opacity: 0.85; }

/* Sticky sub-nav for boroughs / regions */
.subnav {
  position: sticky; top: 66px; z-index: 40;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.subnav .wrap { display: flex; gap: clamp(16px, 4vw, 48px); overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; padding: 18px 0; text-decoration: none;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone);
  border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s;
}
.subnav a:hover,
.subnav a.is-active { color: var(--ink); border-color: var(--brass); }

/* Borough / area feature block */
.area { padding: clamp(80px, 11vw, 140px) 0; scroll-margin-top: 120px; }
.area + .area { border-top: 1px solid var(--line); }
.area__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.area--flip .area__grid { grid-template-columns: 0.85fr 1.15fr; }
.area--flip .area__media { order: 2; }
.area__media { position: relative; }
.area__main { aspect-ratio: 4 / 3.2; border-radius: 4px; }
.area__inset {
  position: absolute; width: 42%; aspect-ratio: 3 / 4; right: -6%; bottom: -12%;
  border: 8px solid var(--paper); border-radius: 4px; box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}
.area--flip .area__inset { right: auto; left: -6%; }
.area__label { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--stone); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6rem 0 2rem; padding: 0; list-style: none; }
.chips li {
  padding: 0.45em 1em; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.chips li:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; margin: 0 0 2rem; }
.facts dt { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-dark); }
.facts dd { margin: 0.2rem 0 0; font-size: 0.98rem; }
@media (max-width: 860px) {
  .area__grid, .area--flip .area__grid { grid-template-columns: 1fr; }
  .area--flip .area__media { order: 0; }
  .area__inset { right: 4%; bottom: -10%; width: 38%; }
  .area--flip .area__inset { left: auto; right: 4%; }
  .area__body { margin-top: 40px; }
}

/* Horizontal-scroll gallery */
.hscroll { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--gutter) 24px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.hscroll figure { flex: none; width: clamp(260px, 30vw, 420px); margin: 0; scroll-snap-align: start; }
.hscroll .zoom { aspect-ratio: 3 / 4; border-radius: 4px; }
.hscroll figcaption { margin-top: 0.8rem; font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: rgba(246,242,235,0.85); }
.hscroll-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.hscroll-btns { display: flex; gap: 10px; }
.hscroll-btns button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(246,242,235,0.35); color: var(--cream);
  background: none; cursor: pointer; font-size: 1.1rem; transition: background 0.3s, color 0.3s;
}
.hscroll-btns button:hover { background: var(--cream); color: var(--ink); }

/* Full-bleed video band */
.band {
  position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center;
  color: #fff; overflow: hidden; background: var(--ink);
}
.band .media-bg::after { background: rgba(10,12,16,0.5); }
.band__content { position: relative; z-index: 2; padding: 80px var(--gutter); max-width: 820px; }
.band blockquote { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.12; font-style: italic; }

/* Two-way chooser on NJ page */
.chooser { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chooser a {
  position: relative; display: flex; align-items: flex-end; min-height: 440px; padding: 32px;
  text-decoration: none; color: #fff; border-radius: 4px; overflow: hidden;
}
.chooser a .media-bg img { transition: transform 1.2s var(--ease); }
.chooser a:hover .media-bg img { transform: scale(1.06); }
.chooser a > div { position: relative; z-index: 2; }
.chooser h3 { font-size: clamp(2rem, 3.6vw, 3rem); }
.chooser p { margin: 0 0 1rem; opacity: 0.9; max-width: 28em; }
.chooser .go { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
@media (max-width: 860px) { .chooser { grid-template-columns: 1fr; } .chooser a { min-height: 340px; } }

/* Town cards */
.towns { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.towns--4 { grid-template-columns: repeat(2, 1fr); }
.town .zoom { aspect-ratio: 4 / 3; border-radius: 4px; margin-bottom: 1.2rem; }
.town h3 { margin-bottom: 0.3em; }
.town p { color: var(--ink-soft); font-size: 0.97rem; }
.town .commute { display: flex; gap: 8px; align-items: center; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-dark); font-weight: 600; }
.town .commute::before { content: ""; width: 18px; height: 1px; background: currentColor; }
@media (max-width: 960px) { .towns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .towns, .towns--4 { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); counter-reset: step; }
.step { border-top: 1px solid rgba(246,242,235,0.25); padding-top: 1.6rem; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--serif); font-size: 3rem; color: var(--brass); line-height: 1; margin-bottom: 1rem; }
.step p { color: rgba(246,242,235,0.75); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Cross-link CTA (city <-> NJ) */
.crosslink {
  position: relative; display: block; min-height: 64vh; color: #fff; text-decoration: none; overflow: hidden;
}
.crosslink .media-bg img { transition: transform 1.4s var(--ease); }
.crosslink:hover .media-bg img { transform: scale(1.05); }
.crosslink .wrap { position: relative; z-index: 2; min-height: 64vh; display: flex; flex-direction: column; justify-content: center; }
.crosslink h2 { max-width: 14ch; }

/* ---------------- Footer ---------------- */
.site-footer { background: #222b37; color: rgba(246,242,235,0.7); padding: 72px 0 36px; font-size: 0.9rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(246,242,235,0.1); }
.site-footer .brand { color: var(--cream); }
.site-footer h4 { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.legal { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 28px; font-size: 0.78rem; }
.legal .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* Reduced motion: keep it calm */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Keep anchored sections clear of the fixed header */
section[id] { scroll-margin-top: 70px; }

/* =========================================================
   "Let's find your place" popup (js/lead-popup.js)
   ========================================================= */
html.lead-open { overflow: hidden; }
.lead [hidden] { display: none !important; }
dialog.lead {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(16, 22, 30, 0.35);
  overflow: auto;
}
dialog.lead::backdrop { background: rgba(28, 36, 47, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog.lead[open] { animation: lead-in 0.5s var(--ease); }
@keyframes lead-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.lead__form { position: relative; padding: clamp(28px, 5vw, 44px); }
.lead__close {
  position: absolute; top: 12px; right: 14px; width: 40px; height: 40px;
  border: 0; background: none; color: var(--stone); font-size: 1.8rem; line-height: 1; cursor: pointer;
  border-radius: 50%; transition: background 0.3s, color 0.3s;
}
.lead__close:hover { background: var(--cream); color: var(--ink); }
.lead__progress { display: flex; gap: 6px; margin-bottom: 26px; width: 120px; }
.lead__progress span { flex: 1; height: 2px; background: var(--line); transition: background 0.4s; }
.lead__progress span.is-on { background: var(--brass); }

.lead__kicker { margin: 0 0 0.5rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-dark); }
.lead__title { font-size: clamp(1.9rem, 4.5vw, 2.5rem); margin-bottom: 1.4rem; }

.lead__goals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead__goal {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.lead__goal strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; line-height: 1.1; white-space: nowrap; }
.lead__goal span { font-size: 0.82rem; color: var(--stone); line-height: 1.4; }
.lead__goal:hover, .lead__goal.is-picked { border-color: var(--ink); transform: translateY(-2px); }
.lead__goal:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }

.lead__field { display: block; border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.lead__field legend, .lead__label {
  display: block; padding: 0; margin-bottom: 8px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.lead input:not([type="checkbox"]):not([type="radio"]),
.lead select,
.lead textarea {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0.7em 0.8em;
  transition: border-color 0.3s;
}
.lead textarea { resize: vertical; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-color: var(--ink); }

.lead__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lead__chips label { position: relative; }
.lead__chips input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lead__chips span {
  display: inline-block; padding: 0.5em 1em; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.86rem; background: #fff; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lead__chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.lead__chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

.lead__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px; }
.lead__back { border: 0; background: none; font: inherit; font-size: 0.86rem; color: var(--stone); cursor: pointer; padding: 8px 0; }
.lead__back:hover { color: var(--ink); }
.lead__error { margin: 0 0 12px; font-size: 0.86rem; color: #a3402f; }
.lead__done { text-align: center; padding: 24px 0 8px; }
.lead__done p { color: var(--ink-soft); margin-bottom: 1.6rem; }

@media (max-width: 560px) {
  /* On phones the popup slides up from the bottom like a sheet */
  dialog.lead {
    width: 100%; max-width: 100%; max-height: 92svh;
    margin: auto 0 0; border-radius: 14px 14px 0 0;
  }
  .lead__goals, .lead__row { grid-template-columns: 1fr; }
  .lead__goal { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 16px; }
  .lead__goal span { text-align: right; }
  .lead__goal strong { font-size: 1.35rem; }
}

/* =========================================================
   Homes: price points + recently sold (js/homes.js)
   ========================================================= */
.homes-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.homes-head h2 { margin: 0; }
.homes-sub { margin: 0.6rem 0 0; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass-dark); }
.homes-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.homes-filter button {
  font: inherit; font-size: 0.84rem; padding: 0.5em 1.05em; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.homes-filter button:hover { border-color: var(--ink); }
.homes-filter button[aria-pressed="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.homes-filter button[hidden] { display: none; }

.homes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
@media (max-width: 960px) { .homes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .homes-grid { grid-template-columns: 1fr; } }

.home-card { display: flex; flex-direction: column; }
.home-card__media { position: relative; }
.home-card__img { display: block; aspect-ratio: 4 / 3; border-radius: 4px; }
.home-card__badge {
  position: absolute; top: 12px; left: 12px; padding: 0.35em 0.8em; border-radius: 999px;
  background: rgba(251, 249, 245, 0.92); color: var(--ink);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.home-card--sold .home-card__badge { background: var(--ink); color: var(--cream); }
.home-card__sample {
  position: absolute; top: 12px; right: 12px; padding: 0.35em 0.8em; border-radius: 999px;
  background: #a3402f; color: #fff; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.home-card__body { padding-top: 1rem; }
.home-card__price { margin: 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.1; }
.home-card__price small { font-size: 0.55em; color: var(--stone); margin-left: 2px; }
.home-card__facts { margin: 0.35rem 0 0; font-size: 0.86rem; color: var(--ink-soft); }
.home-card__addr { margin: 0.5rem 0 0; font-size: 0.92rem; }
.home-card__addr span { display: block; color: var(--stone); font-size: 0.86rem; }
.home-card__note { margin: 0.7rem 0 0; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--brass-dark); }

.homes-empty { margin: 1rem 0 0; color: var(--ink-soft); }
.homes-empty[hidden] { display: none; }
.homes-more { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* Tile shown when a home has no photo yet */
.home-card__nophoto {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; height: 100%;
  background: var(--ink); color: rgba(246, 242, 235, 0.75);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
}
.home-card__nophoto .brand__mark { font-size: 3rem; color: var(--cream); opacity: 0.85; }
.home-card--sold .home-card__nophoto + * , .home-card__media:has(.home-card__nophoto) .home-card__badge { background: var(--cream); color: var(--ink); }

.home-card__price--none { font-size: 1.4rem; color: var(--ink-soft); }

/* =========================================================
   Home search (Homes at every price point)
   ========================================================= */
.search { display: flex; flex-direction: column; gap: 14px; }

/* Buy | Rent tabs */
.search__mode { display: flex; gap: 28px; padding-left: 6px; }
.search__mode button {
  font: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0 0 8px; border: 0; background: none; cursor: pointer; color: var(--stone);
  border-bottom: 2px solid transparent; transition: color 0.3s, border-color 0.3s;
}
.search__mode button:hover { color: var(--ink); }
.search__mode button[aria-pressed="true"] { color: var(--ink); border-color: var(--brass); }
.search__mode button[hidden], .search__mode[hidden] { display: none; }

/* One slim rounded bar */
.search__pill {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 0.8fr auto;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(44, 55, 70, 0.08);
  overflow: hidden;
}
.seg {
  position: relative;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-width: 0; padding: 12px 26px;
  cursor: pointer; transition: background 0.25s;
}
.seg:hover { background: var(--cream); }
.search__pill .seg + .seg::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line);
}
.seg > span {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.seg select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 0 18px 0 0; border: 0; background: transparent; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  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='%237b766d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 9px;
}
.seg select:focus { outline: none; }
.seg:focus-within { background: var(--cream); }
.seg.is-set > span { color: var(--brass-dark); }
.seg[hidden] { display: none; }

.seg--more {
  font: inherit; text-align: left; border: 0; background: var(--ink); color: var(--cream);
  padding-right: 30px;
}
.seg--more:hover, .seg--more[aria-expanded="true"] { background: var(--ink-soft); }
.seg--more strong { font-weight: 500; font-size: 0.95rem; white-space: nowrap; }
.seg--more i { font-style: normal; color: #e3c690; }

/* Extra filters, revealed by "More" */
.search__more {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding: 0 6px;
}
.search__more[hidden] { display: none; }
.search__more .seg {
  flex: 0 1 220px; padding: 10px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
}

/* Results bar */
.search__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 30px 0 20px; }
.search__count { margin: 0; font-family: var(--serif); font-size: 1.4rem; }
.search__tools { display: flex; align-items: center; gap: 20px; }
.search__clear { font: inherit; font-size: 0.86rem; color: var(--brass-dark); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.search__clear[hidden] { display: none; }
.search__sort { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--stone); }
.search__sort select {
  font: inherit; font-size: 0.9rem; color: var(--ink); border: 0; background: transparent; cursor: pointer;
  padding: 0 16px 0 0; appearance: none; -webkit-appearance: none;
  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='%232c3746' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 9px;
}

/* No results + link to the full market */
.homes-empty { text-align: center; padding: 40px 20px; border: 1px dashed var(--line); border-radius: 12px; }
.homes-empty p { margin: 0; color: var(--ink-soft); }
.homes-empty .homes-empty__title { font-family: var(--serif); font-size: 1.6rem; color: var(--ink); margin-bottom: 6px; }
.homes-more p { margin: 0 0 14px; color: var(--ink-soft); }

/* Phones and small tablets: the bar becomes a tidy card */
@media (max-width: 760px) {
  .search__pill { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .seg { padding: 12px 18px; }
  .seg--where { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .search__pill .seg + .seg::before { display: none; }
  .search__pill .seg:nth-child(3) { border-left: 1px solid var(--line); }
  .seg--more { grid-column: 1 / -1; flex-direction: row; justify-content: center; align-items: baseline; gap: 8px; padding: 13px; }
  .search__more .seg { flex: 1 1 140px; }
}

/* =========================================================
   What's my home worth? (js/home-value.js)
   ========================================================= */
.hv { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.hv__list { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 18px; }
.hv__list li { padding-left: 34px; position: relative; }
.hv__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; background: var(--ink); color: var(--cream);
}
.hv__list strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.hv__list span { color: var(--ink-soft); font-size: 0.95rem; }
.hv__note { font-size: 0.86rem; color: var(--stone); border-left: 2px solid var(--brass); padding-left: 14px; max-width: 34em; }

.hv__card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(24px, 4vw, 40px); box-shadow: 0 18px 50px rgba(44, 55, 70, 0.08);
}
.hv__form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.hv__form[hidden] { display: none; }
.hv__full { grid-column: 1 / -1; }
.hv__field { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
.hv__field > span, .hv__field legend {
  display: block; padding: 0; margin-bottom: 7px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.hv__field em { font-style: normal; letter-spacing: 0.06em; text-transform: none; opacity: 0.8; }
.hv__form input:not([type="radio"]), .hv__form select {
  width: 100%; font: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 0.72em 0.9em;
  transition: border-color 0.3s, background 0.3s;
}
.hv__form select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2em;
  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='%232c3746' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9em center; background-size: 10px;
}
.hv__form input:focus, .hv__form select:focus { outline: none; border-color: var(--ink); background-color: #fff; }

.hv__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hv__chips label { position: relative; }
.hv__chips input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hv__chips span {
  display: inline-block; padding: 0.55em 1.05em; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.88rem; background: var(--paper); cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.hv__chips span:hover { border-color: var(--ink); }
.hv__chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.hv__chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

.hv__form .btn { justify-content: center; padding: 1.05em 1.5em; margin-top: 4px; }
.hv__error { margin: 0; font-size: 0.9rem; color: #a3402f; }
.hv__error[hidden] { display: none; }
.hv__fine { margin: -4px 0 0; text-align: center; font-size: 0.8rem; color: var(--stone); }

.hv__done { text-align: center; padding: 30px 10px; }
.hv__done[hidden] { display: none; }
.hv__done .brand__mark { font-size: 3rem; color: var(--ink); justify-content: center; margin-bottom: 10px; }
.hv__done p { color: var(--ink-soft); margin: 0; }

@media (max-width: 900px) { .hv { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hv__form { gap: 14px 10px; } .hv__card { padding: 20px 16px; } }

/* Five menu items: keep them comfortable on mid-size screens */
@media (min-width: 861px) and (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 0.72rem; letter-spacing: 0.1em; }
}

/* Swipe dots (consultation cards on phones) */
.svc-dots { display: none; }
.svc-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background 0.3s, transform 0.3s; }
.svc-dots span.is-on { background: var(--ink); transform: scale(1.2); }

/* =========================================================
   Consultation cards (Buyer / Seller / Renter)
   ========================================================= */
.move-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.move-head h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); }
.move-head .kicker { color: #e3c690; }
.move-head .lede { margin: 0 auto; }
.move-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.move {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(32px, 3.6vw, 48px) clamp(22px, 2.6vw, 34px);
  border: 1px solid rgba(246, 242, 235, 0.14); border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.move:hover { border-color: rgba(227, 198, 144, 0.55); transform: translateY(-4px); background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)); }
.move__icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px;
  border-radius: 50%; border: 1px solid rgba(227, 198, 144, 0.45); color: #e3c690;
}
.move__icon svg { width: 28px; height: 28px; }
.move h3 { font-size: clamp(1.7rem, 2.2vw, 2.1rem); margin: 0 0 0.6rem; color: var(--cream); }
.move p { margin: 0 0 1.8rem; color: rgba(246, 242, 235, 0.72); font-size: 0.96rem; line-height: 1.6; flex: 1; }
.move__btn {
  display: inline-flex; align-items: center; gap: 0.55em; padding: 0.85em 1.5em;
  border: 1px solid rgba(246, 242, 235, 0.45); border-radius: 999px;
  color: var(--cream); text-decoration: none; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.move__btn:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.move__btn .arrow { transition: transform 0.3s var(--ease); }
.move__btn:hover .arrow { transform: translateX(4px); }
@media (max-width: 960px) {
  .move { padding: 28px 18px; }
  .move p { font-size: 0.9rem; }
}
/* Phones: side by side in a row you can swipe */
@media (max-width: 700px) {
  .move-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px; scrollbar-width: none;
  }
  .move-grid::-webkit-scrollbar { display: none; }
  .move { scroll-snap-align: start; }
  .move:hover { transform: none; }
  .svc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .section--ink .svc-dots span { background: rgba(246,242,235,0.25); }
  .section--ink .svc-dots span.is-on { background: var(--cream); }
}

/* =========================================================
   Ask Josh chat bubble (js/ask-josh.js)
   ========================================================= */
.askjosh { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
html.lead-open .askjosh, body.nav-open .askjosh { display: none; }
.askjosh__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--cream); font: inherit; font-size: 0.86rem; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 12px 30px rgba(28, 36, 47, 0.3), 0 0 0 1px rgba(246, 242, 235, 0.22); transition: transform 0.3s var(--ease), background 0.3s;
}
.askjosh__toggle:hover { transform: translateY(-2px); background: var(--ink-soft); }
.askjosh__avatar {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 1.15rem;
}
.askjosh[data-open="true"] .askjosh__label { display: none; }
.askjosh[data-open="true"] .askjosh__toggle { padding: 7px; }

.askjosh__panel {
  width: min(340px, calc(100vw - 32px)); overflow: hidden;
  background: var(--paper); color: var(--ink); border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(28, 36, 47, 0.28);
  animation: lead-in 0.35s var(--ease);
}
.askjosh__panel[hidden] { display: none; }
.askjosh__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--ink); color: var(--cream); }
.askjosh__head strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.1; }
.askjosh__head span:not(.askjosh__avatar):not(.askjosh__avatar span) { font-size: 0.74rem; opacity: 0.7; }
.askjosh__head .askjosh__avatar { width: 38px; height: 38px; font-size: 1.05rem; }
.askjosh__x { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--cream); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.askjosh__x:hover { background: rgba(255,255,255,0.1); }
.askjosh__body { padding: 16px; }
.askjosh__msg {
  display: inline-block; margin: 0 0 14px; padding: 10px 14px; border-radius: 4px 14px 14px 14px;
  background: var(--cream); font-size: 0.93rem; line-height: 1.45;
}
.askjosh__choices { display: grid; gap: 8px; }
.askjosh__choices[hidden] { display: none; }
.askjosh__choices button {
  text-align: left; font: inherit; font-size: 0.9rem; padding: 0.7em 1em; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.askjosh__choices button:hover, .askjosh__choices button:focus-visible { border-color: var(--ink); background: var(--ink); color: var(--cream); outline: none; }
.askjosh__form { display: grid; gap: 8px; }
.askjosh__form[hidden] { display: none; }
.askjosh__form textarea, .askjosh__form input {
  width: 100%; font: inherit; font-size: 0.92rem; color: var(--ink);
  padding: 0.65em 0.85em; border: 1px solid var(--line); border-radius: 10px; background: #fff; resize: vertical;
}
.askjosh__form textarea:focus, .askjosh__form input:focus { outline: none; border-color: var(--ink); }
.askjosh__form button {
  font: inherit; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.85em; border: 0; border-radius: 999px; background: var(--ink); color: var(--cream); cursor: pointer;
}
.askjosh__error { margin: 0; font-size: 0.82rem; color: #a3402f; }
.askjosh__error[hidden], .askjosh__done[hidden] { display: none; }
.askjosh__done { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.askjosh__foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.askjosh__foot a {
  padding: 12px 0; text-align: center; text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink);
  transition: background 0.25s;
}
.askjosh__foot a + a { border-left: 1px solid var(--line); }
.askjosh__foot a:hover { background: var(--cream); }

@media (max-width: 600px) {
  .askjosh { right: 14px; bottom: 14px; }
  .askjosh__label { display: none; }
  .askjosh__toggle { padding: 6px; }
  .askjosh__avatar { width: 46px; height: 46px; }
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.faq__intro { position: sticky; top: 110px; }
.faq__intro .btn { margin-top: 0.6rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0;
  font-family: var(--serif); font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 500; line-height: 1.25;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--brass-dark); }
.faq__item summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
.faq__icon {
  position: absolute; right: 4px; top: 50%; width: 30px; height: 30px; margin-top: -15px;
  border: 1px solid var(--line); border-radius: 50%; transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px; background: var(--ink);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon { background: var(--ink); border-color: var(--ink); }
.faq__item[open] .faq__icon::before, .faq__item[open] .faq__icon::after { background: var(--cream); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 48px 24px 0; }
.faq__a p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.faq__item[open] .faq__a { animation: faq-in 0.45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .faq { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .faq__a { padding-right: 0; }
}

/* =========================================================
   Full-market search box (js/market-search.js)
   ========================================================= */
.homes-more { display: none; }
.mls {
  margin-top: clamp(40px, 5vw, 64px);
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: 14px; background: var(--ink); color: var(--cream);
  box-shadow: 0 20px 50px rgba(28, 36, 47, 0.18);
}
.mls__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 22px; }
.mls__text .kicker { color: #e3c690; margin: 0; width: 100%; }
.mls__text h3 { margin: 0; font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--cream); }
.mls__text p { margin: 0; color: rgba(246, 242, 235, 0.7); font-size: 0.92rem; }
.mls__form { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 0.8fr auto; gap: 10px; align-items: end; }
.mls__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mls__field > span { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246, 242, 235, 0.6); }
.mls__field input, .mls__field select {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  padding: 0.7em 0.85em; border: 0; border-radius: 8px; background-color: var(--paper);
}
.mls__field select {
  appearance: none; -webkit-appearance: none; padding-right: 2em; 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='%232c3746' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8em center; background-size: 9px;
}
.mls__field input:focus, .mls__field select:focus { outline: 2px solid #e3c690; outline-offset: 1px; }
.mls__go { background: #e3c690; color: var(--ink); border-color: #e3c690; padding: 0.95em 1.6em; }
.mls__go:hover { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.mls__nyc { margin: 18px 0 0; font-size: 0.9rem; color: rgba(246, 242, 235, 0.75); }
.mls__nyc a { color: #e3c690; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .mls__form { grid-template-columns: 1fr 1fr 1fr; }
  .mls__field--town { grid-column: span 3; }
  .mls__go { grid-column: span 3; justify-content: center; }
}
@media (max-width: 560px) {
  .mls__form { grid-template-columns: 1fr 1fr; }
  .mls__field--town, .mls__go { grid-column: 1 / -1; }
}

/* =========================================================
   Logo intro (home page, once per visit)
   ========================================================= */
.intro { display: none; }
html.show-intro .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: var(--cream);
  cursor: pointer;
  animation: intro-out 0.9s var(--ease) 2.1s forwards;
}
html.show-intro body { overflow: hidden; }
.intro__logo { display: flex; flex-direction: column; align-items: center; }
.intro__mark {
  font-size: clamp(5rem, 14vw, 8.5rem); color: var(--cream);
  opacity: 0; transform: scale(0.92);
  animation: intro-mark 1.1s var(--ease) 0.15s forwards;
}
.intro__name {
  margin-top: 26px; margin-right: -0.42em;
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase; letter-spacing: 0.2em;
  opacity: 0; animation: intro-name 1.2s var(--ease) 0.6s forwards;
}
.intro__line {
  display: block; width: 0; height: 1px; margin: 14px 0 12px; background: #e3c690;
  animation: intro-line 0.9s var(--ease) 1s forwards;
}
.intro__tag {
  margin-right: -0.4em;
  font-family: var(--sans); font-weight: 500; font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  letter-spacing: 0.4em; text-transform: uppercase; color: rgba(246, 242, 235, 0.8);
  opacity: 0; animation: intro-fade 0.8s var(--ease) 1.2s forwards;
}
@keyframes intro-mark { to { opacity: 1; transform: none; } }
@keyframes intro-name { from { opacity: 0; letter-spacing: 0.1em; } to { opacity: 1; letter-spacing: 0.42em; } }
@keyframes intro-line { to { width: 120px; } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* People who prefer less motion get a quick, simple fade */
@media (prefers-reduced-motion: reduce) {
  html.show-intro .intro { animation: intro-out 0.4s ease 0.8s forwards !important; }
  .intro__mark, .intro__name, .intro__tag { opacity: 1; transform: none; animation: none !important; letter-spacing: 0.42em; }
  .intro__mark { letter-spacing: 0; }
  .intro__line { width: 120px; animation: none !important; }
}

/* Featured listings: credit line and "View listing" link */
.homes-credit { margin: 22px 0 0; font-size: 0.78rem; color: var(--stone); text-align: center; }
.home-card__link {
  display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.8rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: border-color 0.3s, color 0.3s;
}
.home-card__link:hover { color: var(--brass-dark); border-color: var(--brass-dark); }
.home-card__link .arrow { transition: transform 0.3s var(--ease); }
.home-card__link:hover .arrow { transform: translateX(4px); }

/* Instant estimate (Josh's BoldTrail valuation page) */
.hv__instant {
  margin: 0 0 1.4rem; padding: 18px 20px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.hv__instant p { margin: 0; flex: 1 1 240px; font-size: 0.93rem; color: var(--ink-soft); }
.hv__instant strong { color: var(--ink); font-weight: 600; }
.hv__instant .btn { padding: 0.8em 1.3em; font-size: 0.74rem; }

/* =========================================================
   Reviews: "The GOOD word" (js/reviews.js), compact band
   ========================================================= */
.reviews { padding: clamp(56px, 7vw, 90px) 0; }
.reviews__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.reviews__side h2 { margin: 0 0 1.2rem; color: var(--cream); font-size: clamp(2.2rem, 4vw, 3.2rem); }
.reviews__side .kicker { color: #e3c690; }
.reviews__side h2 { margin-bottom: 0.4rem; }
.reviews__sub { margin: 0 0 1.4rem; color: rgba(246, 242, 235, 0.75); font-size: 1rem; }

.rating {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--cream);
  padding: 10px 18px 10px 14px; border: 1px solid rgba(246, 242, 235, 0.2); border-radius: 999px;
  transition: border-color 0.3s, background 0.3s;
}
.rating:hover { border-color: #e3c690; background: rgba(255,255,255,0.04); }
.rating__score { font-family: var(--serif); font-size: 2.1rem; line-height: 1; }
.rating__right { display: flex; flex-direction: column; gap: 2px; }
.rating__stars { color: #e3c690; letter-spacing: 0.16em; font-size: 0.9rem; }
.rating__count { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246, 242, 235, 0.7); }

.quote { display: grid; border-left: 1px solid rgba(246, 242, 235, 0.18); padding-left: clamp(24px, 4vw, 56px); }
.quote__slide {
  grid-area: 1 / 1; margin: 0; opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.quote__slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.quote blockquote {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem); line-height: 1.3; color: var(--cream);
}
.quote figcaption { margin-top: 14px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246, 242, 235, 0.65); }
.quote__foot { grid-area: 2 / 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.quote__dots { display: flex; gap: 9px; }
.quote__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(246, 242, 235, 0.25); transition: background 0.3s, transform 0.3s;
}
.quote__dots button[aria-current="true"] { background: #e3c690; transform: scale(1.25); }
.reviews__write { color: rgba(246, 242, 235, 0.8); font-size: 0.84rem; text-decoration: none; border-bottom: 1px solid rgba(246, 242, 235, 0.3); padding-bottom: 2px; }
.reviews__write:hover { color: #e3c690; border-color: #e3c690; }

@media (max-width: 800px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .quote { border-left: 0; padding-left: 0; border-top: 1px solid rgba(246, 242, 235, 0.18); padding-top: 26px; }
}

/* =========================================================
   Instagram (js/instagram.js)
   ========================================================= */
.ig { padding: clamp(56px, 7vw, 96px) 0; }
.ig__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.ig__head h2 { margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.ig__handle {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 0.95rem; padding-bottom: 4px; border-bottom: 1px solid var(--line);
  transition: color 0.3s, border-color 0.3s;
}
.ig__handle svg { width: 22px; height: 22px; }
.ig__handle:hover { color: var(--brass-dark); border-color: var(--brass-dark); }

/* Without a feed: just the heading + Follow button, kept compact */
.ig__grid { display: none; }
.ig__cta { margin-top: 24px; }
.ig.has-posts .ig__cta { text-align: center; margin-top: clamp(28px, 4vw, 44px); }
.ig.has-posts .ig__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: clamp(28px, 4vw, 44px);
}
.ig__post { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--cream); }
.ig__post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ig__badge {
  position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(28, 36, 47, 0.6); color: #fff; font-size: 0.7rem;
}
.ig__overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 12px;
  background: linear-gradient(180deg, rgba(28,36,47,0) 30%, rgba(28,36,47,0.85));
  color: #fff; font-size: 0.8rem; line-height: 1.35; opacity: 0; transition: opacity 0.4s var(--ease);
}
.ig__overlay span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (hover: hover) {
  .ig__post:hover img { transform: scale(1.06); }
  .ig__post:hover .ig__overlay { opacity: 1; }
}
@media (max-width: 900px) { .ig.has-posts .ig__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .ig.has-posts .ig__grid { gap: 6px; } }

/* Footer license line */
.site-footer .footer-top p strong { color: var(--cream); font-weight: 600; }
