/* ============================================
   CAROL CAWLEY - REAL ESTATE
   Coldwell Banker Realty, East Regional
   ============================================ */

/* TOKENS */
:root {
  /* Palette */
  --ink:        #0A1730;
  --ink-2:      #0E1C3D;
  --navy:       #0F2147;
  --navy-2:     #1A3068;
  --navy-3:     #2952A3;
  --paper:      #FAFAF6;
  --paper-2:    #F4F2EC;
  --paper-3:    #E9E6DD;
  --rule:       #E5E2DC;
  --rule-2:     #D2CDC0;
  --clay:       #B85D3E;
  --clay-hover: #C46D4A;
  --clay-deep:  #964830;
  --clay-soft:  #E8B69A;
  --clay-glow:  rgba(184, 93, 62, 0.18);
  --fg:         #0A1730;
  --fg-soft:    #1B2A4E;
  --fg-muted:   #5C6577;
  --fg-faint:   #8993A8;
  --on-dark:    #F4F2EC;
  --on-dark-mu: rgba(244, 242, 236, 0.65);

  /* Type */
  --font-sans:  'Schibsted Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;

  /* Layout */
  --container: 1320px;
  --gutter:    clamp(20px, 4vw, 56px);
  --section-y: clamp(72px, 10vw, 140px);

  /* Radius scale (3 tiers) */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 22px;

  /* Shadow scale - layered for premium depth */
  --sh-1: 0 1px 2px rgba(10, 23, 48, 0.04), 0 1px 1px rgba(10, 23, 48, 0.03);
  --sh-2: 0 1px 2px rgba(10, 23, 48, 0.04), 0 8px 24px rgba(10, 23, 48, 0.06), 0 16px 48px rgba(10, 23, 48, 0.04);
  --sh-3: 0 2px 4px rgba(10, 23, 48, 0.04), 0 12px 32px rgba(10, 23, 48, 0.12), 0 32px 64px rgba(10, 23, 48, 0.08), 0 1px 0 rgba(255,255,255,0.5) inset;
  --sh-clay: 0 8px 32px rgba(184, 93, 62, 0.18), 0 2px 8px rgba(184, 93, 62, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);

  /* Header */
  --header-h: 84px;
  --header-h-compact: 64px;
}

/* CURSOR KEY — replaces system cursor on desktop. Centered on the key's
   circle bow so it feels anchored at the cursor's true position. */
html.has-cursor-key,
html.has-cursor-key body,
html.has-cursor-key a,
html.has-cursor-key button,
html.has-cursor-key summary,
html.has-cursor-key select,
html.has-cursor-key label,
html.has-cursor-key [role="button"] {
  cursor: none;
}
/* Restore native I-beam for text inputs so users can see selection */
html.has-cursor-key input[type="text"],
html.has-cursor-key input[type="email"],
html.has-cursor-key input[type="tel"],
html.has-cursor-key input[type="search"],
html.has-cursor-key input[type="number"],
html.has-cursor-key textarea {
  cursor: text;
}

.cursor-key {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  color: #B85D3E;
  opacity: 0.95;
  transform: translate3d(-200px, -200px, 0); /* offscreen until first pointer move */
  transform-origin: 12px 18px; /* swing pivots on the circle bow, matching the JS anchor */
  transition: opacity 160ms ease, color 160ms ease;
  will-change: transform;
  filter: drop-shadow(0 2px 4px rgba(10,23,48,0.18));
}
.cursor-key svg {
  display: block;
  transition: transform 150ms cubic-bezier(0.3, 1.4, 0.5, 1);
  transform-origin: 33% 50%; /* roughly the circle bow center */
}
.cursor-key::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 33%;
  width: 64px;
  height: 64px;
  margin-top: -32px;
  margin-left: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,93,62,0.28) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1), transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(0.6);
  z-index: -1;
}
.cursor-key.is-hover svg {
  transform: scale(1.25) rotate(-12deg);
}
.cursor-key.is-hover::before {
  opacity: 1;
  transform: scale(1);
}
.cursor-key.is-down svg {
  transform: scale(1.1) rotate(8deg);
  transition-duration: 80ms; /* press feedback should feel immediate */
}
.cursor-key.is-hidden { opacity: 0; }

/* READING PROGRESS — clay hairline pinned to the very top edge */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--clay), var(--clay-hover));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 10000;
  pointer-events: none;
}

/* CROSS-PAGE TRANSITIONS — soft fade between pages (progressive enhancement) */
@view-transition {
  navigation: auto;
}
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

@media (max-width: 1023px), (pointer: coarse) {
  .cursor-key { display: none !important; }
  html.has-cursor-key, html.has-cursor-key body,
  html.has-cursor-key a, html.has-cursor-key button,
  html.has-cursor-key summary, html.has-cursor-key select,
  html.has-cursor-key label, html.has-cursor-key [role="button"] { cursor: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-key { display: none !important; }
}

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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
/* Grid/flex children that need to shrink for proper overflow handling */
.hero-wrap > *,
.about-grid > *,
.search-grid > *,
.leads-grid > *,
.testimonial-grid > *,
.footer-grid > *,
.contact-grid > * { min-width: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.5vw + 0.875rem, 1.0625rem);
  line-height: 1.55;
  color: var(--fg);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'kern', 'liga', 'calt';
  letter-spacing: -0.005em;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

/* Premium grain texture overlay on warm areas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}
@media (prefers-reduced-motion: reduce) {
  body::before { display: none; }
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { font-style: italic; background-repeat: no-repeat; background-size: cover; }

button { font-family: inherit; cursor: pointer; border: 0; background: 0; padding: 0; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--clay); color: var(--paper); }

/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 2000;
  border-radius: var(--r-sm);
}
.skip-link:focus { top: 8px; }

/* FOCUS */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* WRAP */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* TYPE */
.section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 12px 0 0;
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--clay);
}

