/* ============================================================
   REABUNDANCE — boutique real estate, cinematic one-pager
   off-black · bone · champagne (max 3 moments)
   ============================================================ */

:root {
  --ink: #0B0B0C;
  --ink-2: #121214;
  --bone: #F2EDE3;
  --bone-dim: rgba(242, 237, 227, 0.62);
  --bone-faint: rgba(242, 237, 227, 0.14);
  --champagne: #C9A96A;
  --display: "Playfair Display", serif;
  --sans: "Source Sans 3", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--display); font-style: italic; font-weight: 500; }

@media (pointer: fine) { body, a { cursor: none; } }

/* ---------- cursor: champagne dot + trailing ring ---------- */
.cur-dot, .cur-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  border-radius: 50%; pointer-events: none; display: none;
  transform: translate(-50%, -50%);
}
@media (pointer: fine) { .cur-dot, .cur-ring { display: block; } }
.cur-dot { width: 6px; height: 6px; background: var(--champagne); }
.cur-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(201, 169, 106, 0.6);
  transition: width .3s ease, height .3s ease, background-color .3s ease;
}
.cur-ring.grow { width: 62px; height: 62px; background: rgba(201, 169, 106, 0.08); }

/* ---------- film grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 9000; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.9s steps(4) infinite;
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.6%, -1.2%); }
  75% { transform: translate(-1.2%, -1.8%); }
  100% { transform: translate(0, 0); }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 26px clamp(20px, 4vw, 60px);
  mix-blend-mode: difference;
}
.logo {
  font: 500 15px/1 var(--display);
  letter-spacing: 0.42em;
  color: var(--champagne); /* champagne moment 1 */
}
.nav-line { font: italic 400 13px/1 var(--display); color: var(--bone-dim); }
@media (max-width: 640px) { .nav-line { display: none; } }

/* ---------- shared ---------- */
.kicker {
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 22px;
}
.sec-head { padding: 0 clamp(20px, 6vw, 90px); }
.sec-head h2 {
  font: 500 clamp(2.4rem, 5.4vw, 4.4rem)/1.08 var(--display);
  letter-spacing: 0.01em;
}
.sec-head h2 em { font-weight: 400; color: var(--bone-dim); }
.gold { color: var(--champagne); font-style: normal; } /* champagne moment 2 (featured price) */

/* ============================================================
   1 · HERO
   ============================================================ */
.hero {
  position: relative; height: 100svh; min-height: 620px;
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
}
/* figure overshoots the hero 10% top & bottom so the parallax never exposes a gap */
.hero-media { position: absolute; top: -10%; bottom: -10%; left: 0; right: 0; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.08) translateX(-1.4%); }
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.45) 0%, rgba(11,11,12,.05) 38%, rgba(11,11,12,.2) 66%, rgba(11,11,12,.88) 100%);
}
.hero-content {
  position: relative; z-index: 2; text-align: center;
  padding-bottom: clamp(48px, 10vh, 110px);
  width: 100%;
}
.hero-word {
  font: 500 clamp(2.6rem, 10.2vw, 10rem)/1 var(--display);
  letter-spacing: 0.08em;
  display: flex; justify-content: center;
  user-select: none;
  white-space: nowrap;
}
.hero-word span { display: inline-block; will-change: transform, opacity; }
.hero-tag {
  margin-top: clamp(14px, 2.6vh, 30px);
  font: italic 400 clamp(1rem, 1.9vw, 1.45rem)/1.4 var(--display);
  color: var(--bone-dim);
  min-height: 1.5em;
}
.caret {
  display: inline-block; width: 1px; height: 1em;
  background: var(--bone-dim); margin-left: 3px;
  vertical-align: -0.15em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-cue {
  position: absolute; bottom: 34px; right: clamp(20px, 4vw, 60px); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 400 10px/1 var(--sans); letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--bone-dim); writing-mode: vertical-rl;
}
.hero-cue i {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, var(--bone-dim), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: top; }
  56% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   2 · CREED — quiet editorial statement
   ============================================================ */
.creed {
  position: relative;
  background: var(--ink);
  padding: clamp(120px, 18vh, 210px) clamp(20px, 6vw, 90px);
  text-align: center;
}
.creed .kicker { margin-bottom: clamp(28px, 4vh, 44px); }
.creed-line {
  max-width: 34ch;
  margin: 0 auto;
  font: 400 clamp(1.5rem, 3.4vw, 2.9rem)/1.4 var(--display);
  color: var(--bone);
}
.creed-line + .creed-line { margin-top: 18px; }
.creed-key { margin-top: clamp(26px, 4vh, 40px) !important; }
.creed-key em { font-weight: 500; font-size: 1.15em; }
.creed-rule {
  display: block;
  width: 1px; height: clamp(50px, 8vh, 90px);
  margin: clamp(34px, 5vh, 54px) auto 0;
  background: linear-gradient(180deg, var(--bone-faint), transparent);
}

/* ============================================================
   3 · FEATURED RESIDENCE — walkthrough scrub
   ============================================================ */
