/* ============================================================
   AETHERA — Luxury Cinematic Real Estate
   index.css
   Mobile-first, responsive, premium dark theme
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --gold: #d4af37;
  /* Metallic bright gold from main */
  --gold-a: rgba(212, 175, 55, 0.6);
  /* Transparent gold from main */
  --gold-dim: rgba(212, 175, 55, 0.25);
  /* Glow from main */
  --white: #f5f5f7;
  /* Warm white from main */
  --off-white: rgba(245, 245, 247, 0.88);
  /* Translucent warm white */
  --muted: #a1a1a6;
  /* Soft gray from main */
  --bg: #0a0a0a;
  /* Deep obsidian black from main */
  --bg-1: #121212;
  /* Rich slate charcoal from main */
  --bg-2: #1a1a1c;
  /* Translucent dark glass-ish */
  --border: rgba(255, 255, 255, 0.08);
  /* Glass border from main */
  --border-gold: rgba(212, 175, 55, 0.25);
  /* Gold border from main */
  --radius: 2px;

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
}

.light-theme {
  --bg: #f9f9fb;
  --bg-1: #f0f0f4;
  --bg-2: #e4e4e9;
  --off-white: rgba(18, 18, 18, 0.88);
  --muted: #86868b;
  --border: rgba(0, 0, 0, 0.07);
  --border-gold: rgba(184, 144, 71, 0.22);
  --white: #121212;
  --gold: #b89047;
  --gold-a: rgba(184, 144, 71, 0.6);
  --gold-dim: rgba(184, 144, 71, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--off-white);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

body.light-theme {
  background: var(--bg);
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── CURSOR ──────────────────────────────────────────────── */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease),
    background 0.2s var(--ease);
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gold-a);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease), width 0.3s var(--ease),
    height 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cursor.hover {
  width: 14px;
  height: 14px;
}

.cursor-follower.hover {
  width: 56px;
  height: 56px;
  opacity: 0.4;
}

@media (hover: none) {

  .cursor,
  .cursor-follower {
    display: none;
  }

  body {
    cursor: auto;
  }
}

/* ── PRELOADER ───────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.preloader.out {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.preloader-brand {
  font-family: var(--font-serif);
  font-size: clamp(24px, 5vw, 42px);
  letter-spacing: 0.5em;
  color: var(--white);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) 0.2s forwards;
}

.preloader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin: 0 auto 16px;
}

.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), rgba(196, 160, 100, 0.4));
  width: 0%;
  transition: width 0.05s linear;
}

.preloader-pct {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--gold-a);
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5%, 70px);
  height: 72px;
  transition: background 0.4s var(--ease), height 0.3s var(--ease),
    border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
  height: 60px;
}

.light-theme .navbar.scrolled {
  background: rgba(248, 245, 240, 0.9);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--off-white);
  text-transform: uppercase;
}

.nav-dot {
  color: var(--gold);
}

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

.nav-link {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
  position: relative;
}

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

.nav-link:hover {
  color: var(--off-white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--border-gold);
  color: var(--gold-a);
  padding: 9px 22px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.nav-cta:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(196, 160, 100, 0.04);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--off-white);
  transition: all 0.3s var(--ease);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(20px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease), padding 0.3s var(--ease);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    max-height: 300px;
    padding: 20px 0;
  }

  .nav-links .nav-link {
    padding: 14px clamp(20px, 5%, 70px);
    font-size: 11px;
  }

  .nav-cta {
    display: none;
  }
}

/* ============================================================
   HERO / SCROLLHOUSE SECTION
   ============================================================ */
.hero-scroll {
  position: relative;
  height: 500vh;
}

.scroll-track {
  height: 100%;
}

.scroll-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%,
      #0d0d0d 0%, #050505 100%);
}

.scroll-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.light-theme .scroll-grid {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3) 1px, transparent 1px);
}

.particles-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
}

