/*
Theme Name: Reid Theme
Theme URI: https://homepage.studio
Author: HomePage Studio
Description: The Editorial — luxury real estate template with editorial design language
Version: 1.0
*/

/* ============================================
   REID DESIGN SYSTEM v1.0
   "The Editorial" — Vogue meets Architecture
   ============================================ */

:root {
  --ink: #0A0A0A;
  --warm-white: #F7F3EF;
  --sienna: #C75B39;
  --sienna-light: #D4785E;
  --stone: #6B6460;
  --parchment: #EDE8E1;
  --font-display: 'Libre Bodoni', serif;
  --font-body: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: var(--warm-white);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ============================================
   FILM GRAIN OVERLAY
   ============================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 6px; height: 6px;
  background: var(--sienna); border-radius: 50%; pointer-events: none;
  z-index: 10000; transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 48px; height: 48px;
  border: 1px solid var(--stone); border-radius: 50%; pointer-events: none;
  z-index: 9999; transform: translate(-50%, -50%); opacity: 0.3;
  transition: width 0.5s cubic-bezier(0.23,1,0.32,1), height 0.5s cubic-bezier(0.23,1,0.32,1), opacity 0.3s ease, border-color 0.3s ease;
}
.cursor-dot.hovering { width: 14px; height: 14px; background: var(--sienna); }
.cursor-ring.hovering { width: 72px; height: 72px; border-color: var(--sienna); opacity: 0.5; }
.cursor-dot.on-dark { background: var(--warm-white); }
.cursor-ring.on-dark { border-color: rgba(247,243,239,0.3); }

@media (max-width: 1024px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 1px; width: 0%;
  background: var(--sienna);
  z-index: 10001;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 1s ease, visibility 1s ease;
}
.preloader.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-text {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 64px);
  color: var(--warm-white); letter-spacing: 0.4em; font-weight: 400;
  animation: preloaderPulse 2s ease-in-out infinite;
}
.preloader-line {
  width: 80px; height: 1px; background: var(--stone); margin-top: 32px;
  position: relative; overflow: hidden;
}
.preloader-line::after {
  content: ''; position: absolute; inset: 0;
  background: var(--sienna); animation: preloaderSlide 2s ease-in-out infinite;
}
@keyframes preloaderPulse { 0%,100% { opacity: 0.2; } 50% { opacity: 1; } }
@keyframes preloaderSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 clamp(24px, 4vw, 64px); height: 96px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
  mix-blend-mode: difference;
  overflow: visible;
}
.nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(247, 243, 239, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav.scrolled .nav-logo, .nav.scrolled .nav-links a { color: var(--ink); }
.nav.scrolled .nav-links a.nav-cta { color: var(--warm-white); background: var(--ink); border-color: var(--ink); }
.nav.scrolled .nav-links a.nav-cta:hover { color: var(--ink); background: transparent; border-color: var(--ink); }

.nav-logo {
  font-family: var(--font-display); font-size: 26px; font-weight: 500;
  letter-spacing: 0.35em; color: var(--warm-white); text-transform: uppercase;
}
.nav-links { display: flex; gap: clamp(20px, 3vw, 48px); list-style: none; align-items: center; overflow: visible; }
.nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--warm-white);
  transition: opacity 0.3s ease; position: relative;
}
.nav-links a:hover { opacity: 0.6; }
.nav-cta {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 12px 28px; border: 1px solid var(--warm-white); color: var(--warm-white);
  transition: all 0.4s ease; background: transparent;
}
.nav-cta:hover { background: var(--warm-white); color: var(--ink); }

