/* =========================================================
   THEME TOKENS
   Edit these first to re-skin the whole site
   ========================================================= */
  :root {
    /* Colors */
    --bg: #f8fafc;
    --panel: #ffffff;
    --panel2: #f1f5f9;
    --text: #0f172a;
    --muted: #475569;
    --accent: #1a3f66;
    --accent2: #2a5685;
    --brand: #1a3f66;
  
    /* Radii / Shadows */
    --radius: 4px;
    --shadow: 0 2px 4px rgba(15, 23, 42, 0.042);
  
    /* Typography */
    --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --tracking: .01em;
    --leading: 1.75;
  
    /* Layout */
    --wrap: 1120px;
    --gutter: 24px;
    --header-height: 72px;
  }
  
  /* =========================================================
     RESET / BASE
     ========================================================= */
  * { box-sizing: border-box; }

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

  html, body { margin: 0; padding: 0; }
  
  body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    letter-spacing: var(--tracking);
    line-height: var(--leading);
  }
  
  a { color: var(--accent); text-decoration: none; }
  
  .wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }
  
  /* =========================================================
     TYPOGRAPHY
     ========================================================= */
  h1, h2, h3 {
    line-height: 1.2;
    margin: 0 0 .65rem 0;
  }
  
  h1 { font-size: clamp(2.2rem, 3.6vw + .5rem, 3.6rem); font-weight: 800; }
  h2 { font-size: clamp(1.4rem, 1.2vw + .8rem, 2rem);   font-weight: 800; }
  h3 { font-size: 1.15rem; font-weight: 700; }
  
  .lead { opacity: .9; max-width: 65ch; }
  .lead.buy-sell-lead { max-width: 65ch; }
  .page-hero .lead { max-width: 72ch; }
  .page-hero .lead.buy-sell-lead { max-width: 65ch; }
  .buy-sell-cta {
    margin-top: clamp(32px, 4vw, 48px);
  }
  .buy-sell-cta p {
    margin: 0;
  }
  .buy-sell-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    min-width: 220px;
  }
  
  .kicker {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
  }

  
/* =========================================
   HEADER / NAV (robust + mobile-first)
   ========================================= */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    transition: background .18s ease, box-shadow .18s ease;
    padding-top: env(safe-area-inset-top, 0);
  }
  
  /* Constrain + safe padding on both sides */
.header .inner {
    max-width: none;
    margin: 0 auto;
    padding-left:  calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
    padding-top: 12px;
    padding-bottom: 12px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .header.is-scrolled {
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
  }

  .header--inverse {
    background: transparent;
  }

  .header--inverse:not(.is-scrolled) .brand,
  .header--inverse:not(.is-scrolled) .brand-name {
    color: #f8fafc;
  }

  .header--inverse:not(.is-scrolled) .brand-divider {
    background: rgba(248,250,252,.6);
  }

  .header--inverse:not(.is-scrolled) .nav a {
    color: rgba(248,250,252,.88);
  }

  .header--inverse:not(.is-scrolled) .nav .cta {
    color: var(--brand);
    background: #f8fafc;
    border-color: rgba(148,163,184,.35);
  }

  .header--inverse:not(.is-scrolled) .menu-toggle .line {
    background: #f8fafc;
  }

  .header--inverse.is-scrolled {
    background: #ffffff;
  }

  .header--inverse.is-scrolled .brand,
  .header--inverse.is-scrolled .brand-name {
    color: var(--text);
  }

  .header--inverse.is-scrolled .brand-divider {
    background: rgba(148,163,184,.4);
  }

  .header--inverse.is-scrolled .nav a {
    color: rgba(15,23,42,.86);
  }

  .header--inverse.is-scrolled .nav .cta {
    background: #ffffff;
    color: var(--brand);
    border-color: rgba(148,163,184,.35);
  }

  .header--inverse.is-scrolled .menu-toggle .line {
    background: var(--text);
  }
  
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none;
  }

  .brand-name {
    line-height: 1;
    letter-spacing: .02em;
  }

  .brand-divider {
    display: block;
    width: 1px;
    height: 30px;
    margin: 0 6px;
    background: rgba(148,163,184,.4);
  }

  .brand-mark {
    height: 24px;
    width: auto;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(15,23,42,.18));
    pointer-events: none;
  }

  .brand-mark.mark-white { display: none; }

  .header--inverse:not(.is-scrolled) .brand-mark.mark-blue { display: none; }
  .header--inverse:not(.is-scrolled) .brand-mark.mark-white { display: block; }

  .header--inverse.is-scrolled .brand-mark.mark-blue { display: block; }
  .header--inverse.is-scrolled .brand-mark.mark-white { display: none; }

  /* Desktop nav */
  .nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 36px);
  }
  .nav a { color: var(--text); text-decoration: none; transition: color .18s ease; }
  .nav a:hover { color: var(--accent); }
