/* =============================================
   KAMEIKA, Design System
   Editorial luxury · Tampa Bay private collection
   ============================================= */

:root {
  /* Backgrounds */
  --bg: #F9F5EC;
  --bg-elev: #F2EAD6;
  --bg-card: #FFFCF4;
  --bg-card-2: #F0E6CE;
  --paper: #FEFBF3;
  --paper-warm: #FDF7E8;

  /* Borders */
  --border: #E2D5B9;
  --border-bright: #CDB890;
  --border-glow: #B89C73;

  /* Text */
  --text: #1F140C;
  --text-strong: #1A0F08;
  --text-muted: #6E5642;
  --text-dim: #9C8669;

  /* Accents */
  --maroon: #6B1928;
  --maroon-dk: #4A0E18;
  --maroon-lt: #8C2A3C;
  --accent: var(--maroon);
  --accent-2: var(--maroon-lt);
  --accent-glow: rgba(107, 25, 40, 0.28);
  --accent-soft: rgba(107, 25, 40, 0.06);

  --gold: #B8956A;
  --gold-2: #D4B896;
  --gold-dk: #8C6F4E;
  --gold-glow: rgba(184, 149, 106, 0.4);

  --peach: #EDB997;
  --peach-lt: #F4D2B3;

  /* Statuses (muted, luxury) */
  --green: #6B8E70;
  --red: #B85A4A;
  --orange: #C9A66B;

  /* Shadows */
  --shadow-1: 0 4px 18px rgba(74, 50, 30, 0.07);
  --shadow-2: 0 24px 60px rgba(74, 50, 30, 0.14);
  --shadow-soft: 0 2px 10px rgba(74, 50, 30, 0.05);

  /* Radii */
  --r-sm: 3px;
  --r: 6px;
  --r-lg: 12px;
  --r-xl: 18px;

  /* Fonts */
  --font-display: 'Playfair Display', 'EB Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-caps: 'Cinzel', 'Trajan Pro', serif;
  --font-mono: var(--font-caps);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body { max-width: 100vw; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'liga', 'kern', 'onum';
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  font-size: 17px;
}

/* Soft ambient gradient washes */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 0%, rgba(237, 185, 151, 0.18), transparent 60%),
    radial-gradient(ellipse 65% 40% at 85% 5%, rgba(184, 149, 106, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(107, 25, 40, 0.04), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* 3D preview canvases on the hub never steal scroll on touch devices */
.theater canvas,
.card-3d canvas,
.fl-image canvas {
  touch-action: pan-y !important;
  pointer-events: none;
}
/* On the project detail viewer we DO want interaction, but vertical scroll should still pass through */
.viewer canvas { touch-action: pan-y; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-strong);
}

h1 { font-size: clamp(3.2rem, 8vw, 7.2rem); font-style: italic; font-weight: 500; letter-spacing: -0.025em; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); font-style: italic; font-weight: 500; }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); font-weight: 500; }

.italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--maroon);
}

.mono {
  font-family: var(--font-caps);
  letter-spacing: 0.1em;
}

/* Currency mark, small upright Cinzel cap before italic number */
.cur {
  font-family: var(--font-caps);
  font-style: normal;
  font-weight: 500;
  font-size: 0.55em;
  letter-spacing: 0.08em;
  vertical-align: 0.4em;
  margin-right: 0.18em;
  color: var(--gold-dk);
  opacity: 0.9;
  text-transform: none;
}
/* In darker contexts (over hero image, in dark gradient overlays), brighten the cur mark */
.hero .cur, .card-name-block .cur { color: var(--gold-2); opacity: 0.95; }
.listing-status .cur, .listing-tag .cur, .btn .cur { display: none; }

.muted { color: var(--text-muted); }
.dim { color: var(--text-dim); }

/* Pull quote / drop cap */
.lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* =============================================
   CHAPTER MARK (section dividers)
   ============================================= */
.chapter-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-dk);
  font-weight: 500;
}
.chapter-mark::before,
.chapter-mark::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 35%, var(--gold) 65%, transparent);
  max-width: 220px;
  opacity: 0.55;
}
.chapter-mark .roman {
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.85rem;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.container-wide {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section { padding: 9rem 0; }
.section-tight { padding: 4rem 0; }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.3rem 2.5rem;
  background: rgba(249, 245, 236, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 213, 185, 0.5);
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  padding: 0.9rem 2.5rem;
  background: rgba(249, 245, 236, 0.95);
}

/* When over cinematic hero, fully transparent + light text */
.nav.transparent {
  background: linear-gradient(180deg, rgba(8, 6, 4, 0.45), rgba(8, 6, 4, 0.0));
  border-bottom: 1px solid rgba(255, 251, 242, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.nav.transparent .brand,
.nav.transparent .nav-links a {
  color: rgba(255, 251, 242, 0.95);
}
.nav.transparent .nav-links a:hover,
.nav.transparent .nav-links a.active {
  color: var(--gold-2);
}
.nav.transparent .nav-links a.active::after {
  background: var(--gold-2);
}
.nav.transparent .brand-mark {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--gold-2);
}
.nav.transparent .brand-mark::after {
  color: var(--gold-2);
}

.nav-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--maroon);
  text-decoration: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 4px;
}
.brand-name {
  font-family: var(--font-caps);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  color: var(--maroon);
}
.brand-tag {
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  color: var(--gold-dk);
  text-transform: uppercase;
}
.brand-tag .reg {
  font-family: var(--font-body);
  font-size: 0.85em;
  vertical-align: 0.3em;
  margin-left: 0.1em;
  letter-spacing: 0;
}

/* Transparent nav (over hero image), light brand colors */
.nav.transparent .brand-name { color: rgba(255, 251, 242, 0.96); }
.nav.transparent .brand-tag { color: var(--gold-2); }

.brand-mark {
  width: 36px; height: 36px;
  background:
    linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dk) 100%);
  position: relative;
  box-shadow: 0 4px 14px rgba(107, 25, 40, 0.3), inset 0 0 0 1px var(--gold);
  flex-shrink: 0;
}
.brand-mark::after {
  content: 'M';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--gold-2);
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 2.6rem;
  list-style: none;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:hover, .nav-links a.active { color: var(--maroon); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 1px;
  background: var(--gold);
}

/* Currency toggle in nav */
.currency-toggle {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--maroon);
  border: 1px solid var(--border-bright);
  background: var(--paper);
  padding: 0.55rem 0.85rem;
  position: relative;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 70px;
  justify-content: center;
}
.currency-toggle::before {
  content: '⇌';
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 400;
}
.currency-toggle:hover {
  border-color: var(--maroon);
  background: var(--bg-card-2);
}

/* When inside dark hero nav */
.nav.transparent .currency-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 251, 242, 0.3);
  color: #FFFBF2;
  backdrop-filter: blur(10px);
}
.nav.transparent .currency-toggle::before { color: var(--gold-2); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.9rem;
  font-family: var(--font-caps);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0;
}

.btn-primary {
  background: var(--maroon);
  color: var(--paper);
  border-color: var(--maroon-dk);
  box-shadow: 0 4px 16px rgba(107, 25, 40, 0.22);
}
.btn-primary:hover {
  background: var(--maroon-dk);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(107, 25, 40, 0.32);
}

.btn-ghost {
  background: transparent;
  border-color: var(--text-strong);
  color: var(--text-strong);
}
.btn-ghost:hover {
  background: var(--text-strong);
  color: var(--paper);
}

.btn-gold {
  background: var(--gold);
  color: var(--maroon-dk);
  border-color: var(--gold-dk);
}
.btn-gold:hover {
  background: var(--gold-dk);
  color: var(--paper);
}

.btn-link {
  background: none;
  padding: 0.4rem 0;
  border: none;
  border-bottom: 1px solid var(--maroon);
  color: var(--maroon);
}
.btn-link:hover { color: var(--maroon-dk); border-color: var(--maroon-dk); }

.btn-arrow::after {
  content: '→';
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.35s var(--ease);
  display: inline-block;
}
.btn-arrow:hover::after { transform: translateX(6px); }

.btn-lg { padding: 1.25rem 2.2rem; font-size: 0.75rem; }

/* =============================================
   HERO, Cinematic full-bleed image
   ============================================= */
.hero {
  padding: 7rem 0 0; /* nav clearance at top so the headline never crashes into the brand */
  height: 100vh;
  min-height: 880px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #FAF1DE;
  background: linear-gradient(135deg, #2a1f1a, #1a1410);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.04); } to { transform: scale(1); } }

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.45) 0%, rgba(8, 6, 4, 0.15) 30%, rgba(8, 6, 4, 0.85) 100%),
    linear-gradient(90deg, rgba(8, 6, 4, 0.55) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2.5rem 5rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 2rem;
}
.hero-eyebrow::before {
  content: '';
  width: 36px; height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-style: italic;
  font-size: clamp(2.8rem, 7vw, 5.8rem); /* slightly smaller max, leaves room for breath under the nav */
  max-width: 14ch;
  line-height: 1.02; /* a touch more breathing for italic ascenders */
  margin-bottom: 1.6rem;
  color: #FFFBF2;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--gold-2); }

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  color: rgba(255, 251, 242, 0.88);
  max-width: 560px;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero .btn-ghost {
  border-color: rgba(255, 251, 242, 0.5);
  color: #FFFBF2;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}
.hero .btn-ghost:hover {
  background: #FFFBF2;
  color: var(--maroon);
  border-color: #FFFBF2;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 251, 242, 0.18);
  max-width: 800px;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.65);
}
.hero-meta-item { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-meta-item strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--gold-2);
  letter-spacing: -0.01em;
  line-height: 1;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  right: 2.5rem;
  z-index: 3;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.65);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding-bottom: 30px;
}
.hero-scroll::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 24px;
  background: var(--gold);
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { height: 24px; opacity: 1; }
  50% { height: 8px; opacity: 0.4; }
}

/* =============================================
   PRESS STRIP
   ============================================= */
.press-strip {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper-warm);
  overflow: hidden;
}
.press-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.press-strip-label { color: var(--gold-dk); margin-right: 0.5rem; }
.press-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
}
.press-strip-item:not(:last-child)::after {
  content: '';
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.6;
}

/* =============================================
   FEATURED CHAPTER
   ============================================= */
.featured-chapter {
  padding: 8rem 2.5rem;
  position: relative;
}

.featured-headline {
  text-align: center;
  max-width: 18ch;
  margin: 0 auto 2rem;
}

.featured-lede {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 5rem;
  color: var(--text-muted);
}

.featured-spread {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: 4rem;
  align-items: center;
}

.featured-info {
  position: relative;
}
.featured-name-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.8rem;
}
.featured-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.02;
  margin-bottom: 1rem;
}
.featured-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--gold-dk);
  margin-bottom: 1.5rem;
}
.featured-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.featured-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.spec-lab {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spec-val {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.featured-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* The 3D theater frame */
.theater {
  position: relative;
  aspect-ratio: 5 / 6;
  border: 1px solid var(--border-bright);
  background: linear-gradient(160deg, var(--paper-warm), var(--bg-card-2));
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.theater::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid var(--gold);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
}
.theater::after {
  content: 'KAMEIKA · LIVE 3D MODEL';
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  color: var(--gold-dk);
  z-index: 3;
  padding: 0.3rem 0.8rem;
  background: var(--paper-warm);
}
.theater canvas { display: block; width: 100% !important; height: 100% !important; }

/* =============================================
   COLLECTION GRID
   ============================================= */
.collection-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 5rem;
}
.collection-head h2 { margin-bottom: 1.5rem; }
.collection-head p { color: var(--text-muted); font-size: 1.1rem; font-style: italic; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
  max-width: 1320px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: transform 0.5s var(--ease);
}
.project-card:hover { transform: translateY(-6px); }

.project-card-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-card-2);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  isolation: isolate;
}
.project-card-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 6, 4, 0.1) 0%, rgba(8, 6, 4, 0.05) 40%, rgba(8, 6, 4, 0.78) 100%);
  z-index: 1;
  transition: opacity 0.4s var(--ease);
}
.project-card-frame::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 251, 242, 0.45);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  pointer-events: none;
}
.project-card:hover .project-card-frame {
  border-color: var(--gold);
}
.project-card:hover .project-card-frame::after { opacity: 1; }

.card-tag {
  position: absolute;
  top: 1.4rem; left: 1.4rem;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.95);
  z-index: 3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.card-tag::before {
  content: '';
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--gold);
  margin-right: 0.6rem;
  vertical-align: middle;
}

.card-avail-pill {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(8, 6, 4, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 251, 242, 0.25);
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.95);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.avail-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(107, 142, 112, 0.7);
}
.avail-dot.low { background: var(--orange); box-shadow: 0 0 8px rgba(201, 166, 107, 0.7); }
.avail-dot.sold-out { background: var(--red); box-shadow: 0 0 8px rgba(184, 90, 74, 0.7); }

.card-name-block {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 1.6rem;
  z-index: 3;
  color: #FFFBF2;
}
.card-name-block h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #FFFBF2;
  margin-bottom: 0.3rem;
  line-height: 1;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.card-name-block .loc {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 251, 242, 0.8);
  margin-bottom: 1rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.card-name-block .reveal-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 251, 242, 0.3);
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.card-name-block .from {
  color: rgba(255, 251, 242, 0.7);
}
.card-name-block .from strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gold-2);
  letter-spacing: -0.01em;
  margin-left: 0.35rem;
  text-transform: none;
}
.card-name-block .explore {
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s var(--ease);
}
.project-card:hover .card-name-block .explore { gap: 0.95rem; }
.card-name-block .explore::after {
  content: '→';
  font-family: var(--font-body);
}

/* =============================================
   VISION (Chapter III pull quote)
   ============================================= */