/* Residences Dropdown */
.nav-dropdown { position: relative; overflow: visible; }
.nav-dropdown > a::after {
  content: ''; display: inline-block; width: 5px; height: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-left: 6px; vertical-align: middle;
  transition: transform 0.3s ease;
}
.nav-dropdown:hover > a::after { transform: rotate(-135deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 160px; padding: 12px 0; margin-top: 12px;
  background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all 0.3s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-dropdown-menu a {
  display: block; padding: 8px 24px; font-size: 12px !important;
  color: var(--warm-white) !important; white-space: nowrap; text-align: center;
}
.nav-dropdown-menu a:hover { opacity: 0.6; }
.nav.scrolled .nav-dropdown-menu {
  background: rgba(247, 243, 239, 0.95);
}
.nav.scrolled .nav-dropdown-menu a { color: var(--ink) !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 6px; cursor: pointer;
  width: 28px; padding: 4px 0;
}
.nav-hamburger span {
  display: block; height: 1px; background: var(--warm-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav.scrolled .nav-hamburger span { background: var(--ink); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 48px);
  color: var(--warm-white); letter-spacing: 0.1em; font-weight: 400;
  transition: opacity 0.3s ease;
}
.mobile-menu a:hover { opacity: 0.6; }
.mobile-menu-close {
  position: absolute; top: 32px; right: 32px; width: 40px; height: 40px;
  cursor: pointer; background: none; border: none;
}
.mobile-menu-close::before, .mobile-menu-close::after {
  content: ''; position: absolute; top: 50%; left: 50%; width: 24px; height: 1px;
  background: var(--warm-white);
}
.mobile-menu-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  background: var(--ink); overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.7);
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.6) 100%);
}
.hero-content {
  position: relative; z-index: 3;
  width: 100%; padding: 0 clamp(24px, 4vw, 64px) clamp(48px, 8vh, 100px);
}
.hero-name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(80px, 15vw, 240px);
  line-height: 0.85; letter-spacing: -0.02em;
  color: var(--warm-white);
  margin-left: -0.05em;
  opacity: 0; transform: translateY(40px);
  animation: heroTextReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}
.hero-name span.outline {
  -webkit-text-stroke: 1.5px var(--warm-white);
  color: transparent;
}
@keyframes heroTextReveal {
  to { opacity: 1; transform: translateY(0); }
}
.hero-tagline-wrap {
  display: flex; align-items: center; gap: 16px;
  margin-top: clamp(20px, 3vh, 40px);
  opacity: 0; animation: heroTextReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 1.4s forwards;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sienna); flex-shrink: 0;
}
.hero-tagline {
  font-family: var(--font-body); font-size: clamp(11px, 1.2vw, 14px);
  letter-spacing: 0.25em; text-transform: uppercase; color: rgba(247,243,239,0.6);
  font-weight: 300;
}
.hero-scroll-hint {
  position: absolute; bottom: clamp(24px, 4vh, 48px); right: clamp(24px, 4vw, 64px);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: heroTextReveal 1s cubic-bezier(0.16, 1, 0.3, 1) 2s forwards;
}
.hero-scroll-hint span {
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(247,243,239,0.4); writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 60px; background: rgba(247,243,239,0.2); position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--sienna); animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0% { top: -100%; } 50% { top: 100%; } 100% { top: 100%; } }

/* ============================================
   PAGE HERO — For internal pages
   ============================================ */
.page-hero {
  position: relative; height: 60vh; min-height: 500px;
  background: var(--ink); overflow: hidden;
  display: flex; align-items: flex-end;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 1;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.6);
  transform: scale(1.02);
}
.page-hero-grain {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.1) 40%, rgba(10,10,10,0.7) 100%);
}
.page-hero-content {
  position: relative; z-index: 3;
  width: 100%; padding: 0 clamp(24px, 4vw, 64px) clamp(48px, 8vh, 80px);
}
.page-hero-eyebrow {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--sienna); margin-bottom: 16px;
}
.page-hero-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.9; letter-spacing: -0.02em;
  color: var(--warm-white);
}

/* ============================================
   MANIFESTO / TEXT REVEAL
   ============================================ */
.manifesto {
  position: relative; min-height: 100vh;
  background: var(--warm-white);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(100px, 15vh, 200px) clamp(24px, 8vw, 160px);
}
.manifesto-text {
  font-family: var(--font-display); font-size: clamp(28px, 4vw, 56px);
  line-height: 1.4; font-weight: 400; text-align: center;
  max-width: 900px;
}
.manifesto-text .word {
  display: inline-block; margin-right: 0.3em;
  color: rgba(10,10,10,0.08);
  transition: color 0.6s ease;
}
.manifesto-text .word.revealed { color: var(--ink); }
.manifesto-text .word.accent.revealed { color: var(--sienna); }
.manifesto-line {
  width: 60px; height: 1px; background: var(--sienna); margin: 48px auto 0;
  transform: scaleX(0); transition: transform 1s ease;
}
.manifesto-line.revealed { transform: scaleX(1); }

