:root {
  --bg: #f3eee7;
  --bg-deep: #16130f;
  --surface: rgba(255, 250, 244, 0.78);
  --surface-strong: #fbf6ef;
  --text: #191511;
  --muted: #6e6359;
  --line: rgba(49, 37, 26, 0.12);
  --accent: #b78a57;
  --accent-soft: #e6c8a1;
  --accent-deep: #5e3c1f;
  --shadow: 0 24px 80px rgba(33, 20, 8, 0.14);
  --max-width: 1280px;
  --radius: 28px;
  --radius-small: 18px;
  --anchor-offset: 118px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(207, 176, 133, 0.28), transparent 28%),
    radial-gradient(circle at top right, rgba(95, 63, 30, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f3ec 0%, #f0eae1 34%, #f7f0e7 100%);
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 28px), 1220px);
  padding: 16px 22px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(20, 15, 11, 0.5);
  backdrop-filter: blur(18px);
  color: #fff7f0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 233, 202, 0.92), rgba(184, 137, 85, 0.82));
  color: #22170e;
}

.brand-copy,
.site-nav a,
.header-cta {
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.site-nav a,
.header-cta {
  position: relative;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav a::after,
.header-cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.header-cta:hover::after {
  transform: scaleX(1);
}

.header-cta {
  font-size: 0.95rem;
  font-weight: 700;
}

.header-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 248, 239, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  flex-shrink: 0;
}

.header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 24px 36px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(180deg, rgba(24, 18, 13, 0.16), rgba(24, 18, 13, 0.04)),
    radial-gradient(circle at top left, rgba(207, 176, 133, 0.24), transparent 26%),
    #b09a88;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.1);
  opacity: 0;
  animation: heroZoomOut 9s ease-out forwards;
  animation-play-state: paused;
  transition: opacity 700ms ease;
  cursor: pointer;
}

.hero-ready .hero-media img {
  opacity: 1;
  animation-play-state: running;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 9, 7, 0.22) 0%, rgba(12, 9, 7, 0.05) 24%, rgba(12, 9, 7, 0.03) 72%, rgba(12, 9, 7, 0.12) 100%);
}

.hero-content,
.hero-stats {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero-content {
  max-width: none;
  color: #fff7ef;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.intro-card h2,
.cinematic-band h2,
.solar-card h2,
.agent-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.hero h1 {
  max-width: 840px;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.02;
}

.agent-actions,
.solar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
  cursor: pointer;
}

.button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #e7cda9, #b7844e);
  color: #20140b;
}

.button-secondary,
.ghost-button {
  border: 1px solid rgba(255, 248, 239, 0.28);
  background: rgba(255, 248, 239, 0.08);
  color: #fff7ef;
}

.hero-stats {
  display: none;
}

.hero-dock {
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 170px);
  padding-bottom: 30px;
}

.hero-dock-main {
  max-width: 560px;
  padding: 24px 28px 22px;
  border: 1px solid rgba(255, 248, 239, 0.18);
  border-radius: 28px;
  background: rgba(30, 20, 13, 0.28);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.hero-dock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: rgba(255, 247, 239, 0.86);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-dock-meta span:last-child {
  color: #efc58a;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  color: #fbeedb;
}

.ticker-track {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 16px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: ticker 24s linear infinite;
}

.ticker-track span::after {
  content: "•";
  margin-left: 34px;
  color: rgba(255, 218, 175, 0.6);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 108px 0;
}

[id] {
  scroll-margin-top: var(--anchor-offset);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.95fr;
  gap: 22px;
}

.intro-card,
.lifestyle-card,
.market-card,
.value-card,
.solar-card,
.agent-copy,
.floorplan-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.intro-card {
  padding: 34px;
}

.intro-card h2 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
}

.intro-card h3 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.72rem;
  line-height: 1.08;
}

.intro-card p,
.story-copy p,
.feature-copy h3,
.lifestyle-card p,
.market-card p,
.solar-card p,
.agent-copy p,
.floorplan-copy p,
.section-note,
.market-source,
.disclosure-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.intro-card > p:last-child,
.story-copy p + p,
.solar-card p + p,
.agent-copy p + p {
  margin-top: 16px;
}

.intro-card-accent {
  background:
    linear-gradient(180deg, rgba(183, 138, 87, 0.14), rgba(255, 248, 241, 0.72)),
    var(--surface);
}

