/* =========================================================
   MORPHEUS REALTY REALM — Global Design System v2
   Light Theme · Industrial Luxury · Land Mediation
   ========================================================= */

/* ─── Google Fonts ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── CSS Custom Properties ────────────────────────────── */
:root {
  /* Palette */
  --bg:              #F4F1EB;
  --bg-card:         #FFFFFF;
  --bg-card-alt:     #F9F7F3;
  --text-primary:    #0A0A0A;
  --text-secondary:  #4A4A4A;
  --text-muted:      #8C8C8C;
  --gold:            #B8942A;
  --gold-light:      #D4AF5A;
  --gold-dim:        rgba(184,148,42,0.10);
  --border:          rgba(10,10,10,0.08);
  --border-strong:   rgba(10,10,10,0.18);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --section-gap:  clamp(4rem, 10vh, 8rem);
  --container-w:  1280px;
  --container-px: clamp(1.5rem, 4vw, 4rem);

  /* Radii */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --radius-pill:  999px;

  /* Elevation */
  --shadow-sm:    0 2px 8px rgba(10,10,10,0.06);
  --shadow-md:    0 8px 32px rgba(10,10,10,0.10);
  --shadow-lg:    0 20px 60px rgba(10,10,10,0.14);

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.3s var(--ease-in-out);

  /* Glassmorphism tokens */
  --glass-bg:     rgba(255,255,255,0.45);
  --glass-border: rgba(255,255,255,0.6);
  --glass-blur:   20px;

  /* Aliases */
  --gold-color:   var(--gold);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ─── Three.js Canvas ──────────────────────────────────── */
#emperor-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100% !important;
  height: 100% !important;
}

/* ─── Page content above canvas ────────────────────────── */
.page-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  padding-bottom: 110px; /* dock clearance */
}

/* ─── Container ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-left: auto;
  margin-right: auto;
  padding-left:  var(--container-px);
  padding-right: var(--container-px);
}

/* ─── Typography ────────────────────────────────────────── */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.t-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
}

.t-subheading {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
}

.t-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.t-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.t-caption {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Hero eyebrow ──────────────────────────────────────── */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero__eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* ─── Hero CTA group ─────────────────────────────────────── */
.hero__cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--text-primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: 1.5px solid var(--text-primary);
}
.btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(184,148,42,0.28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: 1.5px solid var(--gold);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,148,42,0.2);
}

/* ─── Divider ───────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--section-gap) 0;
}

/* ─── Section label ─────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── Stats bar ─────────────────────────────────────────── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
}
@media (max-width: 640px) { .stats-bar { grid-template-columns: 1fr; } }

.stat-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border);
  transition: var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-card-alt); }

.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.stat-item__num span { color: var(--gold); }

/* ─── Property Cards ─────────────────────────────────────── */
.prop-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
  cursor: pointer;
}
.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.prop-card__body { padding: 1.5rem; }

.prop-card__badge {
  display: inline-flex;
  align-items: center;
  background: var(--gold-dim);
  color: var(--gold);
  border-radius: var(--radius-pill);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.2rem 0.75rem;
  border: 1px solid rgba(184,148,42,0.15);
  margin-bottom: 0.75rem;
}

.prop-card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.prop-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}
.prop-card__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
}
.prop-card__area {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Filter Pills ───────────────────────────────────────── */
.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: var(--font-body);
}
.filter-pill:hover { border-color: var(--gold); color: var(--gold); }
.filter-pill.active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

/* ─── Dynamic Island / Liquid Glass Header ───────────────── */
.dynamic-island {
  position: fixed;
  top: clamp(.85rem, 2vh, 1.35rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9100;
  display: inline-flex;
  align-items: center;
  gap: 1.05rem;
  padding: .58rem 1.75rem .58rem .65rem;
  border-radius: 999px;
  
  /* Authentic Liquid Glass Acrylic Multi-Layer */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(255, 255, 255, 0.62) 42%,
    rgba(247, 244, 237, 0.74) 100%
  );
  backdrop-filter: blur(28px) saturate(210%) contrast(104%);
  -webkit-backdrop-filter: blur(28px) saturate(210%) contrast(104%);
  
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 20px 48px -10px rgba(10, 10, 10, 0.15),
    0 6px 18px -4px rgba(10, 10, 10, 0.07),
    inset 0 1.5px 1.5px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1.5px 2px 0 rgba(184, 148, 42, 0.12),
    inset 0 0 18px 2px rgba(255, 255, 255, 0.45),
    0 0 0 1px rgba(184, 148, 42, 0.18);
    
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1),
              box-shadow .35s ease,
              background .3s ease,
              border-color .3s ease;
  white-space: nowrap;
  overflow: hidden;
}