/* ============================================
   IMAGE BREAK
   ============================================ */
.image-break {
  position: relative; height: 70vh; overflow: hidden;
}
.image-break img {
  width: 100%; height: 120%; object-fit: cover;
  position: absolute; top: -10%;
  will-change: transform;
}
.image-break-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--warm-white) 0%, transparent 8%, transparent 92%, var(--warm-white) 100%);
}

/* ============================================
   PROPERTIES — Horizontal Scroll + Spotlight Cards
   ============================================ */
.properties {
  background: var(--ink); padding: clamp(80px, 10vh, 140px) 0;
  position: relative;
}
.properties-header {
  padding: 0 clamp(24px, 4vw, 64px); margin-bottom: clamp(40px, 6vh, 80px);
  display: flex; justify-content: space-between; align-items: flex-end;
}
.properties-label {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 16px;
}
.properties-title {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 72px);
  color: var(--warm-white); font-weight: 400; line-height: 1.1;
}
.properties-count {
  font-family: var(--font-body); font-size: 13px; color: var(--stone);
  letter-spacing: 0.1em;
}

.properties-track {
  display: flex; gap: clamp(16px, 2vw, 32px);
  padding: 0 clamp(24px, 4vw, 64px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.properties-track::-webkit-scrollbar { display: none; }
.properties-track:active { cursor: grabbing; }

.property-card {
  flex-shrink: 0; width: clamp(300px, 30vw, 420px);
  scroll-snap-align: start; position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.4s ease;
}
.property-card:hover { border-color: rgba(199, 91, 57, 0.3); }
.property-card-glow {
  position: absolute; inset: -1px; border-radius: inherit; opacity: 0;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(199, 91, 57, 0.12), transparent 60%);
  transition: opacity 0.4s ease; pointer-events: none; z-index: 0;
}
.property-card:hover .property-card-glow { opacity: 1; }

.property-card-image {
  width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; z-index: 1;
}
.property-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
  filter: grayscale(30%);
}
.property-card:hover .property-card-image img {
  transform: scale(1.05); filter: grayscale(0%);
}
.property-card-info {
  padding: 20px 20px 24px; position: relative; z-index: 1;
}
.property-card-name {
  font-family: var(--font-display); font-size: clamp(18px, 1.4vw, 22px);
  color: var(--warm-white); font-weight: 400; margin-bottom: 6px;
}
.property-card-meta {
  font-family: var(--font-body); font-size: 12px; color: var(--stone);
  letter-spacing: 0.1em; display: flex; justify-content: space-between;
}
.property-card-price { color: var(--sienna); font-weight: 500; }

.properties-scroll-bar {
  margin: clamp(32px, 4vh, 56px) clamp(24px, 4vw, 64px) 0;
  height: 1px; background: rgba(255,255,255,0.08); position: relative;
}
.properties-scroll-thumb {
  position: absolute; top: 0; left: 0; height: 100%; width: 30%;
  background: var(--sienna); transition: left 0.15s ease;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 80vh; background: var(--warm-white);
}
.about-image {
  overflow: hidden; position: relative;
}
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 8s ease;
}
.about-image.revealed img { transform: scale(1); }
.about-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 8vw, 120px);
}
.about-eyebrow {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--sienna); margin-bottom: 32px;
}
.about-heading {
  font-family: var(--font-display); font-size: clamp(32px, 3.5vw, 56px);
  font-weight: 400; line-height: 1.2; margin-bottom: 32px;
  color: var(--ink);
}
.about-body {
  font-family: var(--font-body); font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.8; color: var(--stone); max-width: 480px;
  margin-bottom: 40px;
}
.about-sig {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(20px, 1.6vw, 28px); color: var(--ink);
}

@media (max-width: 768px) {
  .about { grid-template-columns: 1fr; }
  .about-image { height: 50vh; }
}

/* ============================================
   STATS
   ============================================ */
