/* ============================================================
   CORNERSTONE RESIDENTIAL — v3 Design System
   Base: v2.css + About + Opportunities + Badge + Sidebar
   ============================================================ */

:root {
  /* Palette */
  --bg:        #faf8f4;
  --paper:     #f3ede2;
  --ink:       #1a1714;
  --muted:     #6b6459;
  --line:      #e4ddd0;
  --gold:      #b08d57;
  --gold-lt:   #c8a472;
  --gold-dk:   #8c6e3f;
  --white:     #ffffff;
  --black:     #0f0d0a;

  /* Builder territories */
  --b1-bg:     #faf8f4;
  --b1-dark:   #f0e8d8;
  --b1-accent: #b08d57;
  --b2-bg:     #f3ede2;
  --b2-mid:    #e8dfd0;
  --b2-accent: #8c6e3f;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;

  /* Scale */
  --nav-h: 72px;
  --gut: clamp(24px, 5vw, 80px);
  --maxw: 1760px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.83, 0, 0.17, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Utilities ─────────────────────────────────────────── */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--sans);
  font-weight: 500;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 16px 40px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .28s var(--ease-out), transform .28s var(--ease-out);
}
.btn:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn--dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--dark:hover { background: var(--ink); color: #fff; }

/* ── Split text clips (for reveal animations) ─────────── */
.split-line { overflow: hidden; display: block; }

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background .4s, box-shadow .4s, color .4s, transform .4s var(--ease-out);
  color: #fff;
}
.nav .nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.nav.scrolled {
  background: rgba(250,248,244,.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(0,0,0,.05);
  color: var(--ink);
}
.nav.nav--hidden { transform: translateY(-100%); }

/* Brand / logo */
.brand { display: flex; align-items: center; }
.brand__logo { height: 44px; width: auto; display: block; }
.brand__logo--dark { display: none; }
.nav.scrolled .brand__logo--light { display: none; }
.nav.scrolled .brand__logo--dark { display: block; }
@media (max-width: 560px) { .brand__logo { height: 36px; } }

/* Nav links */
.nav__links {
  display: flex;
  gap: clamp(20px, 2.5vw, 44px);
  align-items: center;
}
.nav__links a {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: .9;
  transition: opacity .2s, color .2s;
}
.nav__links a:hover { opacity: 1; color: var(--gold-lt); }

/* Mobile burger */
.burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: inherit;
  cursor: pointer;
  z-index: 71;
  line-height: 1;
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .burger { display: block; }
}

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #fff;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--ink);
  padding: 10px 0;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold-lt); }
.mobile-menu__close {
  position: absolute;
  top: 26px; right: 24px;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
body.menu-open { overflow: hidden; }

/* ── HERO (v1 style) ────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  padding: 0;
  overflow: hidden;
}
.hero__stage {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.hero__house {
  position: absolute;
  inset: -20%;
  background: url('../clone/assets/pintos-res-36.jpg') center 60% / cover no-repeat;
  z-index: 1;
  transform: scale(1.06);
  filter: brightness(.92);
  will-change: transform;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(18,16,12,.72) 0%,
    rgba(18,16,12,.22) 28%,
    transparent 52%,
    rgba(18,16,12,.52) 100%
  );
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  mix-blend-mode: overlay;
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 var(--gut);
  will-change: transform, opacity;
}
.hero__content::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(1100px, 120%);
  height: 78%;
  background: radial-gradient(ellipse at center, rgba(18,16,12,.40) 0%, rgba(18,16,12,.20) 42%, transparent 70%);
  filter: blur(14px);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 8vw, 108px);
  font-weight: 300;
  max-width: 14ch;
  line-height: 1.0;
  letter-spacing: .015em;
  text-shadow: 0 2px 4px rgba(15,26,44,.35), 0 12px 56px rgba(15,26,44,.45);
  margin-bottom: 20px;
}
.hero__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 26px);
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 2px rgba(15,26,44,.45), 0 4px 24px rgba(15,26,44,.45);
  margin-bottom: 36px;
}
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 4;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__cue::before {
  content: '';
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: rgba(255,255,255,.8);
  animation: cueDot 1.6s ease-in-out infinite;
}
@keyframes cueDot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(9px); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__house { filter: none; transform: none; }
  .hero__cue::before { animation: none; }
}

/* ── ABOUT ─────────────────────────────────────────────── */
#about {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: center;
}
.about__text h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 1.12;
  margin-top: 16px;
  margin-bottom: 24px;
}
.about__text p {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.85;
  max-width: 52ch;
}
.about__text p + p { margin-top: 16px; }
.about__text .btn { margin-top: 36px; }
.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.about__media img {
  width: 100%;
  object-fit: cover;
}
.about__media img:first-child {
  grid-row: span 2;
  aspect-ratio: 2/3;
  margin-top: 48px;
}
.about__media img:not(:first-child) {
  aspect-ratio: 4/3;
}

