/* ==========================================================================
   Meg Councilman | Luxury Real Estate — Shared Styles
   Color scheme: warm ivory, charcoal, and brushed gold
   ========================================================================== */

:root {
  --ink:        #1c1c1a;   /* near-black charcoal text */
  --ink-soft:   #4a4a45;   /* muted body text */
  --ivory:      #f7f4ee;   /* warm off-white background */
  --cream:      #efe9df;   /* section alt background */
  --gold:       #b6892d;   /* brushed gold accent */
  --gold-deep:  #835f1e;   /* darker gold for hover / AA-contrast text on light bg */
  --line:       #ded6c8;   /* hairline borders */
  --white:      #ffffff;
  --shadow:     0 18px 40px -20px rgba(28, 28, 26, 0.35);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Century Gothic", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.16; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }

a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.section { padding: 96px 0; }
.section--alt { background: var(--cream); }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 500;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  background: transparent;
  cursor: pointer;
  transition: all .3s ease;
}
.btn:hover { background: var(--gold); color: var(--white); }
.btn--solid { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--light { border-color: var(--white); color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); }

/* ---------- Inline arrow text-link ---------- */
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .16em; font-size: .74rem; font-weight: 600;
  color: var(--gold-deep); text-decoration: none;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}
.text-link::after { content: "\2192"; transition: transform .25s ease; }
.text-link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.text-link:hover::after { transform: translateX(4px); }
.text-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Compact "About Compass" blurb (contact card) ---------- */
.about-compass { margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.about-compass h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.about-compass p { color: var(--ink-soft); font-size: .96rem; }
.compass-stats {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center;
}
.compass-stats li { padding: 12px 6px; background: var(--cream); border: 1px solid var(--line); }
.compass-stats .cs-num { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.compass-stats .cs-label { display: block; margin-top: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft); }

/* Subtle lift + shadow micro-interaction on button hover/focus */
.btn { will-change: transform; }
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(28, 28, 26, 0.45);
}
.btn:active { transform: translateY(0); box-shadow: none; }