/* Liquid curved specular reflection highlight */
.di-glass-glare {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.15) 80%,
    transparent 100%
  );
  border-radius: 999px 999px 0 0;
  pointer-events: none;
  z-index: 1;
}

.dynamic-island:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.025);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.76) 45%,
    rgba(252, 250, 245, 0.88) 100%
  );
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 24px 55px -10px rgba(10, 10, 10, 0.18),
    0 8px 22px -4px rgba(184, 148, 42, 0.20),
    inset 0 2px 2px 0 rgba(255, 255, 255, 1),
    inset 0 -1.5px 2px 0 rgba(184, 148, 42, 0.18),
    0 0 0 1.5px rgba(184, 148, 42, 0.35);
}

.di-logo-ring {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #FFFFFF 0%, #FAF8F4 100%);
  border: 2px solid rgba(184, 148, 42, 0.75);
  box-shadow:
    0 4px 14px rgba(184, 148, 42, 0.26),
    inset 0 1.5px 2px rgba(255, 255, 255, 1),
    0 0 0 3px rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1),
              box-shadow .35s ease,
              border-color .25s ease;
  flex-shrink: 0;
}

.dynamic-island:hover .di-logo-ring {
  transform: scale(1.06);
  border-color: var(--gold, #B8942A);
  box-shadow:
    0 6px 20px rgba(184, 148, 42, 0.38),
    inset 0 2px 2px rgba(255, 255, 255, 1),
    0 0 0 3.5px rgba(255, 255, 255, 0.95);
}

.di-logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1.5px 3px rgba(0, 0, 0, 0.14));
}

a.dynamic-island,
a.dynamic-island:visited,
a.dynamic-island:hover,
a.dynamic-island:active,
a.dynamic-island:focus {
  text-decoration: none !important;
  color: #0A0A0A !important;
}

.di-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.di-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
  color: #0A0A0A !important;
  letter-spacing: .015em;
  line-height: 1.12;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.85);
}

.di-tagline {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #8C6A15 !important;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}
.di-tagline::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold, #B8942A);
  display: inline-block;
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .dynamic-island {
    max-width: calc(100vw - 1.2rem);
    padding: .42rem 1rem .42rem .48rem;
    gap: .62rem;
  }
  .di-logo-ring {
    width: 38px;
    height: 38px;
    box-shadow:
      0 3px 10px rgba(184, 148, 42, 0.22),
      0 0 0 2px rgba(255, 255, 255, 0.85);
  }
  .di-logo-img {
    width: 22px;
    height: 22px;
  }
  .di-name {
    font-size: 1.04rem;
  }
  .di-tagline {
    font-size: 0.47rem;
    letter-spacing: .06em;
    max-width: 235px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 360px) {
  .di-tagline {
    max-width: 175px;
  }
}
@media (max-width: 320px) {
  .di-tagline {
    display: none;
  }
}

/* ─── Dock centre logo ───────────────────────────────────── */
.dock-logo-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 .4rem;
  text-decoration: none;
  flex-shrink: 0;
}
.dock-logo-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(184,148,42,0.50);
  box-shadow:
    0 3px 16px rgba(184,148,42,.20),
    0 0 0 4px rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .35s cubic-bezier(.16,1,.3,1),
              box-shadow .35s ease,
              border-color .25s ease;
}
.dock-logo-center:hover .dock-logo-ring {
  transform: scale(1.12) translateY(-4px);
  border-color: rgba(184,148,42,.80);
  box-shadow:
    0 8px 28px rgba(184,148,42,.30),
    0 0 0 4px rgba(255,255,255,0.75);
}
.dock-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(10,10,10,.10));
}
@media (max-width: 600px) {
  .dock-logo-ring { width: 46px; height: 46px; }
  .dock-logo-img  { width: 28px; height: 28px; }
}

/* ─── macOS Dock Navigation ──────────────────────────────── */
.dock-nav {
  position: fixed;
  bottom: clamp(1.2rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.7rem 1.2rem;
  border-radius: var(--radius-pill);
  /* Max glassmorphism per spec with deep grey color */
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: all var(--transition);
}
.dock-item:hover { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.9); }
.dock-item.active { color: #FAF3E0; }
.dock-icon { width: 22px; height: 22px; flex-shrink: 0; }
.dock-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* Creme active dot */
.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #FAF3E0;
}

/* ─── Glassmorphism Design System Tokens ─────────────────── */
.glass-panel {
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 8px 32px rgba(31,38,135,0.04), 0 1px 0 rgba(255,255,255,0.8) inset;
}