.section-eyebrow,
.subhero-eyebrow,
.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-muted);
  position: relative;
}
.section-eyebrow::before,
.subhero-eyebrow::before,
.cta-eyebrow::before {
  content: '';
  width: 0;
  height: 1px;
  background: var(--clay);
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}
.section-eyebrow.drawn::before,
.subhero-eyebrow.drawn::before,
.cta-eyebrow.drawn::before {
  width: 36px;
}
.subhero-eyebrow.drawn::before,
.cta-eyebrow.drawn::before { width: 40px; }

.section-lede {
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.2rem);
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 56ch;
  margin: 20px 0 32px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border-radius: var(--r-sm);
  border: 1px solid var(--ink);
  min-height: 48px;
  min-width: 44px;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
  position: relative;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: var(--sh-2);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary--light {
  background: var(--clay);
  color: var(--paper);
  border-color: var(--clay);
}
.btn-primary--light:hover {
  background: var(--clay-hover);
  border-color: var(--clay-hover);
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 16px 4px;
  border-bottom: 1px solid var(--rule-2);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out), gap 220ms var(--ease-out);
  min-height: 44px;
}
.btn-text span { transition: transform 220ms var(--ease-out); display: inline-block; }
.btn-text:hover { color: var(--clay); border-color: var(--clay); }
.btn-text:hover span { transform: translateX(4px); }

.btn-text--light { color: var(--paper); border-color: rgba(244,242,236,0.4); }
.btn-text--light:hover { color: var(--clay-soft); border-color: var(--clay-soft); }

/* HEADER */
.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(250, 250, 246, 0.72);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 320ms var(--ease-out), border-color 320ms var(--ease-out), backdrop-filter 320ms var(--ease-out);
}
.site.is-compact {
  background: rgba(250, 250, 246, 0.92);
  border-bottom-color: var(--rule);
  box-shadow: 0 8px 24px rgba(10, 23, 48, 0.03);
}

.wrap.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
  transition: height 240ms var(--ease-out);
}
.site.is-compact .wrap.nav { height: var(--header-h-compact); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  min-height: 44px;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clay);
  transition: color 200ms var(--ease-out);
}
.logo:hover .logo-mark { color: var(--ink); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.logo-meta {
  margin-top: 3px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0 auto;
}
.desktop-nav a {
  color: var(--fg-soft);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 8px 2px;
  transition: color 200ms var(--ease-out);
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms var(--ease-out);
}
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { transform: scaleX(1); }

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-phone {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid var(--rule);
  padding: 6px 2px;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.nav-phone:hover { color: var(--clay); border-color: var(--clay); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background 220ms var(--ease-out);
}
.nav-cta:hover { background: var(--clay); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  margin-left: auto;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21.5px; }
.nav-toggle span:nth-child(3) { top: 27px; }

@media (max-width: 1023px) {
  .desktop-nav, .nav-cta-group { display: none; }
  .nav-toggle { display: block; }
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 340ms var(--ease-out), visibility 0s linear 340ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px var(--gutter);
  padding-top: max(24px, env(safe-area-inset-top));
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-h);
}
.menu-close {
  width: 44px;
  height: 44px;
  position: relative;
}
.menu-close span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--ink);
  top: 50%;
}
.menu-close span:first-child { transform: rotate(45deg); }
.menu-close span:last-child  { transform: rotate(-45deg); }

.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
}
.mobile-menu-link {
  display: block;
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  padding: 14px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out), color 200ms var(--ease-out);
  min-height: 56px;
  display: flex;
  align-items: center;
}
.mobile-menu.is-open .mobile-menu-link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open .mobile-menu-link:nth-child(1) { transition-delay: 140ms; }
.mobile-menu.is-open .mobile-menu-link:nth-child(2) { transition-delay: 200ms; }
.mobile-menu.is-open .mobile-menu-link:nth-child(3) { transition-delay: 260ms; }
.mobile-menu.is-open .mobile-menu-link:nth-child(4) { transition-delay: 320ms; }
.mobile-menu.is-open .mobile-menu-link:nth-child(5) { transition-delay: 380ms; }
.mobile-menu-link:hover { color: var(--clay); }
.mobile-menu-link[aria-current="page"] {
  color: var(--clay);
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.mobile-menu-phone {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.mobile-menu-meta {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 8px 0 0;
}

body.menu-open { overflow: hidden; }

/* HERO */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px));
  padding-bottom: clamp(72px, 8vw, 120px);
  background: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, var(--paper-2) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, var(--paper-3) 0%, transparent 40%);
  opacity: 0.7;
}
.hero-glow {
  position: absolute;
  top: 30%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, var(--clay-glow) 0%, transparent 65%);
  animation: heroGlowDrift 22s ease-in-out infinite alternate;
}
@keyframes heroGlowDrift {
  0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(-40px, 20px) scale(1.1); opacity: 1; }
}

.hero-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 1023px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 56px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 12px;
  border-radius: 100px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: clamp(0.68rem, 1.6vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  max-width: 100%;
}
.hero-eyebrow span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100vw - 80px);
}
@media (max-width: 480px) {
  .hero-eyebrow span:last-child { white-space: normal; overflow: visible; }
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  position: relative;
}
.eyebrow-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--clay-glow);
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: 0.2; }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 28px 0 28px;
  color: var(--ink);
  font-feature-settings: 'kern', 'liga';
}
.hero-title .line {
  display: block;
}
@media (max-width: 600px) {
  .hero-title { font-size: clamp(1.7rem, 7.4vw, 2.25rem); letter-spacing: -0.02em; line-height: 1.06; }
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  letter-spacing: -0.015em;
}

.hero-lede {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  line-height: 1.5;
  color: var(--fg-soft);
  max-width: 36ch;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-bottom: 48px;
}
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-actions .btn-primary { width: 100%; max-width: 320px; }
}