/* ---------- Theme-matched keyboard focus states ---------- */
/* Only show the gold ring for keyboard/AT users (:focus-visible), not mouse clicks. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.btn-cta:focus-visible,
.nav-links a:focus-visible,
.flip-nav:focus-visible,
.vplayer__btn:focus-visible,
.vplayer__big-play:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On dark backgrounds, add a soft ivory halo so the gold ring stays visible. */
.hero a:focus-visible,
.page-hero a:focus-visible,
.stats-band a:focus-visible,
.flipbook-band :focus-visible,
.vplayer :focus-visible,
.site-footer a:focus-visible {
  outline-color: #e8d6a8;
  box-shadow: 0 0 0 4px rgba(20, 20, 18, 0.55);
}
/* Range scrubber gets a ring on its thumb via the element focus */
.vplayer__scrub:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Respect reduced-motion: keep focus rings, drop the lift animation */
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:focus-visible { transform: none; }
  .contact-card .socials a:hover, .contact-card .socials a:focus-visible,
  .contact-card .compass-links a:hover, .contact-card .compass-links a:focus-visible { transform: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
/* ---------- Brand: logo image ---------- */
.brand { display: flex; align-items: center; line-height: 1; }
.brand-logo {
  height: 46px; width: auto; display: block;
  transition: height .35s ease, opacity .3s ease;
}
.brand:hover .brand-logo { opacity: .85; }

/* Condense gracefully when the sticky header shrinks */
.site-header.scrolled .brand-logo { height: 38px; }

@media (max-width: 900px) {
  .brand-logo { height: 40px; }
}
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 500;
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links a.active { color: var(--gold-deep); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.5rem; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 82vh;
  display: flex; align-items: center;
  color: var(--white); text-align: center;
  background: var(--ink);
}
.hero h1 { color: var(--white); text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 6px 30px rgba(0,0,0,.45); }
.hero .eyebrow { color: #e8d6a8; text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 3px 16px rgba(0,0,0,.4); }
.hero p { font-size: 1.2rem; max-width: 640px; margin: 1.2rem auto 2rem; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.5), 0 4px 20px rgba(0,0,0,.4); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-reviews { display: inline-flex; align-items: center; gap: 8px; margin: 1.4rem auto 0; font-size: .95rem; color: rgba(255,255,255,.92); text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.hero-reviews__stars { color: var(--gold); letter-spacing: .12em; font-size: 1rem; }
.hero-reviews__text strong { font-weight: 600; }
.hero-reviews a { color: inherit; text-decoration: none; }
.hero-reviews a:hover { text-decoration: underline; }

.page-hero {
  background: var(--ink); color: var(--white);
  padding: 90px 0 76px; text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: #e8d6a8; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin: 1rem auto 0; }

/* ---------- Split / About teaser ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { box-shadow: var(--shadow); }
.split .eyebrow { margin-top: 0; }

/* Split tuned for a portrait video: text gets more room, video column is capped
   and left-aligned so the framed vertical clip doesn't strand empty space. */
.split--video { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
.split--video .video-embed--portrait { margin-left: 0; margin-right: 0; }
@media (max-width: 900px) {
  /* When stacked, re-center the video under the text */
  .split--video .video-embed--portrait { margin-left: auto; margin-right: auto; }
}

/* ---------- Two feature cards (Buy / Sell) ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.duo-card {
  padding: 56px 44px; background: var(--white); border: 1px solid var(--line);
  text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.duo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.duo-card h3 { font-size: 1.9rem; margin-bottom: .5rem; }
.duo-card p { color: var(--ink-soft); margin-bottom: 1.6rem; }

/* ---------- Listing / property grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--white);
  font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 6px 12px; font-weight: 500;
}
.tag--dark { background: var(--ink); }
.card-body { padding: 22px 24px 26px; }
.card-price { font-family: var(--serif); font-size: 1.6rem; color: var(--gold-deep); }
.card-addr { font-size: .95rem; color: var(--ink); margin: .35rem 0 .5rem; }
.card-meta { font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat .num { font-family: var(--serif); font-size: 3rem; color: var(--gold-deep); line-height: 1; }
.stat .label { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--ink-soft); margin-top: .6rem; }

/* ---------- Testimonials ---------- */
.tslider { max-width: 820px; margin: 0 auto; position: relative; }
.tslide { display: none; text-align: center; animation: fade .6s ease; }
.tslide.active { display: block; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.tstars { color: var(--gold); letter-spacing: .2em; margin-bottom: 1.4rem; }
.tquote { font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; color: var(--ink); font-style: italic; }
.tname { margin-top: 1.4rem; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--ink-soft); }
.tnav { display: flex; justify-content: center; gap: 12px; margin-top: 2.4rem; }
.tdot { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; cursor: pointer; transition: background .25s; }
.tdot.active { background: var(--gold); }

/* ---------- Bio / prose ---------- */
.prose p { color: var(--ink-soft); margin-bottom: 1.3rem; }
/* ---------- Detail list (awards, specialties) ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.fact h3 { text-transform: uppercase; letter-spacing: .16em; font-family: var(--sans); font-size: .8rem; color: var(--gold-deep); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.fact ul { list-style: none; }
.fact li { padding: 6px 0; color: var(--ink-soft); position: relative; padding-left: 20px; }
.fact li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Steps (guides) ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: start; padding: 28px; background: var(--white); border: 1px solid var(--line); }
.step-num { counter-increment: step; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.step-num::before { content: "0" counter(step); }
.step h3 { margin-bottom: .4rem; font-size: 1.3rem; }
.step p { color: var(--ink-soft); font-size: .98rem; }
.step-detail { list-style: none; margin: .6rem 0 0; padding: 0; }
.step-detail li { position: relative; padding: 4px 0 4px 20px; color: var(--ink-soft); font-size: .95rem; }
.step-detail li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }
.step-detail a { color: var(--gold-deep); font-weight: 600; }

/* ---------- "Meg can help" nudge (deep-dive explainers) ---------- */
.meg-nudge {
  display: flex; align-items: center; gap: 14px;
  margin: 1.6rem 0 0; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
}
.meg-nudge p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.meg-nudge a { color: var(--gold-deep); font-weight: 600; white-space: nowrap; }

/* ---------- Neighborhood chips ---------- */
.hoods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hood {
  position: relative; padding: 30px 28px 32px; text-align: left;
  background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
/* Gold accent bar that grows on hover */
.hood::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.hood:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(182,137,45,.5); }
.hood:hover::before { transform: scaleX(1); }
.hood .hood-tag {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .18em;
  font-size: .58rem; color: var(--gold-deep); margin-bottom: 8px;
}
.hood h3 { font-size: 1.45rem; color: var(--ink); line-height: 1.1; }
.hood .hood-blurb { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; margin: 10px 0 16px; }
.hood .hood-chips {
  list-style: none; margin: auto 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.hood .hood-chips li {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line);
  padding: 5px 9px; transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.hood:hover .hood-chips li { border-color: rgba(182,137,45,.4); color: var(--gold-deep); }
/* Card is an anchor — keep text colors and add a hover cue */
a.hood { color: inherit; text-decoration: none; }
a.hood h3 { color: var(--ink); }
.hood .hood-more {
  margin-top: 14px; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .14em; font-size: .66rem; font-weight: 500; color: var(--gold-deep);
  opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease;
}
.hood:hover .hood-more { opacity: 1; transform: none; }

/* Legacy centered fallback (noscript cards) */
.hoods noscript .hood { text-align: center; }
.hood p { font-size: .85rem; color: var(--ink-soft); margin-top: .3rem; }

/* ---------- Forms ---------- */
.form { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.form .btn { justify-self: start; }
.form-note { font-size: .78rem; color: var(--ink-soft); line-height: 1.6; }
.form-success { display: none; padding: 16px 18px; background: #e7efe4; border: 1px solid #b9d1ad; color: #2f5723; font-size: .9rem; }
.form-success.show { display: block; }
.form-error { display: none; padding: 16px 18px; background: #f6e7e5; border: 1px solid #d9b3ad; color: #7a2e23; font-size: .9rem; }
.form-error.show { display: block; }
.form-error a { color: inherit; text-decoration: underline; }

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { padding: 40px; background: var(--white); border: 1px solid var(--line); }
.contact-card h2 { color: var(--gold-deep); margin-bottom: 1rem; }
.contact-card a { display: block; padding: 5px 0; color: var(--ink-soft); }
.contact-card a:hover { color: var(--gold-deep); }
/* Agent card: full portrait (same aspect ratio), reusing the site's gold photo frame */
.contact-card--agent .agent-photo {
  max-width: 300px;
  margin: 1.4rem auto 1.8rem;
}
/* Labeled contact rows: gold icon + uppercase label + value, divided by hairlines */
.contact-details { list-style: none; margin: 0 0 .4rem; padding: 0; }
.contact-details li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
}
.contact-details li:first-child { border-top: 1px solid var(--line); }
.contact-details .cd-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  background: var(--cream);
}
.contact-details .cd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-details .cd-label {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  color: var(--gold-deep);
}
.contact-details .cd-text a {
  display: inline;
  padding: 0;
  color: var(--ink);
  /* Fluid size: shrinks on narrow phones so the long email fits on one line,
     full size (1rem) on larger screens. */
  font-size: clamp(.82rem, 3.6vw, 1rem);
  white-space: nowrap;
}
.contact-details .cd-text a:hover { color: var(--gold-deep); }
/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 70px 0 30px; }
.site-footer h3 { color: var(--white); font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; margin-bottom: 1.2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-brand { font-family: var(--serif); font-size: 1.8rem; color: var(--white); margin-bottom: 1rem; }
.footer-brand span { color: var(--gold); }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a { font-size: .92rem; }
.socials { display: flex; gap: 16px; margin-top: 1rem; }
.socials a { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; border: 1px solid rgba(255,255,255,.25); padding: 8px 12px; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }

/* Contact-card link groups (agent socials + Compass links) as an outlined button
   stack. Placed AFTER base .socials so these reliably win the cascade — including
   on Safari, where the earlier ordering left them unstyled. */
.contact-card .socials,
.contact-card .compass-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.contact-card .socials a,
.contact-card .compass-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 500;
  padding: 15px 20px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-deep);
  text-align: center;
  transition: all .3s ease;
  will-change: transform;
}
.contact-card .socials a:hover,
.contact-card .socials a:focus-visible,
.contact-card .compass-links a:hover,
.contact-card .compass-links a:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(28, 28, 26, 0.45);
}
.contact-card .socials a:active,
.contact-card .compass-links a:active { transform: translateY(0); box-shadow: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 48px; padding-top: 24px; font-size: .78rem; color: rgba(255,255,255,.5); text-align: center; line-height: 1.7; }

/* ---------- Responsive ---------- */
/* Between the mobile breakpoint and ~1140px the 8-item nav is tightest —
   condense gap, font-size and letter-spacing so nothing wraps or clips. */
@media (max-width: 1140px) and (min-width: 1025px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .74rem; letter-spacing: .1em; }
  .nav-links a.btn-cta { padding: 9px 15px; letter-spacing: .12em; }
  .nav-links li.nav-cta { margin-left: 2px; }
}

/* Nav collapses to the hamburger menu at a wider breakpoint than the rest of
   the layout, because the 8-item horizontal nav + CTA needs more room. */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 78px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .nav-links.open { max-height: 520px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 16px 28px; width: 100%; border-top: 1px solid var(--line); }
  /* CTA reads as a full-width menu row here, not a shrink-wrapped button */
  .nav-links li.nav-cta { margin-left: 0; }
  .nav-links a.btn-cta { border: 0; padding: 16px 28px; letter-spacing: .14em; }
}

@media (max-width: 900px) {
  .split, .duo, .grid, .grid--2, .stats, .facts, .hoods, .contact-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .split { gap: 36px; }
  .section { padding: 64px 0; }
  .footer-grid { gap: 36px; }
}

/* ==========================================================================
   LUXURY ENHANCEMENTS
   ========================================================================== */

/* ---- Subtle page texture / warmth ---- */
body {
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(182,137,45,0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(182,137,45,0.05), transparent 60%);
  background-attachment: fixed;
}

/* ---- Gold hairline accent under section headings ---- */
.section h2 + .lead,
.center h2 { position: relative; }
.gold-rule { display: block; width: 64px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); margin: 1.2rem auto 0; border: 0; }
.split .gold-rule { margin-left: 0; }

/* ---- Scroll reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-reveal="fade"] { transform: none; }
[data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal-delay="3"] { transition-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero::before { animation: none !important; }
}

/* ---- Shrinking / refined sticky header ---- */
.site-header { transition: background .35s ease, box-shadow .35s ease, border-color .35s ease; }
.site-header.scrolled {
  background: rgba(247,244,238,0.97);
  box-shadow: 0 8px 30px -18px rgba(28,28,26,.4);
}
.site-header.scrolled .nav { height: 64px; transition: height .35s ease; }
.nav { transition: height .35s ease; }

/* ---- Hero: Ken Burns zoom + layered reveal + scroll cue ---- */
.hero { overflow: hidden; }
/* Fallback poster image (shows while the video loads or if it can't play) */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: url("../../primco.webp") center/cover no-repeat;
  transform: scale(1.08);
  animation: kenburns 20s ease-out forwards;
  z-index: 0;
}
/* Background video sits above the poster, below the dark overlay */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  /* Directional scrim: darkest through the vertical center (behind the copy),
     lighter at top/bottom, with a soft radial pool centered on the headline. */
  background:
    radial-gradient(120% 90% at 50% 48%, rgba(20,20,18,.72) 0%, rgba(20,20,18,.42) 45%, rgba(20,20,18,.28) 70%, rgba(20,20,18,.2) 100%),
    linear-gradient(to bottom, rgba(20,20,18,.35) 0%, rgba(20,20,18,.15) 30%, rgba(20,20,18,.15) 70%, rgba(20,20,18,.45) 100%);
  z-index: 1;
}
.hero > .wrap { position: relative; z-index: 2; }
@keyframes kenburns { to { transform: scale(1); } }