.nav .cta {
    background: #ffffff;
    color: #1a3f66;
    font-weight: 700;
    padding: .35rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,.35);
    box-shadow: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
  }
  .nav .cta:hover {
    color: #0d2a4a;
    border-color: rgba(13,42,74,.4);
  }

  .header--inverse:not(.is-scrolled) .nav a {
    color: rgba(248,250,252,.95);
  }
  .header--inverse:not(.is-scrolled) .nav a:hover {
    color: #fff;
  }
  .header--inverse:not(.is-scrolled) .nav .cta {
    background: rgba(255,255,255,.18);
    color: #f8fafc;
    border-color: rgba(248,250,252,.45);
  }
  .nav .cta:hover {
    border-color: rgba(26,63,102,.45);
    background: rgba(26,63,102,.1);
  }
  
  /* Hamburger (hidden on desktop) */
  .menu-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    place-items: center;
    cursor: pointer;
  }
  .menu-toggle .line { display: none; }
  .menu-toggle::before {
    content: "≡";
    font-size: 22px;
    line-height: 1;
    color: var(--text);
    transition: color .2s ease;
  }
  .header.is-open .menu-toggle::before {
    content: "×";
  }
  .header--inverse:not(.is-scrolled) .menu-toggle::before {
    color: #f8fafc;
  }
  
  .menu-toggle .line { display: none; }
  .menu-toggle::before {
    content: "≡";
    font-size: 24px;
    line-height: 1;
    color: var(--text);
  }
  .header.is-open .menu-toggle::before {
    content: "×";
  }
  .header--inverse:not(.is-scrolled) .menu-toggle::before {
    color: #f8fafc;
  }

  /* =========================================
     Mobile behavior
     ========================================= */
  @media (max-width: 980px) {
    /* show hamburger, move nav into a slide-down panel */
    .menu-toggle {
      display: grid;
      justify-self: end;
      width: 36px;
      height: 36px;
      margin-top: env(safe-area-inset-top, 0);
      margin-right: calc(env(safe-area-inset-right, 0) + 8px);
      color: var(--text);
    }
  
    /* put toggle between brand and nav */
    .header .inner { grid-template-columns: auto auto; }
  
    .nav {
      position: fixed;
      top: calc(var(--header-height) + env(safe-area-inset-top));
      left: 0; right: 0;
      padding: 12px clamp(14px, 4vw, 28px);
      display: grid;
      gap: 8px;
      background: rgba(255,255,255,.98);
      border-bottom: 1px solid rgba(15,23,42,.08);
      transform: translateY(-120%);
      transition: transform .22s ease;
      padding-top: calc(12px + env(safe-area-inset-top));
    }
  
    /* big tap targets */
    .nav a {
      padding: 10px 8px;
      border-radius: 8px;
      background: transparent;
    }
    .nav a:active { background: rgba(148,163,184,.22); }
  
    /* open state controlled by .is-open on header */
    .header.is-open .nav { transform: translateY(0); }
  
    /* animate hamburger into X when open */
    .menu-toggle span {
      font-size: 26px;
      line-height: 1;
    }

    .header--inverse:not(.is-scrolled) .nav {
      background: rgba(1,10,21,.92);
      border-bottom: 1px solid rgba(248,250,252,.1);
      padding-top: calc(12px + env(safe-area-inset-top));
    }
    .header--inverse:not(.is-scrolled) .nav a {
      color: rgba(248,250,252,.95);
    }
    .header--inverse:not(.is-scrolled) .nav a:active {
      background: rgba(248,250,252,.12);
    }
  }
  
  
  /* =========================================================
     HERO
     ========================================================= */
  .hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1);
    padding: calc(var(--header-height) + clamp(64px, 12vw, 128px)) 0 clamp(64px, 12vw, 128px) 0;
    background:
      radial-gradient(1000px 500px at 10% -10%, rgba(34,211,238,.15), transparent 60%),
      radial-gradient(1000px 500px at 110% 10%, rgba(125,211,252,.12), transparent 60%);
  }

  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    z-index: 0;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.23);
    z-index: 1;
  }

  .hero .wrap {
    position: relative;
    z-index: 2;
  }

  .hero-content {
    color: #f8fafc;
  }

  .hero-content .kicker {
    color: rgb(255, 255, 255);
  }

  .hero-content .lead {
    opacity: .94;
    color: inherit;
  }

  .hero-content .btn.ghost {
    border-color: rgba(248,250,252,.7);
    color: #f8fafc;
  }

  .hero-content .btn.ghost:hover {
    border-color: rgba(248,250,252,.9);
    background: rgba(248,250,252,.08);
  }
  
  .hero .grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .hero .panel {
    border-radius: var(--radius);
  }

  .intro-section {
    background: #ffffff;
    padding: clamp(48px, 7vw, 80px) 0;
  }

  .intro-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
    align-items: center;
  }
  .intro-photo picture,
  .intro-photo img {
    width: min(70%, 480px);
    max-width: 480px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 28px 70px rgba(15,23,42,.22);
  }

  .intro-photo picture img,
  .intro-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: inherit;
    display: block;
    object-fit: cover;
  }

  .intro-copy h2,
  .intro-copy h1 {
    margin: 0 0 6px;
  }

  .intro-copy p {
    margin: 0 0 12px;
    color: var(--muted);
    max-width: 65ch;
  }

  .intro-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .panel .btn + .btn {
    margin-top: 20px;
  }

  .intro-action {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: 0 10px 24px rgba(2,8,23,.12);
    color: var(--text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  }

  .intro-action svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .intro-action:hover {
    transform: translateY(-2px);
    border-color: rgba(26,63,102,.5);
    box-shadow: 0 16px 32px rgba(26,63,102,.28);
  }

@media (max-width: 980px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .intro-photo {
    order: -1;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
  }
  .intro-photo picture,
  .intro-photo img {
    width: clamp(220px, 50vw, 340px);
  }
}

@media (max-width: 640px) {
  .intro-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  .intro-photo picture,
  .intro-photo img {
    width: clamp(160px, 65vw, 260px);
  }
  .intro-copy {
    text-align: center;
  }
  .intro-copy .kicker {
    margin-bottom: 10px;
  }
  .intro-actions {
    justify-content: center;
  }
}

  .listing-feature {
    padding-top: 0;
  }

.listing-head {
  margin-bottom: 1rem;
}

.listing-head h2 {
  margin: 0;
}

.listing-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

  .listing-hero {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin: 0;
  }

  .listing-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .listing-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(180deg, rgba(1,9,21,0), rgba(1,9,21,.78));
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    justify-content: space-between;
  }

  .listing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem 1.4rem;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    margin-right: auto;
  }

  .listing-info {
    text-align: right;
  }

  @media (max-width: 640px) {
    .listing-overlay {
      justify-content: flex-start;
      gap: 0.75rem;
    }
    .listing-cta {
      display: none;
    }
    .listing-info {
      text-align: left;
      width: 100%;
    }
  }
  .listing-title {
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
  }

  .listing-meta {
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-weight: 700;
    font-size: 1.35rem;
    opacity: .96;
  }

  .listing-mls {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    color: var(--muted);
    margin: .8rem 0 0;
  }

  .listing-mls img {
    height: 14px;
    width: auto;
  }

  @media (max-width: 720px) {
    .listing-overlay {
      flex-direction: column;
      align-items: flex-start;
      text-align: left;
    }
    .listing-info {
      text-align: left;
    }
    .listing-cta {
      width: 100%;
    }
  }

  .panel img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
  }
  
.homes-section {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  color: #f8fafc;
}
.homes-section .homes-inner {
  max-width: 760px;
  margin: 0 auto;
}
.homes-section .homes-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 !important;
}
.homes-section .kicker { color: rgba(226,232,240,.8); }
.homes-section h2,
.homes-section h3 { color: #f8fafc; margin-bottom: .4rem; }
.homes-section .infoparagraph h2 { margin-bottom: .35rem; }
.homes-section p {
  margin: 0;
  max-width: 72ch;
  color: rgba(226,232,240,.85);
}
.homes-section .infoparagraph { margin-top: 32px; }

  .insight-section {
    background: #f9fafc;
    color: var(--text);
  }

  .insight-section .insight-bubble {
    background: #ffffff;
    border: 1px solid rgba(148,163,184,.35);
    box-shadow: var(--shadow);
  }

  .insight-label {
    font-weight: 700;
    padding: 0 0 8px 0;
  }

  .fun-facts-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(18px, 4vw, 24px);
  }

  .fun-facts-list li {
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 8px;
    padding: clamp(18px, 4vw, 24px);
    box-shadow: var(--shadow);
  }

.free-services {
  background: radial-gradient(circle at 20% 20%, rgba(26,63,102,.06), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(148,163,184,.08), transparent 40%),
              linear-gradient(180deg, rgba(15,23,42,.03), rgba(15,23,42,.1));
}

.free-services-head {
  max-width: 760px;
  margin-bottom: clamp(24px, 4vw, 40px);
  }

  .free-services-head p {
    margin: 12px 0 0;
    color: var(--muted);
  }

  .free-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(18px, 3vw, 28px);
  }

.free-service-card {
  position: relative;
  background: rgba(248,250,252,.92);
  border: 1px solid rgba(26,63,102,.15);
  border-radius: 14px;
  padding: clamp(18px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}

.free-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26,63,102,.35);
  box-shadow: 0 18px 36px rgba(26,63,102,.16);
}

.free-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,63,102,.08), rgba(26,63,102,0));
  opacity: .5;
  pointer-events: none;
}

.free-service-card h3 {
  margin: 0;
  font-size: 1.1rem;
    color: var(--text);
  }

  .free-service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
  }

  .free-service-link {
    align-self: flex-start;
    font-weight: 600;
    color: #1a3f66;
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .04em;
  }

  .service-detail-list {
    background: #ffffff;
  }

  .detail-stack {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 40px);
  }

  .service-detail {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 16px;
    padding: clamp(24px, 4vw, 40px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .6fr);
    gap: clamp(20px, 3vw, 36px);
    background: linear-gradient(180deg, #fff, rgba(248,250,252,.9));
    box-shadow: 0 18px 40px rgba(15,23,42,.08);
  }

  .service-detail-body h2 {
    margin-top: 0;
  }

  .service-detail-body ul {
    margin: 1rem 0 0 1.1rem;
    color: #334155;
    line-height: 1.65;
  }

  .service-detail-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: flex-start;
    margin-left: clamp(18px, 5vw, 56px);
  }

  .service-detail-cta .btn {
    display: flex;
    justify-content: center;
    text-align: center;
  }

  @media (max-width: 940px) {
    .service-detail {
      grid-template-columns: 1fr;
    }
    .service-detail-cta {
      flex-direction: row;
      flex-wrap: wrap;
    }
  }

  .page-hero--with-image.neighborhood-detail-hero .wrap {
    padding: clamp(36px, 6vw, 80px);
  }

  .neighborhood-detail-hero .split {
    align-items: flex-start;
    gap: clamp(28px, 6vw, 56px);
    grid-template-columns: minmax(0,1.05fr) minmax(0,max-content);
    justify-content: space-between;
  }

  .neighborhood-detail-hero .split > :first-child {
    max-width: 600px;
    width: 100%;
  }

  .neighborhood-detail-hero .panel {
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 10px;
    padding: clamp(20px, 4vw, 26px);
    box-shadow: var(--shadow);
    width: max-content;
    max-width: 420px;
    justify-self: center;
  }

  @media (max-width: 1150px) {
    .neighborhood-detail-hero .split {
      grid-template-columns: 1fr;
      justify-items: center;
      text-align: left;
    }
    .neighborhood-detail-hero .split > :first-child {
      max-width: 640px;
    }
    .neighborhood-detail-hero .panel {
      width: 100%;
      max-width: 460px;
    }
  }

  @media (max-width: 768px) {
    .neighborhood-detail-hero .split {
      grid-template-columns: 1fr;
      justify-items: center;
      gap: clamp(28px, 8vw, 48px);
    }
    .neighborhood-detail-hero .split > :first-child {
      width: 100%;
    }
    .neighborhood-detail-hero .panel {
      width: 100%;
      max-width: 520px;
    }
    .intro-photo img {
      width: clamp(180px, 70vw, 320px);
    }
  }