/* ── MANIFESTO ─────────────────────────────────────────── */
#manifesto {
  padding: clamp(100px, 16vh, 180px) 0;
  background: var(--bg);
}
.manifesto__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 120px);
  align-items: center;
}
.manifesto__text h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.15;
  letter-spacing: .01em;
  margin-bottom: 32px;
}
.manifesto__text p {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--muted);
  line-height: 1.8;
}
.manifesto__image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.manifesto__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.manifesto__image:hover img { transform: scale(1.04); }
.manifesto__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(176, 141, 87, .2);
  pointer-events: none;
}

/* ── VALUES: SPLIT-SCREEN ───────────────────────────────── */
#values { border-top: 1px solid var(--line); }
.vs-wrap {
  display: flex;
  height: 100vh;
  overflow: hidden;
}
.vs-left {
  width: 55%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.vs-left::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(26,23,20,.18) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(26,23,20,.44) 0%, transparent 30%,
                               transparent 60%, rgba(26,23,20,.52) 100%);
  z-index: 2;
  pointer-events: none;
}
.vs-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.vs-img.active { opacity: 1; }
.vs-seam {
  position: absolute;
  top: 12%; right: 0;
  width: 1px; height: 76%;
  background: linear-gradient(to bottom, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  z-index: 3;
  opacity: .3;
}
.vs-caption {
  position: absolute;
  bottom: clamp(24px, 4vh, 40px);
  left:   clamp(24px, 4vw, 40px);
  z-index: 4;
}
.vs-caption-num {
  display: block;
  font-family: var(--serif);
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .3em;
  margin-bottom: .3rem;
  transition: opacity .3s;
}
.vs-caption-label {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(250,248,244,.88);
  line-height: 1.2;
  transition: opacity .3s;
}
.vs-right {
  width: 45%;
  flex-shrink: 0;
  position: relative;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vs-progress-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--line);
}
.vs-bar-fill {
  height: 100%;
  background: var(--gold);
  width: 25%;
  transition: width .6s cubic-bezier(.83,0,.17,1);
}
.vs-counter {
  position: absolute;
  top: clamp(24px, 3vh, 40px);
  right: clamp(40px, 5vw, 80px);
  font-family: var(--serif);
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .04em;
}
.vs-counter-num {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--ink);
  line-height: 1;
}
.vs-counter-total { opacity: .5; }
.vs-slide {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(40px, 6vw, 96px);
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.vs-slide.is-active { opacity: 1; pointer-events: all; }
.vs-ghost {
  display: block;
  font-family: var(--serif);
  font-size: clamp(80px, 13vw, 140px);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  opacity: .12;
  line-height: 1;
  letter-spacing: -.03em;
  user-select: none;
  margin-bottom: -1rem;
  margin-left: -.05em;
}
.vs-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.4rem;
}
.vs-eyebrow::before {
  content: '';
  display: block;
  width: 2rem; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.vs-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -.005em;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.vs-body {
  font-size: clamp(.9rem, 1.15vw, 1.05rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--muted);
  max-width: 42ch;
}
.vs-dots {
  position: absolute;
  bottom: clamp(24px, 3vh, 40px);
  left: clamp(40px, 6vw, 96px);
  display: flex;
  gap: 10px;
  align-items: center;
}
.vs-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
  border: none; padding: 0; cursor: pointer;
  transition: background .3s, transform .3s;
}
.vs-dot.active { background: var(--gold); transform: scale(1.5); }
.vs-scroll-hint {
  position: absolute;
  bottom: clamp(24px, 3vh, 40px);
  right: clamp(40px, 5vw, 80px);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: opacity .4s;
}
.vs-scroll-hint svg { animation: vsScrollBounce 1.8s ease-in-out infinite; }
@keyframes vsScrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.vs-scroll-hint.hidden { opacity: 0; pointer-events: none; }

