@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,500;0,6..96,600;1,6..96,400&family=Manrope:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --ink: #0E0F0D;
  --charcoal: #17180F;
  --charcoal-2: #1E2016;
  --concrete: #4A473E;
  --brass: #B98B4E;
  --brass-light: #D9B87A;
  --moss: #5C6B52;
  --moss-light: #8A9A7C;
  --linen: #EDE8DE;
  --linen-warm: #E3DACB;
  --white: #FBF9F4;
  --hairline: rgba(217,184,122,0.18);

  --display: 'Bodoni Moda', serif;
  --body: 'Manrope', sans-serif;
  --mono: 'Space Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
img, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; }

@media (hover: none), (pointer: coarse) {
  body, button, a { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--brass-light);
}
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(217,184,122,0.5);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}
.cursor-ring.active {
  width: 54px; height: 54px;
  border-color: var(--brass-light);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }

/* ---------- header ---------- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 26px 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  background: rgba(14,15,13,0.88);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  border-bottom-color: var(--hairline);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: flex; align-items: center; gap: 13px;
  color: var(--white);
}
.brand-mark {
  width: 38px; height: 38px;
  border: 1px solid var(--brass-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 13px;
  color: var(--brass-light);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--display);
  font-size: 19px;
  letter-spacing: 0.3px;
  line-height: 1;
}
.brand-name span {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--moss-light);
  margin-top: 5px;
}

nav.main-nav { display: flex; align-items: center; gap: 36px; }
nav.main-nav a {
  font-size: 12.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--linen);
  opacity: 0.72;
  transition: opacity 0.2s;
}
nav.main-nav a:hover { opacity: 1; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  border-radius: 1px;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.btn-primary { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn-primary:hover { background: var(--brass-light); transform: translateY(-2px); }
.btn-outline { border-color: rgba(237,232,222,0.35); color: var(--linen); }
.btn-outline:hover { border-color: var(--brass-light); color: var(--brass-light); }
.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: #000; }

/* ---------- scroll-driven house tour ---------- */
.tour {
  position: relative;
  height: 550vh;
  background: var(--charcoal);
}

.tour-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
}

#house-canvas-wrap {
  position: absolute; inset: 0;
  z-index: 1;
}
#house-canvas-wrap canvas { width: 100% !important; height: 100% !important; display: block; }

.hero-sky {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 30%, #3A3626 0%, #17180F 55%, #0E0F0D 100%);
  z-index: 0;
}

.photo-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(14,15,13,0.6) 0%, rgba(14,15,13,0.25) 42%, rgba(14,15,13,0.02) 68%);
  z-index: 2;
  pointer-events: none;
}

.tour-caption {
  position: absolute; inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}
.tour-caption.active { opacity: 1; pointer-events: auto; }
.tour-caption-inner { max-width: 620px; }

.tour-caption .eyebrow,
.hero .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--moss-light);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 26px;
}
.tour-caption .eyebrow::before { content: ''; width: 30px; height: 1px; background: var(--brass-light); }

.tour-caption h1, .tour-caption h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.05;
  letter-spacing: 0.2px;
  color: var(--white);
  margin-bottom: 24px;
}
.tour-caption h1 em, .tour-caption h2 em { font-style: italic; color: var(--brass-light); }

.tour-caption p.lead {
  font-size: 17px;
  color: #C9C4B4;
  max-width: 440px;
  margin-bottom: 34px;
  font-weight: 300;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.tour-tracker {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.tour-tracker .tdot {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5a5748;
  transition: color 0.35s ease;
}
.tour-tracker .tdot span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5a5748;
  transition: background 0.35s ease, box-shadow 0.35s ease;
  flex-shrink: 0;
}
.tour-tracker .tdot.active { color: var(--brass-light); }
.tour-tracker .tdot.active span { background: var(--brass-light); box-shadow: 0 0 10px var(--brass-light); }

.tour-scroll-cue {
  position: absolute;
  left: 32px;
  bottom: 40px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8A8672;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: opacity 0.4s ease;
}
.scroll-line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, var(--brass-light), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------- sections ---------- */
section { padding: 118px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brass);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 22px;
}
.section-head .eyebrow::before { content:''; width: 30px; height: 1px; background: var(--moss); }
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  margin-bottom: 18px;
}
.section-head p { font-size: 16.5px; color: #55523F; max-width: 520px; font-weight: 300; }
.on-dark .section-head p { color: #B7B2A0; }

/* ---------- communities ---------- */
.communities { background: var(--white); }
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--concrete);
  border: 1px solid var(--concrete);
}
.community-card {
  background: var(--charcoal);
  color: var(--linen);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.4s ease;
}
.community-card:hover { background: var(--charcoal-2); }
.community-card .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--moss-light);
  margin-bottom: 16px;
}
.community-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  margin-bottom: 12px;
}
.community-card p { font-size: 14px; color: #B7B2A0; font-weight: 300; max-width: 320px; margin-bottom: 20px; }
.community-card .link { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--brass-light); display: inline-flex; align-items: center; gap: 8px; }
.community-card .link::after { content: '→'; transition: transform 0.3s ease; }
.community-card:hover .link::after { transform: translateX(4px); }