/* Hero LCP text (eyebrow, headline, lead paragraph) paints immediately —
   no opacity:0 entrance, so it is not withheld from first paint (good LCP).
   Secondary elements (CTAs, scroll cue) still animate in. */
.hero-actions {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 1s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-actions { animation-delay: .35s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero h1 .gold-rule { width: 90px; margin: 1.4rem auto; opacity: .9; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.85);
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; animation: heroIn 1s ease 1.3s forwards;
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.4); opacity:.5; } 50% { transform: scaleY(1); opacity:1; } }

/* ---- Refined buttons: gold sweep ---- */
.btn { position: relative; overflow: hidden; z-index: 0; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold); transform: translateX(-101%); transition: transform .4s ease;
}
.btn:hover::before { transform: translateX(0); }
.btn--light::before { background: var(--white); }

/* ---- Richer listing cards ---- */
.card { position: relative; border-color: var(--line); }
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,20,18,.55), transparent 45%);
  opacity: 0; transition: opacity .4s ease;
}
.card:hover .card-media::after { opacity: 1; }
.card-media .view-cue {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2;
  text-align: center; color: #fff; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease;
}
.card:hover .view-cue { opacity: 1; transform: none; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid transparent; transition: border-color .4s ease;
}
.card:hover::after { border-color: rgba(182,137,45,.55); }