.hero-credentials {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 8px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
  row-gap: 24px;
}
.cred-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 clamp(10px, 2vw, 24px);
}
.cred-item:first-child { padding-left: 0; }
.cred-item:last-child  { padding-right: 0; }
.cred-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.02em;
  font-feature-settings: 'lnum';
}
.cred-label {
  font-size: clamp(0.7rem, 1.6vw, 0.78rem);
  color: var(--fg-muted);
  line-height: 1.4;
  letter-spacing: 0.01em;
  word-break: break-word;
}
.cred-rule {
  width: 1px;
  background: var(--rule);
  align-self: stretch;
}
@media (max-width: 480px) {
  .cred-rule { display: none; }
}

/* HERO RIGHT - PORTRAIT */
.hero-right {
  position: relative;
}
.hero-portrait {
  position: relative;
  max-width: 480px;
  margin-left: auto;
  aspect-ratio: 4/5;
  width: 100%;
  animation: portraitFloat 7s ease-in-out infinite;
}
@keyframes portraitFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-portrait { animation: none; }
}
@media (max-width: 1023px) {
  .hero-portrait { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .hero-portrait { max-width: 280px; }
}
.portrait-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%);
  box-shadow: var(--sh-3);
  z-index: 2;
}
.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  border: 1px solid rgba(184, 93, 62, 0.25);
  pointer-events: none;
  z-index: 3;
}
.portrait-frame::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 32px;
  height: 32px;
  border-top: 2px solid var(--clay);
  border-left: 2px solid var(--clay);
  z-index: 4;
  border-top-left-radius: var(--r-md);
  pointer-events: none;
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  filter: contrast(1.02) saturate(1.04);
  transition: transform 1.2s var(--ease-out);
}
.hero-portrait:hover .portrait-frame img { transform: scale(1.03); }

.portrait-glow {
  position: absolute;
  inset: -8% -12% -10% -8%;
  background: radial-gradient(ellipse at 30% 50%, var(--clay-glow) 0%, transparent 60%);
  z-index: 1;
  filter: blur(20px);
}

.portrait-watermark {
  position: absolute;
  top: -36px;
  left: -36px;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  opacity: 0.06;
  z-index: 0;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
@media (max-width: 1023px) {
  .portrait-watermark { display: none; }
}

.portrait-card {
  position: absolute;
  bottom: -28px;
  left: -28px;
  right: 32px;
  z-index: 3;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--sh-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 600px) {
  .portrait-card { left: -12px; right: -12px; padding: 14px 16px; bottom: -20px; }
  .portrait-card .card-phone { font-size: 1.2rem; }
}
.card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card-row--phone {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid var(--rule);
}
.card-row--meta {
  margin-top: 4px;
}
.card-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--clay);
}
.card-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1.2rem, 0.5vw + 1.1rem, 1.4rem);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.card-phone:hover { color: var(--clay); border-color: var(--clay); }
.card-row--meta span:first-child {
  font-size: 0.74rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.card-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4FA46F;
  box-shadow: 0 0 0 0 rgba(79, 164, 111, 0.4);
  animation: livePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 164, 111, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(79, 164, 111, 0); }
}

/* HERO MARQUEE */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 28px;
  align-items: center;
  white-space: nowrap;
  animation: marqueeScroll 60s linear infinite;
  font-size: clamp(0.72rem, 1.4vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  width: max-content;
}
.marquee-track > span:not(.dot) { white-space: nowrap; }
.marquee-track .dot { color: var(--clay); }
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 1023px) {
  .hero { padding-bottom: 100px; }
  .hero-marquee { padding: 14px 0; }
}

/* SEARCH PANEL */
.search-panel {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 1023px) {
  .search-grid { grid-template-columns: 1fr; }
}

.search-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--sh-2);
  position: relative;
}
.search-card::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: var(--r-lg);
  background: radial-gradient(ellipse at top right, var(--clay-glow), transparent 60%);
  z-index: -1;
  filter: blur(12px);
}

.quick-search {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.qs-row { display: flex; flex-direction: column; gap: 6px; }
.qs-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qs-col { display: flex; flex-direction: column; gap: 6px; }
.qs-label {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.qs-input {
  height: 48px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 0 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 5L8 11L13 5' stroke='%230A1730' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 38px;
  transition: border-color 200ms var(--ease-out);
}
.qs-input:hover { border-color: var(--rule-2); }
.qs-input:focus { border-color: var(--clay); outline: none; box-shadow: 0 0 0 3px var(--clay-glow); }
.qs-submit {
  margin-top: 8px;
  width: 100%;
}
.qs-foot {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-align: center;
  margin: 4px 0 0;
}

/* FEATURED LISTINGS */
.listings {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.listings-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.listings-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) {
  .listings-grid { grid-template-columns: 1fr; gap: 24px; }
}

.listing-card {
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: box-shadow 320ms var(--ease-out), border-color 200ms var(--ease-out);
  display: flex;
  flex-direction: column;
  will-change: transform;
  transform-style: preserve-3d;
}
.listing-card:hover {
  box-shadow: var(--sh-3);
  border-color: var(--clay-soft);
}
.listing-photo {
  position: relative;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--paper-3);
}
.listing-card--feature .listing-photo { aspect-ratio: 16/10; }
.listing-link { display: block; color: inherit; height: 100%; }
.listing-link:hover .listing-cta { color: var(--clay); gap: 12px; }
.listing-mls {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(10, 23, 48, 0.78);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.listing-address {
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.listing-spec strong {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--clay);
  margin-right: 4px;
  font-weight: 400;
}
.listing-blurb {
  margin: 12px 0 0;
  font-size: 0.95rem;
  color: var(--fg-soft);
  line-height: 1.55;
  max-width: 56ch;
}
.listing-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  transition: gap 280ms var(--ease-out), color 200ms var(--ease-out);
}

.listing-card--alert {
  background: linear-gradient(160deg, var(--paper-2) 0%, var(--paper-3) 100%);
  border-color: var(--rule-2);
  display: flex;
  flex-direction: column;
}
.listing-photo--alert {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%);
  position: relative;
}
.listing-photo--alert::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, var(--clay-glow) 0%, transparent 60%);
}
.alert-glyph {
  color: var(--clay);
  opacity: 0.4;
  position: relative;
  z-index: 1;
}
.listing-price--soft {
  font-size: clamp(1.3rem, 1.6vw, 1.7rem);
  color: var(--ink);
}

