/* ==========================================================================
   DEAL LAND Real Estate & Builders — editorial luxury, cinematic edition
   ========================================================================== */

:root {
  /* Color tokens */
  --bg: #f5f1ea;
  --surface: #fdfcfa;
  --ink: #1a1712;
  --ink-soft: #575043;
  --accent: #8a6b40;
  --accent-deep: #6f5430;
  --gold: #c9a35f;
  --dark: #16130e;
  --dark-ink: #efe9df;
  --dark-soft: #a89e8d;
  --line: rgba(26, 23, 18, 0.14);
  --line-dark: rgba(239, 233, 223, 0.16);
  --whatsapp: #25d366;
  --whatsapp-deep: #128c4b;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --space-section: clamp(5rem, 12vw, 9.5rem);
  --radius: 3px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }

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

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

.container { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.container-narrow { width: min(100% - 3rem, 54rem); }
.container-wide { width: min(100% - 2rem, 86rem); margin-inline: auto; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--dark-ink);
  transition: transform 0.9s var(--ease-expo), visibility 0.9s;
}
.preloader-inner { text-align: center; }
.preloader-word {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: 0.12em;
  animation: preFade 1s var(--ease) both;
}
.preloader-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  animation: preFade 1s 0.25s var(--ease) both;
}
.preloader-bar {
  display: block;
  width: 140px;
  height: 1px;
  margin: 1.75rem auto 0;
  background: var(--line-dark);
  overflow: hidden;
}
.preloader-bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  transform-origin: left;
  animation: preBar 1.1s 0.3s var(--ease) both;
}
@keyframes preFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes preBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

body.is-loaded .preloader { transform: translateY(-100%); visibility: hidden; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  padding: 0.8rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease), box-shadow 0.35s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn-icon { width: 19px; height: 19px; flex: 0 0 auto; }

/* sliding-fill hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-expo);
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }

/* lighthouse shine sweep across every button on hover */
.btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: translateX(-220%) skewX(-22deg);
  pointer-events: none;
}
.btn:hover::after { animation: btnShine 0.9s var(--ease); }
@keyframes btnShine {
  from { transform: translateX(-220%) skewX(-22deg); }
  to { transform: translateX(420%) skewX(-22deg); }
}

.btn-solid { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-solid::before { background: var(--accent-deep); }

.btn-gold {
  background: linear-gradient(120deg, var(--accent-deep), var(--gold), #e3c185, var(--accent-deep));
  background-size: 280% 280%;
  color: #fff;
  border: 1px solid rgba(255, 235, 190, 0.35);
  box-shadow:
    0 8px 24px -10px rgba(138, 107, 64, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: goldShift 7s var(--ease) infinite;
}
.btn-gold::before { background: var(--ink); }
.btn-gold:hover {
  box-shadow:
    0 16px 38px -12px rgba(26, 23, 18, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
@keyframes goldShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--ink); border-color: #fff; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  border: 1px solid var(--whatsapp);
  box-shadow: 0 10px 28px -10px rgba(37, 211, 102, 0.55);
}
.btn-whatsapp::before { background: var(--whatsapp-deep); }

.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; }

.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.text-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent-deep);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.text-link:hover { border-color: var(--accent-deep); }
.arrow-link { display: inline-flex; align-items: center; gap: 0.45rem; }
.arrow-link span { transition: transform 0.3s var(--ease); }
.arrow-link:hover span { transform: translateX(5px); }

/* ==========================================================================
   Header — transparent over hero, solid on scroll
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  color: #fff;
  transition: color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   create a containing block and clip the fixed full-screen mobile menu. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled {
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(26, 23, 18, 0.35);
}
.site-header.is-scrolled::before { opacity: 1; }

.header-inner {
  width: min(100% - 3rem, 86rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark { display: grid; place-items: center; color: var(--gold); }
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.brand-text em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
}

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a:not(.btn) {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.85;
  padding: 0.5rem 0;
  transition: opacity 0.2s var(--ease);
}
.site-nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.2rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-expo);
}
.site-nav > a:not(.btn):hover,
.site-nav > a.is-active { opacity: 1; }
.site-nav > a:not(.btn):hover::after,
.site-nav > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { margin-left: 0.5rem; }
.site-header:not(.is-scrolled) .nav-cta { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); color: #fff; backdrop-filter: blur(6px); }
.site-header:not(.is-scrolled) .nav-cta::before { background: #fff; }
.site-header:not(.is-scrolled) .nav-cta:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================================
   Hero — full-screen cinematic
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;  /* fallback for browsers without svh */
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-media {
  display: block;
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
  background: var(--dark); /* under-paint while the poster/video loads */
}
/* CSS Ken Burns fallback — applied by JS only when GSAP is unavailable */
.hero-bg-media.kenburns { animation: kenburns 18s var(--ease) both; }
@keyframes kenburns {
  from { transform: scale(1.14); }
  to { transform: scale(1.02); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13, 11, 8, 0.5) 0%, rgba(13, 11, 8, 0.15) 38%, rgba(13, 11, 8, 0.72) 100%),
    radial-gradient(120% 65% at 50% 100%, rgba(13, 11, 8, 0.35), transparent 60%);
}