/* ---- Full-bleed image band (parallax feel) ---- */
.band {
  position: relative; min-height: 60vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; padding: 90px 0;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20,20,18,.5), rgba(20,20,18,.6)); }
.band > .wrap { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band .eyebrow { color: #e8d6a8; }
.band p { color: rgba(255,255,255,.9); max-width: 640px; margin: 1rem auto 2rem; }
.band .gold-rule { margin-top: 1.2rem; }
@media (hover: none) { .band { background-attachment: scroll; } }

/* ---- Dark testimonial band ---- */
.section--dark {
  background:
    linear-gradient(rgba(20,20,18,.86), rgba(20,20,18,.9)),
    url("../img/peachtree-dr-bg.webp") center/cover fixed no-repeat;
  color: #fff;
}
.section--dark h2, .section--dark .tquote { color: #fff; }
.section--dark .eyebrow { color: #e8d6a8; }
.section--dark .tname { color: rgba(255,255,255,.72); }
.section--dark .tquote { font-size: 1.7rem; }
.section--dark .tdot { border-color: #e8d6a8; }
.section--dark .tdot.active { background: #e8d6a8; }
@media (hover: none) { .section--dark { background-attachment: scroll; } }

/* ---- Stat count-up emphasis ---- */
.stat .num { transition: color .3s ease; }
.stats [data-reveal].in .num { animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.04); } 100% { transform: scale(1); } }

/* ---- Duo cards: gold top accent ---- */
.duo-card { position: relative; }
.duo-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .45s ease;
}
.duo-card:hover::before { transform: scaleX(1); }

/* ---- Hood cards: gold underline reveal ---- */
/* ---------- Instagram feed section ---------- */
/* ---------- Instagram (Elfsight) embed — framed + on-brand ---------- */
.insta-embed {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  min-height: 120px;
  padding: 12px;                        /* white mat between frame and widget */
  background: var(--white);
  border: 1px solid var(--gold);        /* gold gallery frame, matches portrait/video */
  box-shadow: var(--shadow);
}
.insta-embed::after {                   /* inner gold hairline for the matted look */
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(182,137,45,.35);
  pointer-events: none;
  z-index: 2;
}
.insta-embed .elfsight-app-3863c967-17d4-47fc-bcfe-8a60daf6dc14 { position: relative; z-index: 1; width: 100%; }

@media (max-width: 900px) { .insta-embed { max-width: 100%; } }


/* ---------- Brand lockup: load-in animation ---------- */
/* ---------- Brand logo: load-in animation ---------- */
@keyframes brandLogoIn {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.brand-logo { opacity: 0; animation: brandLogoIn .9s cubic-bezier(.2,.7,.2,1) .15s forwards; }

@media (prefers-reduced-motion: reduce) {
  .brand-logo { opacity: 1; animation: none; }
}

/* ---------- About page: framed portrait ---------- */
.portrait {
  position: relative;
  margin: 0;
  padding: 12px;                 /* white mat between the gold frame and photo */
  background: var(--white);
  border: 1px solid var(--gold); /* the gold frame, snug around the photo */
  box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
/* Thin secondary hairline just inside the gold frame for a matted look */
.portrait::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(182,137,45,.35);
  pointer-events: none;
  z-index: 2;
}
.portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  filter: saturate(1.02) contrast(1.02);
}
/* Refined hover: a gentle lift only — frame stays put */
.portrait:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -22px rgba(28,28,26,.45);
}

/* ---------- Neighborhoods map ---------- */
#hood-map {
  height: 520px;
  width: 100%;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  background: var(--cream);
  z-index: 0;                 /* keep below sticky header */
}
@media (max-width: 900px) { #hood-map { height: 420px; } }

/* Gold pin marker */
.hood-pin-dot {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(182,137,45,.6), 0 3px 8px rgba(28,28,26,.35);
  transition: transform .2s ease;
}
.hood-pin:hover .hood-pin-dot { transform: scale(1.25); }

/* Popup styled to match the brand */
.leaflet-popup-content-wrapper {
  border-radius: 0;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
}
.leaflet-popup-content { margin: 16px 18px; }
.hood-popup .hp-tag {
  display: inline-block; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .18em; font-size: .58rem; color: var(--gold-deep);
  padding-bottom: 6px;
}
.hood-popup strong {
  display: block; font-family: var(--serif); font-size: 1.3rem;
  color: var(--ink); font-weight: 500; line-height: 1.15; margin-bottom: 6px;
}
.hood-popup p {
  font-family: var(--sans); font-size: .84rem; line-height: 1.55;
  color: var(--ink-soft); margin: 0 0 10px;
}
.hood-popup .hp-tags {
  list-style: none; margin: 0 0 12px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.hood-popup .hp-tags li {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
  background: var(--cream); border: 1px solid var(--line);
  padding: 4px 8px;
}
.hood-popup .hp-link {
  display: inline-block; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .14em; font-size: .66rem; font-weight: 500;
  color: var(--gold-deep); border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.hood-popup .hp-link:hover { color: var(--ink); border-color: var(--ink); }
.leaflet-popup-tip { border: 1px solid var(--gold); }

/* Tooltip */
.hood-tip {
  background: var(--ink); color: #fff; border: 0;
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .12em;
  font-size: .66rem; padding: 5px 9px;
}
.hood-tip::before { border-top-color: var(--ink); }

/* Zoom controls tint */
.leaflet-bar a { color: var(--ink); }
.leaflet-bar a:hover { color: var(--gold-deep); }

/* ==========================================================================
   REFINEMENTS: selection, dividers, link underlines, header accent, nav CTA
   ========================================================================== */

/* (3) Gold text selection */
::selection { background: rgba(182,137,45,.28); color: var(--ink); }
::-moz-selection { background: rgba(182,137,45,.28); color: var(--ink); }

/* (4) Gold diamond section divider */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto; max-width: var(--wrap); padding: 0 28px;
}
.section + .divider, .divider { padding-top: 6px; padding-bottom: 6px; }
.divider::before, .divider::after {
  content: ""; height: 1px; flex: 1 1 auto; max-width: 220px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.divider .diamond {
  width: 9px; height: 9px; transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(182,137,45,.12);
  flex: 0 0 auto;
}

/* (5) Unified gold underline-draw on links (footer + inline content links) */
.site-footer a, .prose a, .form-note a, .card-addr a {
  position: relative; display: inline;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s ease, color .25s ease;
  padding-bottom: 1px;
}
.site-footer a:hover, .prose a:hover, .form-note a:hover, .card-addr a:hover {
  background-size: 100% 1px;
}

/* (6) Header gold top-border + stronger active-page indicator */
.site-header { border-top: 2px solid var(--gold); }
.nav-links a.active { color: var(--gold-deep); }
.nav-links a.active::after { width: 100%; height: 2px; }
.nav-links a::after { height: 2px; }

/* (7) Nav "Let's Connect" gold button CTA */
.nav-links li.nav-cta { margin-left: 6px; }
.nav-links a.btn-cta {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  letter-spacing: .16em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .3s ease, color .3s ease;
}
.nav-links a.btn-cta::after { display: none; }   /* no underline draw on the button */
.nav-links a.btn-cta:hover { background: var(--gold); color: #fff; }
.site-header.scrolled .nav-links a.btn-cta { padding: 8px 18px; }

/* (9) Premium dark/gold stats band */
.stats-band {
  background:
    linear-gradient(rgba(20,20,18,.92), rgba(20,20,18,.94)),
    url("../../primco.webp") center/cover no-repeat fixed;
  color: #fff;
  border-top: 1px solid rgba(182,137,45,.4);
  border-bottom: 1px solid rgba(182,137,45,.4);
}
.stats-band .stats { position: relative; }
.stats-band .stat { position: relative; padding: 8px 12px; }
/* Thin gold dividers between the three stats */
.stats-band .stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 60px;
  background: linear-gradient(transparent, rgba(182,137,45,.5), transparent);
}
.stats-band .stat .num { color: #e8d6a8; }
.stats-band .stat .label { color: rgba(255,255,255,.7); }
@media (hover: none) { .stats-band { background-attachment: scroll; } }
@media (max-width: 900px) {
  .stats-band .stat + .stat::before { display: none; }
}

/* (17) Hero headline: larger, tighter, italic accent word */
.hero-title {
  font-size: clamp(3rem, 7vw, 5.6rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero-title em {
  font-style: italic;
  color: #e8d6a8;
  font-weight: 400;
}


/* Footer PrimCo logo (between brand name and description) */
.footer-logo {
  height: 48px; width: auto; display: block;
  margin: 4px 0 16px;
}

/* About: name line styled to match the gold drop-cap M (serif, gold, larger) */
.prose p.prose-name,
.prose-name {
  font-family: var(--serif);
  color: var(--gold-deep);
  font-size: 1.9rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
}

/* About teaser: British/Atlanta mark under the heading */
.brits-mark {
  display: block;
  width: auto;
  height: 56px;
  margin: 1.2rem 0 0.4rem;
}

/* ---------- Neighborhood Market Snapshot ---------- */
.snapshot {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  max-width: 920px; margin: 0 auto;
}
.snap {
  background: var(--white); border: 1px solid var(--line);
  padding: 30px 20px; text-align: center; position: relative;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.snap::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.snap:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(182,137,45,.5); }
.snap:hover::before { transform: scaleX(1); }
.snap-num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-deep); line-height: 1; }
.snap-label {
  margin-top: .7rem; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .14em; font-size: .66rem; color: var(--ink-soft);
}
.snapshot-meta {
  max-width: 920px; margin: 1.8rem auto 0; text-align: center;
  font-size: .78rem; color: var(--ink-soft); line-height: 1.7;
}
.snapshot-meta a { color: var(--gold-deep); border-bottom: 1px solid var(--gold); }
.snapshot-meta a:hover { color: var(--ink); }
@media (max-width: 720px) { .snapshot { grid-template-columns: repeat(2, 1fr); } }

/* 3-up variant (e.g. Compass Concierge ROI stats) */
.snapshot--three { grid-template-columns: repeat(3, 1fr); max-width: 760px; }
@media (max-width: 720px) { .snapshot--three { grid-template-columns: 1fr; } }

/* ---------- Getting Around (distance cards) ---------- */.snap-dest {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em;
  font-size: .66rem; color: var(--ink-soft); margin-bottom: .7rem;
}
.snap-time {
  margin-top: .5rem; font-family: var(--sans); font-size: .8rem; color: var(--ink-soft);
}

/* ---------- Compass Concierge covered-services list ---------- */
.concierge-services {
  list-style: none; padding: 0; margin: 0 auto; max-width: 820px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px;
}
.concierge-services li {
  position: relative; padding-left: 22px;
  font-family: var(--sans); font-size: .9rem; color: var(--ink-soft); line-height: 1.5;
}
.concierge-services li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
}
@media (max-width: 720px) { .concierge-services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .concierge-services { grid-template-columns: 1fr; } }

/* ---------- Mortgage calculator ---------- */.mortgage {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px;
  max-width: 940px; margin: 0 auto; align-items: start;
}
.mortgage-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.mortgage-form .field { margin: 0; }
.mc-hint { margin: 6px 0 0; font-size: .74rem; color: var(--ink-soft); }
.mortgage-result {
  background: var(--ink); color: var(--white);
  padding: 32px 28px; text-align: center; position: relative;
}
.mortgage-result::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-deep));
}
.mc-result-label {
  text-transform: uppercase; letter-spacing: .16em; font-size: .72rem;
  color: rgba(255,255,255,.7); margin: 0 0 .5rem;
}
.mc-result-num {
  font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--gold);
}
.mc-breakdown {
  list-style: none; padding: 1.6rem 0 0; margin: 1.6rem 0 0;
  border-top: 1px solid rgba(255,255,255,.15); text-align: left;
}
.mc-breakdown li {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--sans); font-size: .88rem; padding: .45rem 0;
  color: rgba(255,255,255,.85);
}
.mc-breakdown li span:last-child { color: var(--white); font-weight: 500; }
.mc-loan-amt {
  margin: 1.4rem 0 0; font-size: .82rem; color: rgba(255,255,255,.7);
}
.mc-loan-amt strong { color: var(--white); }
@media (max-width: 760px) {
  .mortgage { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .mortgage-form { grid-template-columns: 1fr; }
}

/* ---------- Compact neighborhood discovery (chip links) ---------- */
.hood-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  max-width: 860px; margin: 0 auto;
}
.hood-links a {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 11px 20px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--sans); font-size: .92rem; color: var(--ink); line-height: 1;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, color .3s ease;
}
.hood-links a .hl-tag {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft);
  transition: color .3s ease;
}
.hood-links a:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: rgba(182,137,45,.5); color: var(--gold-deep);
}
.hood-links a:hover .hl-tag { color: var(--gold-deep); }