/* RECENT CLOSES — real verified transaction history */
.closes {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.closes-head { max-width: 760px; margin-bottom: 48px; }
.closes-head .section-title em { color: var(--clay); }

.closes-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .closes-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .closes-stats { grid-template-columns: 1fr; }
}
.close-stat {
  background: var(--paper);
  padding: clamp(28px, 3.5vw, 40px) clamp(22px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  transition: background 240ms var(--ease-out);
}
.close-stat:hover { background: var(--paper-2); }
.close-stat-num {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.close-stat-num small {
  font-size: 0.5em;
  color: var(--clay);
  font-weight: 400;
  font-family: var(--font-serif);
  font-style: italic;
}
.close-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  margin-top: 12px;
}
.close-stat-sub {
  font-size: 0.82rem;
  color: var(--fg-faint);
  margin-top: 2px;
  letter-spacing: 0;
}

/* Transactions list — table-like */
.closes-list {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}
.closes-list-header {
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 14px clamp(20px, 2vw, 28px);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}
@media (max-width: 900px) {
  .closes-list-header { display: none; }
}

.close-row {
  display: grid;
  grid-template-columns: 1.6fr 1.6fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 20px clamp(20px, 2vw, 28px);
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  transition: background 200ms var(--ease-out), padding-left 280ms var(--ease-out);
  align-items: center;
  position: relative;
}
.close-row:last-child { border-bottom: 0; }
.close-row:hover {
  background: var(--paper-2);
  padding-left: clamp(28px, 2.5vw, 36px);
}
.close-row::after {
  content: '↗';
  position: absolute;
  right: clamp(20px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay);
  opacity: 0;
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
  font-size: 1.2rem;
}
.close-row:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (max-width: 900px) {
  .close-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px clamp(18px, 2vw, 24px);
  }
  .close-row::after { display: none; }
}

.close-addr {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.close-city {
  font-size: 0.92rem;
  color: var(--fg-soft);
}
.close-when {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}
.close-amt {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.005em;
}
.close-rep { display: flex; }
.rep-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}
.rep-buyer  { background: rgba(184,93,62,0.08); color: var(--clay); border-color: var(--clay-soft); }
.rep-seller { background: rgba(15,33,71,0.05);  color: var(--navy); border-color: var(--rule-2); }
.rep-both   { background: var(--ink);            color: var(--paper); border-color: var(--ink); }
.rep-pending { background: var(--clay); color: var(--paper); border-color: var(--clay); gap: 6px; }
.rep-pending::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--paper);
  animation: livePulse 2.2s ease-in-out infinite;
}

/* Pending / under-contract row — Carol's current buyer-side deal pinned to top */
.close-row--pending { background: rgba(184,93,62,0.05); }
.close-row--pending:hover { background: rgba(184,93,62,0.09); }
.close-row--pending .close-when { color: var(--clay); font-weight: 600; }

@media (max-width: 900px) {
  .close-addr { font-size: 1.05rem; }
  .close-when, .close-amt { font-size: 0.95rem; margin-top: 4px; }
  .close-rep { margin-top: 6px; }
}

.closes-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.closes-verify {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* PORTFOLIO PAGE */
.portfolio-hero {
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(56px, 7vw, 96px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.portfolio-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 18px 0 22px;
}
.portfolio-hero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}
.portfolio-hero .subhero-lede { max-width: 64ch; margin: 0; }

.portfolio-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 48px;
}
@media (max-width: 720px) {
  .portfolio-stats { grid-template-columns: repeat(2, 1fr); }
}
.portfolio-stat {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px) clamp(22px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 240ms var(--ease-out);
}
.portfolio-stat:hover { background: var(--paper-2); }
.portfolio-stat-num {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
}
.portfolio-stat-num small {
  font-size: 0.55em;
  color: var(--clay);
  font-weight: 400;
  font-family: var(--font-serif);
  font-style: italic;
  margin-left: 4px;
}
.portfolio-stat-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 600;
}

.portfolio-map { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); background: var(--paper-2); border-top: 0; }
.portfolio-map-shell #coverage-map { height: clamp(540px, 70vh, 720px); }

.chip-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: rgba(184,93,62,0.12);
  color: var(--clay);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.filter-chip.is-active .chip-count {
  background: rgba(244,242,236,0.15);
  color: var(--paper);
}