/* lighthouse beam — a warm shaft of light panning across the hero */
.hero-beam {
  position: absolute;
  inset: -15%;
  background: linear-gradient(
    72deg,
    transparent 42%,
    rgba(255, 233, 186, 0.07) 47%,
    rgba(255, 240, 205, 0.16) 50%,
    rgba(255, 233, 186, 0.07) 53%,
    transparent 58%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
  animation: lighthouse 11s var(--ease) infinite;
}
@keyframes lighthouse {
  0% { transform: translateX(-55%); }
  55% { transform: translateX(55%); }
  100% { transform: translateX(55%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(7rem, 16vh, 10rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before { content: ""; width: 2.6rem; height: 1px; background: var(--gold); }
.eyebrow-light { color: var(--gold); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(13, 11, 8, 0.35);
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1.2s var(--ease-expo);
}
.hero-line:nth-child(2) > span { transition-delay: 0.12s; }
body.is-loaded .hero-line > span { transform: none; }
.hero-title em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(100deg, var(--gold) 20%, #f4e0b5 40%, var(--gold) 60%, #a8804a 80%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5.5s var(--ease) infinite;
}
@keyframes shimmer {
  0% { background-position: 125% 0; }
  100% { background-position: -125% 0; }
}

.hero-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
body.is-loaded .hero-fade { opacity: 1; transform: none; }
body.is-loaded .hero-row.hero-fade { transition-delay: 0.45s; }
body.is-loaded .hero-strip.hero-fade { transition-delay: 0.7s; }
body.is-loaded .eyebrow.hero-fade { transition-delay: 0.15s; }

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(1.75rem, 4vw, 3rem);
}
.hero-sub {
  max-width: 33rem;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hs-item strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1;
  color: var(--gold);
}
.hs-item span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.hero-scroll {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 1.5rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 2.6rem;
  background: rgba(255, 255, 255, 0.85);
  animation: scrollPulse 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); opacity: 1; }
  45% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-ink);
  border-block: 1px solid var(--line-dark);
  padding-block: 1.1rem;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.75rem;
  white-space: nowrap;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.marquee-track i { font-style: normal; color: var(--gold); font-size: 0.8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--space-section); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.section-head .index { font-family: var(--font-display); font-size: 0.95rem; color: var(--accent-deep); }
.section-head .label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-title em { font-style: italic; font-weight: 300; color: var(--accent-deep); }

/* ---------- About ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.8vw, 2.75rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 60rem;
}
.statement em { font-style: italic; color: var(--accent-deep); }

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 56rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  color: var(--ink-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}
.stat { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.stat-num, .stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-suffix { color: var(--accent-deep); }
.stat-label { display: block; margin-top: 0.75rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Properties ---------- */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.property-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(26, 23, 18, 0.35);
}
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 19, 14, 0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.property-card:hover .card-media::after { opacity: 1; }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-expo);
}
.property-card:hover .card-media img { transform: scale(1.07); }
.card-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(245, 241, 234, 0.92); /* fallback */
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
}
.card-body { padding: 1.75rem; }
.card-body h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; margin-bottom: 0.6rem; }
.card-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.25rem; }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  position: relative;
  background: var(--bg);
  padding: 2rem 1.6rem;
  transition: background-color 0.4s var(--ease);
  overflow: hidden;
}
.service::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-expo);
}
.service:hover { background: var(--surface); }
.service:hover::after { transform: scaleX(1); }
.service-icon {
  width: 30px;
  height: 30px;
  color: var(--accent-deep);
  margin-bottom: 1.1rem;
  transition: transform 0.4s var(--ease);
}
.service:hover .service-icon { transform: translateY(-4px); }
.service h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.35; }
.service p { font-size: 0.875rem; color: var(--ink-soft); }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2.25rem; }
.service-tags span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.45rem 1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.service-tags span:hover { border-color: var(--accent-deep); color: var(--accent-deep); }

