/* ==========================================
   AXEON.ESTATE - Luxury Property Showcase
   ========================================== */

:root {
  --gold: #c9a96e;
  --gold-light: #d4bc8e;
  --gold-dark: #a88b4a;
  --black: #0a0a0a;
  --charcoal: #1a1a1a;
  --dark: #111111;
  --grey-900: #222222;
  --grey-800: #333333;
  --grey-600: #666666;
  --grey-400: #999999;
  --grey-200: #e0e0e0;
  --grey-100: #f5f5f5;
  --white: #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Navigation
   ========================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo,
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
}

.nav-logo { color: var(--white); }

.logo-dot { color: var(--gold); }
.logo-estate {
  font-weight: 400;
  font-size: 0.85em;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  padding: 10px 24px;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  transition: all var(--transition) !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--gold-light) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all var(--transition);
}

/* ==========================================
   Hero
   ========================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg img.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: heroZoom 20s ease-out forwards;
}

/* Hide fallback image when video is playing */
.hero-bg .hero-video + .hero-fallback {
  position: absolute;
  inset: 0;
  z-index: -1;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 900px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title span {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 580px;
  margin: 0 auto 48px;
  opacity: 0.85;
  line-height: 1.8;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-number sup {
  font-size: 0.5em;
  vertical-align: super;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-top: 6px;
  display: block;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--white);
  animation: fadeUp 1.2s ease-out 1s both;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 110, 0.3);
}

.btn-full { width: 100%; text-align: center; }

/* ==========================================
   Sections
   ========================================== */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}

.section-eyebrow--light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.section-title--light { color: var(--white); }

/* ==========================================
   Showcase Strip — full-width cinematic image breaks
   ========================================== */
.showcase-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.showcase-image {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 400px;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.showcase-caption {
  position: absolute;
  bottom: 40px;
  left: 40px;
  z-index: 2;
  color: var(--white);
}

.showcase-caption--center {
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.showcase-caption span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  display: block;
  margin-bottom: 8px;
}

.showcase-caption p {
  font-size: 0.9rem;
  opacity: 0.7;
  letter-spacing: 0.03em;
}

.showcase-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
  z-index: 1;
}

.showcase-strip--dark::after {
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

/* ==========================================
   Residence
   ========================================== */
.residence { background: var(--white); }

.residence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.residence-text .lead {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--charcoal);
  font-weight: 400;
}

.residence-text p {
  color: var(--grey-600);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.residence-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.feature h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.feature p {
  font-size: 0.85rem !important;
  color: var(--grey-600);
  margin-bottom: 0 !important;
}

.img-stack {
  position: relative;
}

.img-stack img:first-child {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.img-stack .img-stack-overlay {
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 280px;
  object-fit: cover;
  border: 6px solid var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   Gallery
   ========================================== */
.gallery-section {
  background: var(--grey-100);
  padding-bottom: 120px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ==========================================
   Views
   ========================================== */
.views-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.views-parallax {
  position: absolute;
  inset: 0;
}

.views-parallax img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center top;
}

.views-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.85) 0%,
    rgba(10, 10, 10, 0.5) 100%
  );
}

.views-content {
  position: relative;
  padding: 120px 24px;
}

.views-description {
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-top: 24px;
}

.views-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.view-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.view-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.view-card:hover img {
  transform: scale(1.05);
}

.view-card span {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ==========================================
   Amenities
   ========================================== */
.amenities-section {
  background: var(--white);
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 60px;
}

.amenity-card--featured {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.amenity-card--featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.amenity-card--featured:hover img {
  transform: scale(1.05);
}

.amenity-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--white);
}

.amenity-info h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.amenity-info p {
  font-size: 0.85rem;
  opacity: 0.8;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--grey-200);
  transition: all var(--transition);
}

.amenity-item:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.03);
}

.amenity-item svg { color: var(--gold); flex-shrink: 0; }

.amenity-item span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ==========================================
   Location
   ========================================== */
.location-section {
  background: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.location-info .lead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 32px;
}

.location-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.location-highlight {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-left: 2px solid var(--gold);
}

.highlight-distance {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.highlight-place {
  font-size: 0.82rem;
  color: var(--grey-600);
  line-height: 1.4;
}

.location-map {
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.map-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.map-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--transition-slow);
}

.map-link:hover .map-img {
  transform: scale(1.03);
}

.map-overlay-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.map-link:hover .map-overlay-btn {
  opacity: 1;
}

.map-address {
  padding: 16px 20px;
  background: var(--charcoal);
  color: var(--grey-400);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .location-grid { grid-template-columns: 1fr; gap: 40px; }
  .location-highlights { grid-template-columns: 1fr; }
}

/* ==========================================
   Contact
   ========================================== */