/* BY COMMUNITY blocks */
.by-community {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.by-community-head { max-width: 720px; margin-bottom: 56px; }
.by-community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .by-community-grid { grid-template-columns: 1fr; }
}
.comm-block {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  padding: clamp(24px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 240ms var(--ease-out), transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.comm-block:hover {
  border-color: var(--clay-soft);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.comm-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.comm-block-name {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 1.8vw, 1.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.comm-block-meta {
  font-size: 0.86rem;
  color: var(--fg-muted);
  margin: 4px 0 0;
  letter-spacing: 0.01em;
}
.comm-block-count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--clay);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.comm-close-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.comm-close-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.92rem;
}
.comm-close-row:last-child { border-bottom: 0; }
.comm-close-addr { color: var(--ink); font-weight: 500; }
.comm-close-when { color: var(--clay); font-family: var(--font-serif); font-style: italic; font-size: 0.92rem; }
.comm-close-amt { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.comm-close-side .rep-pill { font-size: 0.62rem; padding: 2px 8px; }
@media (max-width: 540px) {
  .comm-close-row { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .comm-close-side { grid-column: 1 / -1; }
}

/* FULL PORTFOLIO controls */
.full-portfolio {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.full-portfolio-head { max-width: 720px; margin-bottom: 32px; }

.portfolio-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}
@media (max-width: 720px) {
  .portfolio-controls { grid-template-columns: 1fr; }
}
.portfolio-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  height: 48px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--fg-muted);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  max-width: 480px;
}
.portfolio-search:focus-within {
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-glow);
}
.portfolio-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  height: 100%;
}
.portfolio-search input::placeholder { color: var(--fg-muted); }
.portfolio-side-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.side-chip {
  padding: 9px 16px;
  min-height: 44px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  cursor: pointer;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.side-chip:hover { background: var(--paper-2); border-color: var(--rule-2); color: var(--ink); }
.side-chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.portfolio-empty {
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--rule);
  border-radius: var(--r-md);
  margin-top: 16px;
}
.portfolio-empty p { font-style: italic; color: var(--fg-muted); margin: 0 0 16px; }

/* COVERAGE MAP */
.coverage {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.coverage-head { max-width: 760px; margin-bottom: 48px; }
.coverage-head .section-title em { color: var(--clay); }

.coverage-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
}
.filter-chip {
  padding: 9px 16px;
  min-height: 44px;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-soft);
  cursor: pointer;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 200ms var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.filter-chip:hover { background: var(--paper-2); border-color: var(--rule-2); color: var(--ink); }
.filter-chip.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.filter-chip.is-active:hover { background: var(--ink-2); border-color: var(--ink-2); }
.filter-spacer { flex: 1; min-width: 0; }
.filter-active-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-style: italic;
  letter-spacing: 0;
}
.filter-active-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 0 rgba(184,93,62,0.5);
  animation: livePulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .filter-spacer { display: none; }
  .filter-active-note { width: 100%; margin-top: 6px; }
}

.legend-pin--active { color: var(--ink); }
.legend-pin--active svg { transform: scale(1.05); }
.legend-pin--pending { color: var(--clay-deep); }
.legend-pin--pending svg { transform: scale(1.05); }

.coverage-map-shell {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--sh-2);
  background: var(--paper);
  isolation: isolate;
}
#coverage-map {
  width: 100%;
  height: clamp(420px, 60vh, 640px);
  background: var(--paper-2);
  z-index: 0;
}

.coverage-legend {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 400;
  background: rgba(250, 250, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-soft);
  letter-spacing: 0.02em;
  box-shadow: var(--sh-1);
}
.legend-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clay);
}
.legend-count {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 100px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .coverage-legend {
    top: 12px;
    left: 12px;
    right: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 12px;
  }
  .legend-pin { font-size: 0.74rem; }
}

.coverage-foot {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--fg-faint);
  text-align: center;
}
.coverage-foot a { color: var(--fg-muted); text-decoration: underline; text-underline-offset: 2px; }
.coverage-foot a:hover { color: var(--clay); }

/* Custom Leaflet pin */
.carol-pin {
  background: transparent !important;
  border: 0 !important;
}
.carol-pin svg {
  filter: drop-shadow(0 2px 4px rgba(10,23,48,0.32));
  transition: transform 200ms var(--ease-out);
  transform-origin: 50% 100%;
}
.carol-pin:hover svg,
.leaflet-marker-icon:focus .carol-pin svg {
  transform: scale(1.18);
}

/* Popup styling */
.leaflet-popup-content-wrapper {
  border-radius: var(--r-md) !important;
  background: var(--paper) !important;
  border: 1px solid var(--rule);
  box-shadow: var(--sh-2) !important;
  padding: 4px !important;
}
.leaflet-popup-content {
  margin: 14px 18px 14px !important;
  font-family: var(--font-sans) !important;
  color: var(--ink);
  line-height: 1.45;
  min-width: 200px;
}
.leaflet-popup-tip {
  background: var(--paper) !important;
  border: 1px solid var(--rule);
}
.carol-popup-addr {
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: block;
}
.carol-popup-city {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 2px;
  display: block;
}
.carol-popup-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
  gap: 12px;
}
.carol-popup-date {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay);
  font-size: 0.92rem;
}
.carol-popup-price {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-size: 0.98rem;
}
.carol-popup-side {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
  background: rgba(184,93,62,0.08);
  color: var(--clay);
  border: 1px solid var(--clay-soft);
}
.carol-popup-side.seller { background: rgba(15,33,71,0.05); color: var(--navy); border-color: var(--rule-2); }
.carol-popup-side.both   { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.carol-popup-side.active { background: var(--clay); color: var(--paper); border-color: var(--clay-deep); }

/* Active listing pin sits above closed pins, has gentle bounce */
.carol-pin--active {
  z-index: 1000 !important;
}
.carol-pin--pending {
  z-index: 900 !important;
}
.carol-pin--active svg {
  transform-origin: 50% 100%;
  animation: activePinBounce 3.5s ease-in-out infinite;
}
@keyframes activePinBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
  .carol-pin--active svg { animation: none; }
}
.carol-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--clay);
  font-weight: 500;
  border-bottom: 1px solid var(--clay-soft);
  padding-bottom: 1px;
}
.carol-popup-link:hover { color: var(--ink); border-color: var(--ink); }

/* Tile filter — subtle desaturation so clay pins POP */
.leaflet-tile-pane {
  filter: saturate(0.85) brightness(1.02);
}
.leaflet-control-attribution { display: none !important; }
.leaflet-container { font-family: var(--font-sans) !important; background: #F4F2EC !important; }
.verify-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clay);
  color: var(--paper);
}
.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.listing-card:hover .listing-photo img { transform: scale(1.04); }