/* ── OPPORTUNITIES ──────────────────────────────────────── */
#opportunities {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}
.opportunities__head {
  max-width: 680px;
  margin: 0 auto clamp(48px, 8vh, 80px);
}
.opportunities__head h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  margin-top: 14px;
  margin-bottom: 16px;
}
.opportunities__head p {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
}
.opp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  text-align: left;
}
.opp-card {
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
}
.opp-card.revealed { opacity: 1; transform: translateY(0); }
.opp-card__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.opp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.opp-card:hover .opp-card__img img { transform: scale(1.05); }
.opp-card__body {
  padding: clamp(24px, 3vw, 40px);
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.opp-card__body h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.15;
}
.opp-card__body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  flex: 1;
}
.opp-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 52px;
  flex-wrap: wrap;
}

/* ── PARTNERS ──────────────────────────────────────────── */
#partners {
  padding: clamp(80px, 12vh, 160px) 0;
  background: var(--bg);
  text-align: center;
  border-top: 1px solid var(--line);
}
.partners__statement {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  max-width: 20ch;
  margin: 0 auto 16px;
  line-height: 1.2;
}
.partners__statement--stair {
  text-align: left;
  max-width: none;
  width: fit-content;
}
.partners__statement--stair span { display: block; white-space: nowrap; }
.partners__statement--stair span:nth-child(2) { padding-left: 1.6em; }
.partners__statement--stair span:nth-child(3) { padding-left: 3.2em; }
.partners__sub {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: clamp(60px, 10vh, 120px);
}
.partners__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
  overflow: hidden;
}
.partner-card {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .4s;
}
.partner-card:hover { background: #2a2520; }
.partner-card__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  filter: saturate(.85) brightness(.9);
  transition: transform .6s var(--ease-out), filter .4s;
}
.partner-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(12,11,9,.78) 0%, rgba(12,11,9,.45) 55%, rgba(12,11,9,.35) 100%);
  transition: background .4s;
}
.partner-card:hover .partner-card__bg { transform: scale(1.04); filter: saturate(1) brightness(.95); }
.partner-card__content { position: relative; z-index: 2; }
.partner-card__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: clamp(32px, 5vw, 64px);
  transition: transform .4s var(--ease-out);
}
.partner-card:hover .partner-card__content { transform: translateY(-6px); }
.partner-card__logo {
  height: 80px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .85;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.partner-card__logo--stonebrook { height: 120px; }
.partner-card:hover .partner-card__logo { opacity: 1; transform: scale(1.04); }
.partner-card__focus {
  font-size: 12px;
  opacity: .5;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--sans);
}
.partner-card__arrow {
  font-size: 18px;
  opacity: .5;
  transform: translateX(-4px);
  transition: transform .3s, opacity .3s;
}
.partner-card:hover .partner-card__arrow { transform: translateX(4px); opacity: 1; }

/* ── BUILDER SECTIONS ──────────────────────────────────── */
.builder-section { background: var(--b1-bg); }
.builder-section--dark { background: var(--b2-bg); color: var(--ink); }
.builder__intro { padding: clamp(72px, 10vh, 120px) 0 clamp(60px, 8vh, 100px); }
.builder__logo {
  height: 100px;
  width: auto;
  max-width: 360px;
  margin-bottom: 40px;
  margin-inline: auto;
  object-fit: contain;
  display: block;
}
.builder-section--dark .builder__logo {
  height: 150px;
  max-width: 480px;
}
.builder__intro-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: end;
}
.builder-section--dark .builder__intro-inner { direction: rtl; align-items: start; }
.builder-section--dark .builder__intro-inner > * { direction: ltr; }
.builder__headline {
  font-family: var(--serif);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: .01em;
  margin-bottom: 28px;
}
.builder__body {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.85;
}
.builder__stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.builder__stat-num {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  color: var(--gold);
}
.builder__stat-label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.builder__feature-img { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.builder__feature-img img { width: 100%; height: 100%; object-fit: cover; }

/* Horizontal gallery */
.gallery-section { overflow: hidden; }
.gallery-section--mobile-scroll { display: none; }
.gallery-pin-wrapper { position: relative; height: 100vh; display: flex; align-items: center; }
.gallery-track-outer { display: flex; align-items: stretch; will-change: transform; height: 75vh; }
.gallery-track { display: flex; gap: 2px; align-items: stretch; }
.gallery-intro-panel {
  width: min(340px, 30vw);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 60px);
  background: var(--b1-dark);
}
.builder-section--dark .gallery-intro-panel { background: var(--b2-mid); color: var(--ink); }
.gallery-intro-panel .eyebrow { margin-bottom: 20px; }
.gallery-intro-panel h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.2;
  margin-bottom: 20px;
}
.gallery-count {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  color: var(--gold);
  line-height: 1;
  margin-top: auto;
}
.gallery-count small {
  font-family: var(--sans);
  font-size: 12px;
  display: block;
  color: var(--muted);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 4px;
}
.project-card {
  position: relative;
  width: clamp(280px, 35vw, 560px);
  flex-shrink: 0;
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
  will-change: transform;
}
.project-card:hover .project-card__img { transform: scale(1.04); }
.project-card__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
  color: #fff;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .4s var(--ease-out), opacity .4s;
}
.project-card:hover .project-card__caption { transform: translateY(0); opacity: 1; }
.project-card__name {
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  margin-bottom: 4px;
}
.project-card__meta { font-size: 12px; opacity: .7; letter-spacing: .12em; }