/* ── 3D HOUSE ────────────────────────────────────────────── */
.house-stage {
  position: absolute;
  z-index: 5;
  perspective: 1100px;
  perspective-origin: 50% 55%;
  width: clamp(280px, 55vw, 420px);
  height: clamp(280px, 55vw, 420px);
  transform-origin: center center;
}

.house-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg) rotateX(0deg);
  transition: transform 0.05s linear;
  cursor: grab;
}

.house-3d:active {
  cursor: grabbing;
}

/* Face base */
.face {
  position: absolute;
  backface-visibility: hidden;
}

/* Ground */
.ground {
  width: 500px;
  height: 500px;
  background: linear-gradient(#111, #0a0a0a);
  transform: translateX(-40px) rotateX(90deg) translateZ(-90px);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.9);
}

/* Body front */
.body-front {
  width: 260px;
  height: 130px;
  background: linear-gradient(160deg, #2a2a2a, #1a1a1a);
  transform: translateX(-10px) translateY(-20px) translateZ(90px);
  border-top: 2px solid #333;
  overflow: hidden;
}

.glass-panel {
  position: absolute;
  background: rgba(140, 190, 220, 0.38);
  border: 1px solid rgba(140, 190, 220, 0.22);
}

.door {
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 44px;
  height: 76px;
  background: #0a0a0a;
  border: 1px solid #222;
}

.door-handle {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.fin {
  position: absolute;
  top: 0;
  width: 4px;
  height: 132px;
  background: linear-gradient(180deg, var(--gold), rgba(196, 160, 100, 0.15));
}

/* Body back */
.body-back {
  width: 260px;
  height: 130px;
  background: linear-gradient(160deg, #1e1e1e, #141414);
  transform: translateX(-10px) translateY(-20px) translateZ(-90px) rotateY(180deg);
  border-top: 2px solid #2a2a2a;
}

/* Body right */
.body-right {
  width: 180px;
  height: 130px;
  background: linear-gradient(160deg, #222, #181818);
  transform: translateX(120px) translateY(-20px) rotateY(90deg);
  border-top: 2px solid #2a2a2a;
}

/* Body left */
.body-left {
  width: 180px;
  height: 130px;
  background: #161616;
  transform: translateX(-150px) translateY(-20px) rotateY(-90deg);
}

/* Roof main */
.roof-main {
  width: 290px;
  height: 200px;
  background: linear-gradient(#111, #0d0d0d);
  transform: translateX(-25px) translateY(-151px) rotateX(90deg);
  border: 1px solid #222;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
}

/* Left wing front */
.wing-front {
  width: 110px;
  height: 100px;
  background: linear-gradient(160deg, #232323, #161616);
  transform: translateX(-150px) translateY(-10px) translateZ(70px);
  border-top: 2px solid #2a2a2a;
}

/* Wing roof */
.wing-roof {
  width: 150px;
  height: 150px;
  background: #0e0e0e;
  transform: translateX(-175px) translateY(-111px) rotateX(90deg);
  border: 1px solid #1f1f1f;
}

/* Pool deck */
.pool-deck {
  width: 160px;
  height: 120px;
  background: linear-gradient(#1a1a1a, #141414);
  transform: translateX(130px) translateY(10px) translateZ(30px) rotateX(90deg);
  border: 1px solid rgba(30, 104, 128, 0.3);
}

.pool-water {
  position: absolute;
  inset: 8px;
  background: linear-gradient(135deg, rgba(30, 100, 140, 0.7), rgba(20, 80, 110, 0.5));
  border: 1px solid rgba(140, 200, 220, 0.2);
  animation: poolShimmer 4s ease-in-out infinite alternate;
}

@keyframes poolShimmer {
  from {
    opacity: 0.7;
  }

  to {
    opacity: 1;
  }
}

/* Chimney */
.chimney {
  width: 20px;
  height: 70px;
  background: #191919;
  transform: translateX(80px) translateY(-210px) translateZ(20px);
  border-top: 3px solid #2a2a2a;
}

/* Steps */
.step-1 {
  width: 80px;
  height: 14px;
  background: #f0ece4;
  transform: translateX(-30px) translateY(95px) translateZ(100px);
}

.step-2 {
  width: 80px;
  height: 14px;
  background: #e8e4dc;
  transform: translateX(-30px) translateY(110px) translateZ(112px);
}

/* Trees */
.tree {
  position: absolute;
  transform: translateX(var(--tx)) translateY(-40px) translateZ(var(--tz));
}

.tree::before {
  content: '';
  display: block;
  width: 10px;
  height: 60px;
  background: #2a1f10;
  margin: 0 auto;
}

.tree::after {
  content: '';
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #243820, #152010);
  margin-left: -18px;
  margin-top: -20px;
}

/* Lounge chairs */
.lounge-chair {
  position: absolute;
  transform: translateX(calc(130px + var(--ox))) translateY(60px) translateZ(-30px) rotateX(90deg);
  width: 40px;
  height: 14px;
  background: #3b2a1a;
  border: 1px solid #4a3828;
}

/* ── SCROLL HOUSE scale adaptation ── */
@media (max-width: 768px) {
  .house-stage {
    transform: scale(0.58);
  }
}

@media (max-width: 480px) {
  .house-stage {
    transform: scale(0.44);
  }
}

@media (min-width: 769px) {
  .house-stage {
    margin-top: 50px; /* spacing between 3d model and nav only on pc */
  }
}

/* ── VIGNETTE ────────────────────────────────────────────── */
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  background:
    radial-gradient(ellipse 75% 75% at 50% 50%, transparent 20%, rgba(0, 0, 0, 0.65) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 18%, transparent 72%, rgba(0, 0, 0, 0.75) 100%);
}

/* ── WORDMARK ────────────────────────────────────────────── */
.scroll-wordmark {
  position: absolute;
  top: 28px;
  left: clamp(20px, 6%, 80px);
  z-index: 20;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.44em;
  color: var(--off-white);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s var(--ease) 0.5s forwards;
}

/* ── TEXT PANELS ─────────────────────────────────────────── */
.panels-layer {
  position: absolute;
  inset: 0;
  z-index: 15;
  pointer-events: none;
}

.text-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 7%, 90px);
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

.text-panel.panel-hidden {
  opacity: 0;
}

.text-panel.panel-right {
  align-items: flex-end;
  text-align: right;
}

.text-panel.panel-center {
  align-items: center;
  text-align: center;
}

.panel-tag-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-tag-row-right {
  flex-direction: row-reverse;
}

.panel-tag-row-center {
  justify-content: center;
}

.panel-line {
  width: 28px;
  height: 1px;
  background: var(--gold-dim);
}

.panel-tag {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--gold-a);
  text-transform: uppercase;
}

.panel-h1 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(38px, 6.5vw, 90px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--off-white);
  margin: 0;
}

.panel-h1.italic {
  font-style: italic;
}

.gold {
  color: var(--gold);
}

.panel-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  max-width: 320px;
  line-height: 1.7;
  margin-top: 20px;
}

.panel-right .panel-sub {
  text-align: right;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 13px 36px;
  border: 1px solid var(--border-gold);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  pointer-events: all;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.panel-cta:hover {
  border-color: var(--gold);
  background: rgba(196, 160, 100, 0.06);
  color: var(--gold);
}

/* ── FROSTED BADGE ───────────────────────────────────────── */
.scroll-badge {
  position: absolute;
  bottom: clamp(52px, 8%, 80px);
  right: clamp(20px, 4%, 52px);
  z-index: 20;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 24px;
  min-width: 200px;
  transition: opacity 0.4s var(--ease);
}

.badge-tag {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.26em;
  color: var(--gold-a);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.badge-price {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--off-white);
  font-weight: 300;
  margin-bottom: 10px;
}

.badge-from {
  font-family: var(--font-sans);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.06em;
}

.badge-line {
  margin-top: 14px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-a) 0%, transparent 100%);
}

@media (max-width: 480px) {
  .scroll-badge {
    display: none;
  }
}

/* ── SCROLL PROGRESS ─────────────────────────────────────── */
.progress-track {
  position: absolute;
  right: 20px;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 20;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: linear-gradient(180deg, var(--gold), rgba(196, 160, 100, 0.2));
  transition: height 0.05s linear;
}

/* ── SCROLL HINT ─────────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity 0.4s var(--ease);
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  position: relative;
  animation: mouseFloat 2.2s ease-in-out infinite;
}

.scroll-mouse-dot {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold-a);
  animation: dotScroll 2.2s ease-in-out infinite;
}

@keyframes mouseFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

@keyframes dotScroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

.scroll-hint-text {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
}

/* ── DRAG HINT ───────────────────────────────────────────── */
.drag-hint {
  position: absolute;
  bottom: 36px;
  right: 50px;
  z-index: 20;
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.18);
  text-transform: uppercase;
  pointer-events: none;
}

