/* ============================================================
   MOVIT Immobilien — style.css
   ============================================================ */

:root {
  --bg: #f7f4ef;
  --bg-soft: #efeae2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #5c574f;
  --accent: #b08d57;
  --accent-deep: #8a6b3d;
  --accent-soft: rgba(176, 141, 87, 0.14);
  --line: rgba(28, 26, 23, 0.12);
  --shadow: 0 20px 60px -20px rgba(28, 26, 23, 0.25);
  --radius: 22px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --bg: #14120f;
  --bg-soft: #1c1915;
  --surface: #211d18;
  --ink: #f1ece3;
  --ink-soft: #a89f92;
  --accent: #cba46a;
  --accent-deep: #e0be86;
  --accent-soft: rgba(203, 164, 106, 0.14);
  --line: rgba(241, 236, 227, 0.12);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

::selection { background: var(--accent); color: #fff; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.35rem; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
section { position: relative; }

.center { text-align: center; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow.center { text-align: center; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -1%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(2%, 1%); }
}

/* ---------- Custom Cursor ---------- */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, textarea, label { cursor: none; }
}

.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 42px; height: 42px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              background 0.35s ease, border-color 0.35s ease;
}
.cursor-ring span {
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; color: #fff;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-spring);
  white-space: nowrap;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: var(--accent-soft); }
.cursor-ring.has-label {
  width: 84px; height: 84px;
  background: var(--accent); border-color: var(--accent);
}
.cursor-ring.has-label span { opacity: 1; transform: scale(1); }
.cursor-ring.is-down { transform: translate(-50%, -50%) scale(0.8); }
.cursor-dot.is-down { transform: translate(-50%, -50%) scale(2.2); }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  z-index: 8000;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9500;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  transition: opacity 0.7s ease, visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader-logo {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-display);
  animation: preloader-pulse 1.6s ease-in-out infinite;
}
.preloader-logo span { font-size: 2.4rem; font-weight: 600; letter-spacing: 0.28em; margin-right: -0.28em; }
.preloader-logo em { font-size: 0.95rem; font-style: italic; color: var(--accent); }
@keyframes preloader-pulse { 50% { opacity: 0.55; } }
.preloader-bar {
  width: 180px; height: 2px;
  background: var(--line); border-radius: 2px; overflow: hidden;
}
.preloader-bar-fill { height: 100%; width: 0%; background: var(--accent); transition: width 0.3s ease; }