/* Builder divider */
.builder-divider { height: 1px; background: var(--line); }

/* ── TRACK RECORD ──────────────────────────────────────── */
#track-record {
  padding: clamp(100px, 15vh, 200px) 0;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  border-top: 1px solid var(--line);
}
.track-record__eyebrow { margin-bottom: 20px; }
.track-record__heading {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  margin-bottom: clamp(60px, 10vh, 120px);
  color: var(--ink);
}
.track-record__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 1200px;
  margin: 0 auto;
}
.stat-block {
  background: var(--bg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 40px);
}
.stat-block__num {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  color: var(--gold);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.stat-block__label {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ── MODEL ─────────────────────────────────────────────── */
#model {
  padding: clamp(100px, 15vh, 180px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.model__header { margin-bottom: clamp(60px, 10vh, 120px); }
.model__header h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  max-width: 18ch;
  line-height: 1.1;
  margin-top: 16px;
}
.model__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.step-card {
  background: var(--bg);
  padding: clamp(32px, 4vw, 52px) clamp(24px, 2.5vw, 36px);
  position: relative;
  transition: background .3s;
  opacity: 0;
  transform: translateY(24px);
}
.step-card.revealed { opacity: 1; transform: translateY(0); }
.step-card:hover { background: var(--paper); }
.step-card__num {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}
.step-card__title {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 30px);
  margin-bottom: 14px;
  line-height: 1.2;
}
.step-card__body { font-size: 14px; color: var(--muted); line-height: 1.75; }
.step-card__connector {
  position: absolute;
  top: clamp(40px, 5vw, 64px);
  right: -1px;
  width: 1px;
  height: 40px;
  background: var(--gold);
  opacity: 0;
  transition: opacity .3s;
}
.step-card:not(:last-child) .step-card__connector { opacity: .4; }

/* ── VISION ────────────────────────────────────────────── */
#vision {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.vision__bg { position: absolute; inset: 0; will-change: transform; }
.vision__bg img { width: 100%; height: 120%; object-fit: cover; }
.vision__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15,13,10,.92) 0%, rgba(15,13,10,.7) 60%, rgba(15,13,10,.3) 100%);
}
.vision__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(80px, 12vh, 160px) 0;
}
.vision__inner { max-width: 680px; }
.vision__inner h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 80px);
  color: #fff;
  line-height: 1.08;
  margin-bottom: 28px;
  margin-top: 24px;
}
.vision__inner p {
  font-size: clamp(16px, 1.4vw, 19px);
  color: rgba(255,255,255,.6);
  line-height: 1.85;
  margin-bottom: 40px;
}
.vision__cards {
  display: flex;
  gap: 16px;
  margin-top: clamp(48px, 8vh, 80px);
  flex-wrap: wrap;
}
.vision-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  padding: 24px 28px;
  flex: 1;
  min-width: 180px;
}
.vision-card__label {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.vision-card__value {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 32px);
  color: #fff;
}