.map-section {
  background: #0f172a;
  color: rgba(248,250,255,.94);
}

.map-wrap {
  max-width: none;
  padding: 0 clamp(24px, 6vw, 96px);
}

  .map-embed {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(8,12,18,.45);
  }

  .map-embed iframe {
    display: block;
    width: 100%;
    height: clamp(320px, 60vw, 540px);
    border: 0;
  }

  .hero .cta-row { display: flex; gap: 12px; margin-top: 18px; }

  .primary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 32px);
    padding-top: 24px;
  }

  .primary-card {
    display: block;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 8px;
    padding: clamp(20px, 3.5vw, 26px);
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
    color: var(--text);
    text-decoration: none;
  }

  .primary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(15,23,42,.16);
  }

  .primary-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .primary-card h3 {
    margin: 0 0 .55rem;
    color: var(--text);
  }

  .primary-card p {
    margin: 0;
    color: var(--muted);
  }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2vw, 20px);
  max-width: 1200px;
  margin: 0 auto;
}

.work-card {
  position: relative;
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 16px 18px;
  color: #f8fafc;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: .01em;
}

.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45));
}

.work-card span {
  position: relative;
  z-index: 1;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15,23,42,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}

    .services {
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    color: #f8fafc;
  }

  .services-header {
    text-align: left;
    max-width: 720px;
    margin: 0 clamp(24px, 4vw);
  }

  .services-header h2 {
    margin-bottom: .4rem;
  }

  .services-header .lead {
    margin: 0;
    color: rgba(226,232,240,.74);
  }

.about-story-block {
  max-width: 72ch;
  margin: 0 auto;
  text-align: left;
  padding-top: clamp(8px, 2vw, 18px);
}
.about-page .about-hero-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: clamp(18px, 3vw, 28px);
  align-items: end;
  margin: clamp(44px, 6vw, 68px) auto 0;
  max-width: min(1400px, 100%);
  justify-content: center;
}
.about-page .about-hero-img {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.about-page .about-hero-img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}
.about-page .about-hero-img--headshot img {
  box-shadow: none;
  border-radius: 16px;
}
@media (max-width: 900px) {
  .about-page .about-hero-gallery {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .about-page .about-hero-img {
    flex: 0 0 220px;
    scroll-snap-align: center;
  }
  .about-page .about-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 640px) {
  .homes-section .homes-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brief-section .brief-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 640px) {
  .homes-section .homes-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brief-section .brief-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.about-headshot {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 5vw, 32px);
}

.about-headshot picture,
.about-headshot img {
  width: clamp(160px, 28vw, 240px);
  height: auto;
}

.about-headshot-img {
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15,23,42,.16);
}

.section.about-story {
  padding-bottom: clamp(36px, 5vw, 56px);
}

.section.about-story + .section {
  padding-top: clamp(36px, 5vw, 56px);
}

.section.about-collage .about-story-block {
  max-width: 72ch;
  margin: 0 auto clamp(18px, 4vw, 32px);
}

.section.about-collage {
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, rgba(248,250,255,1), rgba(241,245,249,.6));
}

.section.about-collage .lead {
  max-width: 60ch;
  margin-bottom: clamp(24px, 4vw, 36px);
}

.about-gallery-section .wrap.about-story-block {
  padding-bottom: clamp(18px, 3vw, 28px);
}

.about-gallery-section .about-collage-gallery {
  width: min(1200px, 95vw);
  margin: 0 auto;
}

.about-collage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

@media (max-width: 720px) {
  .about-collage-grid {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0 auto;
  }
}

.about-collage-item {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15,23,42,.16);
}

.about-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marketing-list {
  padding-left: 1.1rem;
}

.marketing-list li {
  margin-bottom: .7rem;
}


.life-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(12px, 3vw, 24px);
  width: 100%;
}