.drag-hint.visible {
  display: flex;
}

/* ============================================================
   COLLECTIONS SECTION
   ============================================================ */
.showcase {
  background: var(--bg);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6%, 80px);
}

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

.section-tag-outer {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--gold-a);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 64px);
  color: var(--off-white);
  letter-spacing: -0.01em;
  line-height: 1;
  margin-bottom: 18px;
}

.section-title-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dim), transparent);
  margin: 0 auto;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 60px;
  border: 1px solid var(--border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.filter-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 12px 24px;
  color: var(--muted);
  border-right: 1px solid var(--border);
  transition: color 0.25s, background 0.25s;
}

.filter-tab:last-child {
  border-right: none;
}

.filter-tab.active,
.filter-tab:hover {
  color: var(--gold);
  background: rgba(196, 160, 100, 0.04);
}

/* Property Grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  perspective: 1200px;
}

/* Property Card Container */
.property-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
  transition: border-color 0.5s var(--ease), 
              box-shadow 0.5s var(--ease),
              transform 0.1s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.property-card:hover {
  border-color: var(--border-gold);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08), 0 0 30px var(--gold-dim);
}

/* Visual Container with perspective layers */
.property-media {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  transform: translateZ(30px);
}

/* Image Wrappers and Cross-fading styling */
.property-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.property-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity 0.8s var(--ease);
  will-change: transform, opacity;
}