/* Grouped chip layout */
.hood-group + .hood-group { margin-top: 2.2rem; }
.hood-group-label {
  text-align: center; font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .18em; font-size: .66rem; color: var(--gold-deep);
  margin: 0 0 1.1rem;
}

/* Fair Housing / accuracy disclaimer in footer */.footer-bottom .fair-housing {
  margin-top: 12px;
  font-size: .72rem;
  color: rgba(255,255,255,.62);
  max-width: 900px; margin-left: auto; margin-right: auto;
}

/* ==========================================================================
   MOBILE HARDENING — prevent horizontal overflow ("squirrelly" scroll on iOS)
   ========================================================================== */

/* Global guard: never allow horizontal scroll from stray-wide elements */
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { min-width: 0; }
img, video, iframe { max-width: 100%; height: auto; }
.hero-video { height: 100%; }            /* keep the cover video full-bleed */

/* iOS renders background-attachment:fixed poorly — disable on touch devices */
@media (hover: none), (max-width: 900px) {
  body { background-attachment: scroll; }
  .band, .section--dark, .stats-band { background-attachment: scroll; }
}

/* Mobile refinements */
@media (max-width: 900px) {
  /* Keep the dropdown menu pinned to the header at both heights */
  .nav-links { top: 100%; }

  /* Prevent the gold section dividers from ever exceeding the viewport */
  .divider { overflow: hidden; }
  .divider::before, .divider::after { max-width: 30vw; }

  /* Map + embeds stay within the screen */
  #hood-map, .insta-embed { max-width: 100%; }

  /* Give edge padding breathing room so nothing kisses the screen edge */
  .wrap { padding-left: 22px; padding-right: 22px; }

  /* Stats band: stack cleanly, no vertical divider bleed */
  .stats-band .stat + .stat::before { display: none; }
}