.bullet-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.8;
}

.bullet-list li + li {
  margin-top: 10px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent));
}

.cinematic-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.band-copy,
.feature-tile,
.gallery-card,
.agent-photo {
  border-radius: var(--radius);
  overflow: hidden;
}

.band-copy {
  padding: 44px;
  background: var(--bg-deep);
  color: #f7efe5;
}

.band-copy h2 {
  font-size: clamp(2.45rem, 4.3vw, 3.8rem);
}

.band-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.band-stack img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  cursor: pointer;
}

.band-stack img:first-child {
  grid-column: 1 / -1;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 40px;
}

.section-heading h2 {
  font-size: clamp(2.5rem, 4.2vw, 4.1rem);
}

.story-layout {
  display: block;
}

.story-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.story-copy {
  padding-right: 18px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.feature-tile {
  position: relative;
  min-height: 0;
  box-shadow: var(--shadow);
  background: rgba(255, 250, 244, 0.72);
  border-radius: 0;
}

.feature-tile img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
}

.feature-large {
  grid-column: span 2;
}

.feature-copy {
  position: static;
  padding: 26px;
  background: linear-gradient(180deg, rgba(18, 12, 9, 0.98), rgba(13, 8, 6, 0.98));
  color: #fff7ef;
}

.feature-copy .eyebrow {
  color: var(--accent-soft);
}

.feature-copy h3 {
  color: #fff7ef;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.74rem;
  line-height: 1.04;
}

.section-dark {
  width: 100%;
  max-width: none;
  padding: 108px 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(233, 195, 147, 0.12), transparent 20%),
    linear-gradient(180deg, #18120d 0%, #120f0c 100%);
}

.value-ribbon .section-heading,
.value-grid {
  width: min(calc(100% - 8px), var(--max-width));
  margin-left: auto;
  margin-right: auto;
}

.value-ribbon .section-heading h2,
.value-ribbon .section-heading .section-note,
.value-card h3,
.value-card p {
  color: #f8eee1;
}

.value-intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: end;
}

.value-intro .section-note {
  margin: 0;
  color: rgba(248, 238, 225, 0.74);
  line-height: 1.8;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.value-card {
  overflow: hidden;
  border-color: rgba(255, 246, 235, 0.12);
  background: rgba(255, 247, 238, 0.06);
  box-shadow: none;
  border-radius: 0;
}

.value-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  cursor: pointer;
}

.value-copy {
  padding: 26px 26px 24px;
}

.value-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 218, 175, 0.14);
  color: var(--accent-soft);
  font-size: 0.95rem;
  font-weight: 800;
}

.value-card h3 {
  margin: 14px 0 10px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.value-kicker {
  margin: 16px 0 0;
  color: rgba(232, 196, 149, 0.94);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.value-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.value-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 240, 220, 0.12);
  border-radius: 999px;
  background: rgba(255, 247, 238, 0.05);
  color: rgba(248, 238, 225, 0.88);
  font-size: 0.85rem;
  font-weight: 700;
}

.gallery-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-pill:hover,
.filter-pill.is-active {
  transform: translateY(-2px);
  border-color: rgba(183, 138, 87, 0.45);
  background: linear-gradient(135deg, rgba(231, 207, 177, 0.8), rgba(183, 138, 87, 0.9));
  color: #21160d;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.7);
  color: var(--text);
}

.gallery-grid {
  column-count: 3;
  column-gap: 22px;
}

.gallery-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 26px;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  break-inside: avoid;
  text-align: left;
  border-radius: 0;
  overflow: visible;
}

.band-stack img,
.feature-tile img,
.floorplan-panel img {
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
  transition: transform 260ms ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-meta {
  position: static;
  display: block;
  padding: 14px 0 0;
  background: none;
  color: var(--text);
}

.gallery-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-meta strong {
  display: block;
  margin-top: 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.04;
  color: var(--text);
}

.floorplan-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: center;
}

.floorplan-copy {
  padding: 34px;
}

.floorplan-copy h2 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
}

.floorplan-panel img {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0;
}

.lifestyle-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.market-grid {
  grid-template-columns: 1.18fr 0.34fr 1fr 1fr 1fr;
}

.lifestyle-card,
.market-card {
  padding: 28px;
}

.market-card {
  border-radius: 0;
}