.stats {
  background: var(--ink); padding: clamp(80px, 12vh, 160px) clamp(24px, 4vw, 64px);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 64px); max-width: 1200px; margin: 0 auto;
  text-align: center;
}
.stat-item { position: relative; }
.stat-number {
  font-family: var(--font-display); font-size: clamp(48px, 7vw, 100px);
  font-weight: 400; color: var(--warm-white); line-height: 1;
  margin-bottom: 12px;
}
.stat-number .ticker { display: inline-block; }
.stat-label {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--stone);
}
.stat-accent-line {
  width: 32px; height: 1px; background: var(--sienna);
  margin: 16px auto 0;
}

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   COMMUNITIES
   ============================================ */
.communities {
  background: var(--warm-white);
  padding: clamp(80px, 10vh, 140px) 0;
}
.communities-header {
  padding: 0 clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 6vh, 80px);
}
.communities-eyebrow {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--sienna); margin-bottom: 16px;
}
.communities-title {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 72px);
  font-weight: 400; line-height: 1.1;
}

.community-row {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(10,10,10,0.08);
  transition: background 0.4s ease;
  overflow: hidden; position: relative;
}
.community-row:last-child { border-bottom: 1px solid rgba(10,10,10,0.08); }
.community-row:hover { background: var(--parchment); }

.community-info {
  padding: clamp(32px, 4vw, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.community-name {
  font-family: var(--font-display); font-size: clamp(28px, 3vw, 48px);
  font-weight: 400; line-height: 1.2; margin-bottom: 8px;
}
.community-name a { transition: color 0.3s ease; }
.community-name a:hover { color: var(--sienna); }
.community-desc {
  font-family: var(--font-body); font-size: 14px; color: var(--stone);
  letter-spacing: 0.05em;
}
.community-image {
  height: clamp(200px, 25vh, 320px); overflow: hidden;
}
.community-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.community-row:hover .community-image img { transform: scale(1.08); }

@media (max-width: 768px) {
  .community-row { grid-template-columns: 1fr; }
  .community-image { height: 200px; }
}

/* ============================================
   MARQUEE
   ============================================ */
.marquee-section {
  background: var(--ink); padding: clamp(32px, 4vh, 56px) 0;
  overflow: hidden; position: relative;
}
.marquee-track {
  display: flex; gap: clamp(32px, 4vw, 80px); width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-item {
  font-family: var(--font-display); font-size: clamp(14px, 1.2vw, 18px);
  color: rgba(247,243,239,0.25); letter-spacing: 0.15em; text-transform: uppercase;
  white-space: nowrap; font-weight: 400;
}
.marquee-item .dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--sienna); vertical-align: middle; margin: 0 clamp(16px, 2vw, 40px);
}
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   TESTIMONIAL
   ============================================ */
.testimonial {
  background: var(--parchment);
  padding: clamp(100px, 15vh, 200px) clamp(24px, 8vw, 160px);
  text-align: center; position: relative;
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.testimonial-quote {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(24px, 3.2vw, 48px); line-height: 1.5;
  color: var(--ink); max-width: 800px; font-weight: 400;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.testimonial-quote.revealed { opacity: 1; transform: translateY(0); }
.testimonial-author {
  margin-top: 40px; opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
.testimonial-author.revealed { opacity: 1; }
.testimonial-author-name {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--ink); font-weight: 500;
}
.testimonial-author-title {
  font-family: var(--font-body); font-size: 12px; color: var(--stone);
  margin-top: 4px;
}
.testimonial-dots {
  display: flex; gap: 8px; margin-top: 48px;
}
.testimonial-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(10,10,10,0.15); cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.testimonial-dot.active { background: var(--sienna); transform: scale(1.3); }

/* ============================================
   CONTACT
   ============================================ */
.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}
.contact-left {
  background: var(--ink); padding: clamp(64px, 8vw, 120px);
  display: flex; flex-direction: column; justify-content: center;
}
.contact-eyebrow {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--sienna); margin-bottom: 32px;
}
.contact-heading {
  font-family: var(--font-display); font-size: clamp(48px, 6vw, 96px);
  font-weight: 400; color: var(--warm-white); line-height: 1;
  margin-bottom: 40px;
}
.contact-info { margin-top: auto; }
.contact-info-item {
  font-family: var(--font-body); font-size: 14px; color: var(--stone);
  margin-bottom: 8px; letter-spacing: 0.05em;
}
.contact-info-item a { color: var(--sienna); transition: opacity 0.3s; }
.contact-info-item a:hover { opacity: 0.7; }

.contact-right {
  background: var(--parchment); padding: clamp(64px, 8vw, 120px);
  display: flex; flex-direction: column; justify-content: center;
}
.form-group { margin-bottom: 32px; }
.form-label {
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--stone); display: block; margin-bottom: 12px;
}
.form-input {
  width: 100%; border: none; border-bottom: 1px solid rgba(10,10,10,0.15);
  background: transparent; padding: 12px 0; font-family: var(--font-body);
  font-size: 16px; color: var(--ink); outline: none;
  transition: border-color 0.3s ease;
}
.form-input:focus { border-color: var(--sienna); }
.form-input::placeholder { color: rgba(10,10,10,0.25); }
textarea.form-input { resize: none; height: 100px; }