@media (max-width: 560px) {
  /* Snapshot to a single, comfortable column on small phones */
  .snapshot { grid-template-columns: 1fr 1fr; gap: 14px; }
  .snap { padding: 22px 14px; }
  .snap-num { font-size: 1.8rem; }
  /* Testimonial quote scales down so it doesn't overflow its container */
  .section--dark .tquote, .tquote { font-size: 1.25rem; }
}

/* Fix: keep hero content from overlapping the "Explore" scroll cue */
.hero { padding: 90px 0 120px; }        /* reserve room at bottom for the cue */
.scroll-cue { bottom: 30px; }
/* On short or small screens there isn't room for the cue — hide it to avoid overlap */
@media (max-height: 720px), (max-width: 600px) {
  .scroll-cue { display: none; }
  .hero { padding: 80px 0; }
}

/* Listing cards that are links keep normal text styling (no link blue/underline) */
a.card { color: inherit; text-decoration: none; display: block; }
a.card .card-price { color: var(--gold-deep); }

/* Compass CEO pull-quote on Contact page */
.compass-quote {
  margin: 1.6rem 0 0;
  padding: 1.2rem 0 0 1.4rem;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--ink);
}
.compass-quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--sans);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  color: var(--gold-deep);
}

/* Full-width responsive video embed (Contact page, below the two cards) */
.video-embed {
  position: relative;
  margin-top: 32px;
  width: 100%;
  padding: 10px;                       /* white mat between frame and video */
  background: var(--white);
  border: 1px solid var(--gold);       /* gold gallery frame */
  box-shadow: var(--shadow);
}
/* Inner gold hairline for the matted look */
.video-embed::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px solid rgba(182,137,45,.35);
  pointer-events: none;
  z-index: 2;
}
.video-embed iframe {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: var(--ink);
}

