/* ==========================================================================
   9205 S. Utica Avenue — Evergreen Park, IL
   Editorial listing-brochure design system
   Palette drawn from the home itself: brick, limestone, charcoal, brass
   ========================================================================== */

:root {
  --brick: #7c2d1e;
  --brick-deep: #5e2115;
  --brick-bright: #a03c26;
  --limestone: #f5efe3;
  --limestone-warm: #efe6d3;
  --cream: #faf6ec;
  --charcoal: #26221e;
  --charcoal-soft: #3a342e;
  --ink: #211c18;
  --brass: #b08a3e;
  --brass-soft: #c9a869;
  --sage: #6c7a5e;
  --paper: #fffdf7;
  --line: rgba(38, 34, 30, 0.14);

  --serif: "Fraunces", "Georgia", serif;
  --sans: "Archivo", "Helvetica Neue", sans-serif;

  --wrap: 1200px;
  --wrap-wide: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 9vw, 7.5rem);

  --shadow-lg: 0 30px 60px -18px rgba(33, 28, 24, 0.35);
  --shadow-md: 0 18px 40px -16px rgba(33, 28, 24, 0.28);
  --shadow-sm: 0 8px 22px -10px rgba(33, 28, 24, 0.25);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 560;
  line-height: 1.08;
  margin: 0 0 0.6em;
  color: var(--charcoal);
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

a { color: var(--brick); text-decoration: none; }
a:hover { color: var(--brick-bright); }

::selection { background: var(--brick); color: var(--cream); }

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

/* Subtle paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3000;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.045'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Section furniture ---------- */

.section { padding: var(--section-pad) 0; position: relative; }
.section-alt { background: var(--limestone); }
.section-dark { background: var(--charcoal); color: var(--limestone); }
.section-dark h2, .section-dark h3 { color: var(--limestone); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--brass);
}
.section-dark .eyebrow { color: var(--brass-soft); }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.section-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  max-width: 62ch;
  color: var(--charcoal-soft);
}
.section-dark .section-lede { color: rgba(245, 239, 227, 0.82); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brick);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brick-bright); color: var(--cream); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 246, 236, 0.55);
}
.btn-ghost:hover { border-color: var(--cream); color: var(--cream); background: rgba(250, 246, 236, 0.1); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(38, 34, 30, 0.35);
}
.btn-outline:hover { border-color: var(--brick); color: var(--brick); }

/* ---------- Header / nav ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.nav-inner {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
  transition: padding 0.35s;
}
.brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: var(--cream);
  line-height: 1.1;
  white-space: nowrap;
}
.brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-top: 0.18rem;
}
.brand:hover { color: var(--cream); }

.primary-nav { display: flex; align-items: center; gap: 1.9rem; }
.primary-nav a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.85);
  position: relative;
  padding: 0.35rem 0;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--brass-soft);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.primary-nav a:hover { color: var(--cream); }
.primary-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { flex-shrink: 0; }
.nav-cta .btn { padding: 0.7rem 1.4rem; font-size: 0.78rem; }

.site-header.scrolled {
  background: rgba(33, 28, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.4);
}
.site-header.scrolled .nav-inner { padding-block: 0.7rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
  z-index: 1200;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--cream);
  margin: 5px auto;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  background-size: cover;
  background-position: center 38%;
  will-change: transform;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(23, 19, 16, 0.66) 0%, rgba(23, 19, 16, 0.34) 42%, rgba(23, 19, 16, 0.02) 68%),
    linear-gradient(to bottom, rgba(23, 19, 16, 0.5) 0%, rgba(23, 19, 16, 0.08) 32%, rgba(23, 19, 16, 0.12) 55%, rgba(23, 19, 16, 0.82) 100%);
}
.hero-content {
  width: 100%;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 9rem var(--gutter) clamp(3rem, 7vh, 5.5rem);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 1.4rem;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #e4503a;
  box-shadow: 0 0 0 4px rgba(228, 80, 58, 0.25);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(228, 80, 58, 0.3); }
  50% { box-shadow: 0 0 0 7px rgba(228, 80, 58, 0.05); }
}
.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.6rem);
  font-weight: 480;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 0.35em;
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--brass-soft);
}
.hero-tag {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: 52ch;
  color: rgba(250, 246, 236, 0.88);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.8rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(250, 246, 236, 0.25);
  padding-top: 1.6rem;
}
.hero-stat {
  padding-right: 2.4rem;
  margin-right: 2.4rem;
  border-right: 1px solid rgba(250, 246, 236, 0.18);
}
.hero-stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stat .num {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 540;
  color: var(--cream);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 246, 236, 0.62);
  margin-top: 0.45rem;
}

.scroll-cue {
  position: absolute;
  right: clamp(1.2rem, 4vw, 3rem);
  bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  color: rgba(250, 246, 236, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(250,246,236,0.7), transparent);
  animation: cue 2.2s var(--ease-out) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Marquee address band ---------- */