.vision {
  padding: 9rem 2.5rem;
  background: linear-gradient(180deg, var(--paper-warm), var(--bg));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.vision-inner {
  max-width: 920px;
  margin: 0 auto;
}

.vision-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-strong);
  margin-bottom: 2.5rem;
  position: relative;
}
.vision-quote::before,
.vision-quote::after {
  font-family: var(--font-display);
  color: var(--gold);
  font-style: italic;
  font-size: 4rem;
  position: relative;
  top: 0.6rem;
  line-height: 0;
}
.vision-quote::before { content: '"'; margin-right: 0.2rem; }
.vision-quote::after { content: '"'; margin-left: 0.2rem; }

.vision-attribution {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.vision-attribution strong {
  font-family: var(--font-caps);
  font-weight: 600;
  color: var(--maroon);
  letter-spacing: 0.3em;
}

/* =============================================
   REALTOR
   ============================================= */
.realtor-section {
  padding: 9rem 2.5rem;
}

.realtor-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 5rem;
}
.realtor-head h2 { margin-bottom: 1.5rem; }
.realtor-head p { color: var(--text-muted); font-size: 1.1rem; font-style: italic; }

.realtor-card {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 4rem;
  align-items: center;
}

.realtor-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse at top, var(--peach-lt) 0%, transparent 60%),
    linear-gradient(160deg, var(--paper-warm) 0%, var(--bg-card-2) 100%);
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 1.4rem 2rem;
}
.realtor-portrait::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  opacity: 0.7;
  pointer-events: none;
  z-index: 1;
}
.portrait-photo {
  width: 62%;
  max-width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--gold);
  box-shadow:
    0 0 0 6px var(--paper-warm),
    0 0 0 7px var(--gold),
    0 12px 30px rgba(107, 25, 40, 0.18);
  position: relative;
  z-index: 2;
  background: var(--bg-card-2);
}
.portrait-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.6rem auto 1.2rem;
  position: relative;
  z-index: 2;
}
.portrait-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  color: var(--maroon);
  text-align: center;
  letter-spacing: -0.015em;
  line-height: 1.1;
  position: relative;
  z-index: 2;
}
.portrait-title {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dk);
  text-align: center;
  margin-top: 0.6rem;
  position: relative;
  z-index: 2;
}
.portrait-year {
  position: absolute;
  top: 28px; right: 30px;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dk);
  z-index: 3;
}
.portrait-corner {
  position: absolute;
  top: 28px; left: 30px;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dk);
  z-index: 3;
}

.realtor-meta .role-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 1rem;
}
.realtor-meta .name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.05;
  margin-bottom: 0.4rem;
}
.realtor-meta .title-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-dk);
  margin-bottom: 2rem;
}
.realtor-meta .bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.realtor-meta .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--maroon);
  letter-spacing: -0.005em;
  border-left: 2px solid var(--gold);
  padding-left: 1.5rem;
  margin: 0 0 2rem 0;
}
.realtor-meta .credentials {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.8;
}
.realtor-meta .credentials .dot {
  color: var(--gold);
  margin: 0 0.5rem;
}

/* =============================================
   PROCESS
   ============================================= */
.process-section {
  padding: 9rem 2.5rem;
  background: linear-gradient(180deg, var(--paper-warm), var(--bg));
  border-top: 1px solid var(--border);
}

.process-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 5rem;
}
.process-head h2 { margin-bottom: 1.5rem; }
.process-head p { color: var(--text-muted); font-size: 1.1rem; font-style: italic; }

.process-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: process;
}
.process-step {
  position: relative;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.process-step::before {
  counter-increment: process;
  content: counter(process, upper-roman) ".";
  position: absolute;
  top: -1.5rem;
  left: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--gold);
  background: var(--bg);
  padding-right: 1rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.process-step h4 {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1rem;
  font-weight: 500;
}
.process-step p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* =============================================
   CTA BAND (final invitation)
   ============================================= */
.cta-band {
  padding: 8rem 2.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(184, 149, 106, 0.12), transparent 70%),
    var(--bg);
  position: relative;
}
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.cta-band::before { top: 4rem; }
.cta-band::after { bottom: 4rem; }

.cta-band .eyebrow { margin-bottom: 2rem; display: block; color: var(--gold-dk); }
.cta-band h2 {
  font-style: italic;
  margin-bottom: 1.5rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-band-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

/* =============================================
   PROJECT DETAIL PAGE
   ============================================= */
.detail-wrap {
  padding-top: 6rem;
  display: grid;
  grid-template-columns: 1fr 500px;
  min-height: 100vh;
  gap: 0;
}

.viewer {
  position: sticky;
  top: 5rem;
  height: calc(100vh - 5rem);
  background:
    radial-gradient(ellipse at center, rgba(237, 185, 151, 0.16), transparent 65%),
    var(--bg-elev);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.viewer canvas { width: 100% !important; height: 100% !important; display: block; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }

.viewer-overlay {
  position: absolute;
  top: 1.8rem; left: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  pointer-events: none;
  z-index: 5;
}
.viewer-overlay > * { pointer-events: auto; }

.viewer-chip {
  background: rgba(255, 251, 242, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-bright);
  padding: 0.5rem 1rem;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--maroon);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.viewer-controls {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-bright);
  padding: 0.4rem;
  z-index: 5;
  box-shadow: var(--shadow-1);
}
.viewer-controls button {
  width: 38px; height: 38px;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.2s;
}
.viewer-controls button:hover { background: var(--accent-soft); color: var(--maroon); }
.viewer-controls button.active { background: var(--maroon); color: var(--paper); }

/* =============================================
   FLOOR PLAN OVERLAY (Top-Down Floor View)
   ============================================= */
.floor-plan-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 251, 242, 0.96) 0%, rgba(244, 236, 216, 0.95) 100%);
  z-index: 20;
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.floor-plan-overlay.show {
  display: flex;
  opacity: 1;
}

.fp-frame {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-bright);
  background: var(--paper);
  position: relative;
  box-shadow: var(--shadow-2);
  min-height: 0;
}
.fp-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold);
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

.fp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.fp-exit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--maroon);
  background: transparent;
  border: 1px solid var(--maroon);
  cursor: pointer;
  transition: all 0.2s;
}
.fp-exit:hover {
  background: var(--maroon);
  color: var(--paper);
}

.fp-title {
  text-align: center;
  flex: 1;
}
.fp-title .fp-num {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--gold-dk);
  display: block;
}
.fp-title .fp-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: -0.015em;
  display: block;
  margin-top: 2px;
}

.fp-legend {
  display: flex;
  gap: 1rem;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.fp-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.fp-legend .dot {
  width: 8px; height: 8px;
  display: inline-block;
  border-radius: 2px;
}
.fp-legend .dot.avail { background: var(--green); }
.fp-legend .dot.reserved { background: var(--orange); }
.fp-legend .dot.sold { background: var(--red); }

.fp-svg {
  flex: 1;
  width: 100%;
  height: 100%;
  display: block;
  padding: 1rem;
  position: relative;
  z-index: 2;
  min-height: 0;
}

.fp-unit { transition: opacity 0.2s; }
.fp-unit:hover .fp-unit-rect {
  stroke-width: 2.5;
  filter: drop-shadow(0 4px 12px rgba(107, 25, 40, 0.18));
}
.fp-unit.sold { cursor: not-allowed; }
.fp-unit.sold .fp-unit-rect {
  opacity: 0.6;
}

.fp-footer {
  padding: 0.7rem 1.4rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Floor plan toggle bar, flat, compact, single-row */
.floor-action-bar {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(135deg, var(--bg-card-2), var(--paper-warm));
  border: 1px solid var(--gold);
  position: relative;
  gap: 0.8rem;
  min-width: 0;
}
.floor-action-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--maroon);
  position: relative;
  letter-spacing: -0.005em;
  /* Allow the text to shrink/ellipsis if a long floor name like "Floor 24 · Sky Residences"
     would otherwise push the button outside the bar's border */
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.floor-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--maroon);
  color: var(--paper);
  border: 1px solid var(--maroon-dk);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}
.floor-action-btn:hover {
  background: var(--maroon-dk);
  box-shadow: 0 4px 12px rgba(107, 25, 40, 0.28);
}
.floor-action-btn .fa-icon { display: inline-flex; align-items: center; }

.viewer-floor-label {
  position: absolute;
  top: 50%; right: 2.5rem;
  transform: translateY(-50%);
  text-align: right;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.viewer-floor-label.show { opacity: 1; }
.viewer-floor-label .vfl-num {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  color: var(--gold-dk);
  text-transform: uppercase;
}
.viewer-floor-label .vfl-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--maroon);
  margin-top: 0.4rem;
  letter-spacing: -0.02em;
}

.panel {
  background: var(--paper);
  height: calc(100vh - 5rem);
  position: sticky;
  top: 5rem;
  overflow-y: auto;
  padding: 2.5rem 2.5rem 6rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border-bright) transparent;
  border-left: 1px solid var(--border);
}
.panel::-webkit-scrollbar { width: 4px; }
.panel::-webkit-scrollbar-track { background: transparent; }
.panel::-webkit-scrollbar-thumb { background: var(--border-bright); }

.crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
}
.crumb a:hover { color: var(--maroon); }
.crumb-sep { color: var(--gold); }

.panel-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.8rem;
  display: block;
}

.panel h1 {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-style: italic;
  margin-bottom: 0.6rem;
  color: var(--text-strong);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.panel-sub {
  color: var(--gold-dk);
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.tab {
  padding: 1rem 1.1rem 1rem 0;
  margin-right: 1.8rem;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
}
.tab.active { color: var(--maroon); border-color: var(--maroon); }
.tab:hover { color: var(--maroon); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  padding: 1.2rem 1.4rem;
}
.stat-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: -0.015em;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: block;
}

.master-dial {
  background: linear-gradient(135deg, var(--bg-card-2), var(--paper));
  border: 1px solid var(--border-bright);
  padding: 1.6rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: var(--shadow-soft);
}
.dial-wrap { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.dial-svg { transform: rotate(-90deg); width: 100%; height: 100%; display: block; }
.dial-bg { fill: none; stroke: var(--border-bright); stroke-width: 5; opacity: 0.4; }
.dial-fg {
  fill: none;
  stroke: url(#dialGradient);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.4s var(--ease-snap);
}
.dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dial-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--maroon);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dial-lab {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.master-dial-info { flex: 1; }
.master-dial-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  font-style: italic;
}
.master-dial-info p { font-size: 0.9rem; color: var(--text-muted); font-style: italic; }
.master-dial-info .counts {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.floor-list { display: flex; flex-direction: column; gap: 0.4rem; }
.floor-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.95rem 1.1rem;
  display: grid;
  grid-template-columns: 56px 1fr 84px 50px;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-align: left;
  width: 100%;
}
.floor-item:hover { border-color: var(--gold); background: var(--paper); transform: translateX(4px); }
.floor-item.active {
  border-color: var(--maroon);
  background: linear-gradient(90deg, rgba(107, 25, 40, 0.10), rgba(184, 149, 106, 0.04));
  box-shadow: -4px 0 0 0 var(--maroon) inset;
}
.floor-item.active .floor-num strong { color: var(--maroon-dk); }
.floor-item.active .floor-name { color: var(--maroon-dk); }
.floor-item.active .mini-dial-txt { color: var(--maroon-dk); }

.floor-num {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.floor-num strong {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--maroon);
  line-height: 1;
  letter-spacing: -0.02em;
}
.floor-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-strong);
  font-weight: 500;
}
.floor-name span {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.25rem;
  font-style: normal;
}
.floor-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: right;
  letter-spacing: -0.005em;
}

.mini-dial { width: 44px; height: 44px; position: relative; }
.mini-dial svg { transform: rotate(-90deg); width: 100%; height: 100%; display: block; }
.mini-dial .md-bg { fill: none; stroke: var(--border-bright); stroke-width: 3.5; opacity: 0.5; }
.mini-dial .md-fg {
  fill: none;
  stroke: var(--green);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease-snap);
}
.mini-dial.low .md-fg { stroke: var(--orange); }
.mini-dial.gone .md-fg { stroke: var(--red); }
.mini-dial-txt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: -0.02em;
}

.units-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  margin-top: 1.8rem;
}
.units-head h4 { font-size: 1.2rem; font-style: italic; font-family: var(--font-display); font-weight: 500; }
.legend {
  display: flex;
  gap: 0.9rem;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.legend-item { display: flex; align-items: center; gap: 0.35rem; color: var(--text-dim); }
.legend-dot { width: 8px; height: 8px; border-radius: 1px; }
.legend-dot.avail { background: var(--green); }
.legend-dot.sold { background: var(--red); }
.legend-dot.reserved { background: var(--orange); }

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: 0.4rem;
}

.unit {
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
}
.unit.avail {
  background: rgba(107, 142, 112, 0.09);
  border-color: rgba(107, 142, 112, 0.35);
  color: var(--green);
}
.unit.avail:hover {
  background: rgba(107, 142, 112, 0.2);
  border-color: var(--green);
  transform: scale(1.05);
}
.unit.sold {
  background: rgba(184, 90, 74, 0.05);
  border-color: rgba(184, 90, 74, 0.18);
  color: rgba(184, 90, 74, 0.4);
  cursor: not-allowed;
}
.unit.reserved {
  background: rgba(201, 166, 107, 0.12);
  border-color: rgba(201, 166, 107, 0.4);
  color: var(--gold-dk);
}
.unit.reserved:hover {
  background: rgba(201, 166, 107, 0.22);
}

.unit-detail {
  background: linear-gradient(135deg, var(--bg-card-2), var(--paper));
  border: 1px solid var(--gold);
  padding: 1.6rem;
  margin-top: 1.2rem;
  display: none;
  box-shadow: var(--shadow-1);
  position: relative;
}
.unit-detail.show { display: block; animation: fadeIn 0.4s var(--ease); }
.unit-detail::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  opacity: 0.4;
  pointer-events: none;
}