/* Native <video> shares the same framed treatment as embedded iframes */
.video-embed video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  background: var(--ink);
}

/* Portrait (9:16) variant — vertical clips are centered and width-capped so the
   framed video stays a comfortable height on desktop. */
.video-embed--portrait {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  /* Deeper, layered shadow so the framed vertical video reads as a premium object */
  box-shadow:
    0 30px 60px -24px rgba(28, 28, 26, 0.55),
    0 12px 28px -18px rgba(28, 28, 26, 0.40);
}
.video-embed--portrait video {
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
@media (max-width: 480px) {
  .video-embed--portrait { max-width: 320px; }
}

/* ==========================================================================
   CUSTOM VIDEO PLAYER — gold / charcoal themed controls
   ========================================================================== */
.vplayer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
}
.vplayer__video { display: block; width: 100%; height: auto; }
/* Hide the native (esp. iOS Safari) media control chrome so our custom
   control bar is the only UI. iOS renders these pseudo-elements even when the
   `controls` attribute has been removed, so we suppress them explicitly. */
.vplayer__video::-webkit-media-controls,
.vplayer__video::-webkit-media-controls-enclosure,
.vplayer__video::-webkit-media-controls-panel,
.vplayer__video::-webkit-media-controls-start-playback-button,
.vplayer__video::-webkit-media-controls-play-button,
.vplayer__video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 0 !important;
}

/* Large centered play button (shown while paused) */
.vplayer__big-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: rgba(28, 28, 26, 0.42);
  backdrop-filter: blur(3px);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease, opacity .3s ease;
  z-index: 3;
}
.vplayer__big-play svg { width: 34px; height: 34px; margin-left: 4px; }
.vplayer__big-play:hover { background: var(--gold); color: var(--ink); transform: translate(-50%, -50%) scale(1.06); }
.vplayer.is-playing .vplayer__big-play { opacity: 0; pointer-events: none; }

/* Control bar */
.vplayer__controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 12px;
  background: linear-gradient(to top, rgba(20,20,18,.82) 0%, rgba(20,20,18,.5) 60%, rgba(20,20,18,0) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
/* Reveal controls on hover, focus-within, while paused, or when toggled by a
   tap on touch devices (which have no :hover). */
.vplayer:hover .vplayer__controls,
.vplayer:focus-within .vplayer__controls,
.vplayer.is-paused .vplayer__controls,
.vplayer.controls-visible .vplayer__controls {
  opacity: 1;
  transform: translateY(0);
}

.vplayer__btn {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.9);
  cursor: pointer;
  transition: color .25s ease, transform .25s ease;
}
.vplayer__btn svg { width: 20px; height: 20px; }
.vplayer__btn:hover { color: var(--gold); transform: scale(1.08); }