/* Magnetic Button */
.magnetic-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 40px; border: 1px solid var(--ink); background: var(--ink);
  color: var(--warm-white); font-family: var(--font-body); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), background 0.4s ease, color 0.4s ease;
  position: relative; overflow: hidden; margin-top: 16px;
}
.magnetic-btn::before {
  content: ''; position: absolute; inset: 0;
  background: var(--sienna); transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.magnetic-btn:hover::before { transform: translateY(0); }
.magnetic-btn span { position: relative; z-index: 1; }
.magnetic-btn .arrow {
  position: relative; z-index: 1;
  transition: transform 0.3s ease; font-size: 14px;
}
.magnetic-btn:hover .arrow { transform: translateX(4px); }

@media (max-width: 768px) {
  .contact { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ink);
  padding: clamp(48px, 6vh, 80px) clamp(24px, 4vw, 64px) clamp(24px, 3vh, 40px);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 1400px; margin: 0 auto;
  padding-bottom: clamp(32px, 4vh, 56px);
  border-bottom: 1px solid rgba(247,243,239,0.06);
}
.footer-brand {
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0.35em;
  color: var(--warm-white); text-transform: uppercase; margin-bottom: 16px;
}
.footer-tagline {
  font-family: var(--font-body); font-size: 13px; color: var(--stone);
  max-width: 280px; line-height: 1.6;
}
.footer-links { display: flex; gap: clamp(48px, 6vw, 96px); }
.footer-col-title {
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-family: var(--font-body); font-size: 13px;
  color: rgba(247,243,239,0.5); margin-bottom: 10px;
  transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--warm-white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1400px; margin: 0 auto;
  padding-top: clamp(20px, 3vh, 32px);
}
.footer-copy {
  font-family: var(--font-body); font-size: 11px; color: var(--stone);
  letter-spacing: 0.05em;
}
.footer-social { display: flex; gap: 20px; }
.footer-social a {
  font-family: var(--font-body); font-size: 11px; color: var(--stone);
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.3s ease;
}
.footer-social a:hover { color: var(--warm-white); }

@media (max-width: 768px) {
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   INTERNAL PAGE CONTENT SECTIONS
   ============================================ */
.page-section {
  padding: clamp(80px, 10vh, 140px) clamp(24px, 4vw, 64px);
}
.page-section.dark { background: var(--ink); color: var(--warm-white); }
.page-section.parchment { background: var(--parchment); }
.page-section.warm-white { background: var(--warm-white); }

.section-eyebrow {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--sienna); margin-bottom: 16px;
}
.section-heading {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 72px);
  font-weight: 400; line-height: 1.1; margin-bottom: clamp(32px, 4vh, 56px);
}
.section-subheading {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px);
  font-weight: 400; line-height: 1.2; margin-bottom: 24px;
}
.section-body {
  font-family: var(--font-body); font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.8; color: var(--stone); max-width: 680px;
}
.section-body.dark-text { color: var(--stone); }
.section-body.light-text { color: rgba(247,243,239,0.7); }

/* Two column layout */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Three column grid */
.three-col {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px);
}
@media (max-width: 768px) {
  .three-col { grid-template-columns: 1fr; }
}