.life-grid img,
.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.about-story-block p {
  margin: 0 0 1.1rem;
  color: rgba(15,23,42,.9);
}

  .services-grid {
    margin-top: clamp(24px, 5vw, 40px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(24px, 4vw, 32px);
  }

  .service-card {
    display: block;
    background: rgba(13,20,32,.92);
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 12px;
    padding: clamp(20px, 3.5vw, 26px);
    box-shadow: 0 18px 32px rgba(8,12,18,.5);
    color: #f8fafc;
  }

  .primary-card {
    display: block;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 8px;
    padding: clamp(20px, 3.5vw, 26px);
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
  }

  .primary-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
  }

  .primary-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .primary-card h3 {
    margin: 0 0 .55rem;
    color: var(--text);
  }

  .primary-card p {
    margin: 0;
    color: var(--muted);
  }

  .service-icon {
    font-size: 1.8rem;
    margin-bottom: .6rem;
    display: inline-block;
    color: #facc15;
  }

  .service-card h3 {
    margin: 0 0 .35rem;
    color: #f8fafc;
  }

  .service-card p {
    margin: 0;
    color: rgba(226,232,240,.78);
  }

  @media (max-width: 980px) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .primary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

  @media (max-width: 640px) {
    .services-grid,
    .primary-grid { grid-template-columns: 1fr; }
  }

  .legal h2 {
    margin-top: 2.5rem;
  }

  .legal h2:first-of-type {
    margin-top: 0;
  }

  .legal h3 {
    margin-top: 2rem;
  }

  .legal ol {
    margin: 1rem 0 1.6rem 1.4rem;
    line-height: 1.65;
  }

  .legal address {
    font-style: normal;
    line-height: 1.6;
    margin: 1rem 0 2rem;
  }

  .legal p {
    max-width: 80ch;
  }

  /* =========================================================
     BUTTONS
     ========================================================= */
  .blog-article {
    max-width: min(780px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 1.2rem;
  }

  .blog-article-header .blog-meta {
    color: var(--muted);
    font-size: .95rem;
  }

  .blog-article p {
    margin: 0;
    color: var(--text);
    line-height: 1.7;
  }

  .blog-article p + p {
    margin-top: 1rem;
  }

  .article-simple {
    max-width: min(760px, 100%);
    margin: 0 auto;
    display: grid;
    gap: clamp(14px, 2vw, 22px);
  }

  .article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    text-decoration: none;
  }

  .article-back:hover {
    color: var(--accent);
  }

  .article-header h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .article-header .article-meta {
    color: var(--muted);
    font-size: .95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
  }

  .article-header .article-meta span + span::before {
    content: "·";
    margin: 0 .2rem 0 0;
    color: rgba(148,163,184,.6);
  }

  .article-image {
    margin: 0;
    justify-self: center;
    width: 100%;
  }

  .article-image img {
    width: 100%;
    display: block;
    border-radius: 5px;
    box-shadow: 0 6px 12px rgba(15,23,42,.12);
  }

  /* Blog post mobile tuning */
  .blog-post .section {
    padding: clamp(42px, 7vw, 76px) 0;
  }

  .blog-post .article-simple {
    max-width: min(720px, 100%);
    gap: clamp(12px, 2vw, 20px);
  }

  .blog-post .article-header h1 {
    letter-spacing: -0.01em;
  }

  .blog-post .article-header .lead {
    margin: 0.35rem 0 0.65rem;
  }

  .blog-post .article-header .article-meta {
    gap: .5rem;
  }

  .blog-post .blog-article-body {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .blog-post .blog-article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.2rem 0;
    border-radius: 6px;
  }

  .blog-post .article-image img {
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(15,23,42,.15);
  }

  @media (max-width: 720px) {
    .blog-post .section {
      padding: clamp(30px, 6vw, 48px) 0;
    }
    .blog-post .article-header h1 {
      font-size: clamp(1.4rem, 6vw, 1.9rem);
    }
    .blog-post .article-header .article-meta {
      font-size: .9rem;
      gap: .35rem;
    }
    .blog-post .article-simple {
      gap: 14px;
    }
    .blog-post .blog-article-body {
      font-size: 1rem;
      line-height: 1.65;
    }
  }

  .article-img-placeholder {
    width: 100%;
    padding-top: 56%;
    border-radius: 5px;
    background: linear-gradient(120deg, rgba(148,163,184,.18), rgba(148,163,184,.32), rgba(148,163,184,.18));
    background-size: 200% 100%;
    animation: articlePulse 1.2s ease-in-out infinite;
  }

  @keyframes articlePulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .article-related {
    margin-top: clamp(24px, 4vw, 36px);
    padding-top: clamp(16px, 3vw, 26px);
    border-top: 1px solid rgba(148,163,184,.3);
    display: grid;
    gap: 12px;
  }

  .article-related h3 {
    margin: 0;
  }

  .article-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
  }

  .article-related a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
  }

  .blog-grid {
    display: grid;
    gap: clamp(20px, 3.5vw, 26px);
    max-width: 980px;
    margin: 0 auto;
  }

  .blog-card {
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15,23,42,.12);
    display: grid;
    grid-template-columns: clamp(220px, 28vw, 320px) minmax(0, 1fr);
    gap: clamp(18px, 3vw, 24px);
    padding: clamp(18px, 2.6vw, 22px);
    align-items: stretch;
  }

  .blog-card-media {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(148,163,184,.12);
  }

  .blog-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .blog-card-body {
    display: grid;
    gap: clamp(10px, 1.8vw, 16px);
    align-content: start;
  }

  .blog-card h2 {
    margin: 0;
    font-size: 1.3rem;
  }

  /* Blog article skeleton / hero */
  .article-skeleton {
    display: grid;
    gap: 12px;
    max-width: 720px;
  }
  .article-skeleton-line,
  .article-skeleton-img {
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(148,163,184,.15), rgba(148,163,184,.3), rgba(148,163,184,.15));
    background-size: 200% 100%;
    animation: articlePulse 1.1s ease-in-out infinite;
  }
  .article-skeleton-line.short { width: 40%; }
  .article-skeleton-img {
    width: 100%;
    padding-top: 256px;
    border-radius: 16px;
  }
  @keyframes articlePulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  .blog-card h2 a {
    color: inherit;
    text-decoration: none;
  }

  .blog-card h2 a:hover {
    color: var(--accent);
  }

  .blog-meta {
    font-size: .95rem;
    color: var(--muted);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
  }

  .blog-meta .dot {
    color: rgba(148,163,184,.6);
  }

  .blog-card-body p {
    margin: 0;
    color: var(--muted);
  }

  .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(148,163,184,.2);
    color: var(--muted);
    font-size: .85rem;
  }

  .blog-link {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
  }

  .blog-link:hover {
    color: var(--accent2);
  }

  .blog-empty {
    margin: clamp(32px, 6vw, 48px) auto;
    padding: clamp(24px, 5vw, 32px);
    max-width: 640px;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--shadow);
  }

  @media (max-width: 900px) {
    .blog-card {
      grid-template-columns: 1fr;
    }

    .blog-card-media {
      width: 100%;
      max-height: 220px;
    }
  }

  .blog-status {
    color: var(--muted);
    font-size: .95rem;
    margin: clamp(24px, 4vw, 32px) auto 0;
    text-align: center;
  }

  .article-hero .article-meta {
    margin-top: .75rem;
    color: var(--muted);
    font-size: .95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }

  .article-meta .dot {
    color: rgba(148,163,184,.6);
  }

  .article-meta .byline {
    font-weight: 700;
    color: var(--text);
  }

  .article-meta .readtime {
    color: var(--muted);
  }

  .article-content .wrap {
    max-width: 760px;
  }

  .article-media figure {
    margin: 0 0 clamp(18px, 4vw, 28px);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15,23,42,.08);
  }

  .article-media img {
    width: 100%;
    height: auto;
    display: block;
  }

  .article-media figcaption {
    padding: 12px 16px;
    font-size: .9rem;
    color: var(--muted);
    background: rgba(15,23,42,.04);
  }

  .blog-article-body h2,
  .blog-article-body h3,
  .blog-article-body h4 {
    margin: clamp(22px, 4vw, 32px) 0 clamp(10px, 2vw, 16px);
  }

  .blog-article-body p {
    margin: clamp(14px, 3vw, 18px) 0;
  }

  .blog-article-body ul {
    margin: clamp(14px, 3vw, 20px) 0 clamp(14px, 3vw, 20px) 1.4rem;
    padding: 0;
    color: var(--muted);
  }

  .blog-article-body li {
    margin: .4rem 0;
    line-height: 1.6;
  }

  .blog-article-body a {
    color: var(--accent);
  }

  .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: clamp(8px, 2vw, 8px) 0;
  }

  .article-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(26,63,102,.45);
    color: #1a3f66;
    font-weight: 600;
    letter-spacing: .01em;
  }

  .article-footnote {
    margin-top: clamp(24px, 4vw, 32px);
    font-size: .95rem;
  }

  .article-footnote-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px 18px;
    color: var(--muted);
  }

  .article-share {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .article-share-label {
    font-weight: 600;
    color: var(--text);
  }

  .article-share-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
  }

  .article-share-link:hover {
    color: var(--accent);
  }

  .article-footnote-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text);
  }

  .article-footnote-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
  }

  .article-footnote-link:hover {
    color: var(--accent);
  }

  .article-footnote .dot {
    color: rgba(148,163,184,.5);
    margin: 0 4px;
  }

  .article-empty {
    margin: clamp(32px, 6vw, 48px) auto;
    padding: clamp(24px, 5vw, 32px);
    max-width: 640px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    text-align: center;
    color: var(--muted);
  }

  .btn {
    display: inline-block;
    padding: .7rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid transparent;
  }

  .btn.primary {
    background: #1a3f66;
    color: #f8fafc;
    box-shadow: 0 8px 18px rgba(26,63,102,.25);
  }

  .btn.ghost {
    border-color: rgba(148,163,184,.35);
    color: var(--text);
    background: transparent;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
  }

  .btn.ghost:hover {
    border-color: rgba(26,63,102,.45);
    background: rgba(26,63,102,.12);
  }

  /* =========================================================
     FORMS
     ========================================================= */
  .form-stack {
    display: grid;
    gap: .75rem;
  }

  .form-stack input,
  .form-stack textarea {
    width: 100%;
    padding: .9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148,163,184,.35);
    background: rgba(248,250,252,.94);
    color: var(--text);
    font: inherit;
    line-height: 1.5;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  }

  .form-stack button {
    justify-self: start;
  }

  .form-stack textarea {
    min-height: 160px;
    resize: vertical;
  }

  .form-stack input:focus,
  .form-stack textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26,63,102,.18);
    background: #ffffff;
  }

  .form-disclaimer {
    font-size: .8rem;
    color: rgba(71,84,103,.9);
    margin: -.25rem 0 0;
  }

  .form-disclaimer a {
    color: inherit;
    text-decoration: underline;
  }

[data-netlify-recaptcha] {
    margin: .25rem 0 .5rem;
  }

  .contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 18px;
  }

  .contact-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(26,63,102,.35);
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
  }

  .contact-link:hover {
    background: rgba(26,63,102,.15);
    border-color: rgba(26,63,102,.65);
    color: #0d2a4a;
  }
  
  /* =========================================================
     SECTIONS / LAYOUT
     ========================================================= */