.unit-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.unit-detail-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -0.015em;
}
.unit-detail-status {
  padding: 0.3rem 0.8rem;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.unit-detail-status.avail { background: rgba(107, 142, 112, 0.15); color: var(--green); }
.unit-detail-status.sold { background: rgba(184, 90, 74, 0.15); color: var(--red); }
.unit-detail-status.reserved { background: rgba(201, 166, 107, 0.18); color: var(--gold-dk); }

.unit-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  position: relative;
}
.unit-spec { background: var(--paper); padding: 0.9rem; border: 1px solid var(--border); }
.unit-spec-val {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: -0.01em;
}
.unit-spec-lab {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.floorplan {
  background: var(--bg);
  border: 1px solid var(--border);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.2rem;
}
.floorplan svg { width: 92%; height: 92%; }

.unit-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--maroon);
  margin-bottom: 1.2rem;
  letter-spacing: -0.025em;
  position: relative;
}

/* Unit detail action row, See View + Request Tour buttons */
.unit-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.5rem;
  position: relative;
}
.unit-cta-row .btn {
  width: 100%;
  justify-content: center;
  padding: 0.95rem 0.8rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* View Mode indicator (over the 3D viewer when "See View" is active) */
.view-mode-indicator {
  position: absolute;
  top: 1.6rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem 0.7rem 1.3rem;
  background: rgba(8, 6, 4, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid var(--gold);
  color: #FFFBF2;
  animation: vmiAppear 0.5s var(--ease);
}
@keyframes vmiAppear {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.vmi-label { display: flex; flex-direction: column; line-height: 1.2; }
.vmi-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.vmi-label strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: #FFFBF2;
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.vmi-floor {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.7);
  margin-top: 2px;
}
.vmi-exit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--maroon-dk);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.vmi-exit:hover {
  background: var(--gold-2);
}

.amen-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}
.amen {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 0.75rem 0.95rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}
.amen::before { content: '✦'; color: var(--gold); font-style: normal; font-size: 0.65rem; }

.map-wrap {
  height: 360px;
  overflow: hidden;
  border: 1px solid var(--border-bright);
  background: var(--bg-card);
  margin-bottom: 1.2rem;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.address-line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.address-line span:first-child { color: var(--gold); font-style: normal; }

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 500px;
  background: linear-gradient(180deg, transparent, var(--bg) 50%);
  padding: 2rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  pointer-events: none;
}
.sticky-cta > * { pointer-events: auto; }

.sticky-cta-inner {
  background: rgba(255, 251, 242, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold);
  padding: 0.7rem 0.7rem 0.7rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  box-shadow: var(--shadow-2);
}
.sticky-cta-txt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
}
.sticky-cta-txt strong { color: var(--maroon); font-weight: 500; }

/* =============================================
   SCHEDULE PAGE
   ============================================= */
.schedule-wrap {
  padding-top: 7rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4rem;
}

.schedule-card {
  width: 100%;
  max-width: 780px;
  background: linear-gradient(135deg, var(--paper), var(--bg-card-2));
  border: 1px solid var(--border-bright);
  padding: 3.5rem;
  margin: 0 2rem;
  position: relative;
  box-shadow: var(--shadow-2);
}
.schedule-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

.progress-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.progress-step {
  flex: 1;
  height: 2px;
  background: var(--border-bright);
  opacity: 0.4;
  position: relative;
  overflow: hidden;
  transition: opacity 0.3s;
}
.progress-step.done { background: var(--maroon); opacity: 1; }
.progress-step.current { opacity: 1; }
.progress-step.current::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--maroon);
  animation: progressFill 0.6s var(--ease) forwards;
  transform-origin: left;
}
@keyframes progressFill { from { transform: scaleX(0); } to { transform: scaleX(0.5); } }

.step-num {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  color: var(--gold-dk);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  display: inline-block;
  position: relative;
}
.step-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 500;
  margin-bottom: 0.6rem;
  color: var(--text-strong);
  letter-spacing: -0.025em;
  line-height: 1.05;
  position: relative;
}
.step-sub {
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 2.2rem;
  font-size: 1.15rem;
  position: relative;
}

.step-content { display: none; position: relative; }
.step-content.active { display: block; animation: fadeIn 0.4s var(--ease); }

.section-lab {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.9rem;
  display: block;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.option {
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: left;
  font-family: inherit;
  width: 100%;
}
.option:hover { border-color: var(--gold); background: var(--bg-card-2); }
.option.selected {
  border-color: var(--maroon);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--maroon);
}
.option-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.option-meta {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cal {
  background: var(--paper);
  border: 1px solid var(--border-bright);
  padding: 1.6rem;
  margin-bottom: 1rem;
}
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-month {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: -0.02em;
}
.cal-nav { display: flex; gap: 0.3rem; }
.cal-nav button {
  width: 34px; height: 34px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cal-nav button:hover { color: var(--maroon); border-color: var(--maroon); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
}
.cal-day-head {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.4rem 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
}
.cal-day:hover:not(:disabled) {
  background: var(--bg-card-2);
  border-color: var(--gold);
}
.cal-day.selected {
  background: var(--maroon);
  color: var(--paper);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(107, 25, 40, 0.25);
}
.cal-day.other { color: var(--text-dim); opacity: 0.3; }
.cal-day:disabled { cursor: not-allowed; color: var(--text-dim); opacity: 0.4; }

.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.slot {
  padding: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--border);
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  color: var(--text);
}
.slot:hover { border-color: var(--gold); }
.slot.selected { background: var(--accent-soft); border-color: var(--maroon); color: var(--maroon); }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--border);
  padding: 0.95rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--maroon);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--text-dim);
  font-style: italic;
  font-family: var(--font-display);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.step-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.success { text-align: center; padding: 2rem 0; position: relative; }
.success-icon {
  width: 90px; height: 90px;
  margin: 0 auto 1.8rem;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--maroon);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  position: relative;
  animation: popIn 0.6s var(--ease-snap);
}
.success-icon::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid var(--gold);
  opacity: 0.5;
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }

.success h2 { margin-bottom: 0.8rem; font-style: italic; }
.success p { color: var(--text-muted); margin-bottom: 1.5rem; font-style: italic; font-family: var(--font-display); font-size: 1.15rem; }

.confirmation-card {
  background: var(--paper);
  border: 1px solid var(--border-bright);
  padding: 1.5rem 1.8rem;
  margin: 2rem 0;
  text-align: left;
}
.confirmation-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.confirmation-row:last-child { border: none; }
.confirmation-row span:first-child {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.confirmation-row span:last-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  margin-top: 0;
  padding: 5rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--paper-warm);
}
.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand-block .brand { margin-bottom: 1.2rem; }
.footer-brand-block p {
  max-width: 320px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  font-style: italic;
}
.footer h4 {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer a { color: var(--text-muted); font-size: 1rem; font-style: italic; font-family: var(--font-display); }
.footer a:hover { color: var(--maroon); }

.footer-bottom {
  max-width: 1480px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-legal {
  max-width: 720px;
  line-height: 1.9;
}

/* =============================================
   FEATURED LISTINGS (on hub)
   ============================================= */
.featured-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1320px;
  margin: 0 auto;
}
.fl-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}
.fl-card:hover { transform: translateY(-6px); }
.fl-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-card-2);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s var(--ease);
}
.fl-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,6,4,0.0) 35%, rgba(8,6,4,0.85) 100%);
  z-index: 1;
}
.fl-image::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 251, 242, 0.45);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.fl-card:hover .fl-image { border-color: var(--gold); }
.fl-card:hover .fl-image::after { opacity: 1; }
.fl-tag {
  position: absolute;
  top: 1.2rem; left: 1.2rem;
  padding: 0.35rem 0.75rem;
  background: var(--gold);
  color: var(--maroon-dk);
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  z-index: 3;
}
.fl-overlay {
  position: absolute;
  left: 1.6rem; right: 1.6rem; bottom: 1.6rem;
  z-index: 3;
  color: #FFFBF2;
}
.fl-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 2.4vw, 2.1rem);
  font-weight: 500;
  color: #FFFBF2;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.fl-price .cur { color: var(--gold-2); opacity: 0.95; }
.fl-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: #FFFBF2;
  margin-bottom: 0.35rem;
  line-height: 1.15;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}
.fl-addr {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.85);
  margin-bottom: 0.7rem;
}
.fl-specs {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 251, 242, 0.85);
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 251, 242, 0.3);
}

/* =============================================
   LISTING DETAIL PAGE
   ============================================= */
.listing-page { padding-top: 5rem; }

.listing-hero-img {
  width: 100%;
  height: 65vh;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: var(--bg-card-2);
}
.listing-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,6,4,0.15) 0%, transparent 30%, rgba(8,6,4,0.45) 100%);
}
.listing-hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem;
  z-index: 2;
  color: #FFFBF2;
}
.listing-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.listing-hero-left .crumb {
  color: rgba(255, 251, 242, 0.85);
  margin-bottom: 1rem;
}
.listing-hero-left .crumb a { color: rgba(255, 251, 242, 0.85); }
.listing-hero-left .crumb a:hover { color: var(--gold-2); }
.listing-hero-left .crumb-sep { color: var(--gold-2); }
.listing-hero-left h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: #FFFBF2;
  letter-spacing: -0.025em;
  margin-bottom: 0.4rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.listing-hero-left .addr {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 251, 242, 0.9);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.listing-hero-right {
  text-align: right;
}
.listing-hero-right .hero-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 500;
  color: #FFFBF2;
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.4rem;
}
.listing-hero-right .hero-price .cur { color: var(--gold-2); }
.listing-hero-right .hero-status {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.listing-content {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.listing-main h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.listing-section { margin-bottom: 3rem; }
.listing-section .eyebrow { display: block; margin-bottom: 1rem; }
.listing-section p {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
}

.listing-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.spec-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.spec-block-val {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: -0.02em;
  line-height: 1;
}
.spec-block-lab {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.feature-item {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.feature-item::before {
  content: '✦';
  color: var(--gold);
  font-style: normal;
  font-size: 0.7rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.gallery-thumb {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card-2);
  cursor: pointer;
  transition: transform 0.3s var(--ease);
  border: 1px solid var(--border);
}
.gallery-thumb:hover { transform: scale(1.02); border-color: var(--gold); }

.listing-aside {
  position: sticky;
  top: 6rem;
}
.contact-card {
  background: linear-gradient(135deg, var(--paper), var(--bg-card-2));
  border: 1px solid var(--border-bright);
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-1);
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--gold);
  opacity: 0.5;
  pointer-events: none;
}
.contact-card-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.8rem;
  position: relative;
}
.contact-card h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  position: relative;
}
.contact-card .role {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold-dk);
  margin-bottom: 1.5rem;
  position: relative;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  position: relative;
}
.contact-row:last-of-type { border-bottom: none; margin-bottom: 1rem; }
.contact-row:hover { color: var(--maroon); }
.contact-row .lab {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dk);
  width: 70px;
  font-style: normal;
}

.listing-map {
  height: 280px;
  border: 1px solid var(--border-bright);
  margin-bottom: 2rem;
  overflow: hidden;
  /* Contain Leaflet's internal z-indexes so they stay below the fixed nav. */
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.listing-map .leaflet-tile-pane { filter: sepia(0.18) saturate(0.85) brightness(1.02); }
.listing-map .leaflet-control-attribution { background: rgba(255, 251, 242, 0.9) !important; color: var(--text-muted) !important; font-size: 10px !important; }
.listing-map .leaflet-control-zoom a { background: var(--paper) !important; color: var(--maroon) !important; border-color: var(--border-bright) !important; }

/* =============================================
   LISTINGS PAGE
   ============================================= */
.listings-hero {
  padding: 9rem 2.5rem 4rem;
  text-align: center;
  position: relative;
}
.listings-hero h1 {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}
.listings-hero h1 em { color: var(--maroon); }
.listings-hero p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.filter-bar {
  max-width: 1320px;
  margin: 0 auto 3rem;
  padding: 1.5rem 2rem;
  background: var(--paper);
  border: 1px solid var(--border-bright);
  position: relative;
  box-shadow: var(--shadow-soft);
}
.filter-bar::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  opacity: 0.4;
  pointer-events: none;
}
.filter-bar-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem 1.2rem;
  align-items: end;
}
.filter-field { display: flex; flex-direction: column; gap: 0.4rem; }
.filter-field label {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dk);
}
.filter-field select, .filter-field input {
  background: var(--paper-warm);
  border: 1px solid var(--border);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23B8956A' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}
.filter-field select:focus, .filter-field input:focus {
  outline: none;
  border-color: var(--maroon);
}
.filter-reset {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--maroon);
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--maroon);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  grid-column: 1 / -1;
  justify-self: end;
}
.filter-reset:hover { background: var(--maroon); color: var(--paper); }

.results-bar {
  max-width: 1320px;
  margin: 0 auto 2rem;
  padding: 0 2.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.results-count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}
.results-count strong {
  color: var(--maroon);
  font-weight: 600;
  font-size: 1.4rem;
}
.results-sort {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  outline: none;
  padding: 0.1rem 0.2rem;
  appearance: auto;
}
.results-sort:focus { outline: none; color: var(--maroon); }

.listings-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2.5rem 6rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2rem;
}

/* For Sale / For Rent section divider inside the listings grid */
.listings-section-header {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.listings-section-header:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0.5rem;
}
.listings-section-header .eyebrow {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dk);
}
.listings-section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  color: var(--maroon);
  margin: 0;
}
.listings-section-count {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}
.listing-price-suffix {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.listing-card {
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  transition: transform 0.5s var(--ease);
}
.listing-card:hover { transform: translateY(-5px); }

.listing-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-card-2);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--ease);
  isolation: isolate;
}
.listing-card:hover .listing-image { border-color: var(--gold); }
.listing-image::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Lightened bottom shroud — photo stays bright, just enough darkening
     under the price/title so the white text stays legible */
  background: linear-gradient(180deg, rgba(8, 6, 4, 0.0) 65%, rgba(8, 6, 4, 0.32) 100%);
  z-index: 1;
}
.listing-image::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 251, 242, 0.4);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.listing-card:hover .listing-image::after { opacity: 1; }