/* ---------- Why (dark) ---------- */
.why { background: var(--dark); color: var(--dark-ink); }
.why .section-head { border-top-color: var(--line-dark); }
.why .section-head .label { color: var(--dark-soft); }
.why .section-head .index { color: var(--gold); }
.why .section-title em { color: var(--gold); }

.pillars { list-style: none; }
.pillar {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 1rem;
  margin-inline: -1rem;
  border-top: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: background-color 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.pillar:hover { background: rgba(239, 233, 223, 0.045); padding-left: 1.6rem; }
.pillar:last-child { border-bottom: 1px solid var(--line-dark); }
.pillar-num { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold); padding-top: 0.3rem; }
.pillar h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.pillar p { color: var(--dark-soft); max-width: 42rem; font-size: 0.975rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 230px;
  gap: 1rem;
}
.g-item { position: relative; overflow: hidden; border-radius: var(--radius); }
.g-tall { grid-row: span 2; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-expo);
}
.g-item:hover img { transform: scale(1.06); }
.g-item figcaption {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 1;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 19, 14, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.g-item:hover::after { opacity: 1; }
.g-item:hover figcaption { opacity: 1; transform: none; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.testimonial {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px -32px rgba(26, 23, 18, 0.4);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.quote-mark { width: 30px; height: 24px; color: var(--gold); }
.testimonial p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  flex: 1;
}
.testimonial footer { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.testimonial footer strong { display: block; font-size: 0.95rem; }
.testimonial footer span { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.04em; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-icon { position: relative; flex: 0 0 auto; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent-deep);
  transition: transform 0.35s var(--ease);
}
.faq-icon::before { width: 14px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 14px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg) scaleY(0.01); }
.faq-item[open] .faq-icon::before { transform: rotate(180deg); }
.faq-body { padding: 0 0.25rem 1.75rem; }
.faq-body p { color: var(--ink-soft); max-width: 44rem; }
.faq-item[open] .faq-body { animation: faqOpen 0.45s var(--ease) both; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-block: clamp(6rem, 14vw, 10.5rem);
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; }
.cta-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(13, 11, 8, 0.62), rgba(13, 11, 8, 0.72));
}
.cta-content { position: relative; z-index: 2; }
.cta-content .eyebrow { justify-content: center; }
.cta-content .eyebrow::before { display: none; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.cta-title em { font-style: italic; color: var(--gold); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}

/* ---------- Contact ---------- */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}
.contact .section-title { margin-bottom: 1.5rem; }
.contact-lede { color: var(--ink-soft); max-width: 28rem; margin-bottom: 2.5rem; }

.contact-details { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.25rem; }
.detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.35rem;
}
.contact-details a { border-bottom: 1px solid var(--line); transition: border-color 0.2s var(--ease); }
.contact-details a:hover { border-color: var(--ink); }

/* WhatsApp card */
.wa-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: linear-gradient(115deg, #eafff2, #f2fff7);
  border: 1px solid rgba(37, 211, 102, 0.4); /* fallback */
  border: 1px solid color-mix(in srgb, var(--whatsapp) 35%, var(--line));
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.wa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(18, 140, 75, 0.5);
}
.wa-card-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
}
.wa-card-icon svg { width: 24px; height: 24px; }
.wa-card-text strong { display: block; font-size: 0.975rem; }
.wa-card-text span { font-size: 0.85rem; color: var(--ink-soft); }
.wa-card-arrow { margin-left: auto; color: var(--whatsapp-deep); font-size: 1.2rem; transition: transform 0.3s var(--ease); }
.wa-card:hover .wa-card-arrow { transform: translateX(5px); }