.listing-status {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: var(--sh-1);
}
.listing-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.listing-loc {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.listing-price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0;
}
.listing-spec {
  display: flex;
  gap: 16px;
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.listing-spec span {
  position: relative;
  padding-right: 16px;
}
.listing-spec span:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 12px;
  background: var(--rule-2);
}
.listing-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-2);
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.5;
}

.mls-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 40px auto 0;
  padding: 12px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}
.mls-badge { display: flex; justify-content: center; width: fit-content; margin-left: auto; margin-right: auto; }
.mls-badge svg { color: var(--clay); }

/* COMMUNITIES */
.communities {
  padding: var(--section-y) 0;
  background: var(--paper);
}
.comm-head { margin-bottom: 64px; max-width: 720px; }
.comm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
@media (max-width: 1023px) {
  .comm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .comm-grid { grid-template-columns: 1fr; }
}
.comm-item {
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 240ms var(--ease-out);
  min-height: 180px;
  position: relative;
  cursor: default;
}
.comm-item:hover { background: var(--paper-2); }
.comm-item:hover .comm-name { color: var(--clay); }
.comm-item--feature {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
  border-right-color: var(--ink);
  border-bottom-color: var(--ink);
}
.comm-item--feature .comm-num { color: var(--clay-soft); }
.comm-item--feature .comm-meta { color: var(--on-dark-mu); }
.comm-item--feature .comm-desc { color: var(--on-dark-mu); }
.comm-item--feature:hover { background: var(--ink-2); }
.comm-item--feature:hover .comm-name { color: var(--clay-soft); }

@media (max-width: 540px) {
  .comm-item--feature { grid-column: span 1; }
}

.comm-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--clay);
  letter-spacing: 0.02em;
}
.comm-name {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 1.5vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  transition: color 200ms var(--ease-out);
}
.comm-item--feature .comm-name { color: var(--paper); }
.comm-meta {
  font-size: 0.82rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
  margin: 0;
}
.comm-desc {
  font-size: 0.95rem;
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 8px 0 0;
  max-width: 50ch;
}

.comm-foot {
  margin-top: 48px;
  text-align: center;
}

/* ABOUT PREVIEW */
.about-preview {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 1023px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-img {
  position: relative;
  max-width: 460px;
  aspect-ratio: 4/5;
  width: 100%;
}
@media (max-width: 1023px) {
  .about-img { margin: 0 auto; max-width: 380px; }
}
.about-img-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-3);
  background: var(--navy);
}
.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}
.about-img-tag {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--clay);
  color: var(--paper);
  padding: 16px 22px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-2);
  font-size: 0.92rem;
  z-index: 2;
}
.about-img-tag span { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.about-img-tag strong { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.25rem; letter-spacing: -0.005em; }

.about-copy .section-title { max-width: 16ch; }
.about-lede {
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.2rem);
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 20px 0 16px;
  max-width: 56ch;
}
.about-copy p { color: var(--fg-soft); max-width: 56ch; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0 32px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
}
@media (max-width: 560px) {
  .about-stats { grid-template-columns: 1fr; }
}
.about-stat {
  background: var(--paper-2);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 560px) {
  .about-stat { padding: 16px 18px; }
}
.about-stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.about-stat-val {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

/* PROCESS */
.process {
  padding: var(--section-y) 0;
  background: var(--paper);
}
.process-head { margin-bottom: 64px; max-width: 640px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 900px) {
  .process-steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--paper);
  padding: clamp(32px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 240ms var(--ease-out);
}
.step:hover { background: var(--paper-2); }
.step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.5rem, 3.5vw, 3.25rem);
  line-height: 1;
  color: var(--clay);
  letter-spacing: -0.02em;
}
.step-title {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 1.5vw, 1.6rem);
  font-weight: 500;
  margin: 4px 0 0;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.step p {
  font-size: 1rem;
  color: var(--fg-soft);
  line-height: 1.6;
  margin: 0;
}

/* LEAD MAGNETS */
.leads {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.leads-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.leads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 1023px) {
  .leads-grid { grid-template-columns: 1fr; gap: 32px; }
}
.lead-card {
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.lead-card--sell {
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
.lead-card--buy {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.lead-aside {
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.lead-aside .lead-tag { background: var(--clay); color: var(--paper); }
.lead-aside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}
.lead-card--buy .lead-title { color: var(--paper); }
.lead-card--buy .lead-title em { color: var(--clay-soft); }
.lead-card--buy .lead-lede { color: var(--on-dark-mu); }
.lead-card--buy .lead-tag { background: var(--clay); color: var(--paper); }
.lead-card--buy .lead-label { color: var(--on-dark-mu); }
.lead-card--buy .lead-input {
  background: rgba(244,242,236,0.06);
  border-color: rgba(244,242,236,0.18);
  color: var(--paper);
}
.lead-card--buy .lead-input::placeholder { color: rgba(244,242,236,0.42); }
.lead-card--buy .lead-input:focus { border-color: var(--clay-soft); box-shadow: 0 0 0 3px rgba(184,93,62,0.25); }
.lead-card--buy .lead-input option { background: var(--ink); color: var(--paper); }
.lead-card--buy .btn-primary { background: var(--clay); border-color: var(--clay); }
.lead-card--buy .btn-primary:hover { background: var(--clay-hover); border-color: var(--clay-hover); }
.lead-card--buy .lead-foot { color: var(--on-dark-mu); }
/* Dark-card select chevron only — scoped to <select> so text inputs are NOT painted with a repeating chevron */
.lead-card--buy select.lead-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 5L8 11L13 5' stroke='%23F4F2EC' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
}
.lead-card--buy input.lead-input {
  background-image: none;
}

.lead-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 12px;
  background: var(--clay);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 4px;
}
.lead-title {
  font-family: var(--font-sans);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
}
.lead-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}
.lead-lede {
  font-size: 1rem;
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 0 0 8px;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
}
.lead-form-row { display: flex; flex-direction: column; gap: 6px; }
.lead-form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 540px) {
  .lead-form-row--split { grid-template-columns: 1fr; }
}
.lead-form-row--split > div { display: flex; flex-direction: column; gap: 6px; }
.lead-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}
.lead-input {
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font-sans);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
select.lead-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 5L8 11L13 5' stroke='%230A1730' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 36px;
}
.lead-input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-glow);
}
.lead-submit {
  margin-top: 6px;
  width: 100%;
}
.lead-foot {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin: 4px 0 0;
  text-align: center;
}