.section { padding: clamp(72px, 8vw, 96px) 0; }

  /* Slightly tighten spacing when the quick insight follows another section */
  .section.insight-section {
    padding-top: clamp(64px, 6vw, 96px);
    padding-bottom: 0;
  }

  #neighborhoods {
    padding-top: clamp(20px, 3vw, 32px);
  }

  .page-hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1);
    padding: calc(var(--header-height) + clamp(32px, 5vw, 56px)) 0 clamp(32px, 5vw, 48px) 0;
    color: #f8fafc;
  }

  .page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.35);
    z-index: 0;
  }

  .page-hero .wrap {
    position: relative;
    z-index: 1;
  }

  .neighborhood-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(15,23,42,.5), rgba(15, 23, 42, 0.5)),
      url("/assets/img/Seattle%20Homes.jpg") center/cover no-repeat;
    opacity: .94;
    z-index: 0;
  }

  .neighborhood-hero .wrap {
    position: relative;
    z-index: 1;
  }

  .page-hero .lead {
    max-width: 65ch;
  }

  .page-hero .kicker {
    color: rgba(226,232,240,.78);
  }


  .page-hero--light {
    background: #ffffff;
    color: var(--text);
  }

  .page-hero--light::before {
    background: none;
  }

  .page-hero--light .kicker {
    color: var(--muted);
  }

  .page-hero--light .lead {
    color: var(--text);
    opacity: 1;
  }

  .blog-hero {
    padding: calc(var(--header-height) + clamp(32px, 5vw, 56px)) 0 clamp(32px, 5vw, 48px);
  }

  .page-hero--with-image {
    color: #f8fafc;
    min-height: clamp(520px, 80vh, 840px);
    display: flex;
    align-items: center;
  }

  .page-hero--with-image::before {
    background:
      linear-gradient(120deg, rgba(4,9,20,.88), rgba(8,12,34,.55)),
      var(--hero-image, url("/assets/img/Seattle%20Homes.jpg"));
    background-size: cover;
    background-position: center;
  }

  .page-hero--with-image .wrap {
    background: transparent;
    border-radius: 0;
    padding: 0;
  }

  .page-hero--with-image .kicker,
  .page-hero--with-image .lead,
  .page-hero--with-image h1 {
    color: #f8fafc;
  }

  #neighborhoods h2 {
    margin-top: clamp(32px, 5vw, 48px);section steps-accordion
  }

  #neighborhoods h2:first-of-type {
    margin-top: 0;
  }

  #neighborhoods .cards {
    margin-top: 1.15rem;
  }

  .alt {
    background: linear-gradient(180deg, rgba(117, 143, 179, 0.12), rgba(148, 163, 184, 0.238));
    border-top:    1px solid rgba(15,23,42,.08);
    border-bottom: 1px solid rgba(15,23,42,.08);
  }
  
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.atglance-split > :last-child {
  justify-self: center;
}