/* Form */
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 30px 60px -40px rgba(26, 23, 18, 0.35);
}
.field { display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.field-row { display: flex; gap: 1.25rem; }
.field label { font-size: 0.875rem; font-weight: 600; }
.req { color: var(--accent-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 0; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field.has-error input { border-color: #a4342a; }
.field-error { font-size: 0.8125rem; color: #a4342a; min-height: 1em; }
.form-status { font-size: 0.9rem; min-height: 1.4em; text-align: center; }
.form-status.ok { color: #2e6b40; }
.form-status.err { color: #a4342a; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark);
  color: var(--dark-ink);
  padding: clamp(3.5rem, 8vw, 6rem) 0 2rem;
  overflow: hidden;
}
.footer-top { margin-bottom: 3.5rem; }
.footer-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 12vw, 8.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--dark-ink) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-values {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--line-dark);
}
.footer-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.footer-grid p { color: var(--dark-soft); font-size: 0.95rem; }
.footer-grid a { border-bottom: 1px solid var(--line-dark); transition: color 0.2s, border-color 0.2s; }
.footer-grid a:hover { color: var(--dark-ink); border-color: var(--dark-ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
  color: var(--dark-soft);
}
.footer-bottom .text-link { color: var(--gold); }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 56px;
  padding: 0.9rem 1.2rem;
  border-radius: 100px;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 14px 34px -12px rgba(18, 140, 75, 0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 44px -14px rgba(18, 140, 75, 0.85);
}
.wa-float svg { width: 26px; height: 26px; position: relative; z-index: 1; }
.wa-float-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
}
.wa-float-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--whatsapp);
  animation: waPulse 2.4s var(--ease) infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ==========================================================================
   Film grain — cinematic texture over everything
   ========================================================================== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ==========================================================================
   Scroll progress — thin gold line along the top
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  height: 3px;
  pointer-events: none;
}
.scroll-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ==========================================================================
   Custom cursor — gold dot + trailing ring (fine pointers only, JS-enabled)
   ========================================================================== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
}
body.has-cursor .cursor-dot,
body.has-cursor .cursor-ring { opacity: 1; }
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring { opacity: 0; }

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
  transition: opacity 0.25s var(--ease);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(201, 163, 95, 0.7);
  transition:
    width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.25s var(--ease);
}
.cursor-ring.is-on {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(201, 163, 95, 0.14);
  border-color: var(--gold);
}
body.has-cursor,
body.has-cursor a,
body.has-cursor button,
body.has-cursor summary,
body.has-cursor label { cursor: none; }

/* ==========================================================================
   Reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero-fade { opacity: 1; transform: none; filter: none; transition: none; }
  .hero-line > span { transform: none; transition: none; }
  .hero-bg-media { animation: none; }
  .hero-beam { animation: none; display: none; }
  .hero-title em { animation: none; color: var(--gold); background: none; -webkit-background-clip: initial; background-clip: initial; }
  .btn-gold { animation: none; }
  .btn::after { display: none; }
  .marquee-track { animation: none; }
  .wa-float-ring { animation: none; }
  .hero-scroll::after { animation: none; }
  .preloader { display: none; }
  body.is-loading { overflow: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 210px; }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 40rem; }
}

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

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    background: var(--dark);
    color: var(--dark-ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; z-index: 90; }
  .site-nav > a:not(.btn) {
    font-family: var(--font-display);
    font-size: 1.7rem;
    opacity: 1;
    color: var(--dark-ink);
  }
  .nav-cta { margin: 1rem 0 0; }
  .site-header.is-scrolled .nav-toggle { color: var(--ink); }
  .site-nav.is-open ~ .nav-toggle { color: var(--dark-ink); }

  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }

  .about-cols { grid-template-columns: 1fr; gap: 1.25rem; }
  .property-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .pillar:hover { padding-left: 1rem; }

  .wa-float-label { display: none; }
  .wa-float { padding: 0; width: 58px; height: 58px; justify-content: center; }
}

@media (max-width: 480px) {
  .service-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .g-tall { grid-row: span 1; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .hero-scroll { display: none; }
}