.contact-section {
  background: var(--grey-100);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-description {
  color: var(--grey-600);
  margin-top: 24px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-details {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-detail svg {
  color: var(--gold);
  margin-top: 4px;
  flex-shrink: 0;
}

.contact-detail strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-detail p {
  font-size: 0.9rem;
  color: var(--grey-600);
  line-height: 1.6;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 48px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: var(--charcoal);
}

.form-group {
  position: relative;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: none;
  border-bottom: 1px solid var(--grey-200);
  background: transparent;
  color: var(--charcoal);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--gold);
}

.form-group label {
  position: absolute;
  top: 16px;
  left: 0;
  font-size: 0.85rem;
  color: var(--grey-400);
  transition: all var(--transition);
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-group select {
  width: 100%;
  padding: 16px 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: none;
  border-bottom: 1px solid var(--grey-200);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  outline: none;
  appearance: none;
}

.form-group select:focus {
  border-bottom-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-success {
  text-align: center;
  padding: 32px;
  color: var(--gold-dark);
}

.form-success svg {
  color: var(--gold);
  margin-bottom: 12px;
}

.form-success p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--grey-600);
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--grey-600);
  letter-spacing: 0.05em;
}

/* ==========================================
   Lightbox
   ========================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}

.lightbox-close {
  top: 20px;
  right: 24px;
  font-size: 2.5rem;
  line-height: 1;
  opacity: 0.7;
}

.lightbox-close:hover { opacity: 1; color: var(--gold); }

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  opacity: 0.5;
  padding: 20px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; color: var(--gold); }

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================
   Reveal Animations

   ANIMATION PHILOSOPHY:
   - Hero: Cinematic staggered entrance (eyebrow -> title -> subtitle -> stats -> CTA)
   - Section headers: Eyebrow slides in from left, title fades up — staggered
   - Images: Clip-path reveal (curtain wipe) — feels premium, not generic
   - Gallery items: Scale from 0.92 + fade — staggered by index
   - Feature items: Slide in from left with stagger
   - Amenity items: Fade up with stagger
   - View cards: Slide up with stagger delay
   - Contact form: Slides in from right
   - NO animation on: body text paragraphs, labels, footers, nav items (static = grounded)
   - Hover states: Intentional but restrained — scale on images, glow on buttons
   ========================================== */

/* Base reveal — used for simple fade-up groups */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside reveal containers */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.5s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Image curtain reveal — scale-in effect */
.reveal-image {
  overflow: hidden;
  position: relative;
}

.reveal-image img {
  transform: scale(1.15);
  opacity: 0;
  transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-image.visible img {
  transform: scale(1);
  opacity: 1;
}

/* Slide from left — for eyebrows and features */
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right — for contact form */
.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Gallery stagger — items scale up individually */
.gallery-item {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item.visible {
  opacity: 1;
  transform: scale(1);
}

/* View cards — slide up with individual delays */
.view-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Amenity items — fade up with stagger */
.amenity-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color var(--transition),
              background var(--transition);
}

.amenity-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Feature items — slide from left */
.feature {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hero staggered entrance — each element enters sequentially */
.hero-content .hero-eyebrow {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-content .hero-title {
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

.hero-content .hero-subtitle {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

.hero-content .hero-stats {
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 1.3s both;
}

.hero-content .btn {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.6s both;
}

/* Gold line that draws in under section eyebrows */
.section-eyebrow {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-eyebrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.visible .section-eyebrow::after,
.reveal.visible .section-eyebrow::after {
  transform: translateX(-50%) scaleX(1);
}

/* Button hover micro-interaction — subtle lift + gold glow */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

/* Lightbox image entrance */
.lightbox-content img {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease;
}

.lightbox.active .lightbox-content img {
  animation: lightboxIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Nav link hover — gold underline draws from left */
.nav-links a::after {
  transform-origin: left;
}

/* Image stack overlay — slides in from bottom-left */
.img-stack .img-stack-overlay {
  opacity: 0;
  transform: translate(-20px, 20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s,
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.reveal.visible .img-stack .img-stack-overlay,
.visible .img-stack .img-stack-overlay {
  opacity: 1;
  transform: translate(0, 0);
}

/* Contact form wrapper — subtle shadow animation on reveal */
.contact-form-wrapper {
  transition: box-shadow 1s ease 0.3s;
}

.reveal-right.visible.contact-form-wrapper {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

/* Amenity card image — clip reveal from left */
.amenity-card--featured {
  overflow: hidden;
  position: relative;
}

.amenity-card--featured img {
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.amenity-card--featured .amenity-info {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.4s, transform 0.6s ease 0.4s;
}

.amenity-card--featured.visible .amenity-info {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   WhatsApp Dedicated Section
   ========================================== */
.whatsapp-section {
  padding: 80px 0;
  background: var(--white);
}

.whatsapp-card {
  background: var(--charcoal);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.whatsapp-card-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.whatsapp-icon-wrap {
  width: 72px;
  height: 72px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.whatsapp-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 8px;
}

.whatsapp-card p {
  font-size: 0.9rem;
  color: var(--grey-400);
  line-height: 1.6;
  max-width: 420px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: #25D366;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
  .whatsapp-card {
    flex-direction: column;
    padding: 40px 24px;
    text-align: center;
  }
  .whatsapp-card-content {
    flex-direction: column;
  }
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal, .reveal-left, .reveal-right, .gallery-item,
  .view-card, .amenity-item, .feature, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
  .residence-grid { grid-template-columns: 1fr; gap: 48px; }
  .amenities-list { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    transition: right var(--transition);
  }

  .nav-links.open { right: 0; }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  .section { padding: 80px 0; }
  .section-header { margin-bottom: 48px; }

  .hero-stats { gap: 20px; flex-wrap: wrap; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item--tall { grid-row: span 1; }
  .gallery-item--wide { grid-column: span 1; aspect-ratio: 1; }

  .views-grid { grid-template-columns: 1fr; gap: 16px; }
  .view-card { aspect-ratio: 16/9; }

  .amenities-grid { grid-template-columns: 1fr; }
  .amenities-list { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .contact-form-wrapper { padding: 32px 24px; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }

  .img-stack .img-stack-overlay {
    width: 140px;
    height: 200px;
    left: -16px;
    bottom: -24px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .stat-number { font-size: 1.8rem; }
  .btn { padding: 14px 28px; font-size: 0.8rem; }
}