.band {
  background: var(--brick);
  color: var(--limestone);
  overflow: hidden;
  padding: 0.85rem 0;
  border-top: 1px solid var(--brick-deep);
  border-bottom: 1px solid var(--brick-deep);
}
.band-track {
  display: flex;
  gap: 3.5rem;
  white-space: nowrap;
  width: max-content;
  animation: marquee 36s linear infinite;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-style: italic;
  letter-spacing: 0.04em;
}
.band-track span { display: inline-flex; align-items: center; gap: 3.5rem; }
.band-track .sep { color: var(--brass-soft); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Overview / editorial intro ---------- */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
.overview-copy .lead-para {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  font-weight: 420;
  line-height: 1.45;
  color: var(--charcoal);
}
.overview-copy .lead-para::first-letter {
  font-size: 3.2em;
  float: left;
  line-height: 0.82;
  padding: 0.08em 0.12em 0 0;
  color: var(--brick);
  font-weight: 560;
}

.facts-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: 96px;
}
.facts-card .facts-head {
  background: var(--charcoal);
  color: var(--limestone);
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.facts-card .facts-head .price {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 560;
}
.facts-card .facts-head .status {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.facts-list { list-style: none; margin: 0; padding: 0.6rem 1.6rem 1rem; }
.facts-list li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.72rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.facts-list li:last-child { border-bottom: none; }
.facts-list .k { color: var(--charcoal-soft); }
.facts-list .v { font-weight: 650; color: var(--charcoal); text-align: right; }
.facts-card .facts-foot { padding: 0 1.6rem 1.5rem; }
.facts-card .facts-foot .btn { width: 100%; justify-content: center; }

/* ---------- Feature highlights ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.8rem 1.6rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brick), var(--brass));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.feature:hover::before { transform: scaleX(1); }
.feature .f-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--limestone);
  color: var(--brick);
  margin-bottom: 1.1rem;
}
.feature .f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.feature p { font-size: 0.94rem; color: var(--charcoal-soft); margin: 0; }

/* ---------- Gallery ---------- */

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(38, 34, 30, 0.28);
  background: transparent;
  color: var(--charcoal-soft);
  cursor: pointer;
  transition: all 0.25s;
}
.filter-btn:hover { border-color: var(--brick); color: var(--brick); }
.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--limestone);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 220px;
  grid-auto-flow: dense;
  gap: 0.9rem;
}
.gallery-item {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--limestone-warm);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out), filter 0.4s;
}
.gallery-item:hover img { transform: scale(1.055); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--cream);
  background: linear-gradient(to top, rgba(23, 19, 16, 0.72), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
  pointer-events: none;
}
.gallery-item:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery-item.hidden { display: none; }

.gallery-more { text-align: center; margin-top: 2.4rem; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(23, 19, 16, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(92vw, 1500px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.7);
}
.lb-caption {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 246, 236, 0.85);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-align: center;
  max-width: 80vw;
}
.lb-btn {
  position: absolute;
  background: rgba(250, 246, 236, 0.08);
  border: 1px solid rgba(250, 246, 236, 0.25);
  color: var(--cream);
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.lb-btn:hover { background: rgba(250, 246, 236, 0.18); border-color: var(--cream); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-count {
  position: absolute;
  top: 1.9rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 246, 236, 0.6);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
}

/* ---------- Video ---------- */

.video-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-shell video { width: 100%; height: 100%; object-fit: cover; }
.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.45s, visibility 0.45s;
}
.video-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 16, 0.35);
  transition: background 0.3s;
}
.video-cover:hover::before { background: rgba(23, 19, 16, 0.22); }
.video-cover.hide { opacity: 0; visibility: hidden; }
.play-btn {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  color: var(--brick);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s var(--ease-out), background 0.25s;
}
.video-cover:hover .play-btn { transform: scale(1.08); background: #fff; }
.play-btn svg { width: 30px; height: 30px; margin-left: 4px; }
.play-btn::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 236, 0.5);
  animation: ring 2.6s var(--ease-out) infinite;
}
@keyframes ring {
  0% { transform: scale(0.85); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ---------- Floor plans ---------- */

.plan-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.plan-tabs { display: flex; flex-direction: column; gap: 0.6rem; }
.plan-tab {
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  font-family: var(--sans);
  transition: all 0.3s var(--ease-out);
}
.plan-tab .t-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 560;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.plan-tab .t-desc { font-size: 0.85rem; color: var(--charcoal-soft); }
.plan-tab:hover { border-color: var(--brick); transform: translateX(4px); }
.plan-tab.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  box-shadow: var(--shadow-sm);
}
.plan-tab.active .t-name { color: var(--limestone); }
.plan-tab.active .t-desc { color: rgba(245, 239, 227, 0.7); }

.plan-stage {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.2rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-md);
}
.plan-panel { display: none; }
.plan-panel.active { display: block; animation: fadeUp 0.5s var(--ease-out); }
.plan-panel img { margin: 0 auto; max-height: 72vh; width: auto; max-width: 100%; }
.plan-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  margin-top: 1.2rem;
  font-style: italic;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Neighborhood ---------- */