.listing-status {
  position: absolute;
  top: 1rem; left: 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--maroon);
  color: var(--paper);
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 3;
}
.listing-mls {
  position: absolute;
  top: 1rem; right: 1rem;
  padding: 0.3rem 0.6rem;
  background: rgba(8, 6, 4, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 251, 242, 0.25);
  color: rgba(255, 251, 242, 0.95);
  font-family: var(--font-caps);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 3;
}
.listing-tag {
  position: absolute;
  bottom: 1rem; left: 1rem;
  padding: 0.3rem 0.7rem;
  background: var(--gold);
  color: var(--maroon-dk);
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 3;
}

.listing-info {
  padding: 1.4rem 0 0;
}
.listing-price {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 2vw, 1.9rem);
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
/* "From" prefix on development summary cards (price is the lowest unit). */
.listing-price .from-label {
  font-family: var(--font-caps);
  font-style: normal;
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  vertical-align: 0.25em;
  margin-right: 0.15em;
}
.listing-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-strong);
  margin-bottom: 0.3rem;
  line-height: 1.3;
  font-weight: 500;
}
.listing-addr {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.listing-specs {
  display: flex;
  gap: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}
.listing-spec { display: flex; align-items: center; gap: 0.35rem; }
.listing-spec strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  color: var(--maroon);
  letter-spacing: -0.005em;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text-muted);
}
.no-results::before {
  content: '✦';
  display: block;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-style: normal;
}

/* =============================================
   REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  /* Safety net: if the IntersectionObserver in hub.js ever fails to attach
     (third-party script crash, browser quirk, etc.), every .reveal still
     auto-reveals after 1.5s instead of staying invisible forever. */
  animation: reveal-fallback 0.6s ease-out 1.5s forwards;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  animation: none;
}
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  /* MOBILE LAYOUT (Residences tab default):
     - viewer top-left, panel-top top-right (spans 2 rows)
     - panel-units below model on left (Residences only)
     - panel-bottom full-width below (unit detail + other tab contents)
     - .panel uses display: contents so its children promote to grid items */
  .detail-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "viewer panel-top"
      "panel-units panel-top"
      "panel-bottom panel-bottom";
    align-items: start;
    gap: 0;
  }
  /* Non-Residences tabs collapse the panel-units row */
  body:not([data-active-tab="floors"]) .detail-wrap {
    grid-template-areas:
      "viewer panel-top"
      "panel-bottom panel-bottom";
  }
  body:not([data-active-tab="floors"]) .panel-units { display: none; }

  .viewer {
    grid-area: viewer;
    position: sticky;
    top: 70px;
    height: 56vh;
    min-height: 340px;
    max-height: 520px;
    z-index: 5;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 0.7rem;
  }
  .panel { display: contents; }
  .panel-top {
    grid-area: panel-top;
    padding: 0.9rem 0.85rem 1rem;
    overflow: hidden;
    min-width: 0;
    background: var(--paper);
    align-self: stretch;
  }
  .panel-units {
    grid-area: panel-units;
    padding: 0.9rem 0.7rem 1rem;
    border-right: 1px solid var(--border);
    background: var(--paper);
    min-width: 0;
    align-self: stretch;
  }
  .panel-bottom {
    grid-area: panel-bottom;
    padding: 1.6rem 1.4rem 5rem;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, var(--paper-warm), var(--paper));
  }
  .sticky-cta { right: 0; }
  /* Tabs more compact in narrower panel */
  .tab { padding: 0.85rem 0.5rem; margin-right: 1.2rem; }
  /* Title fits on one line, scales down with viewport */
  .panel-top h1 {
    font-size: clamp(0.85rem, 3.9vw, 1.45rem) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    margin-bottom: 0.2rem;
  }
  .panel-top .panel-sub {
    font-size: 0.72rem;
    margin-bottom: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sticky-cta { right: 0; }
  .featured-spread { grid-template-columns: 1fr; gap: 3rem; }
  .realtor-card { grid-template-columns: 1fr; gap: 3rem; }
  .realtor-portrait { max-width: 360px; margin: 0 auto; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-listings-grid { grid-template-columns: 1fr 1fr; }
  .listing-content { grid-template-columns: 1fr; gap: 3rem; }
  .listing-aside { position: relative; top: 0; }
  .listing-specs-grid { grid-template-columns: repeat(2, 1fr); }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-bar-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-reset { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .container, .container-narrow, .container-wide { padding: 0 1.4rem; }
  .nav { padding: 1rem 1.4rem; }
  .nav-links { display: none; }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 1.5rem 1.4rem;
    gap: 1.3rem;
    border-bottom: 1px solid var(--border);
  }
  .hero { padding: 0; min-height: 640px; height: 100vh; }
  .hero-inner { padding: 0 1.4rem 3.5rem; }
  .featured-chapter, .realtor-section, .process-section, .cta-band, .vision { padding-left: 1.4rem; padding-right: 1.4rem; padding-top: 5rem; padding-bottom: 5rem; }
  .featured-headline { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .featured-spread { gap: 2.5rem; }
  .theater { aspect-ratio: 4/5; }
  .project-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .featured-listings-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .listing-content { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.4rem; }
  .listing-aside { position: relative; top: 0; }
  .listing-specs-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .listing-hero-overlay { padding: 1.5rem 1.4rem; }
  .listing-hero-inner { flex-direction: column; align-items: flex-start; }
  .listing-hero-right { text-align: left; }
  .listings-grid { grid-template-columns: 1fr; gap: 2.5rem; padding: 0 1.4rem 4rem; }
  .filter-bar { padding: 1rem 1.2rem; margin: 0 1.4rem 2rem; }
  .filter-bar-grid { grid-template-columns: 1fr 1fr; }
  .filter-reset { grid-column: 1 / -1; justify-self: end; }
  .results-bar { padding: 0 1.4rem; }
  .hero-meta { flex-wrap: wrap; gap: 1.5rem 2.5rem; padding-top: 1.5rem; margin-top: 2rem; }
  .hero-scroll { display: none; }
  .section { padding: 5rem 0; }
  .schedule-card { padding: 2.2rem 1.4rem; }
  .field-row { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }
  .panel { padding: 1.8rem 1.4rem 6rem; }
  .process-list { grid-template-columns: 1fr; }
  .chapter-mark::before, .chapter-mark::after { max-width: 80px; }
  .vision-quote::before, .vision-quote::after { font-size: 2.5rem; }
  .press-strip-inner { gap: 0.8rem 1.5rem; }
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: var(--paper);
  border: 1px solid var(--border-bright);
  color: var(--maroon);
  align-items: center;
  justify-content: center;
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
}

/* =============================================
   MOBILE, extra polish for small screens
   ============================================= */
@media (max-width: 700px) {
  /* Nav becomes solid on mobile so it never overlays hero content underneath */
  .nav, .nav.transparent, .nav.scrolled {
    background: rgba(249, 245, 236, 0.97) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .nav.transparent .brand-name { color: var(--maroon); }
  .nav.transparent .brand-tag { color: var(--gold-dk); }
  .nav.transparent .nav-links a { color: var(--text-muted); }
  .nav.transparent .nav-links a:hover,
  .nav.transparent .nav-links a.active { color: var(--maroon); }
  .nav.transparent .nav-links a.active::after { background: var(--gold); }
  /* Hide the Request Appointment CTA in nav on mobile, accessible via hamburger > Schedule */
  .nav .btn-primary { display: none; }

  /* Hero: top-anchored on mobile so content can't crash into the nav */
  .hero {
    padding: 6rem 0 2.5rem;
    height: auto;
    min-height: 100vh;
    align-items: flex-start; /* anchor top instead of bottom */
  }
  .hero-inner { padding: 0 1.4rem; width: 100%; }

  /* Hero: tighter type, 2x2 stat grid */
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); margin-bottom: 1.3rem; }
  .hero-sub { font-size: 1.02rem; margin-bottom: 1.8rem; }
  /* Shorten eyebrow on mobile, long version wraps and gets clipped by nav */
  .hero-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    max-width: 100%;
    line-height: 1.4;
  }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; padding-top: 1.4rem; margin-top: 2rem; }
  .hero-meta-item strong { font-size: 1.5rem; }
  .hero-meta-item span { font-size: 0.55rem; letter-spacing: 0.2em; }
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .hero-ctas .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Section headings */
  h1, .step-title { font-size: clamp(2rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .chapter-mark { font-size: 0.6rem; letter-spacing: 0.32em; margin-bottom: 2rem; }
  .chapter-mark::before, .chapter-mark::after { max-width: 50px; }

  /* Featured listings: 1 col with adjusted spacing */
  .fl-overlay { left: 1.1rem; right: 1.1rem; bottom: 1.1rem; }
  .fl-price { font-size: 1.7rem; }
  .fl-title { font-size: 1.15rem; }
  .fl-specs { font-size: 0.85rem; padding-top: 0.5rem; }
  .fl-tag { top: 0.9rem; left: 0.9rem; font-size: 0.5rem; padding: 0.3rem 0.6rem; }

  /* Project cards: same treatment */
  .card-name-block { left: 1.1rem; right: 1.1rem; bottom: 1.1rem; }
  .card-name-block h3 { font-size: 1.4rem; }
  .card-name-block .loc { font-size: 0.9rem; margin-bottom: 0.7rem; }

  /* Featured chapter (Week's Whisper) */
  .featured-name { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .featured-tag { font-size: 1.05rem; margin-bottom: 1rem; }
  .featured-desc { font-size: 0.95rem; }
  .featured-specs { grid-template-columns: 1fr; gap: 0.8rem; padding: 1.2rem 0; }
  .featured-cta-row { flex-direction: column; gap: 0.7rem; }
  .featured-cta-row .btn { width: 100%; justify-content: center; }

  /* Vision section */
  .vision { padding: 5rem 1.4rem; }
  .vision-quote { font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.35; }

  /* Realtor card */
  .realtor-meta .name { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .realtor-meta .title-line { font-size: 1.05rem; margin-bottom: 1.4rem; }
  .realtor-meta .bio { font-size: 0.95rem; }
  .realtor-meta .pull { font-size: 1.15rem; padding-left: 1rem; }
  .realtor-meta .credentials { font-size: 0.55rem; line-height: 2; }

  /* Process */
  .process-step::before { font-size: 2rem; top: -1.1rem; }
  .process-step h4 { font-size: 0.65rem; }
  .process-step p { font-size: 1rem; }

  /* CTA band */
  .cta-band { padding: 5rem 1.4rem; }
  .cta-band-sub { font-size: 1.05rem; }

  /* Listings page */
  .listings-hero { padding: 7rem 1.4rem 2.5rem; }
  .listings-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .listings-hero p { font-size: 1rem; }
  .results-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 1.5rem; }
  .listing-card .listing-image { aspect-ratio: 4/4.5; }
  .listing-price { font-size: 1.6rem; }
  .listing-title { font-size: 1.05rem; }

  /* Filter bar */
  .filter-field select, .filter-field input { padding: 0.65rem 0.8rem; font-size: 0.9rem; }

  /* Listing detail page */
  .listing-hero-img { height: 50vh; min-height: 360px; }
  .listing-hero-overlay { padding: 1.5rem 1.4rem; }
  .listing-hero-left h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .listing-hero-left .addr { font-size: 1rem; }
  .listing-hero-right .hero-price { font-size: clamp(2rem, 9vw, 2.8rem); }
  .listing-content { padding: 2.5rem 1.4rem; gap: 2rem; }
  .listing-main h2 { font-size: 1.6rem; margin-bottom: 1rem; }
  .listing-section { margin-bottom: 2.2rem; }
  .listing-section p { font-size: 1rem; line-height: 1.7; }
  .listing-specs-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 1.4rem 0; }
  .spec-block-val { font-size: 1.45rem; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-item { font-size: 0.95rem; padding: 0.7rem 0.9rem; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.3rem; }
  .contact-card { padding: 1.6rem; }
  .contact-card h3 { font-size: 1.4rem; }

  /* Project detail page, narrow panel column (mobile 50/50 layout) */
  .panel h1 { font-size: 1.15rem; line-height: 1.05; margin-bottom: 0.3rem; }
  .panel-sub { font-size: 0.78rem; margin-bottom: 0.9rem; }
  .crumb { font-size: 0.45rem; letter-spacing: 0.16em; margin-bottom: 0.7rem; gap: 0.3rem; }
  .panel-eyebrow { font-size: 0.5rem; letter-spacing: 0.2em; margin-bottom: 0.4rem; }
  /* Master dial, compact horizontal layout in narrow column */
  .master-dial {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.8rem;
    text-align: left;
    margin-bottom: 0.9rem;
  }
  .dial-wrap { width: 56px; height: 56px; margin: 0; flex-shrink: 0; }
  .dial-num { font-size: 0.95rem; }
  .dial-lab { display: none; }
  .master-dial-info h3 { font-size: 0.82rem; margin-bottom: 0.15rem; }
  .master-dial-info p { font-size: 0.65rem; line-height: 1.35; }
  .master-dial-info .counts { font-size: 0.4rem; letter-spacing: 0.12em; margin-top: 0.25rem; }
  /* Tabs scroll horizontally, ultra-compact */
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 0.9rem; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; padding: 0.6rem 0.3rem; margin-right: 0.7rem; font-size: 0.46rem; letter-spacing: 0.18em; }
  /* Compact floor items, fixed height so they snap clean in the carousel */
  .floor-item {
    grid-template-columns: 26px 1fr 26px;
    gap: 0.35rem;
    padding: 0.4rem 0.45rem;
    height: 44px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  .floor-item .floor-price { display: none; }
  .floor-num { font-size: 0.38rem; letter-spacing: 0.14em; }
  .floor-num strong { font-size: 0.9rem; }
  .floor-name { font-size: 0.65rem; line-height: 1.1; }
  .floor-name span { display: none; }
  .mini-dial { width: 26px; height: 26px; }
  .mini-dial .md-bg, .mini-dial .md-fg { stroke-width: 3; }
  .mini-dial-txt { font-size: 0.6rem; }
  /* Floor list → windowed carousel: shows ~5 floors, scrolls internally with snap */
  .floor-list {
    max-height: 240px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
    background: var(--paper-warm);
    border: 1px solid var(--border-bright);
    padding: 4px;
    position: relative;
  }
  .floor-list::-webkit-scrollbar { display: none; }
  /* Beefier active state for the carousel, easier to spot which is selected */
  .floor-list .floor-item.active {
    background: linear-gradient(90deg, rgba(107, 25, 40, 0.15), rgba(184, 149, 106, 0.06));
    border-color: var(--maroon);
    box-shadow: 0 0 0 1px var(--maroon), -4px 0 0 0 var(--maroon) inset;
  }
  /* Floor action bar, single-line, compact */
  .floor-action-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    margin-top: 0.5rem;
  }
  .floor-action-text { font-size: 0.72rem; }
  .floor-action-btn { padding: 0.4rem 0.6rem; font-size: 0.45rem; letter-spacing: 0.14em; white-space: nowrap; }
  .floor-action-btn svg { width: 10px; height: 10px; }
  .floor-action-btn .fa-icon { display: inline-flex; }
  /* Units headings smaller */
  .units-head { margin-top: 1rem; margin-bottom: 0.55rem; flex-wrap: wrap; gap: 0.4rem; }
  .units-head h4 { font-size: 0.85rem; }
  .legend { font-size: 0.4rem; gap: 0.4rem; flex-wrap: wrap; letter-spacing: 0.14em; }
  /* Compact unit grid */
  .units-grid { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 0.25rem; }
  .unit { font-size: 0.6rem; min-height: 36px; letter-spacing: 0.05em; }
  /* Unit detail */
  .unit-detail { padding: 0.9rem; }
  .unit-detail-title { font-size: 1rem; }
  .unit-price { font-size: 1.4rem; margin-bottom: 0.65rem; }
  .unit-specs { grid-template-columns: repeat(3, 1fr); gap: 0.3rem; margin-bottom: 0.8rem; }
  .unit-spec { padding: 0.45rem 0.25rem; }
  .unit-spec-val { font-size: 0.8rem; }
  .unit-spec-lab { font-size: 0.4rem; letter-spacing: 0.14em; }
  .floorplan { height: 90px; margin-bottom: 0.8rem; }
  .unit-cta-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .unit-cta-row .btn { font-size: 0.46rem; padding: 0.65rem 0.5rem; letter-spacing: 0.12em; }
  .unit-cta-row .btn svg { width: 11px; height: 11px; }
  /* Stats grid in overview */
  .stats-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .stat-card { padding: 0.7rem 0.8rem; }
  .stat-num { font-size: 1.1rem; }
  .stat-label { font-size: 0.45rem; }
  .amen-list { grid-template-columns: 1fr; gap: 0.3rem; }
  .amen { font-size: 0.72rem; padding: 0.45rem 0.55rem; }
  /* Floor plan overlay sits over the small left viewer */
  .floor-plan-overlay { padding: 0.5rem; }
  .fp-frame::before { inset: 6px; }
  .fp-header { padding: 0.4rem 0.5rem; gap: 0.3rem; flex-wrap: wrap; }
  .fp-exit { padding: 0.35rem 0.5rem; font-size: 0.45rem; letter-spacing: 0.12em; }
  .fp-title .fp-num { font-size: 0.45rem; letter-spacing: 0.18em; }
  .fp-title .fp-name { font-size: 0.75rem; }
  .fp-legend { display: none; }
  .fp-footer { font-size: 0.42rem; padding: 0.4rem; }
  /* Viewer controls fit on narrow viewer */
  .viewer-controls { padding: 0.3rem; gap: 0.2rem; bottom: 0.6rem; }
  .viewer-controls button { width: 30px; height: 30px; }
  .viewer-overlay { top: 0.6rem; left: 0.6rem; gap: 0.4rem; }
  .viewer-chip { padding: 0.35rem 0.6rem; font-size: 0.5rem; letter-spacing: 0.16em; }
  .viewer-floor-label { right: 0.8rem; }
  .viewer-floor-label .vfl-num { font-size: 0.5rem; letter-spacing: 0.22em; }
  .viewer-floor-label .vfl-name { font-size: 1.4rem; margin-top: 0.2rem; }
  /* View mode indicator on narrow viewer */
  .view-mode-indicator { top: 0.5rem; left: 0.5rem; right: 0.5rem; transform: none; padding: 0.4rem 0.5rem 0.4rem 0.7rem; gap: 0.5rem; }
  .vmi-eyebrow { font-size: 0.42rem; letter-spacing: 0.2em; }
  .vmi-label strong { font-size: 0.78rem; }
  .vmi-floor { font-size: 0.4rem; letter-spacing: 0.14em; }
  .vmi-exit { padding: 0.4rem 0.55rem; font-size: 0.42rem; }

  /* Floor plan overlay on mobile */
  .floor-plan-overlay { padding: 0.8rem; }
  .fp-header { padding: 0.7rem 0.9rem; gap: 0.5rem; }
  .fp-exit { padding: 0.5rem 0.7rem; font-size: 0.55rem; letter-spacing: 0.18em; }
  .fp-title .fp-num { font-size: 0.55rem; letter-spacing: 0.24em; }
  .fp-title .fp-name { font-size: 1.05rem; }
  .fp-legend { display: none; }
  .fp-svg { padding: 0.4rem; }
  .fp-footer { font-size: 0.5rem; padding: 0.5rem; }

  /* View mode indicator */
  .view-mode-indicator { top: 0.8rem; left: 0.8rem; right: 0.8rem; transform: none; padding: 0.6rem 0.7rem 0.6rem 1rem; }
  .vmi-exit { padding: 0.5rem 0.7rem; }
  .vmi-label strong { font-size: 1rem; }

  /* Sticky CTA */
  .sticky-cta-inner { padding: 0.5rem 0.5rem 0.5rem 1.2rem; gap: 0.8rem; }
  .sticky-cta-txt { font-size: 0.9rem; }
  .sticky-cta-inner .btn { padding: 0.7rem 1rem; font-size: 0.6rem; }

  /* Viewer controls, bigger tap targets, less crowded */
  .viewer-controls { padding: 0.4rem; gap: 0.3rem; }
  .viewer-controls button { width: 36px; height: 36px; }

  /* Schedule */
  .schedule-card { padding: 2rem 1.3rem; }
  .step-title { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .cal { padding: 1rem; }
  .cal-day { font-size: 0.85rem; }
  .time-slots { grid-template-columns: 1fr 1fr; }

  /* Press strip, make it scrollable on mobile */
  .press-strip-inner { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 0; padding: 0 1.4rem; scrollbar-width: none; }
  .press-strip-inner::-webkit-scrollbar { display: none; }
  .press-strip-item { white-space: nowrap; padding: 0 1rem; flex-shrink: 0; }
  .press-strip-item:not(:last-child)::after { display: none; }
  .press-strip-label { white-space: nowrap; padding-right: 1rem; flex-shrink: 0; }

  /* Currency toggle, shrink a touch */
  .currency-toggle { padding: 0.5rem 0.6rem; font-size: 0.55rem; min-width: 56px; }
  .currency-toggle::before { font-size: 0.8rem; }

  /* Nav padding tighter on very small */
  .nav { padding: 0.85rem 1rem; }
  .brand { gap: 0.7rem; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-mark::after { font-size: 1rem; }
  .brand-name { font-size: 0.7rem; letter-spacing: 0.24em; }
  .brand-tag { font-size: 0.42rem; letter-spacing: 0.26em; }

  /* CTA in nav: smaller or icon-only on phones */
  .nav .btn-primary { padding: 0.7rem 0.9rem; font-size: 0.55rem; letter-spacing: 0.16em; }

  /* Process list */
  .process-step { padding-top: 2.5rem; }
}

/* Extra-small phones, under 400px */
@media (max-width: 400px) {
  .nav-inner > div { gap: 0.4rem !important; }
  .nav .btn-primary { display: none; }
  .currency-toggle { padding: 0.5rem 0.55rem; min-width: 50px; }
  .hero h1 { font-size: 2.4rem; }
  /* Even tighter panel padding on tiny phones, keep 50/50 split, panel content already minimized */
  .panel { padding: 0.85rem 0.65rem 4rem; }
  .floor-list { max-height: 200px; }
  .master-dial { padding: 0.55rem 0.65rem; gap: 0.55rem; }
  .dial-wrap { width: 48px; height: 48px; }
  .dial-num { font-size: 0.85rem; }
  .master-dial-info h3 { font-size: 0.72rem; }
  .master-dial-info p { font-size: 0.6rem; }
}

/* =============================================
   PROJECT DETAIL, Unit Stream View
   Hero, stats, fade-on-scroll unit cards
   ============================================= */

.project-hero {
  padding: 8rem 5vw 4rem;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border);
}
.ph-inner { max-width: 1100px; margin: 0 auto; }
.ph-crumb {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.ph-crumb a { color: var(--maroon); text-decoration: none; }
.ph-crumb a:hover { color: var(--maroon-dk); }
.ph-crumb-sep { color: var(--gold); opacity: 0.5; }
.ph-eyebrow {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 1rem;
}
.project-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.8rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
}
.ph-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--maroon);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}
.ph-desc {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 720px;
  margin-bottom: 2.4rem;
}
.ph-meta { display: flex; gap: 1rem; flex-wrap: wrap; }