/* ── IN PROGRESS (8 homes) ─────────────────────────────── */
#in-progress {
  padding: clamp(80px, 12vh, 140px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.inprog__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px; margin-bottom: clamp(36px, 5vh, 60px);
}
.progress__h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 1.1;
  margin: 14px 0 16px;
}
.progress__sub {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 62ch;
}
.inprog__count { text-align: right; flex: none; }
.inprog__count-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 120px);
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(176,141,87,.8);
}
.inprog__count-label {
  display: block; margin-top: 10px;
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.inprog__board {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 3.5vw, 64px);
  align-items: start;
}
.inprog__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 24px);
}
.inprog__stage, .inprog__model { margin: 0; position: relative; }
.inprog__stage video, .inprog__model img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block;
  background: #0c0b09;
}
.inprog__stage::before {
  content: ''; position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,.85);
  border-right: 0; border-bottom: 0;
}
.inprog__tag {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px; line-height: 1.6;
}
.inprog__tag .progress__dot { margin-top: 4px; }
.inprog__channels {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--line);
}
.inprog__channel {
  display: flex; align-items: baseline; gap: clamp(14px, 1.6vw, 26px);
  padding: clamp(12px, 1.6vh, 18px) 4px;
  border-bottom: 1px solid var(--line);
  transition: background .25s, padding-left .25s;
}
.inprog__channel:hover { background: rgba(176,141,87,.07); padding-left: 12px; }
.inprog__cam {
  font-size: 9.5px; letter-spacing: .2em; color: var(--gold);
  font-family: var(--sans); flex: none;
}
.inprog__addr {
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 23px);
  color: var(--ink); flex: 1; line-height: 1.25;
}
.inprog__channel .progress__dot { align-self: center; }
.progress__dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--gold);
  animation: prog-pulse 1.8s ease-in-out infinite;
}
.progress__dot--rec { background: #c8442c; animation-duration: 1.2s; }
.inprog__legend {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: 18px;
}
@keyframes prog-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(176,141,87,.5); }
  50%      { opacity: .55; box-shadow: 0 0 0 5px rgba(176,141,87,0); }
}

/* ── CONTACT ───────────────────────────────────────────── */
#contact {
  padding: clamp(100px, 15vh, 180px) 0 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 160px);
  align-items: start;
  padding-bottom: clamp(80px, 12vh, 140px);
}
.contact__left .eyebrow { margin-bottom: 20px; }
.contact__headline {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.08;
  margin-bottom: 24px;
}
.contact__sub {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.8;
  margin-bottom: 36px;
}
.contact__info { margin-top: 40px; }
.contact__info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}
.contact__info-item strong { color: var(--ink); }
.contact__form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color .3s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--gold); }
.form-group textarea { min-height: 120px; resize: none; }
.form-submit-row { display: flex; align-items: center; gap: 20px; margin-top: 8px; }
.form-status {
  font-size: 13px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .3s;
}
.form-status.visible { opacity: 1; }

/* Footer */
footer {
  padding: clamp(40px, 6vh, 64px) 0;
  border-top: 1px solid var(--line);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer__logo { height: 28px; }
.footer__copy { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.footer__links { display: flex; gap: 28px; list-style: none; }
.footer__links a {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}
.footer__links a:hover { color: var(--ink); }

/* ── LIGHTBOX ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.9); cursor: pointer; }
.lightbox__content {
  position: relative;
  z-index: 2;
  max-width: min(1200px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: scale(.95);
  transition: transform .35s var(--ease-out);
}
.lightbox.open .lightbox__content { transform: scale(1); }
.lightbox__main { position: relative; flex: 1; overflow: hidden; max-height: 70vh; }
.lightbox__main img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__close {
  position: fixed;
  top: 24px; right: 28px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.2); }
.lightbox__caption { color: rgba(255,255,255,.7); font-size: 13px; letter-spacing: .08em; text-align: center; }
.lightbox__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  justify-content: center;
}
.lightbox__thumb { width: 64px; height: 48px; flex-shrink: 0; overflow: hidden; cursor: pointer; opacity: .5; transition: opacity .2s; border: 1px solid transparent; }
.lightbox__thumb.active { opacity: 1; border-color: var(--gold); }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── FLOATING BADGE ────────────────────────────────────── */
.invest-badge {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0,0,0,.16);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  max-width: 280px;
  text-decoration: none;
}
.invest-badge:hover { transform: translateY(-3px); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.invest-badge__icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 20px;
  color: #fff;
  font-style: italic;
}
.invest-badge__txt b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.invest-badge__txt span { font-size: 11px; color: var(--muted); }

/* ── PAGE DOTS SIDEBAR ─────────────────────────────────── */
#pageDots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.page-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(176,141,87,.3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .35s, transform .35s;
  display: block;
}
.page-dot.active {
  background: var(--gold);
  transform: scale(1.6);
}
.page-dot:hover { background: var(--gold-lt); }