.property-img.exterior-img {
  opacity: 1;
  z-index: 2;
}

.property-img.interior-img {
  opacity: 0;
  z-index: 1;
}

.property-card:hover .property-img {
  transform: scale(1.06);
}

/* When viewing interior state */
.property-card.show-interior .exterior-img {
  opacity: 0;
  z-index: 1;
}

.property-card.show-interior .interior-img {
  opacity: 1;
  z-index: 2;
}

/* View State Badge Indicator */
.view-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  z-index: 10;
  font-weight: 600;
  transition: all 0.25s ease;
}

.property-card.show-interior .view-badge {
  border-color: var(--gold);
  color: var(--gold);
}

/* Card Control Panel Overlay */
.card-toggle-panel {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateZ(40px);
  z-index: 10;
  display: flex;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 0.25rem;
  width: 85%;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transition: border-color 0.5s var(--ease);
  pointer-events: auto;
}

.property-card:hover .card-toggle-panel {
  border-color: var(--border-gold);
}

.toggle-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.5s var(--ease);
  pointer-events: auto;
}

.toggle-btn.active {
  color: var(--bg);
  background-color: var(--white);
}

.property-card.show-interior .toggle-btn.interior-btn.active {
  background-color: var(--gold);
  color: #fff;
}

/* Card Text Info - floating details */
.property-details {
  padding: 2rem;
  transform: translateZ(20px);
}