.project-stats {
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 5vw;
}
.ps-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}
.ps-stat {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.4rem;
}
.ps-stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  color: var(--maroon);
  line-height: 1;
}
.ps-stat strong .cur {
  font-size: 0.6em;
  color: var(--gold-dk);
  margin-right: 0.1em;
  font-style: italic;
}
.ps-stat span {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .ps-inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .ps-stat:nth-child(5) { grid-column: span 2; }
}

/* Unit stream container */
.unit-stream {
  padding: 5rem 5vw;
  max-width: 1100px;
  margin: 0 auto;
}
.us-head { text-align: center; margin-bottom: 4rem; }
.us-eyebrow {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dk);
}
.us-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  margin: 0.5rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.us-head h2 em { font-style: italic; color: var(--maroon); }
.us-head p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.us-list { display: flex; flex-direction: column; gap: 1rem; }

.us-empty {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-card);
  border: 1px dashed var(--border-bright);
  border-radius: var(--r);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
}
.us-empty a { color: var(--maroon); }

/* The card itself, this is where the fade lives */
.us-card {
  display: grid;
  grid-template-columns: 140px 1fr 220px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;

  /* The fade, initial faded state for non-top cards */
  opacity: 0.22;
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.35s var(--ease-snap),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}
.us-card.us-bright { opacity: 1; }
.us-card.us-top    { opacity: 1; }
.us-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}

/* Per-unit hero thumbnail. When present, the card's grid grows by one column. */
.us-card:has(.us-card-thumb) {
  grid-template-columns: 120px 110px 1fr 220px;
}
.us-card-thumb {
  width: 120px;
  height: 90px;
  border-radius: var(--r);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.us-card-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.us-card-rank {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold-dk);
  opacity: 0.4;
  min-width: 1.8rem;
  font-weight: 500;
}
.us-card-unit-block { display: flex; flex-direction: column; gap: 0.2rem; }
.us-card-unit-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 500;
  color: var(--maroon);
  line-height: 1;
  letter-spacing: -0.01em;
}
.us-card-floor {
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.us-card-mid { display: flex; flex-direction: column; gap: 0.45rem; min-width: 0; }
.us-status {
  display: inline-block;
  padding: 0.22rem 0.7rem;
  border-radius: 2px;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  width: fit-content;
  font-weight: 600;
}
.us-status-active {
  background: rgba(107, 142, 112, 0.13);
  color: #3D5440;
  border: 1px solid rgba(107, 142, 112, 0.55);
}
.us-status-uo {
  background: rgba(201, 166, 107, 0.16);
  color: #8C6F4E;
  border: 1px solid rgba(201, 166, 107, 0.5);
}
.us-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
}
.us-card-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}
/* Per-unit exposure: the view + compass facing, so buyers can tell at a glance
   whether a unit faces the city, mountains, harbour, ocean, etc. */