/* FAQ */
.faq {
  padding: var(--section-y) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
}
.faq-head { max-width: 720px; margin-bottom: 56px; }
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
  transition: background 200ms var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--paper-2); }
.faq-item summary:focus-visible { outline: 2px solid var(--clay); outline-offset: -2px; }
.faq-q { flex: 1; }
.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--clay);
  transition: transform 280ms var(--ease-out);
}
.faq-icon::before {
  width: 14px;
  height: 1.5px;
  transform: translate(-50%, -50%);
}
.faq-icon::after {
  width: 1.5px;
  height: 14px;
  transform: translate(-50%, -50%);
}
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a {
  padding: 0 24px 28px;
  color: var(--fg-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 72ch;
}
.faq-a p { margin: 0; }
.faq-a a {
  color: var(--clay);
  border-bottom: 1px solid var(--clay-soft);
  transition: border-color 200ms var(--ease-out);
}
.faq-a a:hover { border-color: var(--clay); }

/* CTA SECTION */
.cta-section {
  position: relative;
  padding: clamp(96px, 14vw, 180px) 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.28;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--ink) 0%, rgba(10, 23, 48, 0.7) 60%, rgba(15, 33, 71, 0.85) 100%);
}
.cta-glow {
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, var(--clay-glow) 0%, transparent 65%);
  animation: heroGlowDrift 28s ease-in-out infinite alternate;
}
.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}
.cta-eyebrow {
  color: var(--clay-soft);
}
.cta-eyebrow::before {
  background: var(--clay);
}
.cta-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 20px 0 24px;
  color: var(--paper);
}
.cta-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay-soft);
  letter-spacing: -0.015em;
}
.cta-lede {
  font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
  color: var(--on-dark-mu);
  line-height: 1.55;
  margin: 0 0 40px;
  max-width: 52ch;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}
@media (max-width: 600px) {
  .cta-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-actions .btn-primary { width: 100%; max-width: 320px; }
}

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(64px, 9vw, 120px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,242,236,0.12);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand { max-width: 360px; }
.footer-logo {
  color: var(--paper);
  margin-bottom: 16px;
}
.footer-logo .logo-mark { color: var(--clay-soft); }
.footer-logo .logo-name,
.footer-logo .logo-meta { color: var(--paper); }
.footer-logo .logo-meta { color: var(--on-dark-mu); }
.footer-blurb {
  font-size: 0.92rem;
  color: var(--on-dark-mu);
  line-height: 1.6;
  margin: 4px 0 0;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(244, 242, 236, 0.06);
  border: 1px solid rgba(244, 242, 236, 0.12);
  border-radius: 100px;
  color: var(--on-dark-mu);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.footer-social:hover {
  background: #1877F2;
  color: var(--paper);
  border-color: #1877F2;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-soft);
  margin: 0 0 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--on-dark-mu);
  font-size: 0.92rem;
  transition: color 200ms var(--ease-out);
  border-bottom: 1px solid transparent;
}
.footer-col a:hover { color: var(--paper); border-color: var(--clay-soft); }
.footer-col p {
  font-size: 0.92rem;
  color: var(--on-dark-mu);
  line-height: 1.7;
  margin: 0;
}

.footer-compliance {
  padding-top: 32px;
}
.compliance-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
@media (max-width: 540px) {
  .compliance-row { grid-template-columns: 1fr; gap: 16px; }
}
.eho-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-dark-mu);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
  padding: 12px 16px;
  border: 1px solid rgba(244,242,236,0.15);
  border-radius: var(--r-sm);
  min-width: 160px;
}
.compliance-text p {
  font-size: 0.78rem;
  color: var(--on-dark-mu);
  line-height: 1.65;
  margin: 0 0 12px;
}
.footer-copyright {
  font-size: 0.78rem;
  color: var(--on-dark-mu);
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(244,242,236,0.08);
}

/* STICKY MOBILE CTA */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: none;
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  transform: translateY(100%);
  transition: transform 320ms var(--ease-out);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-mobile-cta.is-visible {
  transform: translateY(0);
}
.smc-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 56px;
  background: var(--paper);
  color: var(--ink);
  transition: background 200ms var(--ease-out);
}
.smc-btn:hover { background: var(--paper-2); }
.smc-btn--search { background: var(--ink); color: var(--paper); }
.smc-btn--search:hover { background: var(--navy); }

@media (max-width: 768px) {
  .sticky-mobile-cta { display: flex; }
  body { padding-bottom: 60px; }
}

/* REVEAL — default visible, .in triggers entrance animation only.
   This ensures content is always readable for crawlers, screenshots, and
   broken-JS scenarios. The animation is a sweetener, not a gate. */
.reveal {
  /* intentionally no opacity/transform here */
}
.reveal.in {
  animation: revealIn 700ms var(--ease-out);
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
}