.glass-input {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.4);
  color: var(--text-primary);
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.glass-input:focus {
  background: rgba(255,255,255,0.65);
  border-color: rgba(212,175,55,0.6);
  box-shadow: 0 0 0 3px rgba(184,148,42,0.10);
}
.glass-input::placeholder { color: var(--text-muted); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: clamp(2rem,4vh,3rem) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--section-gap);
}
.site-footer__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ─── Logo ───────────────────────────────────────────────── */
.logo { display: flex; flex-direction: column; gap: 0.2rem; }
.logo__mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}
.logo__sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Parallax Engine Classes ────────────────────────────── */
/* Applied to wrapper elements with data-parallax attribute */
[data-parallax] { will-change: transform; }

/* ─── Scroll Reveal ──────────────────────────────────────── */
/* Base class — added by HTML, toggled by IntersectionObserver in main.js */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.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; }

/* Camera hint */
.camera-hint {
  position: fixed;
  bottom: calc(clamp(1.2rem,3vh,2rem) + 82px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: var(--radius-pill);
  padding: 0.35rem 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
  z-index: 500;
}
.camera-hint.visible { opacity: 1; }

/* ─── Loading Skeleton shimmer ───────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -800px 0; }
  100% { background-position:  800px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(184,148,42,0.04) 25%, rgba(184,148,42,0.09) 50%, rgba(184,148,42,0.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: var(--radius-sm);
}

/* ─── Utilities ──────────────────────────────────────────── */
.mt-xs  { margin-top: 0.5rem; }
.mt-sm  { margin-top: 1rem;   }
.mt-md  { margin-top: 2rem;   }
.mt-lg  { margin-top: 3rem;   }
.mb-xs  { margin-bottom: 0.5rem; }
.mb-sm  { margin-bottom: 1rem;   }
.mb-md  { margin-bottom: 2rem;   }
.mb-lg  { margin-bottom: 3rem;   }

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(184,148,42,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }



/* ══════════════════════════════════════════════════════════
   DOCK NAV — Light glass, dark icons, gold active dot
   ══════════════════════════════════════════════════════════ */
.dock-nav {
  position: fixed;
  bottom: clamp(1.2rem, 3vh, 2rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;

  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 1.1rem;

  /* Black glass */
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(48px) saturate(200%);
  -webkit-backdrop-filter: blur(48px) saturate(200%);

  /* Border for dark glassmorphism */
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);

  /* Elevation */
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.25),
    0  4px 12px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  white-space: nowrap;
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.5rem 1.05rem;
  border-radius: calc(var(--radius-pill) - 4px);
  text-decoration: none;

  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s var(--ease-out);
  cursor: pointer;
  min-width: 64px;
}

.dock-item:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.dock-item.active {
  color: #FAF3E0;
}

/* Creme active dot below active item */
.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: #FAF3E0;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(250, 243, 224, 0.7);
}

.dock-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.dock-item:hover .dock-icon { transform: scale(1.12); }
.dock-item.active .dock-icon { stroke: #FAF3E0; }

.dock-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.25s ease;
}

/* Separator between dock items (optional) */
.dock-sep {
  width: 1px;
  height: 28px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
  margin: 0 0.15rem;
}

/* ── Hover scale effect (magnification) ─────────────────── */
.dock-nav:hover .dock-item {
  /* Slightly dim non-hovered siblings via sibling rule below */
}

/* ── Responsive (mobile) ────────────────────────────────── */
@media (max-width: 480px) {
  .dock-nav { bottom: 0.8rem; padding: 0.45rem 0.8rem; }
  .dock-item { padding: 0.45rem 0.7rem; min-width: 52px; }
  .dock-label { font-size: 0.5rem; }
  .dock-icon  { width: 18px; height: 18px; }
}

/* Section wrappers that need full-bleed */
.page-hero, .hero,
.stats-section, .parcels-section,
.values-section, .cta-section {
  width: 100%;
}

/* ══════════════════════════════════════════════════════════
   GLOBAL RESPONSIVE SYSTEM
   ══════════════════════════════════════════════════════════ */

/* ── Tablet / Small Desktop  (≤ 1024px) ─────────────────── */
@media (max-width: 1024px) {
  :root {
    --container-px: clamp(1.2rem, 3vw, 2.5rem);
  }

  /* Hero typography */
  .t-display { font-size: clamp(2.2rem, 6vw, 4rem); }
  .t-headline { font-size: clamp(1.5rem, 3vw, 2.2rem); }

  /* Page hero height */
  .page-hero { min-height: 50dvh; }

  /* Dock — tighter gap on tablets */
  .dock-nav { gap: 0.15rem; padding: 0.5rem 0.9rem; }
  .dock-item { min-width: 58px; padding: 0.5rem 0.85rem; }
}