.nb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.nb-card {
  background: rgba(250, 246, 236, 0.04);
  border: 1px solid rgba(250, 246, 236, 0.14);
  border-radius: 14px;
  padding: 1.7rem 1.6rem;
  transition: background 0.35s, border-color 0.35s, transform 0.4s var(--ease-out);
}
.nb-card:hover {
  background: rgba(250, 246, 236, 0.08);
  border-color: rgba(201, 168, 105, 0.5);
  transform: translateY(-4px);
}
.nb-card .nb-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(201, 168, 105, 0.14);
  color: var(--brass-soft);
  margin-bottom: 1.1rem;
}
.nb-card .nb-icon svg { width: 22px; height: 22px; }
.nb-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.nb-card ul { list-style: none; margin: 0; padding: 0; }
.nb-card li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(250, 246, 236, 0.12);
  font-size: 0.92rem;
  color: rgba(245, 239, 227, 0.85);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.nb-card li:last-child { border-bottom: none; }
.nb-card li .d {
  color: var(--brass-soft);
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 600;
}

.nb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(250, 246, 236, 0.12);
  border: 1px solid rgba(250, 246, 236, 0.12);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 3rem;
}
.nb-stat { background: var(--charcoal); padding: 1.7rem 1.5rem; text-align: center; }
.nb-stat .num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 540;
  color: var(--brass-soft);
}
.nb-stat .lbl {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.6);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* ---------- Location / map ---------- */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.map-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  min-height: 440px;
  filter: saturate(0.9) contrast(1.02);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

.commute-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.commute-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
}
.commute-list .place { font-weight: 650; color: var(--charcoal); }
.commute-list .time { color: var(--brick); font-weight: 650; white-space: nowrap; font-size: 0.86rem; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  isolation: isolate;
  color: var(--cream);
  text-align: center;
  padding: clamp(5rem, 11vw, 8.5rem) 0;
  background-size: cover;
  background-position: center 60%;
  background-attachment: fixed;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(62, 22, 12, 0.82), rgba(33, 15, 9, 0.88));
}
.cta-band h2 {
  color: var(--cream);
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  max-width: 20ch;
  margin: 0 auto 0.5em;
}
.cta-band p {
  color: rgba(250, 246, 236, 0.85);
  max-width: 54ch;
  margin: 0 auto 2.2rem;
  font-size: 1.08rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- Listing links ---------- */

.agent-card {
  margin-top: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brick);
  border-radius: 14px;
  padding: 1.7rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.agent-info { display: flex; flex-direction: column; gap: 0.15rem; }
.agent-label {
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
.agent-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 580;
  color: var(--charcoal);
  line-height: 1.2;
}
.agent-brokerage { font-size: 0.92rem; color: var(--charcoal-soft); }
.agent-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.agent-mls {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
}
@media (max-width: 560px) {
  .agent-card { flex-direction: column; align-items: flex-start; }
  .agent-actions { align-items: flex-start; width: 100%; }
  .agent-actions .btn { width: 100%; justify-content: center; }
}

.listing-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 2.6rem;
}
.listing-link {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.3s;
}
.listing-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brass); }
.listing-link .ll-site {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 580;
  color: var(--charcoal);
}
.listing-link .ll-note { font-size: 0.85rem; color: var(--charcoal-soft); }
.listing-link .ll-go {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brick);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.listing-link:hover .ll-go { color: var(--brick-bright); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: rgba(245, 239, 227, 0.75);
  padding: 3.5rem 0 2.2rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(245, 239, 227, 0.12);
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--limestone);
}
.footer-brand .brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-top: 0.3rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; }
.footer-nav a {
  color: rgba(245, 239, 227, 0.75);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.footer-nav a:hover { color: var(--brass-soft); }
.footer-small {
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(245, 239, 227, 0.45);
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .plan-layout { grid-template-columns: 1fr; }
  .plan-tabs { flex-direction: row; flex-wrap: wrap; }
  .plan-tab { flex: 1 1 200px; }
  .map-layout { grid-template-columns: 1fr; }
  .cta-band { background-attachment: scroll; }
}

@media (max-width: 900px) {
  .overview-grid { grid-template-columns: 1fr; }
  .facts-card { position: static; }
  .primary-nav, .nav-cta {
    display: none;
  }
  .nav-toggle { display: block; }

  .nav-open .primary-nav {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 1100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    background: rgba(28, 23, 19, 0.98);
    backdrop-filter: blur(8px);
  }
  .nav-open .primary-nav a { font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; }
  .gallery-item.wide { grid-column: span 2; }
  .hero-stat { padding-right: 1.4rem; margin-right: 1.4rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .lb-prev { left: 0.6rem; }
  .lb-next { right: 0.6rem; }
  .lb-btn { width: 44px; height: 44px; }
}