.us-card-exposure {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dk);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.us-card-exposure::before {
  content: '◈';
  color: var(--gold);
  font-size: 0.7rem;
}
.us-card-propid {
  font-family: var(--font-caps);
  font-size: 0.52rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.us-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.us-card-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--maroon);
  line-height: 1;
}
.us-card-price .cur {
  font-size: 0.6em;
  color: var(--gold-dk);
  font-style: italic;
  margin-right: 0.1em;
}
.us-card-jmd {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.us-card-cta {
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-top: 0.6rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  font-weight: 600;
}
.us-card-cta:hover { color: var(--maroon-dk); }

@media (max-width: 768px) {
  .us-card {
    grid-template-columns: 88px 1fr;
    grid-template-areas: "left mid" "right right";
    gap: 0.9rem;
    padding: 1.2rem;
  }
  .us-card:has(.us-card-thumb) {
    grid-template-columns: 88px 1fr;
    grid-template-areas: "thumb thumb" "left mid" "right right";
  }
  .us-card-thumb {
    grid-area: thumb;
    width: 100%;
    height: 180px;
  }
  .us-card-left { grid-area: left; flex-direction: column; gap: 0.3rem; align-items: flex-start; }
  .us-card-rank { font-size: 0.95rem; min-width: 0; }
  .us-card-unit-num { font-size: 1.6rem; }
  .us-card-mid { grid-area: mid; }
  .us-card-right {
    grid-area: right;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  .us-card-cta { margin-top: 0; }
}

/* Location + amenities sections */
.project-location, .project-amenities {
  padding: 4rem 5vw;
  border-top: 1px solid var(--border);
  background: var(--paper-warm);
}
/* Extra bottom clearance so the floating "Private Tour" FAB never overlaps the
   last amenity cards — project.html has no footer below this final section. */
.project-amenities { padding-bottom: 9rem; }
.pl-inner, .pa-inner { max-width: 1100px; margin: 0 auto; }
.project-location h2, .project-amenities h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  margin: 0.5rem 0 1.5rem;
  color: var(--text);
  letter-spacing: -0.005em;
}
.pl-address {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--maroon);
  margin-bottom: 1.5rem;
}
.pl-map {
  height: 380px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  /* Contain Leaflet's high internal z-indexes (tiles 200, controls 1000) so
     they can't paint over the fixed nav (z-index 100) when scrolling past. */
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.pa-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}
.pa-item {
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
}

/* Cinematic project hero, when an image is available */
.project-hero.has-image {
  position: relative;
  padding: 6rem 5vw 3.5rem;
  background: #1F140C;
  border-bottom: none;
  overflow: hidden;
  min-height: 70vh;
}
.project-hero.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--ph-bg);
  background-size: cover;
  background-position: center;
  /* Flood the photo with light. Brightness above 1 + warm saturation +
     a touch of contrast so the property pops. */
  filter: brightness(1.18) saturate(1.12) contrast(0.96);
  z-index: 0;
}
.project-hero.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Almost no overlay — the photo is the show. A barely-there darken at the
     very bottom just so the title stays readable; no shroud across the rest. */
  background: linear-gradient(180deg,
    rgba(31,20,12,0.00) 0%,
    rgba(31,20,12,0.00) 55%,
    rgba(31,20,12,0.32) 100%);
  z-index: 1;
}
.project-hero.has-image .ph-inner {
  position: relative;
  z-index: 2;
  /* Anchor text to the bottom of the hero where the gradient is darker */
  min-height: calc(70vh - 9.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.project-hero.has-image .ph-crumb { color: rgba(255,251,242,0.85); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.project-hero.has-image .ph-crumb a { color: var(--gold-2); }
.project-hero.has-image .ph-crumb-sep { color: var(--gold); }
.project-hero.has-image .ph-eyebrow { color: var(--gold-2); text-shadow: 0 1px 8px rgba(0,0,0,0.5); }
.project-hero.has-image h1 { color: #FEFBF3; text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
.project-hero.has-image .ph-tagline { color: var(--gold-2); text-shadow: 0 1px 12px rgba(0,0,0,0.55); }
.project-hero.has-image .ph-desc { color: rgba(255,251,242,0.95); text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.project-hero.has-image .btn-ghost {
  color: var(--gold-2);
  border-color: rgba(184,149,106,0.55);
}
.project-hero.has-image .btn-ghost:hover {
  background: rgba(184,149,106,0.12);
}

/* Gallery strip */
.project-gallery {
  padding: 5rem 5vw;
  background: var(--paper);
  border-top: 1px solid var(--border);
}
.pg-inner { max-width: 1200px; margin: 0 auto; }
.project-gallery h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  margin: 0.5rem 0 2rem;
  color: var(--text);
}
.project-gallery h2 em { font-style: italic; color: var(--maroon); }
.pg-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.pg-strip::-webkit-scrollbar { height: 7px; }
.pg-strip::-webkit-scrollbar-track { background: var(--bg-card); border-radius: 3px; }
.pg-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.pg-photo {
  flex: 0 0 auto;
  width: 540px;
  height: 360px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  cursor: pointer;
  transition: transform 0.35s var(--ease-snap), box-shadow 0.3s ease;
}
.pg-photo:hover {
  transform: scale(1.015);
  box-shadow: var(--shadow-1);
}
@media (max-width: 768px) {
  .pg-photo { width: 88vw; height: 60vw; max-height: 320px; }
  .project-gallery { padding: 3rem 5vw; }
}

/* =============================================
   SERVICES · ONE-STOP SHOP · RECOGNITION
   Three new bio-adjacent sections on index.html
   ============================================= */

.services-section,
.team-section,
.achievements-section {
  padding: 5rem 5vw;
  max-width: 1200px;
  margin: 0 auto;
}
.services-head,
.team-head,
.ach-head {
  text-align: center;
  margin: 2rem auto 3.5rem;
  max-width: 720px;
}
.services-head h2,
.team-head h2,
.ach-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.services-head h2 em,
.team-head h2 em,
.ach-head h2 em { font-style: italic; color: var(--maroon); }
.services-head p,
.team-head p,
.ach-head p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.svc-item {
  padding: 1.8rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-snap);
}
.svc-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.svc-eyebrow {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 0.7rem;
}
.svc-item h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--maroon);
  margin-bottom: 0.6rem;
  font-style: italic;
}
.svc-item p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* One-Stop Shop grid */
.team-section {
  background: var(--paper-warm);
  max-width: none;
  margin: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.team-section .chapter-mark,
.team-section .team-head,
.team-section .team-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.team-item {
  position: relative;
  padding: 2rem 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: center;
}
.ti-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--gold-dk);
  opacity: 0.6;
  margin-bottom: 0.6rem;
}
.team-item h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.team-item p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Achievements list */
.ach-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1rem;
}
.ach-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.4rem 1.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ach-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-1);
}
.ach-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--maroon);
  text-align: center;
  padding: 0.4rem 0;
  border: 1px solid var(--gold);
  border-radius: var(--r-sm);
  background: var(--bg-card-2);
  letter-spacing: -0.01em;
  font-weight: 500;
}
.ach-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.ach-body p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .services-section,
  .team-section,
  .achievements-section { padding: 3rem 5vw; }
  .services-grid,
  .team-grid,
  .ach-list { grid-template-columns: 1fr; }
  .ach-item { grid-template-columns: 64px 1fr; gap: 0.9rem; padding: 1.1rem; }
  .ach-tag { font-size: 1.25rem; }
}

/* =============================================================
   ★ PHASE 2 ELEVATION ★
   Editorial luxury: cinematic reveals, marquee, asymmetric grids,
   counters, drawer, splash, sticky CTA, custom cursor.
   ============================================================= */

/* ---------- A. Reveal animation system ---------- */
/* Each direction sets an initial transform; .is-revealed brings them home. */
[data-reveal] {
  opacity: 0;
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  /* Safety net: if JS fails, content surfaces after 1.6s anyway */
  animation: reveal-safety 0.65s cubic-bezier(0.16, 1, 0.3, 1) 1.35s forwards;
}
[data-reveal].is-revealed { animation: none; }

[data-reveal="up"]            { transform: translateY(48px); }
[data-reveal="down"]          { transform: translateY(-48px); }
[data-reveal="left"]          { transform: translateX(-56px); }
[data-reveal="right"]         { transform: translateX(56px); }
[data-reveal="top-left"]      { transform: translate(-48px, -32px); }
[data-reveal="top-right"]     { transform: translate(48px, -32px); }
[data-reveal="bottom-left"]   { transform: translate(-48px, 32px); }
[data-reveal="bottom-right"]  { transform: translate(48px, 32px); }
[data-reveal="scale"]         { transform: scale(0.92); }
[data-reveal="rise"]          { transform: translateY(72px) scale(0.985); }

[data-reveal].is-revealed { opacity: 1; transform: none; }

[data-reveal-child] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  /* Safety net for stagger children too */
  animation: reveal-safety 0.65s cubic-bezier(0.16, 1, 0.3, 1) 2.0s forwards;
}
[data-reveal-child].is-revealed { opacity: 1; transform: none; animation: none; }

@keyframes reveal-safety {
  to { opacity: 1; transform: none; }
}

/* ---------- B. Hero corner-pop choreography ---------- */
/* Builds on existing .hero — overrides positioning and adds corner-anchored
   stats. Designed so the 4 corners each get an element that pops from its
   own corner direction. */
.hero { overflow: hidden; }
.hero-bg {
  /* One-time Ken-Burns settle — finite so a huge image isn't repainted forever */
  animation: hero-zoom 14s ease-out forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-2%, -1%, 0); }
}

.hero-inner > .hero-eyebrow,
.hero-inner > h1,
.hero-inner > .hero-sub,
.hero-inner > .hero-ctas {
  opacity: 0;
  transform: translateY(38px);
  animation: hero-rise 1.0s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-inner > .hero-eyebrow { animation-delay: 0.15s; transform: translate(-44px, 0); }
/* H1 drops from above — the user wanted "words to pay down from the middle" */
.hero-inner > h1            { animation-delay: 0.35s; transform: translateY(-68px) scale(1.04); }
.hero-inner > .hero-sub     { animation-delay: 0.55s; }
.hero-inner > .hero-ctas    { animation-delay: 0.75s; transform: translateY(28px); }

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* Stats row: each stat pops from a corner */
.hero-meta { opacity: 1; }
.hero-meta-item {
  opacity: 0;
  animation: hero-meta-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-meta-item:nth-child(1) {
  transform: translate(-44px, 44px);
  animation-delay: 0.95s;
}
.hero-meta-item:nth-child(2) {
  transform: translate(44px, 44px);
  animation-delay: 1.05s;
}
.hero-meta-item:nth-child(3) {
  transform: translate(-44px, -44px);
  animation-delay: 1.15s;
}
.hero-meta-item:nth-child(4) {
  transform: translate(44px, -44px);
  animation-delay: 1.25s;
}
@keyframes hero-meta-pop {
  to { opacity: 1; transform: none; }
}

.hero-scroll {
  opacity: 0;
  animation: hero-scroll-fade 1.2s ease-out 1.5s forwards;
}
@keyframes hero-scroll-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 0.7; transform: none; }
}

/* ---------- C. Press strip → marquee ---------- */
.press-strip-marquee {
  background: linear-gradient(180deg, var(--paper-warm), var(--bg-elev));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1.4rem 0;
  position: relative;
}
.press-strip-marquee::before,
.press-strip-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 8rem;
  pointer-events: none;
  z-index: 2;
}
.press-strip-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper-warm), transparent);
}
.press-strip-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--paper-warm), transparent);
}
.press-marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: press-marquee 38s linear infinite;
}
.press-marquee-track:hover { animation-play-state: paused; }
.press-marquee-item {
  font-family: var(--font-caps);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dk);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4rem;
  font-weight: 500;
}
.press-marquee-item::after {
  content: '\2022';
  color: var(--gold);
  opacity: 0.45;
  font-size: 1.1rem;
}
@keyframes press-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- D. Featured Listings — editorial asymmetric (1 big + 2 stacked) ---------- */
.featured-listings-grid {
  display: grid !important;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "primary secondary-top"
    "primary secondary-bot";
  gap: 1.5rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 5vw;
  min-height: 80vh;
}
.featured-listings-grid .fl-card:nth-child(1) { grid-area: primary; }
.featured-listings-grid .fl-card:nth-child(2) { grid-area: secondary-top; }
.featured-listings-grid .fl-card:nth-child(3) { grid-area: secondary-bot; }
.fl-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-snap), box-shadow 0.4s ease;
}
.fl-card .fl-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  min-height: 240px;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fl-card:hover .fl-image { transform: scale(1.05); }
.fl-card:hover {
  box-shadow: 0 30px 80px rgba(74, 50, 30, 0.22);
  transform: translateY(-3px);
}
.fl-card .fl-image::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Light-flooded — only a soft tail of darkening at the very bottom so
     the price + title overlay remains legible. The photo carries 80% of
     the frame at full brightness. */
  background: linear-gradient(180deg,
    rgba(0,0,0,0) 55%,
    rgba(31, 20, 12, 0.18) 80%,
    rgba(31, 20, 12, 0.55) 100%);
  pointer-events: none;
}
.fl-tag {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FEFBF3;
  background: rgba(107, 25, 40, 0.85);
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}
.fl-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 2rem 2rem 1.8rem;
  color: #FEFBF3;
}
.fl-price {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.fl-price .cur { font-size: 0.55em; color: var(--gold-2); margin-right: 0.15em; font-style: italic; }
.fl-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  color: #FEFBF3;
}
.fl-addr, .fl-specs {
  font-family: var(--font-caps);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.85);
}
.fl-addr { margin-bottom: 0.3rem; }
.fl-specs { font-style: normal; }

@media (max-width: 900px) {
  .featured-listings-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "primary"
      "secondary-top"
      "secondary-bot";
    min-height: auto;
  }
  .fl-card .fl-image { min-height: 280px; }
}

/* ---------- E. Stat counters strip (realtor section) ---------- */
.bio-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 4rem auto 0;
  max-width: 1100px;
  padding: 2.5rem 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper-warm);
  position: relative;
}
.bio-stat {
  text-align: center;
  padding: 0 1.5rem;
  position: relative;
}
.bio-stat + .bio-stat::before {
  content: '';
  position: absolute;
  left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: var(--border);
}
.bio-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 500;
  color: var(--maroon);
  line-height: 1;
  letter-spacing: -0.015em;
  font-feature-settings: 'lnum';
}
.bio-stat-lab {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.8rem;
}
@media (max-width: 768px) {
  .bio-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 0; }
  .bio-stat:nth-child(2)::before { display: none; }
  .bio-stat:nth-child(odd)::before { display: none; }
}