.market-photo {
  width: calc(100% + 56px);
  max-width: none;
  height: auto;
  display: block;
  margin: -28px -28px 18px;
  object-fit: unset;
  border-radius: 0;
}

.market-subject {
  border-color: rgba(183, 138, 87, 0.42);
  background:
    linear-gradient(180deg, rgba(183, 138, 87, 0.14), rgba(255, 250, 244, 0.9)),
    var(--surface);
}

.market-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  border-style: dashed;
  border-color: rgba(183, 138, 87, 0.28);
  background: rgba(255, 250, 244, 0.3);
}

.market-vs span {
  color: var(--accent-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lifestyle-card h3,
.market-card h3 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
}

.lifestyle-card a,
.market-source a,
.solar-links a {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent-deep);
  font-weight: 700;
}

.lifestyle-card a + a {
  margin-left: 16px;
}

.proximity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.proximity-item {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proximity-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.solar-card {
  padding: 36px;
}

.market-price {
  display: inline-block;
  color: var(--accent-deep);
  font-size: 1.5rem;
  font-weight: 800;
}

.market-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.market-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.market-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d89a42;
  box-shadow: 0 0 0 4px rgba(216, 154, 66, 0.16);
}

.market-status-live {
  color: var(--accent-deep);
}

.market-status-live::before {
  background: #31b36b;
  box-shadow: 0 0 0 4px rgba(49, 179, 107, 0.18);
}

.market-pps {
  display: block;
  margin-top: 10px;
  color: var(--accent-deep);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.market-source {
  margin-top: 18px;
}

.market-compare {
  margin-top: 18px;
}

.market-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 244, 0.7);
  box-shadow: var(--shadow);
}

.market-row {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
}

.market-row:first-child {
  border-top: 0;
}

.market-row span {
  color: var(--muted);
  line-height: 1.5;
}

.market-row span:first-child {
  color: var(--text);
  font-weight: 800;
}

.market-row-head {
  background: rgba(183, 138, 87, 0.09);
}

.market-row-head span {
  color: var(--text);
  font-weight: 800;
}

.market-carousel-layout {
  display: grid;
  grid-template-columns: minmax(270px, 1fr) 86px minmax(0, 3fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 44px;
}

.market-subject-fixed {
  position: sticky;
  top: 110px;
  z-index: 2;
}

.market-vs-rail {
  align-self: stretch;
  min-height: 100%;
}

.market-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.market-stat-stack {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.market-subject-stat,
.market-table-cell {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.market-table-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
  padding: 9px 0;
}

.market-subject-stat:first-child,
.market-table-cell:first-of-type {
  border-top: 0;
}

.market-subject-stat {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
}

.market-subject-stat span,
.market-table-cell span,
.market-compare-card div span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.market-subject-stat strong {
  display: block;
  margin-top: 0;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.12;
}

.market-table-cell strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.08;
}

.market-delta {
  display: block;
  margin-top: 3px;
  color: #7f7063;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.market-subject-stat .market-delta {
  grid-column: 2;
}

.market-delta-good {
  color: #347152;
  font-size: 0.7rem;
}

.market-delta-warm {
  color: #986a2b;
  font-size: 0.7rem;
}

.market-delta-soft {
  color: #8f6244;
  font-size: 0.66rem;
}

.market-carousel {
  position: relative;
  min-width: 0;
  padding: 0 58px;
}

.market-carousel[data-market-carousel="sales"] .market-carousel-head {
  display: block;
  height: 0;
  margin-top: 0;
  margin-bottom: 0;
  margin-right: -58px;
  margin-left: -58px;
}

.market-carousel[data-market-carousel="sales"] .market-carousel-head > span {
  position: absolute;
  top: -42px;
  left: 58px;
}

.market-carousel[data-market-carousel="sales"] .market-arrows {
  position: absolute;
  top: calc(50% + 14px);
  left: 0;
  right: 0;
  z-index: 4;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.market-carousel[data-market-carousel="sales"] .market-arrow {
  pointer-events: auto;
  box-shadow: 0 14px 38px rgba(33, 20, 8, 0.16);
}

.market-carousel-head,
.market-compare-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.market-carousel-head span {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.market-arrows {
  display: flex;
  gap: 10px;
}

.market-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.86);
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.market-arrow:hover {
  transform: translateY(-2px);
  background: #fffaf4;
}

.market-scroll,
.market-table-scroll {
  display: flex;
  gap: 20px;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 4px 12px;
}

.market-scroll::-webkit-scrollbar,
.market-table-scroll::-webkit-scrollbar {
  display: none;
}

.market-sale-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 270px;
  scroll-snap-align: start;
}

.market-sale-card > .market-photo,
.market-subject-card > .market-photo,
.market-streetview,
.market-photo-wrap {
  width: calc(100% + 56px);
  max-width: none;
  height: 220px;
  display: block;
  margin: -28px -28px 18px;
  object-fit: cover;
  border-radius: 0;
}

.market-streetview {
  position: relative;
  overflow: hidden;
  background: #d9d0c5;
}

.market-streetview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.market-photo-wrap {
  position: relative;
  overflow: hidden;
  background: #d9d0c5;
}

.market-photo-wrap .market-photo {
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  object-fit: cover;
}

.market-photo-placeholder span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 8px 10px;
  background: rgba(22, 19, 15, 0.72);
  color: #fff7ef;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.market-fact-lines {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
}