/* ---------- Cinematic intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 9400;
  background: #000;
  display: none; align-items: center; justify-content: center;
  transition: opacity 0.9s ease;
}
.intro.is-active { display: flex; }
.intro.is-done { opacity: 0; pointer-events: none; }
.intro video { width: 100%; height: 100%; object-fit: cover; }
.intro-controls {
  position: absolute; bottom: 2rem; right: 2rem;
  display: flex; gap: 0.8rem; z-index: 2;
}
.intro-controls button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #f1ece3; font: inherit; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.2rem; border-radius: 100px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.intro-controls button:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.6); }
.intro-start {
  position: absolute; inset: 0; z-index: 3;
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem;
  width: 100%; border: none;
  background: rgba(0, 0, 0, 0.35);
  color: #f1ece3; font: inherit;
}
.intro.needs-click .intro-start { display: flex; }
.intro.needs-click .intro-controls #introSound { display: none; }
.intro-start-ring {
  width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid rgba(241, 236, 227, 0.85);
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
  animation: intro-pulse 2.2s ease-in-out infinite;
}
.intro-start-ring svg { margin-left: 4px; }
.intro-start:hover .intro-start-ring { transform: scale(1.1); background: rgba(176, 141, 87, 0.45); }
@keyframes intro-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 236, 227, 0.35); }
  55% { box-shadow: 0 0 0 22px rgba(241, 236, 227, 0); }
}
.intro-start-label {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
@media (max-width: 600px) {
  .intro-controls { right: 50%; transform: translateX(50%); flex-wrap: wrap; justify-content: center; width: max-content; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 7000;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease,
              transform 0.45s var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 0.7rem; padding-bottom: 0.7rem;
}
.nav.is-hidden { transform: translateY(-110%); }

.nav-logo {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  letter-spacing: 0.18em; display: flex; flex-direction: column; line-height: 1;
}
.nav-logo span {
  font-size: 0.62rem; font-style: italic; letter-spacing: 0.08em;
  color: var(--accent); font-weight: 500; margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  font-size: 0.92rem; font-weight: 600; position: relative; padding: 4px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  background: var(--ink); color: var(--bg);
  padding: 0.55rem 1.3rem !important; border-radius: 100px;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav-cta:hover { background: var(--accent); color: #fff; }

.theme-toggle {
  background: none; border: 1.5px solid var(--line); color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-spring);
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 6px; }
.burger span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.35s var(--ease-out), opacity 0.3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 6500;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  clip-path: circle(0% at calc(100% - 44px) 36px);
  transition: clip-path 0.6s var(--ease-out);
  pointer-events: none;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 44px) 36px); pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: flex; margin-left: auto; }
  .theme-toggle { margin-left: auto; }
  .burger { margin-left: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 2.1rem; border-radius: 100px;
  font-weight: 700; font-size: 0.95rem; font-family: var(--font-body);
  border: none; position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  transform: translateY(101%); transition: transform 0.4s var(--ease-out);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-line {
  background: none; border-bottom: 2px solid var(--accent);
  border-radius: 0; padding: 0.4rem 0.2rem; color: var(--ink);
}
.btn-lg { padding: 1.15rem 2.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.5rem 4rem;
  overflow: hidden;
}
.hero-video { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-video video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.8s ease;
  filter: saturate(1.1);
}
.hero-video video.is-playing { opacity: 1; }
.hero-video-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 55%, transparent) 0%,
      color-mix(in srgb, var(--bg) 72%, transparent) 55%,
      var(--bg) 100%),
    radial-gradient(ellipse at center,
      color-mix(in srgb, var(--bg) 40%, transparent) 0%,
      color-mix(in srgb, var(--bg) 68%, transparent) 100%);
  transition: background 0.5s ease;
}
[data-theme="dark"] .hero-video-veil {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 38%, transparent) 0%,
      color-mix(in srgb, var(--bg) 55%, transparent) 55%,
      var(--bg) 100%),
    radial-gradient(ellipse at center,
      color-mix(in srgb, var(--bg) 22%, transparent) 0%,
      color-mix(in srgb, var(--bg) 55%, transparent) 100%);
}
.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: 0.5;
  will-change: transform;
}
.blob-1 { width: 44vw; height: 44vw; background: var(--accent-soft); background: color-mix(in srgb, var(--accent) 28%, transparent); top: -12%; left: -8%; animation: blob-drift 16s ease-in-out infinite alternate; }
.blob-2 { width: 34vw; height: 34vw; background: color-mix(in srgb, var(--accent-deep) 20%, transparent); bottom: -10%; right: -6%; animation: blob-drift 20s ease-in-out infinite alternate-reverse; }
.blob-3 { width: 22vw; height: 22vw; background: color-mix(in srgb, var(--ink) 8%, transparent); top: 38%; right: 22%; animation: blob-drift 24s ease-in-out infinite alternate; }
@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, -4vh) scale(1.15); }
}

.hero-inner { position: relative; max-width: 900px; }
.hero-eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 500; letter-spacing: -0.02em;
  display: flex; flex-direction: column; gap: 0.05em;
}
.hero-title .italic { font-style: italic; color: var(--accent); font-weight: 500; }
.hero-sub {
  max-width: 560px; margin: 1.8rem auto 2.4rem;
  color: var(--ink-soft); font-size: 1.08rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft);
}
.scroll-hint-line {
  width: 1.5px; height: 44px; background: var(--line);
  position: relative; overflow: hidden;
}
.scroll-hint-line::after {
  content: ""; position: absolute; top: -50%; left: 0;
  width: 100%; height: 50%; background: var(--accent);
  animation: hint-drop 1.8s var(--ease-out) infinite;
}
@keyframes hint-drop { to { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.3rem 0; overflow: hidden;
  background: var(--bg-soft);
}
.marquee-track {
  display: flex; gap: 2.4rem; width: max-content;
  animation: marquee-scroll 28s linear infinite;
  font-family: var(--font-display); font-size: 1.25rem; font-style: italic;
  color: var(--ink-soft); white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1200px; margin: 0 auto; text-align: center;
}
.stat-num, .stat-suffix {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500; color: var(--ink);
}
.stat-suffix { color: var(--accent); }
.stat p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.3rem; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Placeholder Art ---------- */
.placeholder-art {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
}
.pa-icon { width: 45%; max-width: 180px; height: auto; }
.pa-1 { background: linear-gradient(145deg, #d9cbb4, #b8a488); }
.pa-2 { background: linear-gradient(145deg, #ccd6cd, #9fb0a3); }
.pa-3 { background: linear-gradient(145deg, #d6cfc4, #ab9f8d); }
.pa-4 { background: linear-gradient(145deg, #cfd2d9, #9aa1b0); }
.pa-5 { background: linear-gradient(145deg, #d8c9ac, #ac9068); }
.pa-6 { background: linear-gradient(145deg, #8f867a, #5c554b); }
[data-theme="dark"] .placeholder-art { filter: brightness(0.75) saturate(0.9); }

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1250px; margin: 0 auto;
}
.about-media { position: relative; }
.about-frame {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; bottom: -1.4rem; right: -1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 1.1rem 1.4rem;
  display: flex; align-items: center; gap: 0.9rem;
  box-shadow: var(--shadow);
  animation: badge-float 5s ease-in-out infinite;
}
@keyframes badge-float { 50% { transform: translateY(-9px); } }
.about-badge strong { font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.about-badge span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.35; }
.about-content h2 { margin-bottom: 1.4rem; }
.about-content > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.about-list { list-style: none; display: grid; gap: 0.8rem; }
.about-list li { display: flex; gap: 0.8rem; align-items: baseline; font-weight: 600; font-size: 0.98rem; }
.about-list li::before {
  content: "—"; color: var(--accent); font-weight: 700; flex-shrink: 0;
}
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-badge { right: 0.5rem; }
}

/* ---------- Services ---------- */
.services {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  background: var(--bg-soft);
}
.services h2 { margin-bottom: 3rem; }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem; max-width: 1250px; margin: 0 auto;
}
.service-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem 1.8rem;
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  transform-style: preserve-3d; will-change: transform;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
              var(--accent-soft), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.service-card:hover::after { opacity: 1; }
.service-card:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.service-icon {
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1.3rem;
  transform: translateZ(30px);
}
.service-card h3 { margin-bottom: 0.6rem; transform: translateZ(20px); }
.service-card p { color: var(--ink-soft); font-size: 0.94rem; transform: translateZ(12px); }

/* ---------- Properties ---------- */
.properties {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1300px; margin: 0 auto;
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem;
}
.properties-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.property-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow 0.4s ease;
  transform-style: preserve-3d; will-change: transform;
}
.property-card:hover { box-shadow: var(--shadow); }
.property-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.property-media .placeholder-art { transition: transform 0.7s var(--ease-out); }
.property-card:hover .property-media .placeholder-art { transform: scale(1.07); }
.tag {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--ink); color: var(--bg);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.4rem 0.85rem; border-radius: 100px;
}
.fav-btn {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(8px);
  border: none; color: var(--ink);
  display: grid; place-items: center;
  transition: transform 0.3s var(--ease-spring), color 0.3s ease, background 0.3s ease;
}
.fav-btn:hover { transform: scale(1.12); }
.fav-btn.is-active { color: #fff; background: #d1495b; animation: fav-pop 0.45s var(--ease-spring); }
.fav-btn.is-active svg path { fill: currentColor; }
@keyframes fav-pop { 40% { transform: scale(1.35); } }
.property-body { padding: 1.5rem 1.6rem 1.7rem; }
.property-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.price { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); font-weight: 600; white-space: nowrap; }
.property-loc { color: var(--ink-soft); font-size: 0.9rem; margin: 0.35rem 0 1rem; }
.property-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.property-meta span {
  font-size: 0.78rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 0.3rem 0.75rem; border-radius: 100px;
}
[data-theme="dark"] .property-meta span { color: var(--accent); }

/* ---------- Compare ---------- */
.compare-section {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  background: var(--bg-soft);
}
.compare-section h2 { margin-bottom: 3rem; }
.compare {
  position: relative; max-width: 920px; margin: 0 auto;
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  touch-action: pan-y; user-select: none;
}
.compare-after, .compare-before { position: absolute; inset: 0; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.compare-fill { position: relative; }
.compare-fill span {
  position: absolute; bottom: 1.2rem;
  font-weight: 800; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(0,0,0,0.45); color: #fff;
  padding: 0.4rem 0.9rem; border-radius: 100px;
}
.compare-after .compare-fill span { right: 1.2rem; }
.compare-before .compare-fill span { left: 1.2rem; }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 3px; background: #fff; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.35);
}
.compare-handle svg {
  position: absolute; flex-shrink: 0;
  width: 44px; height: 44px; padding: 13px;
  background: #fff; color: #1c1a17; border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.compare-hint { margin-top: 1.4rem; color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Process / Timeline ---------- */
.process {
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1250px; margin: 0 auto;
}
.process h2 { margin-bottom: 4rem; }
.timeline { position: relative; display: grid; gap: 3rem; }
.timeline-line {
  position: absolute; left: 27px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.timeline-line-fill { width: 100%; height: 0%; background: var(--accent); transition: height 0.15s linear; }
.timeline-step { position: relative; padding-left: 84px; max-width: 620px; }
.step-num {
  position: absolute; left: 0; top: -4px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.05rem; color: var(--accent);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease-spring);
}
.timeline-step.is-active .step-num {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: scale(1.08);
}
.timeline-step h3 { margin-bottom: 0.45rem; }
.timeline-step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Testimonials ---------- */
.testimonials {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--bg-soft); overflow: hidden;
}
.testimonials h2 { margin-bottom: 3rem; }
.testi-track {
  display: flex; gap: 1.6rem;
  padding: 0.5rem clamp(1.5rem, 8vw, 10rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.testi-card {
  flex: 0 0 min(440px, 82vw);
  scroll-snap-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.2rem;
  display: flex; flex-direction: column; gap: 1.6rem;
}
.testi-card p { font-family: var(--font-display); font-size: 1.12rem; font-style: italic; line-height: 1.5; }
.testi-author { display: flex; align-items: center; gap: 1rem; margin-top: auto; }
.testi-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.85rem; flex-shrink: 0;
}
.testi-author small { display: block; color: var(--ink-soft); }
.testi-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.testi-dots button {
  width: 8px; height: 8px; border-radius: 100px; border: none;
  background: var(--line); transition: width 0.35s var(--ease-out), background 0.3s ease;
  padding: 0;
}
.testi-dots button.is-active { width: 26px; background: var(--accent); }

/* ---------- CTA banner ---------- */
.cta-banner {
  margin: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  padding: clamp(3rem, 7vw, 5.5rem) 2rem;
  max-width: 1250px; text-align: center;
  background: var(--ink); color: var(--bg);
  border-radius: calc(var(--radius) * 1.4);
  position: relative; overflow: hidden;
}
@media (min-width: 1400px) { .cta-banner { margin-left: auto; margin-right: auto; } }
.cta-banner::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--accent) 35%, transparent) 85%, transparent 100%);
  animation: cta-spin 9s linear infinite;
}
@keyframes cta-spin { to { transform: rotate(1turn); } }
.cta-banner > * { position: relative; }
.cta-banner p { margin: 0.8rem 0 2rem; opacity: 0.75; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 6vw, 6rem);
  max-width: 1250px; margin: 0 auto;
}
.contact-info h2 { margin-bottom: 1.3rem; }
.contact-text { color: var(--ink-soft); margin-bottom: 2rem; }
.contact-details { list-style: none; display: grid; gap: 1rem; }
.contact-details li { display: flex; align-items: center; gap: 0.9rem; font-weight: 600; }
.contact-details svg { color: var(--accent); flex-shrink: 0; }

.contact-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem;
  display: grid; gap: 1.4rem; position: relative; overflow: hidden;
}
.field { position: relative; }
.field input, .field textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1.5px solid var(--line);
  padding: 1.3rem 0 0.6rem; font: inherit; color: var(--ink);
  outline: none; resize: vertical;
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field label {
  position: absolute; left: 0; top: 1.15rem;
  color: var(--ink-soft); pointer-events: none;
  transition: top 0.3s var(--ease-out), font-size 0.3s var(--ease-out), color 0.3s ease;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  top: -0.2rem; font-size: 0.74rem; color: var(--accent);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.form-success {
  position: absolute; inset: 0;
  background: var(--surface);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.2rem;
  color: var(--accent); font-weight: 600; text-align: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s;
}
.form-success.is-visible { opacity: 1; visibility: visible; }
.form-success #checkPath {
  stroke-dasharray: 50; stroke-dashoffset: 50;
}
.form-success.is-visible #checkPath { animation: check-draw 0.6s 0.3s var(--ease-out) forwards; }
@keyframes check-draw { to { stroke-dashoffset: 0; } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem clamp(1.5rem, 6vw, 6rem) 2rem;
  background: var(--bg-soft);
}
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem;
  max-width: 1250px; margin-left: auto; margin-right: auto;
}
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 0.7rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--ink-soft);
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  max-width: 1250px; margin: 0 auto;
}

/* ---------- To top / Confetti ---------- */
.to-top {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 6000;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: var(--bg); border: none;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.35s ease, visibility 0.35s, transform 0.35s var(--ease-spring), background 0.3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--accent); color: #fff; }

#confettiCanvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9200;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

h2.reveal { transform: translateY(24px); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring { display: none; }
  body, a, button, input, textarea, label { cursor: auto; }
}