/* ── Mobile Large  (≤ 768px) ─────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --container-px: 1.25rem;
    --section-gap: clamp(3rem, 8vh, 5rem);
  }

  body { overflow-x: hidden; }

  .t-display  { font-size: clamp(1.9rem, 7vw, 3rem); }
  .t-headline { font-size: clamp(1.35rem, 4vw, 1.8rem); }
  .t-body     { font-size: 0.9rem; }

  .page-hero { min-height: 55dvh; }
  .page-content { padding-bottom: 100px; }

  /* Hero CTA group stacks vertically */
  .hero__cta-group { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .btn-primary, .btn-ghost, .btn-gold { width: 100%; justify-content: center; }

  /* Stats grid collapses to 2 columns */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Dock: shrink labels slightly, keep perfectly centred */
  .dock-nav {
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.45rem 0.75rem;
    gap: 0.1rem;
  }
  .dock-item   { min-width: 54px; padding: 0.45rem 0.7rem; }
  .dock-label  { font-size: 0.52rem; letter-spacing: 0.1em; }
  .dock-icon   { width: 19px; height: 19px; }

  /* Dock blur strip height on mobile */
  .dock-blur-strip { height: 120px; }

  /* Footer stacks */
  .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ── Mobile  (≤ 480px) ───────────────────────────────────── */
@media (max-width: 480px) {
  :root {
    --container-px: 1rem;
  }

  .t-display  { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .t-headline { font-size: clamp(1.2rem, 5vw, 1.6rem); }

  /* Dock: hide labels on very small screens, keep icons */
  .dock-nav {
    bottom: 0.6rem;
    padding: 0.55rem 1rem;
    gap: 0rem;
  }
  .dock-item   { min-width: 52px; padding: 0.55rem 0.65rem; gap: 0; }
  .dock-label  { display: none; } /* icons only on phones */
  .dock-icon   { width: 22px; height: 22px; }
  .dock-blur-strip { height: 100px; }

  /* Active dot repositioned when label hidden */
  .dock-item.active::after { bottom: 4px; }

  /* Stats grid: single column */
  .stats-grid { grid-template-columns: 1fr !important; }

  /* Buttons full width */
  .btn-primary, .btn-ghost, .btn-gold {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }

  /* Page hero shorter */
  .page-hero { min-height: 45dvh; }

  /* Cards / panels full width */
  .parcels-grid,
  .property-grid { grid-template-columns: 1fr !important; }
}

/* ── Mobile Small  (≤ 360px) ─────────────────────────────── */
@media (max-width: 360px) {
  :root { --container-px: 0.85rem; }

  .dock-nav { padding: 0.5rem 0.75rem; }
  .dock-item { min-width: 44px; padding: 0.5rem 0.5rem; }
  .dock-icon { width: 20px; height: 20px; }
}

/* ── Ensure dock always pixel-perfectly centred ──────────── */
.dock-nav,
.dock-blur-strip {
  /* Force GPU layer for consistent rendering */
  will-change: transform;
  /* Prevent sub-pixel centering shifts */
  backface-visibility: hidden;
}

/* ─── Splash Screen ──────────────────────────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #F4F1EB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.8s;
  transform: translateY(0);
  visibility: visible;
}
.splash-screen.fade-out {
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.splash-logo-wrap {
  opacity: 0;
  transform: scale(0.8) translateY(15px);
  filter: blur(4px);
  animation: splashLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.splash-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(184, 148, 42, 0.28));
  animation: splashLogoPulse 2.5s infinite ease-in-out 0.8s;
}
.splash-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.splash-reveal-wrap {
  overflow: hidden;
  position: relative;
}
.splash-name {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 400;
  color: #0A0A0A;
  letter-spacing: 0.02em;
  line-height: 1.1;
  transform: translateY(100%);
  animation: splashSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.splash-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #B8942A;
  transform: translateY(100%);
  animation: splashSlideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.splash-progress {
  width: 140px;
  height: 2px;
  background: rgba(10, 10, 10, 0.05);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.4rem;
}
.splash-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 999px;
  animation: splashProgressBar 1.1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes splashLogoIn {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
@keyframes splashLogoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}
@keyframes splashSlideUp {
  to {
    transform: translateY(0);
  }
}
@keyframes splashProgressBar {
  to {
    width: 100%;
  }
}