/* Service/feature items */
.feature-item {
  padding: clamp(32px, 3vw, 48px);
  border: 1px solid rgba(10,10,10,0.06);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.feature-item:hover { border-color: var(--sienna); background: rgba(199,91,57,0.02); }
.feature-item.dark-item {
  border-color: rgba(247,243,239,0.06);
}
.feature-item.dark-item:hover { border-color: rgba(199,91,57,0.4); background: rgba(199,91,57,0.05); }
.feature-number {
  font-family: var(--font-display); font-size: clamp(36px, 3vw, 56px);
  color: var(--sienna); font-weight: 400; line-height: 1; margin-bottom: 24px;
  opacity: 0.4;
}
.feature-title {
  font-family: var(--font-display); font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 400; margin-bottom: 16px;
}
.feature-desc {
  font-family: var(--font-body); font-size: 14px; line-height: 1.8;
  color: var(--stone);
}
.feature-desc.light { color: rgba(247,243,239,0.6); }

/* Listing grid for buy/sell pages */
.listing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 32px);
}
@media (max-width: 1024px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .listing-grid { grid-template-columns: 1fr; } }

.listing-card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.4s ease;
}
.listing-card:hover { border-color: rgba(199,91,57,0.3); }
.listing-card-image {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
}
.listing-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%);
  transition: transform 0.8s cubic-bezier(0.4,0,0.2,1), filter 0.4s ease;
}
.listing-card:hover .listing-card-image img {
  transform: scale(1.05); filter: grayscale(0%);
}
.listing-card-info {
  padding: 20px;
}
.listing-card-address {
  font-family: var(--font-display); font-size: clamp(16px, 1.3vw, 20px);
  color: var(--warm-white); font-weight: 400; margin-bottom: 8px;
}
.listing-card-details {
  font-family: var(--font-body); font-size: 12px; color: var(--stone);
  letter-spacing: 0.05em; margin-bottom: 8px;
}
.listing-card-price {
  font-family: var(--font-body); font-size: 14px; color: var(--sienna);
  font-weight: 500; letter-spacing: 0.05em;
}

/* Community detail page */
.community-detail-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(32px, 4vh, 56px);
}
.community-detail-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.4s ease;
}
.community-detail-grid img:hover { filter: grayscale(0%); }
@media (max-width: 768px) { .community-detail-grid { grid-template-columns: 1fr; } }

/* Timeline / process steps */
.process-step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: clamp(32px, 3vw, 48px) 0;
  border-bottom: 1px solid rgba(10,10,10,0.06);
}
.process-step:last-child { border-bottom: none; }
.process-step-number {
  font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px);
  color: var(--sienna); font-weight: 400; line-height: 1; opacity: 0.3;
}
.process-step-title {
  font-family: var(--font-display); font-size: clamp(20px, 2vw, 32px);
  font-weight: 400; margin-bottom: 12px;
}
.process-step-desc {
  font-family: var(--font-body); font-size: 15px; line-height: 1.8; color: var(--stone);
}
@media (max-width: 600px) {
  .process-step { grid-template-columns: 1fr; gap: 16px; }
}

/* CTA banner */
.cta-banner {
  background: var(--ink); padding: clamp(80px, 10vh, 140px) clamp(24px, 4vw, 64px);
  text-align: center;
}
.cta-banner-heading {
  font-family: var(--font-display); font-size: clamp(36px, 5vw, 72px);
  font-weight: 400; color: var(--warm-white); line-height: 1.1; margin-bottom: 32px;
}
.cta-banner-text {
  font-family: var(--font-body); font-size: 15px; color: var(--stone);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.8;
}
.cta-banner .magnetic-btn { border-color: var(--warm-white); }

/* Legal pages */
.legal-content {
  max-width: 800px; margin: 0 auto;
  padding: clamp(80px, 10vh, 140px) clamp(24px, 4vw, 64px);
}
.legal-content h2 {
  font-family: var(--font-display); font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 400; margin: 48px 0 16px;
}
.legal-content p {
  font-family: var(--font-body); font-size: 15px; line-height: 1.8;
  color: var(--stone); margin-bottom: 16px;
}
.legal-content ul {
  list-style: none; padding-left: 24px; margin-bottom: 24px;
}
.legal-content ul li {
  font-family: var(--font-body); font-size: 15px; line-height: 1.8;
  color: var(--stone); padding-left: 16px; position: relative; margin-bottom: 8px;
}
.legal-content ul li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--sienna);
}