/* Pull-quote testimonial */
.bio-quotes {
  max-width: 920px;
  margin: 5rem auto 0;
  padding: 0 2.5rem;
  text-align: center;
}
.bio-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.95rem);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.2rem;
  position: relative;
}
.bio-quote::before, .bio-quote::after {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 2.4em;
  line-height: 0;
  position: relative;
  top: 0.2em;
  font-style: normal;
}
.bio-quote::before { content: '\201C'; margin-right: 0.1em; }
.bio-quote::after  { content: '\201D'; margin-left: 0.1em; }
.bio-quote-source {
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

/* ---------- F. Mobile drawer ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--maroon);
  cursor: pointer;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 20, 12, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.35s ease;
}
.drawer.is-open ~ .drawer-backdrop,
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(86vw, 420px);
  background: linear-gradient(160deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-left: 1px solid var(--border-bright);
  box-shadow: -20px 0 60px rgba(74, 50, 30, 0.2);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.drawer-brand {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 600;
}
.drawer-close {
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  color: var(--maroon);
  cursor: pointer;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.drawer-links a {
  display: block;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, padding 0.3s ease;
}
.drawer-links a:hover { color: var(--maroon); padding-left: 0.6rem; }
.drawer-links a .roman {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.32em;
  color: var(--gold-dk);
  margin-right: 0.9rem;
  font-style: normal;
}
.drawer-foot {
  margin-top: auto;
  padding-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
}
.drawer-foot a { color: var(--maroon); text-decoration: none; display: block; padding: 0.3rem 0; }
/* Bold "Request Appointment" CTA at the top of the drawer foot (overrides the
   plain drawer-link styling so the maroon button keeps its light text). */
.drawer-foot .drawer-cta {
  color: var(--paper);
  display: inline-flex;
  width: 100%;
  justify-content: center;
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.5rem;
}
.drawer-foot .drawer-cta:hover { color: var(--paper); }
body.drawer-locked { overflow: hidden; }

/* ---------- G. Loading splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, var(--maroon) 0%, var(--maroon-dk) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.splash.is-dismissed { opacity: 0; visibility: hidden; }
.splash-mark {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  background: rgba(255, 251, 242, 0.06);
  border: 1px solid rgba(184, 149, 106, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--gold-2);
  animation: splash-pulse 1.6s ease-in-out infinite;
}
.splash-text {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255, 251, 242, 0.65);
}
.splash-bar {
  width: 140px;
  height: 1px;
  background: rgba(255, 251, 242, 0.2);
  overflow: hidden;
  position: relative;
}
.splash-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: splash-bar 1.6s ease-in-out infinite;
}
@keyframes splash-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.04); opacity: 1; }
}
@keyframes splash-bar {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ---------- H. Sticky floating contact CTA ---------- */
.sticky-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.sticky-fab.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.sticky-fab .fab-btn {
  background: var(--maroon);
  color: #FEFBF3;
  border: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 12px 36px rgba(107, 25, 40, 0.4);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sticky-fab .fab-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 18px 48px rgba(107, 25, 40, 0.55);
}
.sticky-fab .fab-btn.is-tour {
  background: var(--gold);
  color: var(--maroon-dk);
  width: auto;
  padding: 0 1.5rem;
  height: 52px;
  border-radius: 26px;
  font-family: var(--font-caps);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- I. Custom cursor (desktop only) ---------- */
.k-cursor-dot, .k-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: difference;
}
.k-cursor-dot {
  width: 6px; height: 6px;
  background: #FEFBF3;
  border-radius: 50%;
  margin: -3px 0 0 -3px;
  transition: transform 0.08s linear;
}
.k-cursor-ring {
  width: 32px; height: 32px;
  border: 1.2px solid #FEFBF3;
  border-radius: 50%;
  margin: -16px 0 0 -16px;
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease;
}
.k-cursor-ring.is-hovering {
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  background: rgba(184, 149, 106, 0.18);
  border-color: var(--gold);
}
body:has(.k-cursor-dot) { cursor: none; }
body:has(.k-cursor-dot) a, body:has(.k-cursor-dot) button { cursor: none; }

/* ---------- J. Section dividers — section-to-section blending ---------- */
.section-fade-top {
  position: relative;
}
.section-fade-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6rem;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ---------- K. More reveal variants ---------- */
[data-reveal="zoom"]    { transform: scale(0.78); }
[data-reveal="zoom-in"] { transform: scale(1.18); }
[data-reveal="blur"]    { filter: blur(14px); }
[data-reveal="blur"].is-revealed { filter: none; }
[data-reveal="flip"]    { transform: perspective(800px) rotateX(28deg); transform-origin: bottom center; }
[data-reveal="drop"]    { transform: translateY(-56px); }
[data-reveal="drop-far"]{ transform: translateY(-90px); }
[data-reveal="float"]   { transform: translateY(28px) scale(0.96); }

/* Prevent flash for cards whose direction is auto-assigned by JS */
[data-reveal-auto]:not([data-reveal]) { opacity: 0; }

/* AUTO cards: invisible until the IntersectionObserver fires the sweep.
   The CRITICAL part is killing the [data-reveal] safety-net animation that
   was prematurely revealing cards. Only !important goes on animation-name
   because that's what we have to defeat. Opacity and transform are driven
   by the keyframe and MUST NOT carry !important (it would block the keyframe). */
[data-reveal-auto] {
  opacity: 0;
  transform: none;
  animation-name: none !important;       /* defeat the [data-reveal] safety animation */
  animation-duration: 0s !important;
}
[data-reveal-auto][data-reveal="left"].is-revealed,
[data-reveal-auto][data-reveal="right"].is-revealed {
  animation-duration: 0.8s !important;
  animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1) !important;
  animation-delay: 0s !important;
  animation-fill-mode: both !important;
}
[data-reveal-auto][data-reveal="left"].is-revealed  { animation-name: sweep-from-left !important; }
[data-reveal-auto][data-reveal="right"].is-revealed { animation-name: sweep-from-right !important; }

/* The sweep keyframes drive BOTH transform and opacity over the full duration.
   Card starts off-screen + invisible, becomes 18% visible by 20% of the slide,
   reaches full opacity slightly before settling — so the fade-in happens
   throughout the slide, not at the end. */
@keyframes sweep-from-left {
  0%   { transform: translateX(-90vw); opacity: 0; }
  10%  { opacity: 0.12; }
  35%  { opacity: 0.45; }
  100% { transform: translateX(0);     opacity: 1; }
}
@keyframes sweep-from-right {
  0%   { transform: translateX(90vw);  opacity: 0; }
  10%  { opacity: 0.12; }
  35%  { opacity: 0.45; }
  100% { transform: translateX(0);     opacity: 1; }
}

/* Containers must clip horizontal overflow during the off-screen sweep
   so the page doesn't grow a horizontal scrollbar mid-animation. */
.featured-listings-grid,
.project-grid,
.services-grid,
.team-grid,
.ach-list,
.process-list,
.listings-grid,
.footer-inner,
body {
  overflow-x: clip;
}

/* =============================================
   NO-IMAGE STATE — listings without photos render as a quiet "Photography
   pending" tile instead of an Unsplash filler. The card stays editorial:
   soft parchment, gold rule, italic caption. Intentional, not broken.
   ============================================= */
.fl-image.no-image,
.project-card-frame.no-image,
.listing-image.no-image {
  background-image:
    linear-gradient(135deg,
      var(--paper-warm) 0%,
      var(--bg-card-2) 100%),
    repeating-linear-gradient(
      45deg,
      transparent 0,
      transparent 12px,
      rgba(184, 149, 106, 0.04) 12px,
      rgba(184, 149, 106, 0.04) 13px
    );
  background-blend-mode: normal;
  filter: none !important;       /* defeat the global brightness/saturate pass */
  position: relative;
}
/* Soft inner border for the pending state */
.fl-image.no-image::before,
.project-card-frame.no-image::before,
.listing-image.no-image::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(184, 149, 106, 0.35);
  border-radius: 2px;
  pointer-events: none;
}
/* Defeat the dark gradient overlay on no-image cards — the pending tile
   should read light, not have a dark band at the bottom. */
.fl-image.no-image::after,
.listing-image.no-image::before {
  background: none !important;
}
.fl-pending,
.card-pending,
.listing-pending {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  z-index: 1;
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  background: rgba(254, 251, 243, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 2px;
}
/* On project-card-frame the overlay block at the bottom can compete with the
   "pending" caption — push the caption above. */
.project-card-frame.no-image .card-name-block {
  background: rgba(254, 251, 243, 0.92);
  color: var(--text);
  border-top: 1px solid var(--border);
}
.project-card-frame.no-image .card-name-block h3,
.project-card-frame.no-image .card-name-block .loc,
.project-card-frame.no-image .card-name-block .from { color: var(--text); }
.project-card-frame.no-image .card-tag { background: var(--gold-dk); color: #FEFBF3; }

/* =============================================
   BRIGHTNESS PASS — flood every property photo with light.
   The Kingston light is famously sharp; the photos should reflect that.
   ============================================= */
.fl-image,
.project-card-frame,
.listing-image,
.pg-photo,
.us-card-thumb,
.listing-hero-img {
  filter: brightness(1.10) saturate(1.08) contrast(0.96);
}
/* Slight extra lift on hover, never push too hard so colors stay believable */
.fl-card:hover .fl-image,
.project-card:hover .project-card-frame,
.listing-card:hover .listing-image,
.pg-photo:hover {
  filter: brightness(1.16) saturate(1.12) contrast(0.96);
}

/* Rate variations — applied via JS or [data-reveal-rate] attribute */
[data-reveal][data-reveal-rate="slow"]    { transition-duration: 1.25s; }
[data-reveal][data-reveal-rate="brisk"]   { transition-duration: 0.6s; }
[data-reveal][data-reveal-rate="languid"] { transition-duration: 1.6s; }

/* ---------- L. Word-by-word reveal ----------
   Wrap with data-words on the element, JS splits each word into a span and
   staggers them in from below. Beautiful for hero headlines. */
[data-words] { display: inline-block; }
.word-piece {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotateX(-30deg);
  transform-origin: bottom center;
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  animation: word-safety 0.6s ease 2s forwards;
}
.word-piece.is-revealed { opacity: 1; transform: none; animation: none; }
@keyframes word-safety {
  to { opacity: 1; transform: none; }
}

/* ---------- M. Scroll-progress gold bar at top ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 50%, var(--gold) 100%);
  z-index: 1000;
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(184, 149, 106, 0.6);
}

/* ---------- N. Dial-up number elegance ---------- */
[data-count-to] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'lnum', 'tnum';
}

/* ---------- O. Featured-headline (II Whisper) elegance ---------- */
.featured-headline em { color: var(--maroon); }
.featured-chapter { position: relative; }

/* ---------- P. CTA band corner-pop overrides ---------- */
.cta-band [data-reveal] { will-change: transform, opacity; }

/* ---------- Q. Subtle noise overlay for luxury feel (optional) ----------
   Add class .has-grain to <body> to enable. Light, doesn't impact perf. */
body.has-grain::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1001;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1   0 0 0 0 0.98   0 0 0 0 0.95   0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.04;
  mix-blend-mode: overlay;
}

/* ---------- R. Improved reveal timing for variety ---------- */
[data-reveal][data-reveal-speed="slow"] {
  transition-duration: 1.2s;
}
[data-reveal][data-reveal-speed="fast"] {
  transition-duration: 0.5s;
}

/* =============================================
   THE WALKTHROUGH — Instagram reels strip
   Editorial: 4 portrait reels in a row on desktop, 2×2 on mobile.
   Star slot is slightly larger via grid-area. Autoplay muted on view.
   ============================================= */
.walkthrough {
  padding: 6rem 5vw 5rem;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.walkthrough .container { max-width: 1320px; margin: 0 auto; }
.walkthrough-head {
  text-align: center;
  max-width: 720px;
  margin: 2rem auto 3.5rem;
}
.walkthrough-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.walkthrough-head h2 em { font-style: italic; color: var(--maroon); }
.walkthrough-head p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.walkthrough-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: stretch;
  /* Cap the visual size on desktop so the 9:16 cards don't become enormous.
     ~720px wide gives the feature ~420px × 747px tall and the stack ~280px wide. */
  max-width: 760px;
  margin: 0 auto;
}
.wt-reel {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  background: #1F140C;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.4s var(--ease-snap), box-shadow 0.4s ease, border-color 0.3s ease;
}
/* Feature card (the autoplay Halo reel) — fills its grid cell at 9:16 */
.wt-feature {
  aspect-ratio: 9 / 16;
}
.wt-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(74, 50, 30, 0.22);
  border-color: var(--gold);
}

/* Stack container — sits in the right cell, hosts 3 absolutely-positioned cards */
.wt-stack {
  position: relative;
  /* Match feature height so the stack vertically aligns. The aspect-ratio
     on .wt-feature drives row height; we mirror it here. */
  aspect-ratio: 9 / 16;
  perspective: 1200px;     /* enables 3D depth on the rotations */
}

/* Each stack card sits inside the container, slightly tilted and offset
   so the deck visually overlaps. The TOP card (first child = Hook = 58.9K)
   sits squarely in front; the others peek behind. */
.wt-stack-item {
  position: absolute;
  inset: 0;
  width: 86%;
  aspect-ratio: 9 / 16;
  margin-left: auto;        /* anchor to the right side */
  margin-right: 0;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.5s ease,
              border-color 0.4s ease;
  transform-origin: bottom right;
  box-shadow: 0 18px 40px rgba(74, 50, 30, 0.18);
}
.wt-stack-item:nth-child(1) {
  z-index: 3;
  transform: translate(0, 0) rotate(-3deg);
}
.wt-stack-item:nth-child(2) {
  z-index: 2;
  transform: translate(7%, 4%) rotate(2deg);
}
.wt-stack-item:nth-child(3) {
  z-index: 1;
  transform: translate(14%, 8%) rotate(7deg);
}