.market-fact-lines span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.market-list-price {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.market-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.market-proof-card {
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  background: rgba(255, 250, 244, 0.78);
  box-shadow: 0 22px 58px rgba(31, 23, 17, 0.08);
}

.market-proof-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-transform: uppercase;
}

.market-proof-card strong {
  display: block;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.65rem, 2.1vw, 2.35rem);
  font-weight: 700;
  line-height: 0.98;
}

.market-proof-card em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
}

.market-proof-sold {
  border-left-color: #bd8440;
  background: linear-gradient(180deg, rgba(242, 223, 189, 0.52), rgba(255, 250, 244, 0.86));
}

.market-proof-sold strong {
  color: #bd8440;
}

.market-proof-subject {
  border-left-color: #78846d;
  background: linear-gradient(180deg, rgba(237, 242, 231, 0.72), rgba(255, 250, 244, 0.9));
}

.market-proof-subject strong {
  color: #78846d;
}

.market-compare {
  margin-top: 30px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.64);
  box-shadow: var(--shadow);
}

.market-compare-head h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.market-table-carousel {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.9fr);
  gap: 18px;
  align-items: stretch;
}

.market-table-fixed,
.market-compare-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.86);
}

.market-table-fixed {
  display: grid;
  grid-template-rows: 46px repeat(8, minmax(62px, auto));
  padding: 22px;
  border-color: rgba(183, 138, 87, 0.38);
  background:
    linear-gradient(180deg, rgba(183, 138, 87, 0.12), rgba(255, 250, 244, 0.92)),
    var(--surface);
}

.market-table-fixed h4,
.market-compare-card h4 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", serif;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
}

.market-table-cell + .market-table-cell {
  margin-top: 0;
}

.market-table-scroll {
  gap: 16px;
  padding-bottom: 2px;
}

.market-compare-card {
  display: grid;
  grid-template-rows: 46px repeat(8, minmax(62px, auto));
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 232px;
  padding: 20px;
  scroll-snap-align: start;
}

.market-average-card {
  border-color: rgba(189, 132, 64, 0.55);
  background: linear-gradient(180deg, rgba(242, 223, 189, 0.56), rgba(255, 250, 244, 0.9));
}

.market-compare-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 62px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.market-compare-card div strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.market-average-card div strong small {
  display: inline-block;
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.62em;
  font-weight: 800;
  letter-spacing: 0;
  vertical-align: baseline;
}

.agent-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 24px;
  align-items: stretch;
}

.agent-photo {
  min-height: 0;
  box-shadow: var(--shadow);
  border-radius: 0;
  overflow: hidden;
}

.agent-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: unset;
}

.agent-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.agent-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.agent-copy h2 {
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  margin-bottom: 0;
}

.agent-credentials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-brand-strip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agent-brand-strip img {
  display: block;
  width: auto;
  object-fit: contain;
}

.agent-logo-fathom {
  max-width: 148px;
  max-height: 34px;
}

.agent-logo-dml {
  max-width: 58px;
  max-height: 50px;
}

.disclosure-section {
  padding-top: 0;
  padding-bottom: 100px;
}

.disclosure-section p {
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 6px 10px 10px;
  background: rgba(10, 7, 5, 0.94);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 0;
  width: min(99vw, 2200px);
  max-width: 99vw;
}

.lightbox-figure img {
  width: auto;
  max-width: 99vw;
  max-height: calc(100vh - 42px);
  border-radius: 0;
}