.walk { position: relative; background: var(--ink-2); }
.walk-stage { position: relative; height: 100vh; overflow: hidden; }
.walk-shot { position: absolute; inset: 0; visibility: hidden; will-change: transform, opacity; }
.walk-shot img { width: 100%; height: 100%; object-fit: cover; }
.walk-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,.55) 0%, rgba(11,11,12,0) 30%, rgba(11,11,12,0) 55%, rgba(11,11,12,.78) 100%);
  pointer-events: none;
}
.walk-head {
  position: absolute; top: clamp(84px, 12vh, 130px); left: clamp(20px, 6vw, 90px);
  z-index: 3;
}
.walk-title { font: 500 clamp(2rem, 4.6vw, 4rem)/1.05 var(--display); }
.walk-rail {
  position: absolute; right: clamp(20px, 4vw, 60px); top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex; gap: 18px; align-items: stretch;
}
.walk-bar { width: 1px; background: var(--bone-faint); position: relative; }
.walk-bar i {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bone);
  transform: scaleY(0); transform-origin: top;
}
.walk-rail ol { list-style: none; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.walk-rail li {
  font: 400 11px/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--bone-dim);
  opacity: 0.45;
  transition: opacity .4s, color .4s;
}
.walk-rail li.active { opacity: 1; color: var(--bone); }
.walk-facts {
  position: absolute; bottom: clamp(26px, 6vh, 56px); left: clamp(20px, 6vw, 90px);
  z-index: 3;
  font: 400 clamp(.9rem, 1.4vw, 1.1rem)/1 var(--sans);
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}
.walk-facts .gold { font-family: var(--display); font-size: 1.15em; }
@media (max-width: 760px) {
  .walk-rail { right: 16px; }
  .walk-rail li { font-size: 9px; letter-spacing: 0.2em; }
}

/* ============================================================
   4 · LISTINGS — staggered masonry + Ken Burns hover
   ============================================================ */
.listings { padding: clamp(90px, 14vh, 170px) 0 clamp(70px, 10vh, 130px); background: var(--ink); }
.listing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
  padding: clamp(44px, 7vh, 80px) clamp(20px, 6vw, 90px) 0;
}
.listing { display: block; will-change: transform, opacity; }
.listing figure { overflow: hidden; position: relative; background: var(--ink-2); }
.listing img {
  transition: transform 1.4s cubic-bezier(.22, 1, .36, 1), filter .8s ease;
  filter: brightness(.92);
  will-change: transform;
}
.listing:hover img {
  transform: scale(1.09) translate(1.2%, -1.2%);
  filter: brightness(1.02);
}
.listing-info { padding: 18px 2px 0; }
.listing-info h3 { font: 500 1.35rem/1.2 var(--display); letter-spacing: 0.02em; }
.where { font: italic 400 .92rem/1.4 var(--display); color: var(--bone-dim); }
.deal {
  display: flex; justify-content: space-between;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--bone-faint);
  font: 400 .92rem/1 var(--sans); letter-spacing: 0.06em;
  color: var(--bone-dim);
}
.deal span:first-child { color: var(--bone); }
@media (max-width: 900px) { .listing-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .listing-grid { grid-template-columns: 1fr; } }

/* ============================================================
   5 · BY THE NUMBERS — count-up
   ============================================================ */