/* Time readout */
.vplayer__time {
  flex: 0 0 auto;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
  font-variant-numeric: tabular-nums;
  min-width: 74px;
}

/* Gold progress scrubber */
.vplayer__scrub {
  flex: 1 1 auto;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  outline: none;
  /* --played is updated by JS (0–100%) to fill the track in gold */
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: var(--played, 0%) 100%;
}
.vplayer__scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
  cursor: pointer;
}
.vplayer__scrub::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  cursor: pointer;
}
.vplayer__scrub::-moz-range-progress { background: var(--gold); height: 4px; border-radius: 2px; }

/* Push the mute + fullscreen buttons to the right edge */
.vplayer__mute { margin-left: 2px; }

@media (max-width: 480px) {
  .vplayer__big-play { width: 68px; height: 68px; }
  .vplayer__big-play svg { width: 28px; height: 28px; }
  .vplayer__time { min-width: 68px; font-size: .68rem; }
}

/* Footnote under the Marketing by the Numbers stats */
.stats-footnote {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}

/* Blended background video band (neighborhoods page) */
.video-band {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  max-height: 720px;
  overflow: hidden;
  background: var(--ivory);
}
.video-band-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}
/* Soft gradient fades top & bottom so the video blends into the page.
   Top meets an ivory section; bottom meets a cream (.section--alt) section,
   so each end fades to its neighbor's color to avoid a hard line. */
.video-band::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      var(--ivory) 0%,
      rgba(247,244,238,0) 30%,
      rgba(239,233,223,0) 55%,
      var(--cream) 100%),
    linear-gradient(rgba(20,20,18,.12), rgba(20,20,18,.12));
  pointer-events: none;
}
@media (max-width: 600px) { .video-band { height: 44vh; min-height: 300px; } }

/* ==========================================================================
   FLIPBOOK — Seller's Guide (image-based page-flip)
   Charcoal stage with brushed-gold accents to match the luxury theme.
   ========================================================================== */
.flipbook-band {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
/* Warm gold glow behind the book, echoing the body texture */
.flipbook-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 50% 8%, rgba(182,137,45,0.14), transparent 62%),
    radial-gradient(700px 420px at 12% 100%, rgba(182,137,45,0.08), transparent 60%);
  pointer-events: none;
}
.flipbook-band .wrap { position: relative; z-index: 1; }
.flipbook-band .eyebrow { color: #e8d6a8; }
.flipbook-band h2 { color: var(--white); }
.flipbook-band .lead { color: rgba(255,255,255,.72); }

/* Stage that holds the book + side arrows */
.flipbook-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 2.6rem auto 0;
  max-width: 1120px;
}

/* The StPageFlip mount. Aspect ratio matches letter portrait pages. */
.flipbook {
  flex: 0 1 auto;
  max-width: 100%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55));
  touch-action: pan-y;
}
.flipbook .page {
  background: var(--ivory);
  overflow: hidden;
}
.flipbook .page img { width: 100%; height: 100%; display: block; object-fit: cover; }
/* Thin gold seam along the book's spine side of each page */
.flipbook .page--left  { box-shadow: inset -1px 0 0 rgba(182,137,45,.35); }
.flipbook .page--right { box-shadow: inset  1px 0 0 rgba(182,137,45,.35); }

/* Loading shimmer before the book initializes */
.flipbook-loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 300px; width: 100%;
  color: rgba(255,255,255,.6);
  font-family: var(--sans); letter-spacing: .18em; text-transform: uppercase; font-size: .74rem;
}

/* Circular gold navigation arrows */
.flip-nav {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s ease, color .3s ease, opacity .3s ease, transform .3s ease;
}
.flip-nav svg { width: 20px; height: 20px; }
.flip-nav:hover { background: var(--gold); color: var(--ink); }
.flip-nav:disabled { opacity: .3; cursor: default; }
.flip-nav:disabled:hover { background: transparent; color: var(--gold); }

/* Controls row under the book: page counter */
.flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.flipbook-counter {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .74rem;
  color: rgba(255,255,255,.7);
}
.flipbook-counter strong { color: var(--gold); font-weight: 600; }
.flipbook-hint {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
}
/* Light button variant sits well on the charcoal stage */
.flipbook-actions { margin-top: 2rem; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.flipbook-band .btn--light { border-color: var(--gold); color: #e8d6a8; }
.flipbook-band .btn--light:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* On smaller screens the side arrows move below the book */
@media (max-width: 760px) {
  .flipbook-stage { gap: 12px; }
  .flip-nav { display: none; }              /* rely on swipe + bottom controls */
  .flipbook-controls .flip-nav { display: flex; } /* keep arrows in the controls row */
}
@media (max-width: 480px) {
  .flip-nav { width: 44px; height: 44px; }
}

/* ==========================================================================
   RELOCATION SERVICES — feature cards
   ========================================================================== */
.reloc-services { gap: 24px; }
.reloc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  padding: 30px 28px 32px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.reloc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.reloc-card h3 {
  font-size: 1.35rem;
  margin-bottom: .5rem;
  color: var(--ink);
}
.reloc-card p {
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 900px) {
  .reloc-services { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1024px) {
  .reloc-services { grid-template-columns: repeat(2, 1fr); }
}