.lightbox-figure figcaption {
  color: #f7efe5;
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  color: #fff7ef;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.8rem;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 10, 7, 0.68);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.44fr) minmax(320px, 0.86fr);
  width: min(100%, 860px);
  overflow: hidden;
  border: 1px solid rgba(84, 62, 41, 0.18);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: 0 30px 95px rgba(8, 5, 3, 0.34);
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(25, 21, 17, 0.72);
  color: #fff7ef;
  font-size: 1.55rem;
  cursor: pointer;
}

.contact-modal-photo {
  min-height: 390px;
  background: #18120d;
}

.contact-modal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-modal-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}

.contact-modal-copy h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 3.6rem);
  line-height: 0.98;
}

.contact-modal-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.contact-modal-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

.contact-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.contact-modal-actions .button {
  min-height: 56px;
  padding: 10px 18px;
  border-radius: 999px;
  text-align: center;
  white-space: normal;
}

.contact-modal-actions .button-secondary {
  border-color: rgba(65, 48, 32, 0.24);
  background: #211811;
  color: #fff7ef;
}

.has-motion .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.has-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
  }

  .hero-stats,
  .intro-grid,
  .cinematic-band,
  .highlights-grid,
  .value-grid,
  .story-columns,
  .lifestyle-grid,
  .agent-section,
  .floorplan-panel,
  .proximity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-intro {
    grid-template-columns: 1fr;
  }

  .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-carousel-layout,
  .market-table-carousel {
    grid-template-columns: 1fr;
  }

  .market-proof-grid {
    grid-template-columns: 1fr;
  }

  .market-subject-fixed {
    position: relative;
    top: auto;
  }

  .market-vs-rail {
    min-height: 92px;
  }

  .market-sale-card {
    flex-basis: calc((100% - 20px) / 2);
  }

  .market-compare-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .gallery-grid {
    column-count: 2;
  }

  .feature-large {
    grid-column: span 2;
  }

  .market-vs {
    min-height: 220px;
  }

  .market-table {
    overflow-x: auto;
  }

  .market-row {
    min-width: 880px;
  }
}

@media (max-width: 760px) {
  :root {
    --anchor-offset: 104px;
  }

  .site-header {
    top: 12px;
    width: calc(100% - 18px);
    padding: 14px 16px;
  }

  .site-nav {
    display: none;
  }

  .hero {
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 13vw, 4.7rem);
  }

  .hero-stats,
  .intro-grid,
  .cinematic-band,
  .highlights-grid,
  .value-grid,
  .story-columns,
  .lifestyle-grid,
  .agent-section,
  .floorplan-panel,
  .proximity-strip {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    column-count: 1;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }

  .market-sale-card {
    flex-basis: 88%;
  }

  .market-carousel {
    padding: 0 48px;
  }

  .market-carousel[data-market-carousel="sales"] .market-carousel-head {
    margin-right: -48px;
    margin-left: -48px;
  }

  .market-vs-rail {
    min-height: 72px;
  }

  .market-compare {
    padding: 20px;
  }

  .market-proof-card {
    min-height: 0;
    padding: 20px;
  }

  .market-compare-head,
  .market-carousel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-compare-card {
    flex-basis: 86%;
  }

  .section {
    width: min(calc(100% - 20px), var(--max-width));
    padding: 76px 0;
  }

  .hero-stats {
    margin-top: 72px;
  }

  .band-stack {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .band-stack img:first-child {
    grid-row: auto;
  }

  .value-card img {
    height: 220px;
  }

  .feature-large {
    grid-column: auto;
  }

  .agent-photo {
    min-height: 420px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 64px 6px 10px;
  }

  .lightbox-nav {
    display: none;
  }

  .contact-modal {
    padding: 16px;
  }

  .contact-modal-card {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 16px;
  }

  .contact-modal-photo {
    min-height: 0;
    height: 260px;
  }

  .contact-modal-copy {
    padding: 26px 22px 24px;
  }

  .contact-modal-copy h2 {
    font-size: 2.35rem;
  }

  .contact-modal-actions {
    grid-template-columns: 1fr;
  }

  .button,
  .ghost-button,
  .filter-pill {
    width: 100%;
  }

  .gallery-toolbar {
    align-items: stretch;
  }
}

@keyframes heroZoomOut {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}