.numbers {
  background: var(--ink-2);
  border-top: 1px solid var(--bone-faint);
  border-bottom: 1px solid var(--bone-faint);
}
.num-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1300px; margin: 0 auto;
  padding: clamp(50px, 9vh, 90px) clamp(20px, 4vw, 60px);
  gap: 24px;
  text-align: center;
}
.num dt { font: 500 clamp(2rem, 4.4vw, 3.8rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.num dd { margin-top: 12px; font: 400 12px/1.4 var(--sans); letter-spacing: 0.26em; text-transform: uppercase; color: var(--bone-dim); }
@media (max-width: 760px) { .num-strip { grid-template-columns: 1fr 1fr; row-gap: 44px; } }

/* ============================================================
   6 · HOW WE WORK — horizontal pinned scroll
   ============================================================ */
.how { background: var(--ink); overflow: hidden; }
.how-pin {
  height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(30px, 6vh, 64px);
}
.how-head { padding: 0 clamp(20px, 6vw, 90px); }
.how-track {
  display: flex; gap: clamp(30px, 5vw, 80px);
  padding: 0 clamp(20px, 6vw, 90px);
  width: max-content;
  will-change: transform;
}
.step {
  width: clamp(300px, 38vw, 520px);
  flex-shrink: 0;
  border-top: 1px solid var(--bone-faint);
  padding-top: 26px;
}
.step-num {
  font: italic 400 clamp(2.4rem, 4.5vw, 4rem)/1 var(--display);
  color: var(--bone-dim);
  display: block; margin-bottom: 18px;
}
.step h3 { font: 500 clamp(1.5rem, 2.6vw, 2.2rem)/1.15 var(--display); margin-bottom: 12px; }
.step p { color: var(--bone-dim); font-size: 1.02rem; max-width: 34ch; }
@media (max-width: 860px) {
  .how-pin { height: auto; padding: clamp(70px, 10vh, 110px) 0; }
  .how-track { flex-direction: column; width: auto; }
  .step { width: auto; max-width: 560px; }
}

/* ============================================================
   7 · THE AGENTS — card lift
   ============================================================ */
.agents { padding: clamp(90px, 14vh, 170px) 0 clamp(80px, 12vh, 150px); background: var(--ink-2); }
.agent-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.6vw, 34px);
  padding: clamp(44px, 7vh, 80px) clamp(20px, 6vw, 90px) 0;
}
.agent {
  background: var(--ink);
  border: 1px solid var(--bone-faint);
  padding: 18px 18px 26px;
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), box-shadow .55s ease, border-color .55s ease;
  will-change: transform, opacity;
}
.agent:hover {
  transform: translateY(-12px);
  box-shadow: 0 34px 70px -18px rgba(0, 0, 0, 0.85);
  border-color: rgba(201, 169, 106, 0.35);
}
.agent figure { overflow: hidden; }
.agent img { filter: grayscale(.15) brightness(.95); transition: filter .6s ease, transform 1.2s cubic-bezier(.22,1,.36,1); }
.agent:hover img { filter: grayscale(0) brightness(1.02); transform: scale(1.04); }
.agent h3 { font: 500 1.4rem/1.2 var(--display); margin-top: 20px; }
.agent-spec {
  font: 400 11px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--bone-dim);
  margin: 8px 0 12px;
}
.agent-bio { color: var(--bone-dim); font-size: .98rem; }
@media (max-width: 760px) { .agent-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ============================================================
   8 · TESTIMONIALS — marquee
   ============================================================ */
.voices {
  padding: clamp(60px, 9vh, 100px) 0;
  background: var(--ink);
  border-top: 1px solid var(--bone-faint);
  overflow: hidden;
}
.marquee { position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(40px, 10vw, 160px); z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee-track {
  display: flex; gap: clamp(40px, 6vw, 100px);
  width: max-content;
  animation: marquee 46s linear infinite;
  padding: 0 20px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.quote { width: clamp(300px, 34vw, 460px); flex-shrink: 0; }
.quote blockquote { font: italic 400 clamp(1.15rem, 1.8vw, 1.5rem)/1.5 var(--display); }
.quote figcaption {
  margin-top: 14px;
  font: 400 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-dim);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   9 · CTA + FOOTER — magnetic button
   ============================================================ */
.cta {
  position: relative;
  background: var(--ink-2);
  padding: clamp(110px, 16vh, 190px) clamp(20px, 5vw, 70px) 44px;
  text-align: center;
  overflow: hidden;
}
.cta-title { font: 500 clamp(3rem, 8vw, 7rem)/1.06 var(--display); }
.cta-title em { color: var(--bone-dim); }
.cta-row {
  display: flex; justify-content: center; align-items: center;
  gap: 20px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vh, 70px);
}
.magnet {
  display: inline-block;
  padding: 26px 60px;
  border-radius: 999px;
  background: var(--champagne); /* champagne moment 3 */
  color: var(--ink);
  font: 600 1.05rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  will-change: transform;
  transition: box-shadow .4s ease;
}
.magnet:hover { box-shadow: 0 24px 70px -16px rgba(201, 169, 106, 0.55); }
.magnet-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid rgba(242, 237, 227, 0.35);
}
.magnet-ghost:hover { box-shadow: 0 24px 70px -16px rgba(242, 237, 227, 0.25); border-color: var(--bone); }
.cta-alt { margin-top: 26px; font: italic 400 1rem/1 var(--display); color: var(--bone-dim); }
.cta-alt a { border-bottom: 1px solid var(--bone-faint); }

.foot-mark {
  margin-top: clamp(80px, 12vh, 140px);
  font: 500 clamp(3rem, 12.5vw, 13.5rem)/1 var(--display);
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 227, 0.22);
  user-select: none;
}
.foot-row {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(40px, 7vh, 70px);
  padding-top: 26px;
  border-top: 1px solid var(--bone-faint);
  text-align: left;
}
.foot-row p { font: italic 400 1rem/1 var(--display); color: var(--bone-dim); }
.foot-links { display: flex; gap: 26px; }
.foot-links a, .foot-credit {
  font: 400 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-dim);
  transition: color .3s;
}
.foot-links a:hover, .foot-credit:hover { color: var(--bone); }
.foot-fine {
  margin-top: 30px; text-align: left;
  font: 300 11px/1.7 var(--sans); color: rgba(242, 237, 227, 0.35);
}

/* ---------- blur-up media ---------- */
figure[data-blur] { background-size: cover; background-position: center; }
figure[data-blur] img { opacity: 0; transition: opacity .7s ease; }
figure[data-blur].is-loaded img { opacity: 1; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero-media img, .caret, .hero-cue i { animation: none; }
  .marquee-track { animation-duration: 400s; }
}