/* ---------- listings / spec sheet ---------- */
.listings { background: var(--linen); }
.spec-table { border-top: 1px solid var(--ink); }
.spec-row {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid rgba(23,24,15,0.14);
  transition: background 0.3s ease;
}
.spec-row:hover { background: rgba(89,107,82,0.05); }
.spec-row .addr {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
}
.spec-row .addr span {
  display: block;
  font-family: var(--body);
  font-size: 12.5px;
  color: #6B6752;
  font-weight: 400;
  margin-top: 3px;
}
.spec-row .meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: #55523F;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.spec-row .price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 18px;
  color: var(--moss);
}
.spec-row .status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid var(--brass);
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  justify-self: start;
}
.spec-head-row {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.9fr auto;
  gap: 20px;
  padding-bottom: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8A8672;
}

/* ---------- show homes ---------- */
.showhomes { background: var(--ink); color: var(--linen); }
.showhome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.showhome-visual {
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, #21231A 0%, #14150F 100%);
  border: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 30px;
}
.showhome-visual .frame-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass-light);
}
.house-line-art { position: absolute; inset: 0; opacity: 0.9; }
.showhome-body p { font-size: 16px; color: #B7B2A0; font-weight: 300; margin-bottom: 22px; max-width: 460px; }
.showhome-card {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #B7B2A0;
}
.showhome-card strong { color: var(--white); font-family: var(--body); font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ---------- story ---------- */
.story { background: var(--white); }
.story-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 76px; align-items: center; }
.story-num {
  font-family: var(--display);
  font-size: 130px;
  line-height: 1;
  color: var(--linen-warm);
  font-weight: 500;
}
.story-body p { font-size: 16px; color: #423E37; margin-bottom: 20px; max-width: 500px; font-weight: 300; }
.story-stats { display: flex; gap: 46px; margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(23,24,15,0.12); }
.story-stats .stat strong { display: block; font-family: var(--display); font-size: 30px; color: var(--moss); margin-bottom: 4px; }
.story-stats .stat span { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: #7A7568; }

/* ---------- contact / footer ---------- */
.contact { background: var(--charcoal); color: var(--linen); text-align: center; }
.contact h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px,4.4vw,54px); margin-bottom: 20px; }
.contact p { font-family: var(--body); font-weight: 300; font-size: 17px; max-width: 520px; margin: 0 auto 36px; color: #C9C4B4; }
.contact-details { display: flex; justify-content: center; gap: 50px; margin-top: 44px; flex-wrap: wrap; }
.contact-details div strong { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brass-light); margin-bottom: 8px; }
.contact-details div span { font-size: 15px; color: var(--linen); }

footer.site {
  background: var(--ink);
  color: #8A8672;
  padding: 44px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.5px;
}
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  nav.main-nav { display: none; }
  .tour-caption-inner { max-width: 100%; }
  .tour-tracker { display: none; }
  .community-grid { grid-template-columns: 1fr; }
  .spec-row, .spec-head-row { grid-template-columns: 1fr; gap: 6px; }
  .spec-row .status { justify-self: start; margin-top: 8px; }
  .showhome-grid, .story-grid { grid-template-columns: 1fr; gap: 44px; }
  .story-num { font-size: 90px; }
  section { padding: 80px 0; }
  .hero-specs { gap: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-line { animation: none; }
  .reveal, .reveal-stagger > * { transition: none; opacity: 1; transform: none; }
}
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 3px; }