@media (max-width: 1040px) {
  .atglance-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .atglance-split > :last-child {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 1024px) {
  .page-hero--with-image.neighborhood-detail-hero .wrap.split {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: clamp(24px, 6vw, 40px);
  }
  .page-hero--with-image.neighborhood-detail-hero .wrap.split > * {
    width: 100%;
    max-width: 520px;
  }
  .page-hero--with-image.neighborhood-detail-hero .wrap.split > :first-child {
    order: 1;
  }
  .page-hero--with-image.neighborhood-detail-hero .wrap.split > :last-child {
    order: 2;
  }
}

.infoparagraph {
  padding-top: 48px;
}
  
  /* =========================================================
     CARDS
     ========================================================= */
  .cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
  }
  
  .card {
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(15,23,42,.08);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
  }
  
  .card:hover { transform: translateY(-4px); }
  
  .card .icon {
    font-size: 28px;
    filter: drop-shadow(0 4px 8px rgba(56,189,248,.2));
  }
  
  .card h3 { margin: .3rem 0 .25rem; }
  .card p  { margin: 0; color: var(--muted); }

  .atglance.card {
    background: rgba(248,250,255,1);
    border: none;
    box-shadow: 0 24px 48px rgba(15,23,42,.18);
    color: #0f172a;
    width: max-content;
    max-width: 420px;
    padding-inline: clamp(20px, 4vw, 32px);
  }

  .atglance.card:hover {
    transform: none;
  }

  .atglance-sub {
    margin: -.15rem 0 0;
    color: rgba(15,23,42,.5);
    font-size: .78rem;
  }

  .atglance.card ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 4px 18px;
  }

  .atglance.card li {
    color: #0f172a;
    font-weight: 500;
  }

  .atglance.card h3 {
    margin-top: 0;
    margin-bottom: .75rem;
    color: #0f172a;
    font-size: 1.05rem;
  }

  .atglance-subrow {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin: -.25rem 0 .5rem;
  }

  .atglance-info {
    position: relative;
    border: 2px solid rgba(79,70,229,.5);
    background: #f5f5ff;
    color: #4f46e5;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font: 700 .34rem/1 'Manrope', system-ui, sans-serif;
    cursor: help;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .atglance-info::after {
    content: attr(data-tip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 10px);
    white-space: normal;
    width: 220px;
    background: #0f172a;
    color: #f8fafc;
    padding: .45rem .8rem;
    border-radius: 8px;
    font-size: .72rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    box-shadow: 0 10px 26px rgba(15,23,42,.3);
    line-height: 1.4;
    text-align: left;
  }

  @media (max-width: 640px) {
    .atglance-info::after {
      left: 0;
      transform: translate(0, 10px);
    }
  }

  .atglance-info:hover::after,
  .atglance-info:focus-visible::after {
    opacity: 1;
  }

  /* =========================================================
     MARKET CHARTS
     ========================================================= */
  .pills { display: flex; gap: 10px; flex-wrap: wrap; margin: .75rem 0 1rem; }
  
  .pill {
    background: rgba(148,163,184,.18);
    border: 1px solid rgba(148,163,184,.32);
    color: var(--text);
    border-radius: 999px;
    padding: .4rem .75rem;
    cursor: pointer;
    font-weight: 700;
  }
  
  .pill[aria-selected="true"] {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #0f172a;
    border-color: transparent;
  }
  
  .aspect {
    position: relative;
    width: 100%;
    padding-bottom: 62%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid rgba(15,23,42,.08);
    box-shadow: var(--shadow);
  }
  
  .aspect iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  /* =========================================================
     FOOTER
     ========================================================= */
  .footer {
    background: #0f172a;
    color: rgba(226,232,240,.78);
    padding: clamp(36px, 4vw, 54px) 0 clamp(24px, 3vw, 36px);
  }

  .footer a {
    color: rgba(226,232,240,.88);
    text-decoration: none;
  }

  .footer a:hover {
    color: var(--accent2);
  }

  .footer-inner {
    display: grid;
    gap: clamp(24px, 4vw, 32px);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: start;
  }

  @media (min-width: 1024px) {
    .footer-brand {
      grid-column: span 1;
    }
  }

  @media (max-width: 720px) {
    .footer-inner {
      grid-template-columns: 1fr;
    }
  }

  .footer-brand p {
    margin: 0 0 .4rem;
  }

  .footer-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .footer-contact a {
    display: inline-flex;
    color: rgba(226,232,240,.88);
  }

  .footer-heading {
    margin: 0 0 .5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #f8fafc;
  }

  .footer-role {
    margin: 0 0 .8rem;
    color: rgba(226,232,240,.7);
  }

  .footer-contact {
    margin: 0 0 1rem;
  }

  .footer-contact a:last-child {
    margin-right: 0;
  }

  .footer-address {
    margin: 0;
    color: rgba(226,232,240,.7);
  }

  .footer-column h4 {
    margin: 0 0 .75rem;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f8fafc;
  }

  .footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
  }

  .footer-links.inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .footer-links.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .footer-links.inline li {
    margin: 0;
  }

  .footer-links.compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
  }

  .footer-copy {
    margin-top: clamp(36px, 4vw, 56px);
    border-top: 1px solid rgba(148,163,184,.25);
    padding-top: 22px;
    text-align: center;
    color: rgba(226,232,240,.65);
    font-size: .9rem;
  }

  /* =========================================================
     MEDIA QUERIES
     ========================================================= */
  @media (max-width: 980px) {
    .hero .grid { grid-template-columns: 1fr; }
    .cards      { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split      { grid-template-columns: 1fr; }
  }
  
  @media (max-width: 560px) {
    .cards { grid-template-columns: 1fr; }
  }
  
/* ===============================
   BUY PAGE — STACKED ACCORDION
   =============================== */
  .steps-accordion { padding-top: 0px !important; padding-bottom: 64px !important; padding-top: clamp(8px, 2vw, 20px); margin-top: 0; background: #ffffff !important; }
   .steps-accordion h2 { margin: 0 0 .4rem 0; }
   .steps-accordion .steps-sub { margin: 0 0 16px 0; opacity: .86; max-width: 72ch; }
   
   .steps-accordion .stack {
     display: grid;
     gap: 18px;            /* comfortable gap between cards */
   }
   
   /* Card shell */
  .step {
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }
   
   /* Summary bar (bigger hit area + better hierarchy) */
   .step > summary {
     list-style: none;
     cursor: pointer;
     display: grid;
     grid-template-columns: auto 1fr auto;  /* badge | text | time */
     align-items: center;
     gap: 24px;
     padding: 20px 22px;                    /* more breathing room */
   }
   .step > summary::-webkit-details-marker { display: none; }
   
   /* Badge */
   .step .badge {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     padding: 6px 18px;
     height: 40px;
     border-radius: 10px;
     font-weight: 700;
     font-size: .95rem;
     background: #1a3f66;
     color: #f8fafc;
     white-space: nowrap;
   }
   
   .step .sum-text h3 {
     margin: 0;
     font-size: 1.1rem;     /* larger title for skimming */
     line-height: 1.22;
     letter-spacing: .005em;
   }
   
   /* Time pill */
  .step .time {
    justify-self: end;
    font-weight: 700;
    font-size: .95rem;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.069);
    border: 1px solid rgba(148, 163, 184, 0.144);
    color: var(--text);
  }
   
   /* Open state */
  .step[open] > summary {
    border-bottom: 1px solid rgba(15,23,42,.12);
    background: rgba(26,63,102,.08);
  }
   
   /* Body content (roomier but tidy) */
   .step .step-body {
     max-height: 0;
     overflow: hidden;
     opacity: 0;
     padding: 0 22px;
     transition: max-height .35s ease, opacity .25s ease, padding .3s ease;
   }
   .step[open] .step-body {
     max-height: 960px;
     opacity: 1;
     padding: 18px 22px 22px 22px;
   }
   .step .step-body p { margin: 0 0 1rem 0; max-width: 78ch; }
   .step .step-body ul {
     margin: 0 0 1rem 1.1rem;
     padding-left: 0;
   }
   .step .step-body li {
     margin: .4rem 0;
     line-height: 1.65;
   }
   
   /* CTA under stack */
  .steps-accordion .steps-cta {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px dashed rgba(26,63,102,.35);
    background: rgba(148,163,184,.12);
  }
   
   /* Mobile tweaks — keep it airy, align with page gutters */
   @media (max-width: 680px) {
     .step > summary { grid-template-columns: auto 1fr; padding: 18px; }
     .step .time { display: none; }             /* hide pill on tiny screens */
     .step .sum-text h3 { font-size: 1.18rem; }
     .step .step-body { padding: 0 12px; }
     .step[open] .step-body { padding: 16px 18px 18px 18px; }
   }

/* =========================================
   HERO SPLIT — center columns & balance edges
   ========================================= */
   .split{
    /* Left a bit wider than right for better visual weight */
    grid-template-columns: minmax(0,1.20fr) minmax(0,0.80fr);
    /* Wider gutter so the list doesn't feel glued to the title */
    gap: clamp(40px, 6vw, 84px);
    /* Vertically center the two columns against each other */
    align-items: center;
  }
  
  /* Left column (title block): keep text left, but add a soft inset so it
     doesn't look jammed against the container edge, and center its content */
  .split > :first-child{
    display: grid;
    align-content: center;                /* vertical centering inside the track */
    padding-left: clamp(8px, 1.2vw);
  }
  
  /* Right column (numbered list panel): keep it visually to the right,
     and center it vertically to avoid the "floating higher" look */
  .split > .panel{
    justify-self: end;                    /* right-align within its grid track */
    align-self: center;                   /* vertical centering */
    width: 100%;
    max-width: 520px;                     /* keeps list tidy */
    margin-left: 0;
  }
  
  /* Tighter list spacing so numerals feel deliberate */
 /* Tighter list spacing for both numbered + bulleted lists */
.split > .panel ol,
.split > .panel ul {
  margin: 0;
  padding-left: 1.1em;   /* reduces default 40px indent to ~18px */
}

/* Safari fix for list indent */
.split > .panel ul {
  -webkit-padding-start: 1.1em;
}

  .split > .panel li{ margin:.35rem 0; line-height:1.55; }
  
  /* Optional: slightly reduce gap under the kicker so the title block
     aligns more naturally with the list */
  .kicker{ margin-bottom:.35rem; }
  
  /* Mobile: stack, no special alignment/insets */
  @media (max-width: 980px){
    .split{ grid-template-columns:1fr; gap:18px; align-items:start; }
    .split > :first-child{ align-content:start; padding-left:0; }
    .split > .panel{ justify-self:stretch; align-self:start; max-width:none; }
  }
  
  /* ===============================
   Zor's Quick Take — Headshot + Bubble
   Paste at end of theme.css
   =============================== */

  .insight {
    /* centers the headshot + bubble as a row */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;                      /* space between headshot and bubble */
    margin: 0 auto 0;
    padding: clamp(16px, 4vw, 28px) 1rem clamp(40px, 6vw, 60px); /* lighter top gap, same comfortable tail */
    max-width: 1200px;              /* keeps the whole unit from stretching too far */
  }
  
  .insight img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(15,23,42,.2);
  }
  
  /* Speech bubble */
  .insight-bubble {
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px 32px;
    width: 100%;
    max-width: 720px;               /* readable line length */
    line-height: 1.6;
  }
  
  .insight-bubble h3 {
    margin: 0 0 .6rem 0;
    font-size: 1.05rem;
    letter-spacing: .01em;
    color: var(--accent);           /* subtle brand pop */
  }
  
  .insight-bubble p {
    margin: 0;
    color: var(--text);
    opacity: .96;
  }

  .insight-bubble-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
  }
  .insight-bubble-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 6px;
  }

  /* Neighborhood layout centering (text remains left aligned) */
.neighborhood-page .section .wrap { max-width: 760px; margin-left: auto; margin-right: auto; }
.neighborhood-page .insight-section .wrap { max-width: 1200px; } /* keep insights comfortably wide */
.neighborhood-page .atglance-split { justify-content: center; }
.neighborhood-page .map-section .wrap { max-width: none; } /* allow the map to span wide like the original design */