/* ── VALUES mobile ─────────────────────────────────────── */
@media (max-width: 767px) {
  .vs-wrap { flex-direction: column; height: auto; }
  .vs-left  { width: 100%; height: 56vw; position: relative; }
  .vs-right { width: 100%; position: relative; padding: 3rem 1.5rem 4rem; }
  /* All slides visible stacked — JS animates each in on scroll */
  .vs-slide {
    position: relative; inset: auto; padding: 0;
    opacity: 0; transform: translateY(28px);
    pointer-events: all;
    margin-bottom: 3rem;
  }
  .vs-slide:not(.is-active) { display: block; }
  .vs-slide:last-child { margin-bottom: 0; }
  .vs-dots, .vs-scroll-hint, .vs-counter, .vs-progress-bar { display: none; }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1023px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media img:first-child { margin-top: 0; }
  .manifesto__inner { grid-template-columns: 1fr; }
  .manifesto__image { max-width: 480px; }
  .opp-grid { grid-template-columns: 1fr; gap: 1px; }
  .partners__split { grid-template-columns: 1fr; }
  .partner-card { aspect-ratio: 3/2; }
  .builder__intro-inner { grid-template-columns: 1fr; }
  .builder-section--dark .builder__intro-inner { direction: ltr; }
  .builder__feature-img { aspect-ratio: 16/9; max-width: 100%; }
  .track-record__grid { grid-template-columns: repeat(2, 1fr); }
  .model__steps { grid-template-columns: repeat(2, 1fr); }
  .inprog__board { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .gallery-pin-wrapper { display: none; }
  .gallery-section--mobile-scroll { display: block; }
  .mobile-gallery {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--gut) clamp(24px, 4vh, 48px);
  }
  .mobile-gallery .project-card {
    width: min(320px, 80vw);
    height: 60vw;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
  .mobile-gallery .project-card__caption { opacity: 1; transform: translateY(0); }
  #pageDots { display: none; }
  .invest-badge { max-width: none; left: 12px; right: 12px; bottom: 12px; }
}

@media (max-width: 767px) {
  .model__steps { grid-template-columns: 1fr; }
  .track-record__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .invest-badge { display: none; }

  /* Tighter vertical rhythm on phones */
  #about, #opportunities, #partners { padding: 64px 0; }
  #manifesto, #model { padding: 72px 0; }
  #track-record { padding: 72px 0; }
  #contact { padding: 72px 0 0; }
  .partners__sub { margin-bottom: 40px; }
  .opportunities__head { margin-bottom: 36px; }
  .model__header { margin-bottom: 40px; }
  .builder__intro { padding: 56px 0 40px; }
  .builder__logo { margin-bottom: 28px; }
  .builder__stats { gap: 24px; }
  #in-progress { padding: 64px 0; }
  .inprog__head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 32px; }
  .inprog__count { display: none; }
  .inprog__addr { font-size: 17px; }
}

/* ── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .scroll-cue__line::after { animation: none; }
  .opp-card { opacity: 1; transform: none; }
}

/* ============================================================
   PALM BAY — flagship project
   ============================================================ */
#palm-bay {
  background: var(--paper);
  padding: 120px 0 0;
  border-top: 1px solid var(--line);
}
.pb__head { max-width: 780px; }
.pb__h2 {
  font-family: 'Marcellus', serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: 14px 0 0;
}
.pb__lead {
  margin-top: 26px;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 68ch;
}
.pb__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 96px);
  margin: 64px 0 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.pb__stat { display: flex; flex-direction: column; gap: 8px; }
.pb__stat-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--gold);
  font-weight: 500;
}
.pb__stat-label {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   INVESTOR JOURNEY
   ============================================================ */
#journey {
  background: var(--bg);
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.jr-timeline {
  list-style: none;
  margin: 88px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.jr-tl {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.jr-tl__date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: .8rem;
  letter-spacing: .06em;
  color: var(--gold-dk);
  white-space: nowrap;
}
.jr-tl__label {
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
  line-height: 1.5;
  color: var(--ink);
}
.jr-note {
  margin-top: 28px;
  font-size: .82rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 767px) {
  #palm-bay { padding-top: 84px; }
  #journey  { padding: 84px 0; }
  .pb__stats { gap: 28px 44px; margin: 44px 0 68px; }
  .jr-timeline { margin-top: 56px; }
  .jr-tl { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
}

/* RTL */
[dir="rtl"] .jr-tl__date { white-space: normal; }