/* SUBHERO for subpages */
.subhero {
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(48px, 7vw, 96px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.subhero-eyebrow {
  margin-bottom: 18px;
  color: var(--clay);
}
.subhero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
}
.subhero h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
}
.subhero-lede {
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.2rem);
  color: var(--fg-soft);
  line-height: 1.55;
  margin: 24px 0 0;
  max-width: 56ch;
}

/* HERO LINE ENTRANCE — animation only runs when .animate-in is added.
   Default state (no class) is fully visible so no-JS, screenshots, and crawlers see content. */
.hero-title.animate-in .line:nth-child(1) {
  animation: heroLineIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 80ms backwards;
}
.hero-title.animate-in .line:nth-child(2) {
  animation: heroLineIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 220ms backwards;
}
.hero-title.animate-in .line:nth-child(3) {
  animation: heroLineIn 900ms cubic-bezier(0.22, 1, 0.36, 1) 360ms backwards;
}
@keyframes heroLineIn {
  from { transform: translateY(28px); opacity: 0; filter: blur(6px); }
  to   { transform: translateY(0);    opacity: 1; filter: blur(0); }
}

/* SCROLL HINT */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(56px, 7vw, 96px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--fg-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 4;
  transition: color 200ms var(--ease-out);
}
.scroll-hint:hover { color: var(--clay); }
.scroll-hint-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--rule-2) 0%, var(--clay) 100%);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--clay), transparent);
  animation: scrollHintTravel 2.4s ease-in-out infinite;
}
@keyframes scrollHintTravel {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(300%); }
}
@media (max-width: 1023px) {
  .scroll-hint { display: none; }
}

/* SECTION ORNAMENT */
.ornament {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
  background: var(--paper);
  color: var(--clay);
  opacity: 0.5;
}
.ornament svg {
  width: 200px;
  height: 24px;
}

/* WHY CAROL — ROTATING VALUE PROPS */
.why {
  padding: var(--section-y) 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, var(--clay-glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.why .wrap { position: relative; z-index: 1; }
.why-head { max-width: 720px; margin-bottom: 64px; }
.why-rotator {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
}
.why-track {
  position: relative;
  min-height: 340px;
}
.why-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0s linear 700ms;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.why-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
@media (max-width: 900px) {
  .why-slide { grid-template-columns: 1fr; gap: 24px; }
}
.why-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.9;
  color: var(--clay);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.why-title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 22ch;
}
.why-body {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.2rem);
  color: var(--fg-soft);
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}
.why-controls {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  margin-top: auto;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 720px) {
  .why-controls {
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 16px;
  }
  .why-dots { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

.why-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out), transform 220ms var(--ease-out);
  min-height: 44px;
}
.why-arrow:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.why-arrow:hover svg { color: var(--clay-soft); }
.why-arrow svg { transition: transform 240ms var(--ease-out), color 220ms var(--ease-out); }
.why-prev:hover svg { transform: translateX(-3px); }
.why-next:hover svg { transform: translateX(3px); }

.why-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.why-counter-cur { color: var(--clay); font-size: 1.5rem; }
.why-counter-sep { opacity: 0.5; font-size: 1rem; }
.why-counter-total { font-size: 1rem; }

.why-progress {
  height: 2px;
  background: var(--rule);
  border-radius: 1px;
  overflow: hidden;
  min-width: 80px;
  position: relative;
}
.why-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  border-radius: 1px;
}

.why-dots {
  display: flex;
  gap: 6px;
}
.why-dot {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  transition: transform 280ms var(--ease-out), width 280ms var(--ease-out);
  padding: 0;
  border: 0;
}
.why-dot::before {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 50%;
  height: 4px;
  border-radius: 2px;
  background: var(--rule-2);
  transform: translateY(-50%);
  transition: background 280ms var(--ease-out);
}
.why-dot:hover::before { background: var(--clay-soft); }
.why-dot.is-active {
  width: 44px;
}
.why-dot.is-active::before { left: 0; right: 0; background: var(--clay); }
@media (max-width: 480px) {
  .why-controls {
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 10px;
    row-gap: 14px;
  }
  .why-prev {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .why-counter {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .why-next {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .why-progress {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
  }
  .why-dots {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
  }
  .why-arrow { padding: 11px 14px; }
}

/* EDITORIAL TESTIMONIAL */
.testimonial {
  padding: var(--section-y) 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.testimonial::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184,93,62,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.testimonial .wrap { position: relative; z-index: 1; }
.testimonial-grid {
  display: grid;
  grid-template-columns: auto 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 1023px) {
  .testimonial-grid { grid-template-columns: 1fr; gap: 40px; }
}
.testimonial-mark {
  color: var(--clay);
  opacity: 0.7;
}
.testimonial-mark svg { width: clamp(60px, 6vw, 80px); height: auto; display: block; }
.testimonial-quote {
  margin: 0;
}
.testimonial-quote p {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin: 0 0 28px;
}
.testimonial-quote em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--clay-soft);
}
.testimonial-attr {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-style: normal;
}
.testimonial-attr cite {
  font-style: normal;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}
.testimonial-attr span {
  font-size: 0.82rem;
  color: var(--on-dark-mu);
  letter-spacing: 0.04em;
}
.testimonial-side {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 360px;
  justify-self: end;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-3);
}
@media (max-width: 1023px) {
  .testimonial-side { max-width: 280px; justify-self: start; }
}
.testimonial-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  filter: contrast(1.02) saturate(0.95);
}

/* IMAGE CLIP-PATH REVEAL */
.reveal-img {
  position: relative;
}
.reveal-img img {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1400ms cubic-bezier(0.76, 0, 0.24, 1);
  transform: scale(1.06);
}
.reveal-img.is-revealed img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
  transition: clip-path 1400ms cubic-bezier(0.76, 0, 0.24, 1),
              transform 1800ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* PRINT */
@media print {
  .site, .mobile-menu, .sticky-mobile-cta, .hero-marquee { display: none !important; }
}