/* Census snapshot block (reusable across neighborhoods) */
.neighborhood-page .census-snapshot {
  background: #fff;
  padding: 72px 0 88px;
}
.neighborhood-page .census-snapshot .census-wrap {
  display: block;
  width: 100%;
  max-width: 1015px;
  margin: 0 auto;
  padding: 0 12px;
}
.neighborhood-page .census-head {
  text-align: left;
  margin-bottom: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.neighborhood-page .census-note {
  margin: 4px 0 0;
  font-size: .9rem;
  color: #60708c;
}
.neighborhood-page .census-block { margin-top: 34px; }
.neighborhood-page .census-block--first { margin-top: 48px; }
.neighborhood-page .census-subhead {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #182236;
  margin: 0 0 14px;
  font-weight: 800;
}
.neighborhood-page .census-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.neighborhood-page .census-card {
  background: #fcfdff;
  border: 1px solid #e1e6f1;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.neighborhood-page .census-card--pie {
  text-align: center;
  min-height: 220px;
  justify-content: flex-start;
  padding: 20px 18px 22px;
}
.neighborhood-page .census-label {
  font-size: .85rem;
  color: #4a5568;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 6px;
  font-weight: 700;
}
.neighborhood-page .census-value {
  font-size: clamp(1.35rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-top: 2px;
}
.neighborhood-page .census-value small {
  display: block;
  font-size: .95rem;
  color: #6b7280;
  margin-top: 6px;
}
.neighborhood-page .census-pie {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  position: relative;
  margin: 10px auto 14px;
  background: conic-gradient(var(--pie-color, #4e74c2) calc(var(--pie-val, 0)), var(--pie-neutral, #b8c4e8) 0);
  display: grid;
  place-items: center;
  transition: transform .15s ease;
  overflow: visible;
}
.neighborhood-page .census-pie:hover { transform: scale(1.02); }
.neighborhood-page .census-pie__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 6px);
  background: rgba(15, 23, 42, .94);
  color: #f8fafc;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: .9rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  opacity: 0;
  transition: opacity .12s ease, transform .12s ease;
  pointer-events: none;
  white-space: nowrap;
}
.neighborhood-page .census-pie:hover .census-pie__tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}
.neighborhood-page .census-legend {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: .92rem;
  color: #4b5563;
  flex-wrap: wrap;
}
.neighborhood-page .census-legend span { display: inline-flex; align-items: center; gap: 6px; }
.neighborhood-page .census-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: var(--pie-neutral, #b8c4e8);
}
.neighborhood-page .census-legend .owner,
.neighborhood-page .census-legend .male,
.neighborhood-page .census-legend .whitecollar,
.neighborhood-page .census-legend .employed {
  background: var(--pie-color, #4e74c2);
}
.neighborhood-page .census-legend .renter,
.neighborhood-page .census-legend .female,
.neighborhood-page .census-legend .bluecollar,
.neighborhood-page .census-legend .other {
  background: var(--pie-neutral, #b8c4e8);
}
@media (max-width: 600px) {
  .neighborhood-page .census-snapshot { padding: 56px 0 70px; }
  .neighborhood-page .census-card--pie { min-height: 220px; }
  .neighborhood-page .census-pie { width: 140px; height: 140px; }
}
  /* Neighborhood brief section container */
  .brief-section { background: #f9fafc; }
  .brief-section .brief-wrap { max-width: 760px; margin-left: auto; margin-right: auto; padding: 0 !important;}
  .brief-body p { margin: .45rem 0 1.35rem; }
  .brief-body p:first-of-type { margin-top: .75rem; }
  .brief-body p:last-child { margin-bottom: 0; }
  /* Tighten spacing between insights and homes when stacked */
  .insight-section + .homes-section { padding-top: clamp(36px, 4vw, 48px); }

  /* Neighborhood subnav */
.nh-subnav {
  position: sticky;
  top: var(--header-height, 72px);
  margin-top: -2px; /* hug header */
  z-index: 5;
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
  .nh-subnav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 14px 6px;
    display: flex;
    gap: 12px;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    align-items: center;
  }
  .nh-subnav-inner::-webkit-scrollbar { display: none; }
.nh-subnav-label {
  font-weight: 700;
    color: #f8fafc;
  white-space: nowrap;
  letter-spacing: .02em;
  padding-right: 4px;
}
  .nh-subnav-links {
    display: inline-flex;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .nh-subnav a {
    display: inline-flex;
    align-items: center;
  gap: 6px;
  padding: 2px 4px;
  border-radius: 0;
  border: none;
    color: #f8fafc;
  font-weight: 500;
  background: transparent;
  transition: color .15s ease, border-color .15s ease;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nh-subnav a:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}
.nh-subnav a.is-active {
    border-bottom-color: #f8fafc;
  }

  @media (max-width: 640px) {
    .nh-subnav-label { display: none; }
    .nh-subnav-inner { justify-content: flex-start; }
  }
  
  /* Hover micro-interaction (optional—remove if you prefer static) */
  .insight-bubble:hover {
    border-color: rgba(26,63,102,.32);
    transform: translateY(-2px);
    transition: transform .18s ease, border-color .18s ease;
  }
  
  /* ============ Responsive ============ */
  @media (max-width: 980px) {
    .insight {
      gap: 2rem;
    }
    .insight img {
      width: 150px;
      height: 150px;
    }
    .insight-bubble {
      padding: 28px 32px;
      max-width: 680px;
    }
  }
  
  @media (max-width: 680px) {
    .insight {
      flex-direction: column;       /* stack on mobile */
      align-items: center;
      gap: 1rem;
    }
    .insight img {
      width: 170px;
      height: 170px;
    }
    .insight-bubble {
      max-width: 640px;
      padding: 22px 22px;
    }
    .insight-bubble h3 {
      text-align: center;
    }
  }
  
/* --- Editorial layout --- */
.editorial {
  padding: 0rem 0;
}

.editorial-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.editorial-inner h2,
.editorial-inner h3 {
  font-weight: 700;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.editorial-inner p {
  margin: 1.1rem 0;
}

.editorial-inner ul {
  margin: 1.2rem 0 1.2rem 1.4rem;
  line-height: 1.6;
}

.editorial-inner .source-note {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}


/* ===============================
   Neighborhood hero image
   =============================== */
.hood-hero-section { padding-top: 36px; padding-bottom: 0; }
.hood-hero {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: var(--shadow);
  /* 16:9 banner */
  aspect-ratio: 16 / 9;
  position: relative;
}
.hood-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hood-hero figcaption {
  position: absolute;
  right: 12px; bottom: 10px;
  font-size: .9rem;
  color: var(--text);
  background: rgba(248,250,252,.85);
  padding: 4px 8px;
  border-radius: 8px;
}

/* ===============================
   Editorial column (centered)
   =============================== */
.editorial { padding: 56px 0; }
.editorial-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.editorial-inner h2 { margin: .25rem 0 1rem; line-height: 1.3; }
.editorial-inner h3 { margin: 2.25rem 0 1rem; color: var(--muted); line-height: 1.35; }
.editorial-inner p  { margin: 1.05rem 0; max-width: 80ch; }
.editorial .related ul { margin: .25rem 0 0 1.1rem; }

/* ===============================
   Local notes bubble — keep centered
   =============================== */
.insight {
  justify-content: center;
  gap: 2.2rem;
  padding: 0px 1rem 12px;
}

/* ===============================
   Metrics — centered block
   =============================== */
.metrics { padding: 72px 0 64px; }
.metrics-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.metrics-title { margin-bottom: 18px; }
.metrics-grid {
  /* three cards on desktop, collapse gracefully */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-items: stretch;
  margin-top: 14px;
}
@media (max-width: 980px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ===============================
   CTA — remove gradient background
   =============================== */
.cta-row { display: flex; gap: 12px; margin-top: 18px; }
/* IMPORTANT: ensure no '.hero' class is applied to the CTA row container */

/* Optional: harmonize section spacing so page feels less jumpy */
.section { padding: clamp(72px, 8vw, 96px) 0; }


/* ===============================
   Neighborhoods — Explore Nearby cards
   =============================== */

/* Explore Nearby Section */
.neigh-links {  
  margin-top: 24px;
  margin-bottom: 96px;  /* ✅ adds breathing room above footer */
  padding-top: 64px;
 }
.neigh-links .kicker {
  font: 600 .9rem/1 Manrope, system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5c6573;
  margin-bottom: 18px;
}

.neigh-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.neigh-list li {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e7f0;
}

.neigh-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #0b2239;
  font-weight: 600;
  font-size: 1rem;
  transition: color .15s ease;
}

.neigh-list a::after {
  content: "›";
  font-size: .9rem;
  color: #9aa4b2;
  transition: transform .15s ease, color .15s ease;
}

.neigh-list a:hover,
.neigh-list a:focus {
  color: #1f4c88;
}

.neigh-alt {
  margin-top: 80px;
}

.neigh-alt .kicker {
  margin-bottom: 18px;
}

.neigh-list a:hover::after,
.neigh-list a:focus::after {
  transform: translateX(4px);
  color: #1f4c88;
}

/* ===============================
   MAP / BUTTON
   =============================== */
  .map-section .map-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:24px; margin-bottom:32px;
  max-width:760px;
  margin-left:auto;
  margin-right:auto;
  padding:0 ;
}
  .map-section .map-head .kicker{
    margin-bottom:8px;
    color:#cfd7f1;
  }
  .map-section .map-head h2{
    margin:0;
    color:#f8faff;
  }
  .map-section .map-head .muted{
    margin:.35rem 0 0;
    color:rgba(224,230,245,.85);
  }

.btn{ display:inline-flex; align-items:center; gap:.5rem; font-weight:700;
  padding:.75rem 1rem; border-radius:12px; text-decoration:none; }
.btn-primary{
  background:#031127; color:#fff; box-shadow:0 6px 16px rgba(3,17,39,.2);
}
.btn-primary:hover{ filter:brightness(1.08); transform:translateY(-1px); }

  .map-section .btn-primary{
    background:#f8faff;
    color:#031127;
  }
  .map-section .btn-primary:hover{
    filter:none;
    transform:translateY(-1px);
    background:#e2e8f0;
  }

@media (max-width: 720px){
  .map-section .map-head{ flex-direction:column; align-items:flex-start; }
  .map-section .map-head a{ width:100%; justify-content:center; }
}

.map-embed iframe { background: white !important; }


/* At a Glance Loading State */

/* =========================
   Neighborhoods (nh-) utilities
   ========================= */

/* At-a-glance: show only first 3 facts by default */
#nh-bullets li:nth-child(n+4):not(.sr-only) {
  display: none;
}

/* Loading state (class-based for reliability) */
#nh-bullets.not-loaded::before {
  content: "• Median home value: $---,---\A• Median rent: $-,---";
  white-space: pre-line;
  opacity: .6;
  display: block;
}
/* Prevent layout jump while loading; adjust height if needed */
#nh-bullets.not-loaded { min-height: 3.25rem; }
/* Hide any partial items while loading */
#nh-bullets.not-loaded > li { display: none; }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #0b1e3f; color: #fff;
  z-index: 9999;
  display: flex; gap: .5rem;
  justify-content: space-around; align-items: center;
  padding: .65rem .75rem;
  box-shadow: 0 -6px 20px rgba(0,0,0,.15);
}
.sticky-cta a {
  color: #fff; text-decoration: none; font-weight: 700;
  padding: .5rem .8rem; border: 1px solid rgba(255,255,255,.25);
  border-radius: .5rem;
}
.sticky-cta a:hover { background: rgba(255,255,255,.1); }
@media (min-width: 1024px){
  .sticky-cta { display: none; }
}
  .atglance.card li::marker {
    color: #4f46e5;
  }

  /* =========================================================
     NEIGHBORHOOD QUIZ
     ========================================================= */
  #neighborhood-quiz {
    background: #f8fafc;
    position: relative;
    padding: clamp(28px, 4vw, 44px) 0 clamp(18px, 3vw, 28px);
  }

  #neighborhood-quiz .quiz-entry {
    margin-top: clamp(4px, 1vw, 10px);
  }

  #neighborhood-quiz .quiz-callout {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.5;
  }

  #neighborhood-quiz .quiz-inline-toggle {
    background: none;
    border: none;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
  }

  #neighborhood-quiz .quiz-inline-toggle:hover,
  #neighborhood-quiz .quiz-inline-toggle:focus-visible {
    color: var(--accent2);
    outline: none;
  }

  #neighborhood-quiz .quiz-results {
    margin-top: clamp(32px, 5vw, 48px);
  }

  #neighborhood-quiz .quiz-results-header h3 {
    margin-bottom: .35rem;
  }

  #neighborhood-quiz .quiz-result-cards {
    margin-top: 1rem;
  }

  #neighborhood-quiz .quiz-result-card {
    display: flex;
    flex-direction: column;
    gap: .4rem;
  }

  #neighborhood-quiz .quiz-result-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--accent);
  }

  #neighborhood-quiz .quiz-restart {
    margin-top: 1.5rem;
  }

  #neighborhood-quiz .quiz-message {
    margin: 0;
    font-weight: 600;
    color: var(--accent);
  }

  #neighborhood-quiz .quiz-message.is-error {
    color: #b91c1c;
  }

  #neighborhood-quiz .quiz-lead {
    margin-top: clamp(24px, 4vw, 32px);
  }

  #neighborhood-quiz .quiz-lead h4 {
    margin: 0;
  }

  #neighborhood-quiz .quiz-lead p {
    margin: 0 0 .35rem;
  }

  #neighborhood-quiz .quiz-lead-success {
    margin: 0;
    color: var(--accent);
    font-weight: 600;
  }

  #neighborhood-quiz .quiz-lead-success[hidden] {
    display: none;
  }

  #quiz-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px);
    z-index: 400;
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
  }

  #quiz-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  #quiz-modal[hidden] {
    display: none;
  }

  #quiz-modal .quiz-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.65);
    backdrop-filter: blur(2px);
  }

  #quiz-modal .quiz-dialog {
    position: relative;
    width: min(90vw, 640px);
    min-height: clamp(320px, 50vh, 520px);
    border-radius: 20px;
    padding: clamp(20px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 32px 64px rgba(15,23,42,.25);
    z-index: 1;
  }

  #quiz-modal .quiz-dialog.card {
    transition: none;
  }

  #quiz-modal .quiz-dialog.card:hover {
    transform: none;
    box-shadow: 0 32px 64px rgba(15,23,42,.25);
  }

  #quiz-modal .quiz-exit {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    color: var(--text);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
  }

  #quiz-modal .quiz-form,
  #quiz-modal .quiz-results {
    flex: 1;
  }

  #quiz-modal .quiz-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.2rem;
  }

  #quiz-modal .quiz-form[hidden],
  #quiz-modal .quiz-results[hidden] {
    display: none !important;
  }

  #quiz-modal .quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .9rem;
    color: var(--muted);
  }

  #quiz-modal .quiz-progress-step {
    font-weight: 700;
    color: var(--text);
  }

  #quiz-modal #quiz-question-title {
    margin: 0;
    font-size: 1.3rem;
  }

  #quiz-modal .quiz-progress-note {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
  }

  #quiz-modal .quiz-options {
    display: grid;
    gap: .75rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 2px;
  }

  #quiz-modal .quiz-option {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .9rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(15,23,42,.1);
    background: rgba(248,250,252,.96);
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  }

  #quiz-modal .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #quiz-modal .quiz-option input {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    accent-color: var(--accent);
  }

  #quiz-modal .quiz-option span {
    flex: 1;
    line-height: 1.5;
  }

  #quiz-modal .quiz-option.is-checked {
    border-color: var(--accent);
    background: rgba(26,63,102,.08);
    box-shadow: 0 0 0 2px rgba(26,63,102,.12);
  }

  #quiz-modal .quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    margin-top: auto;
  }

  #quiz-modal .quiz-nav .btn {
    min-width: 150px;
    justify-content: center;
  }

  #quiz-modal .quiz-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-top: 1rem;
  }

  #quiz-modal .quiz-results .quiz-back {
    align-self: flex-start;
    border: none;
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
  }

  #quiz-modal .quiz-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    z-index: 2;
  }

  #quiz-modal .quiz-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  #quiz-modal .quiz-overlay-card {
    max-width: 340px;
    text-align: center;
    border-radius: var(--radius);
    padding: clamp(20px, 4vw, 28px);
    display: grid;
    gap: .75rem;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    box-shadow: var(--shadow);
  }

  #quiz-modal .typing-indicator {
    display: inline-flex;
    gap: .25rem;
    align-items: flex-end;
    justify-content: center;
  }

  #quiz-modal .typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .45;
    animation: typingBounce 1.2s infinite;
  }

  #quiz-modal .typing-indicator span:nth-child(2) {
    animation-delay: .12s;
  }

  #quiz-modal .typing-indicator span:nth-child(3) {
    animation-delay: .24s;
  }

  @keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: .35; }
    40% { transform: translateY(-4px); opacity: 1; }
  }

  body.quiz-open {
    overflow: hidden;
  }