/* HOVER: the whole stack splays out like a hand of cards.
   Cards translate outward + rotate further so each becomes individually
   reachable and recognisable. */
.wt-stack:hover .wt-stack-item:nth-child(1) {
  transform: translate(-14%, -12%) rotate(-9deg);
  box-shadow: 0 26px 60px rgba(74, 50, 30, 0.28);
}
.wt-stack:hover .wt-stack-item:nth-child(2) {
  transform: translate(2%, -4%) rotate(0deg);
  box-shadow: 0 26px 60px rgba(74, 50, 30, 0.28);
}
.wt-stack:hover .wt-stack-item:nth-child(3) {
  transform: translate(20%, 6%) rotate(11deg);
  box-shadow: 0 26px 60px rgba(74, 50, 30, 0.28);
}

/* Individual hover within the splayed deck — lift the focused card forward */
.wt-stack-item:hover {
  z-index: 4 !important;
  border-color: var(--gold);
}
.wt-stack:hover .wt-stack-item:hover:nth-child(1) {
  transform: translate(-18%, -16%) rotate(-12deg) scale(1.04);
}
.wt-stack:hover .wt-stack-item:hover:nth-child(2) {
  transform: translate(2%, -8%) rotate(0deg) scale(1.04);
}
.wt-stack:hover .wt-stack-item:hover:nth-child(3) {
  transform: translate(24%, 2%) rotate(14deg) scale(1.04);
}
.wt-reel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.05) saturate(1.08);
}
.wt-reel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg,
    rgba(0,0,0,0.0) 50%,
    rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem 1.2rem 1.4rem;
  pointer-events: none;
}
.wt-reel-tag {
  align-self: flex-start;
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #FEFBF3;
  background: rgba(107, 25, 40, 0.85);
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}
.wt-reel-tag.is-star { background: rgba(184, 149, 106, 0.95); color: var(--maroon-dk); }
.wt-reel-foot {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #FEFBF3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.wt-reel-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}
.wt-reel-views {
  font-family: var(--font-caps);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
}
.wt-reel-play { display: none; }
.wt-reel-instagram {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(254, 251, 243, 0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(254, 251, 243, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FEFBF3;
  font-size: 0.95rem;
  text-decoration: none;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.wt-reel:hover .wt-reel-instagram { opacity: 1; }
.wt-reel-instagram:hover { background: rgba(254, 251, 243, 0.32); }

/* Sound toggle on the feature card. Sits in the top-left corner so it doesn't
   collide with the Instagram link. Shows speaker-muted glyph by default;
   when the video is unmuted the .is-unmuted class swaps to the on-glyph. */
.wt-sound-toggle {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 4;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(20, 14, 8, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(254, 251, 243, 0.28);
  color: #FEFBF3;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  opacity: 0.85;
}
.wt-sound-toggle:hover {
  background: rgba(184, 149, 106, 0.85);
  border-color: var(--gold);
  transform: scale(1.06);
  opacity: 1;
}
.wt-sound-toggle .wt-sound-on    { display: none; }
.wt-sound-toggle .wt-sound-muted { display: inline; }
.wt-sound-toggle.is-unmuted .wt-sound-on    { display: inline; }
.wt-sound-toggle.is-unmuted .wt-sound-muted { display: none; }
.wt-sound-toggle.is-unmuted {
  background: rgba(184, 149, 106, 0.78);
  border-color: var(--gold-2);
  opacity: 1;
}

@media (max-width: 900px) {
  /* Mobile: feature card on top, then a swipe carousel of the 3 stacked reels.
     Hover doesn't work on touch, so we trade the deck-splay for a native
     horizontal scroll-snap carousel — feels like the Instagram experience. */
  .walkthrough-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 100%;
  }
  .wt-feature {
    max-width: 360px;
    margin: 0 auto;
  }
  /* The stack becomes a horizontal scroll-snap carousel */
  .wt-stack {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 5vw;
    -webkit-overflow-scrolling: touch;
    aspect-ratio: auto;        /* let the children drive height */
    perspective: none;
    gap: 1rem;
    padding: 0.5rem 5vw 1rem;
    margin: 0 -5vw;            /* bleed to viewport edges so the carousel feels native */
  }
  .wt-stack::-webkit-scrollbar { display: none; }
  .wt-stack { scrollbar-width: none; }

  /* Each card becomes a flex child — no more absolute positioning, no tilt */
  .wt-stack-item {
    position: relative;
    inset: auto;
    flex: 0 0 80%;
    width: auto;
    max-width: 320px;
    margin: 0;
    aspect-ratio: 9 / 16;
    scroll-snap-align: center;
    /* Reset the desktop tilts and use !important to defeat the cascading
       :nth-child rules above */
    transform: none !important;
    box-shadow: 0 14px 32px rgba(74, 50, 30, 0.2);
  }
  .wt-stack:hover .wt-stack-item,
  .wt-stack-item:hover {
    transform: none !important;
  }

  .wt-reel-play { width: 52px; height: 52px; }

  /* Subtle hint at the bottom that there's more to swipe to */
  .wt-stack::after {
    content: '';
    flex: 0 0 5vw;             /* trailing padding for the last snap */
  }
}

/* Reel modal — tap any reel to open full-size with sound */
.wt-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(20, 14, 8, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.wt-modal.is-open { opacity: 1; pointer-events: auto; }
.wt-modal-video {
  max-width: 90vw;
  max-height: 92vh;
  aspect-ratio: 9 / 16;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  background: #000;
}
.wt-modal-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(254, 251, 243, 0.3);
  background: rgba(254, 251, 243, 0.1);
  color: #FEFBF3;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

/* =============================================
   HALO IMAGE-ROTATOR — replaces the broken Three.js viewer in
   "This Week's Whisper". Drag horizontally to spin between angles.
   Click anywhere to tour the project page.
   ============================================= */
.theater.halo-rotator {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: var(--r);
  overflow: hidden;
  background: linear-gradient(160deg, #1F140C 0%, #2A1A10 100%);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.theater.halo-rotator.is-dragging { cursor: grabbing; }
.theater.halo-rotator .halo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform: scale(1.04);
  pointer-events: none;        /* clicks land on the container */
  filter: brightness(1.06) saturate(1.08);
}
.theater.halo-rotator .halo-frame.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Bottom overlay holds the label + dots + drag hint */
.theater.halo-rotator .halo-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 1.5rem 2rem 1.4rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20, 14, 8, 0.78) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: #FEFBF3;
  pointer-events: none;        /* let dragging work through the overlay */
}
.theater.halo-rotator .halo-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-2);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}
.theater.halo-rotator .halo-dots {
  display: flex;
  gap: 0.6rem;
  pointer-events: auto;        /* dots stay clickable */
}
.theater.halo-rotator .halo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(254, 251, 243, 0.5);
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  padding: 0;
}
.theater.halo-rotator .halo-dot:hover {
  background: rgba(184, 149, 106, 0.4);
  transform: scale(1.15);
}
.theater.halo-rotator .halo-dot.is-active {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.15);
}
.theater.halo-rotator .halo-hint {
  font-family: var(--font-caps);
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(254, 251, 243, 0.7);
}

/* "Tour" affordance — golden corner badge that pulses subtly */
.theater.halo-rotator::after {
  content: '↗';
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(184, 149, 106, 0.85);
  color: var(--maroon-dk);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.theater.halo-rotator:hover::after {
  transform: scale(1.1) rotate(-8deg);
}

/* =====================================================================
   MOBILE POLISH (v2) — phone-only layout fixes. Everything here is scoped
   to max-width; desktop is unaffected.
   ===================================================================== */
@media (max-width: 700px) {

  /* ---- #5  MEET KAMEIKA card: centre the photo + bio, and stop the long
     email / bio text from overflowing and getting clipped off the right ---- */
  .realtor-card { text-align: center; max-width: 100%; }
  .realtor-portrait { max-width: 300px; margin-left: auto; margin-right: auto; }
  .realtor-meta {
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .realtor-meta .pull {
    border-left: 0;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding: 1rem 0.5rem;
    margin: 0 0 2rem;
  }
  /* contact rows (tel / email / instagram): wrap + centre, break the email */
  .realtor-meta a[href^="tel"],
  .realtor-meta a[href^="mailto"],
  .realtor-meta a[href*="instagram"] {
    flex-wrap: wrap;
    justify-content: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .realtor-meta .btn { width: 100%; justify-content: center; }

  /* ---- #4  THE 13 DEVELOPMENTS: 2 per row instead of one long stack.
     The slide-in-from-the-sides reveal still works (cards keep data-reveal-auto). */
  .project-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.9rem !important; }
  .card-name-block { left: 0.7rem; right: 0.7rem; bottom: 0.7rem; }
  .card-name-block h3 { font-size: 1rem; }
  .card-name-block .loc { font-size: 0.66rem; margin-bottom: 0.5rem; }
  .card-name-block .reveal-row { font-size: 0.46rem; padding-top: 0.5rem; }
  .card-name-block .from strong { font-size: 0.82rem; margin-left: 0.2rem; }
  .card-tag { font-size: 0.44rem; top: 0.7rem; left: 0.7rem; }
  .card-tag::before { width: 10px; margin-right: 0.35rem; }
  .card-avail-pill { font-size: 0.42rem; top: 0.7rem; right: 0.7rem; padding: 0.22rem 0.45rem; gap: 0.25rem; }

  /* ---- #6  PROCESS ("From this page to your front door"): centre the steps
     so the roman numeral + text aren't clipped against the left edge ---- */
  .process-step { text-align: center; padding-top: 3.4rem; }
  .process-step::before { left: 50%; transform: translateX(-50%); padding: 0 0.6rem; }

  /* ---- #7  FOOTER text columns under the appointment CTA: centre them
     instead of left-bound ---- */
  .footer-inner { text-align: center; }
  .footer-brand-block .brand { justify-content: center; }
  .footer-brand-block p { margin-left: auto; margin-right: auto; }
  .footer ul { align-items: center; }
  .footer-bottom { text-align: center; align-items: center; }
  .footer-legal { margin: 0 auto; }

  /* ---- #3  FOLLOW button under the reels: keep it on-screen + centred
     (it was overflowing off the right edge) ---- */
  .walkthrough [data-reveal] .btn,
  .walkthrough .btn-arrow {
    max-width: calc(100vw - 2.8rem);
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
    padding: 0.9rem 1.2rem;
    text-align: center;
  }
}

/* ---- #2  REELS on mobile/tablet: all 4 the SAME size, in order, in one
   sideways swipe carousel. No feature-on-top, no fan/stack deck. ---- */
@media (max-width: 900px) {
  .walkthrough-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    max-width: 100%;
    margin: 0 -5vw;            /* bleed to screen edges so it feels native */
    padding: 0.5rem 5vw 1.2rem;
    scroll-padding: 0 5vw;
    perspective: none;
  }
  .walkthrough-grid::-webkit-scrollbar { display: none; }
  .walkthrough-grid { scrollbar-width: none; }

  /* Dissolve the fan-deck wrapper so its 3 reels become equal siblings of the
     feature reel inside the carousel (order stays 01 → 02 → 03 → 04). */
  .wt-stack { display: contents; }

  /* All 4 reels: identical size, side by side, swipe through. */
  .wt-feature,
  .wt-stack-item {
    position: relative;
    inset: auto;
    flex: 0 0 76%;
    width: auto;
    max-width: 320px;
    margin: 0;
    aspect-ratio: 9 / 16;
    scroll-snap-align: center;
    transform: none !important;     /* kill the fan tilt */
    box-shadow: 0 14px 32px rgba(74, 50, 30, 0.2);
  }
  .wt-stack:hover .wt-stack-item,
  .wt-stack-item:hover { transform: none !important; }

  /* No inline autoplay on mobile → the feature's sound toggle has nothing to do. */
  .wt-sound-toggle { display: none; }
}

/* ── Portrait scroll target — clears sticky nav ─────────────────── */
#kameika-portrait { scroll-margin-top: 80px; }

/* ── Office / Find Kameika section ──────────────────────────────── */
.office-section {
  background: #1a1008;
  color: #FFFBF2;
  padding: 5rem 2rem;
}
.office-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.office-info .eyebrow { color: var(--gold); margin-bottom: 0.6rem; }
.office-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #FFFBF2;
  margin: 0 0 1.4rem;
  line-height: 1.15;
}
.office-address {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,251,242,0.78);
  margin-bottom: 1.4rem;
}
.office-address strong { color: #FFFBF2; font-weight: 600; }
.office-details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,251,242,0.55);
  line-height: 1.9;
}
.office-map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: 4px;
  display: block;
  filter: grayscale(20%) contrast(1.05);
}
@media (max-width: 700px) {
  .office-inner { grid-template-columns: 1fr; gap: 2rem; }
  .office-map iframe { height: 260px; }
}

/* ── Halo offer-to-purchase form ─────────────────────────────────── */
.halo-offer-form {
  padding: 4rem 2rem;
  background: var(--bg-elev);
  border-top: 1px solid rgba(107,25,40,0.12);
}
.hof-inner {
  max-width: 860px;
  margin: 0 auto;
}
.hof-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--maroon);
  margin: 0 0 0.6rem;
}
.hof-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin: 0 0 2rem;
  line-height: 1.7;
}
.hof-frame-wrap iframe {
  width: 100%;
  min-height: 620px;
  border: none;
  display: block;
}

/* ── Levy Built credit banner ────────────────────────────────────── */
.levybuilt-banner {
  background: #0d0d0d;
  color: rgba(255,255,255,0.42);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.045em;
  text-align: center;
  padding: 1.1rem 2rem;
  line-height: 1.75;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.levybuilt-banner strong {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.levybuilt-banner a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.levybuilt-banner a:hover { color: #fff; }
.levybuilt-banner .lb-dot {
  display: inline-block;
  margin: 0 0.55rem;
  opacity: 0.28;
}