.property-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.property-meta span:last-child {
  color: var(--gold);
  font-size: 0.85rem;
}

.property-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--white);
  transition: color 0.25s ease;
}

.property-card:hover .property-name {
  color: var(--gold);
}

.property-location {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--off-white);
  margin-bottom: 1.5rem;
}

.property-specs {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.2rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.spec-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--white);
  font-weight: 600;
  margin-top: 0.2rem;
}

/* Responsive adjustments for property section */
@media (max-width: 1200px) {
  .property-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}
@media (max-width: 768px) {
  .property-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .property-media {
    height: 360px;
  }
}

/* ============================================================
   PHILOSOPHY SECTION
   ============================================================ */
.about {
  position: relative;
  background: var(--bg-1);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6%, 80px);
  overflow: hidden;
}

.architect-grid {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-media {
  position: relative;
  height: clamp(400px, 55vw, 640px);
}

.about-img-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 72%;
  height: 80%;
  overflow: hidden;
}

.about-img-sub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 52%;
  height: 52%;
  overflow: hidden;
  border: 3px solid var(--bg-1);
}

.about-img-main img,
.about-img-sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.about-img-main:hover img,
.about-img-sub:hover img {
  transform: scale(1.04);
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 5, 5, 0.4) 100%);
}

.about-img-main.img-missing,
.about-img-sub.img-missing {
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-float-stat {
  position: absolute;
  right: 0;
  top: 40%;
  background: var(--bg);
  border: 1px solid var(--border-gold);
  padding: 20px 24px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.float-num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--gold);
  font-weight: 300;
}

.float-label {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-text {}

.about-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 300;
  color: var(--off-white);
  line-height: 1.4;
  border-left: 2px solid var(--gold-dim);
  padding-left: 24px;
  margin: 20px 0 30px;
  letter-spacing: 0.01em;
}

.about-quote em {
  color: var(--gold);
  font-style: italic;
}

.about-paragraph {
  font-family: var(--font-serif);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.85;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.about-signature-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.signature-line {
  width: 32px;
  height: 1px;
  background: var(--gold-dim);
}

.about-signature {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
}

.about-stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 8px;
}

.about-stat {
  flex: 1;
  padding-right: 24px;
  border-right: 1px solid var(--border);
  margin-right: 24px;
}

.about-stat:last-child {
  border-right: none;
  margin-right: 0;
}

.stat-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--off-white);
  font-weight: 300;
  margin-bottom: 4px;
}

.stat-desc {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

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

  .about-media {
    height: 300px;
    margin-bottom: 40px;
  }
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
  background: var(--bg);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 6%, 80px);
}

.contact-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.contact-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--off-white);
  line-height: 1;
  margin: 14px 0 36px;
}

.contact-title em {
  color: var(--gold);
  font-style: italic;
}

.contact-details {
  list-style: none;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-label {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-val {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--off-white);
}

.contact-val a {
  color: var(--gold-a);
  transition: color 0.25s;
}

.contact-val a:hover {
  color: var(--gold);
}

.contact-estates {
  margin-top: 28px;
}

.estates-label {
  font-family: var(--font-sans);
  font-size: 8px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.estate-pill {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--gold-a);
  padding: 8px 14px;
  border: 1px solid var(--border-gold);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  transition: border-color 0.25s, color 0.25s;
}

.estate-pill:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Form */
.inquiry-form {
  position: relative;
}

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

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--off-white);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  padding: 12px 0 10px;
  transition: border-color 0.3s;
  outline: none;
  appearance: none;
}

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

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.3s var(--ease);
  pointer-events: none;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
  top: -14px;
  font-size: 8px;
  color: var(--gold-a);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}

.form-input:focus~.form-line {
  width: 100%;
}

.form-select {
  cursor: pointer;
}

.form-select option {
  background: var(--bg-1);
  color: var(--off-white);
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(196, 160, 100, 0.06);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
}

.form-submit:hover::before {
  transform: translateX(0);
}

.form-submit:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--gold-a);
}

.form-success.visible {
  display: flex;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: clamp(60px, 8vw, 100px) clamp(20px, 6%, 80px) 0;
}

.footer-top {
  display: flex;
  gap: clamp(30px, 6vw, 80px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-brand {
  flex: 0 0 280px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.44em;
  color: var(--off-white);
  display: inline-block;
  margin-bottom: 16px;
}

.footer-logo span {
  color: var(--gold);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.social-link {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}

.social-link:hover {
  color: var(--gold);
}

.footer-cols {
  display: flex;
  gap: clamp(30px, 5vw, 60px);
  flex-wrap: wrap;
  flex: 1;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-a);
  margin-bottom: 18px;
}

.footer-link {
  font-family: var(--font-serif);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  transition: color 0.25s;
}

.footer-link:hover {
  color: var(--off-white);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   ADMIN PAGE
   ============================================================ */
.admin-header {
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(20px, 5%, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--off-white);
  letter-spacing: 0.3em;
  font-weight: 300;
}

.admin-brand span {
  color: var(--gold);
}

.admin-back {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}

.admin-back:hover {
  color: var(--gold);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin: 0;
}

.stat-card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--gold);
  font-weight: 300;
}

.admin-box {
  padding: clamp(30px, 4vw, 50px) clamp(20px, 5%, 60px);
}

.admin-box-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--off-white);
  margin-bottom: 24px;
}

.admin-empty {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.toast {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(16px);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--gold-a);
  opacity: 0;
  transform: translateY(12px);
  animation: toastIn 0.4s var(--ease) forwards,
    toastOut 0.4s var(--ease) 2.5s forwards;
  white-space: nowrap;
}

@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ============================================================
   THEME TOGGLE
   ============================================================ */
.theme-toggle {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 800;
  width: 44px;
  height: 44px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
  border-radius: 50%;
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--border-gold);
}

.sun-icon {
  display: block;
}

.moon-icon {
  display: none;
}

.light-theme .sun-icon {
  display: none;
}

.light-theme .moon-icon {
  display: block;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal,
.reveal-left,
.reveal-right {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal.in-view,
.reveal-left.in-view,
.reveal-right.in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   UTILITY ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── WELCOME LAYER ── */
.welcome-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 12;
  text-align: center;
  pointer-events: none;
  padding: 0 20px;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.2) 0%, rgba(10, 10, 10, 0.75) 80%);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.light-theme .welcome-layer {
  background: radial-gradient(circle at center, rgba(249, 249, 251, 0.1) 0%, rgba(249, 249, 251, 0.6) 80%);
}

.welcome-tag {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 1.2s var(--ease) forwards 0.3s;
}

.welcome-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1.5s var(--ease) forwards 0.5s;
}

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

.welcome-scroll-hint {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1.8s var(--ease) forwards 0.7s;
}

/* ── NEW INQUIRY SECTION STYLES ── */
.contact-info-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: var(--white);
}

.contact-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-detail-item span {
  font-size: 1rem;
  color: var(--white);
  font-weight: 400;
}

.contact-detail-item a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}

.contact-detail-item a:hover {
  color: var(--white);
  text-shadow: 0 0 10px var(--gold-dim);
}

.contact-form-column {
  width: 100%;
}

.form-input-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--gold);
  transition: width 0.4s var(--ease);
}

.form-input:focus~.form-input-focus-line {
  width: 100%;
}

.form-submit-btn {
  width: 100%;
  padding: 1.2rem 2.5rem;
  background-color: var(--white);
  border: 1px solid var(--white);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  margin-top: 1rem;
}

.form-submit-btn:hover {
  background-color: transparent;
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 15px 30px var(--gold-dim);
  transform: translateY(-2px);
}

/* Responsive adjustments for the new contact section */
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 4rem;
    padding: 3rem;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 2rem 1.5rem;
  }

  .contact-info-title {
    font-size: 2.2rem;
  }
}